gralha-svg-render
Releases (2)
Definitions (947)
svg.bend
- def length.go
- def length
- type MatrixAffine transforms, composed in SVG's column - vector order.
- def identity
- def matrix.mul
- def matrix.inverse.values
- def matrix.inverse
- type Point
- def matrix.point
- def translate
- def scale
- def rotate
- def transform.one
- def transform.args
- def transform.name
- def transform
- type EdgePaths are flattened in user coordinates.
- def edge.of
- type Cover---- analytic coverage ---- A cover is a pixel-space coverage mask (see cover.bend) together with the raster grid it was built for, so device points map straight to its cells.
- def cover.none
- def cover.present
- def cover.at
- def point.add
- def point.sub
- def point.scale
- def point.dot
- def point.mid
- def point.distance
- def flat.toleranceCurves are flattened to a tolerance measured in device pixels (converted to local units through the element's matrix by the caller), so a curve gets as many segments as the output size needs and no more.
- def matrix.normThe largest scale the matrix applies to any direction, bounded by its Frobenius norm; local tolerance = pixel tolerance / scale.
- def local.tolerancescale is the device pixels per unit of the frame m maps into (1 when m maps to the device, the tile's density for pattern content).
- def chord.cross
- def chord.nearWhether x lies within tol of the chord pq: at most tol from its line and not beyond either end by more than tol.
- def cubic.flatA cubic's distance from its chord is 3t(1-t) times a mix of its control points' distances, at most three quarters of the larger, so the curve is within tol when both control points are within 4/3 tol.
- def cubic.countWang's bound: a cubic cut into n equal parameter steps stays within e of its chords when n >= sqrt(3/4 * L / e), L the larger second difference of the control points.
- def cubic.at
- def cubic.go
- def cubic
- type PathNextWhat follows a command's numbers, scanned one step ahead: `kind` is 0 at the end of the data, 1 at a letter, 2 at a number repeating the pending command, 3 at anything else.
- type Params
- def path.letter
- def path.next
- def floats.rev
- def arc.flag
- def args.number.pick
- def args.numberThe arguments are counted down; an arc's flags are the 4th and 3rd from its end.
- def path.args
- def path.arguments
- type MarkerSegmentPreserve source segment endpoints and analytic tangents only when requested.
- def marker.segment
- def marker.nonzero
- def marker.vector
- def marker.cubic
- def marker.line
- def marker.arc.tangent
- type Path
- def upper
- def relative
- def path.move
- def path.line
- def path.cubic
- def path.quad
- def path.close
- def path.h
- def path.v
- def arc.pointEndpoint-to-center conversion from SVG's elliptical arc implementation notes.
- def arc.edges
- def arc.draw
- def arc.angles
- def arc.center
- def arc.radii
- def arc.prepare
- def path.arc
- def path.cursorThe command's numbers are read by pattern, exactly as many as it takes; the parser has already counted them.
- def path.smoothThe reflected control point of a smooth curve after a curve of the same kind (commands a or b), else the current point.
- def path.apply
- def path.arity
- def path.stepA command applied to the path: 0 nothing (before the first command), 1 a close, 2 a drawing command with its numbers.
- def path.followThe command a bare number after `cmd` repeats: a move continues as a line, a close as nothing (the parse ends), any other command as itself.
- def path.step.kind
- def path.run
- def path.loop
- def path.finish
- def path
- def edge.crossGeometry queries use half-open crossings, supporting both SVG fill rules.
- def winding
- def fill.inside
- def edge.distance
- def stroke.inside
- type Bounds
- def bounds.point
- def bounds.at
- def bounds
- def bounds.inside
- def inflate
- def color.fade
- def color.over
- def color.add
- def byte
- type Raster