gralha-svg-render
Releases (2)
Definitions (947)
svg.bend
- def pick.put
- def style.pick
- def stroke.inherit
- def point.cross
- def point.normal
- def point.unit
- type Subpath
- def points.rev
- def points.clean.go
- def points.clean
- def subpath.finish
- def edges.rev
- def points.add
- type SubThe polylines under construction: the current one's points (reversed) and the finished subpaths.
- def edge.kind0 a fill-only edge (ends the current subpath, open), 1 a stroked edge (extends it), 2 a closing edge (ends it, closed).
- def subpaths.add
- def subpaths.finish
- def subpaths.go
- def subpaths
- type Segment
- def segment.of
- def segments
- def segments.length
- type DashPatternDash intervals are measured along each flattened subpath.
- type DashCursor
- type DashRun
- def floats.append
- def floats.count
- def floats.sum
- def floats.negative
- def dash.skip.units
- def dash.value
- def dash.values
- def dash.pattern.values
- def floats.scale
- def dash.pattern
- def dash.someWhether the pattern dashes at all.
- def dash.seek
- def dash.next
- def dash.walk
- def dash.runs
- def dash.crosses
- def dash.start
- def dash.end
- def segment.dir
- def segment.start
- def segment.end
- type JoinsThe join and cap of a stroke as codes, decided once per stroke instead of by name at every vertex: cap 0 butt, 1 round, 2 square; join 0 miter, 1 round, 2 bevel, 3 miter-clip.
- def cap.code
- def join.code
- def joins.of
- def outline.tolerance
- def outline.stepsSteps for an arc of `sweep` radians at radius r within the tolerance.
- def point.angle
- def outline.arcn points from `angle` on, `step` apart, prepended in order.
- def outline.sweepThe points strictly between the start and end of an arc around c from the direction `from` sweeping `sweep` radians (signed).
- def point.turnThe signed angle from u to v, both unit vectors.
- def outline.miter.pickThe join on the left side at vertex p, from the incoming direction u to the outgoing v, when that side is the outer one (the path turns right).
- def outline.miter
- def outline.join.kind
- def outline.join.outer
- def outline.join.back.kindA reversal (v = -u) gets the half circle through p + r u when joins are round.
- def outline.join.back
- type PrevThe previous segment along a side: its direction, the end of its offset (not yet emitted, since an inner join replaces it) and its length.
- def prev.of
- def outline.innerOn the inner side the two offset lines cross; when they cross within both segments that point replaces both offset ends, so the outline has no loop there.
- def outline.back.if
- def outline.vertex.pickThe points at vertex p between the previous segment (direction u, offset end a1) and the next (direction v, offset start b0).
- def outline.vertex.join
- def outline.vertex
- def outline.side.endAt the end of an open side the last offset end is emitted; a closed loop emitted it through its first vertex.
- def outline.sideThe left side of a polyline: each segment's offset endpoints with the joins between segments.
- def outline.capThe cap at point p leaving in direction u, between the offsets p + r n and p - r n (which the sides push): nothing for butt.
- def outline.edges.go
- def outline.edgesThe closed polygon through the points, as edges.
- def segments.last
- def joins.capThe outline of an open polyline: the left side, the end cap, the right side (the left side of the reversed points) and the start cap.
- def outline.open.go
- def segments.flipThe segments backwards, each turned around, for the right side.
- def outline.open.segs
- def outline.open
- def outline.loopA closed subpath: one closed loop per side, each joined at the start vertex.
- def outline.closed.segs
- def outline.closed
- def outline.dot.capA zero-length piece: a dot for round caps, a square for square caps.
- def outline.dot
- def segment.at---- dashes as polylines ---- The point at distance d along the segments, and the direction there.
- def segment.reaches
- def segments.at
- def segments.dir.at
- def points.push.if
- def segments.betweenThe vertices strictly inside (s, e), in order, prepended before `acc`.
- def dash.pointsThe polyline of the run [s, e] along the segments.
- def outline.run
- def outline.runsThe runs of an open subpath, or of a closed one whose dashes do not meet at the seam.
- def dash.first.end
- def dash.last.start
- def dash.drop.first
- def dash.drop.last
- def dash.whole