Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F123259530
textfield.component.html
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sat, Jul 26, 01:39
Size
916 B
Mime Type
image/svg
Expires
Mon, Jul 28, 01:39 (2 d)
Engine
blob
Format
Raw Data
Handle
27638345
Attached To
rSVGTESTAPP svg-test-app
textfield.component.html
View Options
<svg
xmlns:svg=
"http://www.w3.org/2000/svg"
xmlns=
"http://www.w3.org/2000/svg"
xmlns:xlink=
"http://www.w3.org/1999/xlink"
[
attr
.
viewBox
]="
viewBox
"
[
attr
.
height
]="
text_field
.
height
"
[
attr
.
width
]="
text_field
.
width
"
[
ngClass
]="{'
textfield
'
:
!
image
}"
>
<svg:g
*
ngIf=
"image"
>
<image
[
attr
.
xlink:href
]="
image
.
file_name
"
x=
"0"
y=
"0"
[
attr
.
height
]="
image
.
height
"
[
attr
.
width
]="
image
.
width
"
/>
</svg:g>
<svg:g
*
ngFor=
"let word of words"
>
<svg:g
*
ngIf=
"!image"
>
<svg:text
[
attr
.
x
]="
word
.
left
+
2
"
[
attr
.
y
]="
word
.
top
+
word
.
height
/
2
+
3
"
[
attr
.
textLength
]="
word
.
width-4
"
lengthAdjust=
"spacingAndGlyphs"
>
{{word.text}}
</svg:text>
</svg:g>
<svg:rect
[
highlightWord
]="
word
.
text
"
class=
"highlight"
[
attr
.
x
]="
word
.
left
"
[
attr
.
y
]="
word
.
top
"
[
attr
.
height
]="
word
.
height
"
[
attr
.
width
]="
word
.
width
"
>
<title>
{{word.text}}
</title>
</svg:rect>
</svg:g>
</svg>
Event Timeline
Log In to Comment