Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F82196196
margin-field.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
Tue, Sep 10, 02:59
Size
1 KB
Mime Type
image/svg
Expires
Thu, Sep 12, 02:59 (1 d, 21 h)
Engine
blob
Format
Raw Data
Handle
20664870
Attached To
rNIETZSCHEBETAAPP Nietzsche-Beta-App
margin-field.component.html
View Options
<svg
xmlns:svg=
"http://www.w3.org/2000/svg"
xmlns=
"http://www.w3.org/2000/svg"
xmlns:xhtml=
"http://www.w3.org/1999/xhtml"
[
attr
.
viewBox
]="
viewBox
"
[
attr
.
height
]="
margin_height
*
local_zoom
*
zoomFactor
"
[
attr
.
width
]="
margin_width
*
local_zoom
*
zoomFactor
"
class =
'marginfield'
>
<svg:g
*
ngFor=
"let line of lines"
>
<foreignObject
*
ngIf=
"showReference == 'from' && line.continuesFrom"
[
attr
.
x
]="
0
"
[
attr
.
y
]="
line
.
bottom-line_height
+
1
"
[
attr
.
height
]="
line_height
"
[
attr
.
width
]="
2
*
line_length
"
>
<xhtml:div><line
-reference
[
showReference
]="
showReference
"
[
line
]="
line
"
>
<
/line-reference>
</xhtml:div>
</foreignObject>
<svg:g
*
ngIf=
"line.number % 2 == 0 || hasWordsOnLine(line) ||
((getHoverStatus(line) == SELECTED_STATUS || getHoverStatus(line) == HOVERED_STATUS)
&& ((showReference != 'to' && line.continuesFrom) || (showReference == 'to' && line.continuesTo)))"
>
<svg:rect
[
attr
.
x
]="
line_x-1
"
[
attr
.
y
]="
line
.
bottom-line_height
+
1
"
[
attr
.
height
]="
line_height
"
[
attr
.
width
]="
line
.
number
>
9 ? line_length + line_length/2 : line_length"
[ngStyle]="assignStyle(line, hoveredWord, hoveredLine, getHoverStatus(line))"
[ngClass]="{
'marginfield unhighlighted': getHoverStatus(line) != HOVERED_STATUS,
'marginfield highlight': getHoverStatus(line) == HOVERED_STATUS }" >
</svg:rect>
<svg:text
class=
"text"
[
attr
.
x
]="
line_x
"
[
attr
.
y
]="
line
.
bottom
"
[
container
]="
container
"
[
interactedObject
]="
line
"
>
{{line.number}}
</svg:text>
</svg:g>
<foreignObject
*
ngIf=
"showReference == 'to' && line.continuesTo"
[
attr
.
x
]="
line_x
+
line_length
"
[
attr
.
y
]="
line
.
bottom-line_height
+
1
"
[
attr
.
height
]="
line_height
"
[
attr
.
width
]="
2
*
line_length
"
>
<xhtml:div><line
-reference
[
showReference
]="
showReference
"
[
line
]="
line
"
>
<
/line-reference>
</xhtml:div>
</foreignObject>
</svg:g>
</svg>
Event Timeline
Log In to Comment