@retikz/core 0.3.0-alpha.4 → 0.3.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/arrows/define.d.ts +9 -0
- package/dist/es/arrows/define.d.ts.map +1 -0
- package/dist/es/arrows/define.js +10 -0
- package/dist/es/arrows/index.d.ts +3 -1
- package/dist/es/arrows/index.d.ts.map +1 -1
- package/dist/es/arrows/index.js +14 -1
- package/dist/es/arrows/types.d.ts +4 -2
- package/dist/es/arrows/types.d.ts.map +1 -1
- package/dist/es/compile/anchor-cache.d.ts +3 -3
- package/dist/es/compile/anchor-cache.d.ts.map +1 -1
- package/dist/es/compile/anchor-cache.js +18 -5
- package/dist/es/compile/compile.d.ts +5 -14
- package/dist/es/compile/compile.d.ts.map +1 -1
- package/dist/es/compile/compile.js +73 -41
- package/dist/es/compile/{lowerComposites.d.ts → composite.d.ts} +9 -2
- package/dist/es/compile/composite.d.ts.map +1 -0
- package/dist/es/compile/{lowerComposites.js → composite.js} +9 -1
- package/dist/es/compile/constant.d.ts +32 -0
- package/dist/es/compile/constant.d.ts.map +1 -0
- package/dist/es/compile/constant.js +23 -0
- package/dist/es/compile/direction.d.ts +27 -0
- package/dist/es/compile/direction.d.ts.map +1 -0
- package/dist/es/compile/direction.js +30 -0
- package/dist/es/compile/index.d.ts +3 -1
- package/dist/es/compile/index.d.ts.map +1 -1
- package/dist/es/compile/name-stack.d.ts +3 -1
- package/dist/es/compile/name-stack.d.ts.map +1 -1
- package/dist/es/compile/name-stack.js +5 -1
- package/dist/es/compile/node.d.ts +20 -7
- package/dist/es/compile/node.d.ts.map +1 -1
- package/dist/es/compile/node.js +42 -63
- package/dist/es/compile/paint.js +1 -1
- package/dist/es/compile/path/anchor.d.ts +4 -3
- package/dist/es/compile/path/anchor.d.ts.map +1 -1
- package/dist/es/compile/path/anchor.js +9 -12
- package/dist/es/compile/path/index.d.ts +6 -8
- package/dist/es/compile/path/index.d.ts.map +1 -1
- package/dist/es/compile/path/index.js +59 -34
- package/dist/es/compile/path/relative.d.ts +1 -1
- package/dist/es/compile/path/relative.js +1 -1
- package/dist/es/compile/path/shrink.d.ts +3 -1
- package/dist/es/compile/path/shrink.d.ts.map +1 -1
- package/dist/es/compile/path/shrink.js +16 -11
- package/dist/es/compile/position.d.ts +2 -2
- package/dist/es/compile/position.d.ts.map +1 -1
- package/dist/es/compile/position.js +6 -19
- package/dist/es/compile/precision.d.ts +1 -1
- package/dist/es/compile/precision.d.ts.map +1 -1
- package/dist/es/compile/precision.js +2 -2
- package/dist/es/compile/scope.d.ts +7 -5
- package/dist/es/compile/scope.d.ts.map +1 -1
- package/dist/es/compile/scope.js +29 -13
- package/dist/es/compile/style.d.ts +2 -2
- package/dist/es/compile/style.d.ts.map +1 -1
- package/dist/es/compile/style.js +2 -2
- package/dist/es/composites/define.d.ts +8 -0
- package/dist/es/composites/define.d.ts.map +1 -0
- package/dist/es/composites/{types.js → define.js} +2 -2
- package/dist/es/composites/index.d.ts +1 -1
- package/dist/es/composites/index.d.ts.map +1 -1
- package/dist/es/composites/types.d.ts +0 -6
- package/dist/es/composites/types.d.ts.map +1 -1
- package/dist/es/geometry/anchor.d.ts +33 -0
- package/dist/es/geometry/anchor.d.ts.map +1 -0
- package/dist/es/geometry/anchor.js +45 -0
- package/dist/es/geometry/bend.d.ts +1 -1
- package/dist/es/geometry/bend.js +2 -2
- package/dist/es/geometry/circle.d.ts +4 -4
- package/dist/es/geometry/circle.d.ts.map +1 -1
- package/dist/es/geometry/circle.js +3 -3
- package/dist/es/geometry/{roundedContour.d.ts → contour.d.ts} +4 -5
- package/dist/es/geometry/contour.d.ts.map +1 -0
- package/dist/es/geometry/{roundedContour.js → contour.js} +22 -34
- package/dist/es/geometry/diamond.d.ts +3 -3
- package/dist/es/geometry/diamond.d.ts.map +1 -1
- package/dist/es/geometry/diamond.js +2 -2
- package/dist/{lib/geometry/_edge.d.ts → es/geometry/edge.d.ts} +1 -1
- package/dist/es/geometry/edge.d.ts.map +1 -0
- package/dist/es/geometry/{_edge.js → edge.js} +1 -1
- package/dist/es/geometry/ellipse.d.ts +3 -3
- package/dist/es/geometry/ellipse.d.ts.map +1 -1
- package/dist/es/geometry/ellipse.js +2 -2
- package/dist/es/geometry/index.d.ts +2 -1
- package/dist/es/geometry/index.d.ts.map +1 -1
- package/dist/es/geometry/point.d.ts +6 -0
- package/dist/es/geometry/point.d.ts.map +1 -1
- package/dist/es/geometry/point.js +17 -0
- package/dist/es/geometry/rect.d.ts +4 -17
- package/dist/es/geometry/rect.d.ts.map +1 -1
- package/dist/es/geometry/rect.js +4 -16
- package/dist/es/geometry/segment.d.ts.map +1 -1
- package/dist/es/geometry/segment.js +25 -47
- package/dist/{lib/geometry/_transform.d.ts → es/geometry/transform.d.ts} +1 -1
- package/dist/es/geometry/transform.d.ts.map +1 -0
- package/dist/es/geometry/{_transform.js → transform.js} +1 -1
- package/dist/es/index.d.ts +13 -10
- package/dist/es/index.d.ts.map +1 -1
- package/dist/es/index.js +19 -14
- package/dist/es/ir/animation.d.ts +219 -0
- package/dist/es/ir/animation.d.ts.map +1 -0
- package/dist/es/ir/animation.js +118 -0
- package/dist/es/ir/boundary.d.ts +1 -1
- package/dist/es/ir/boundary.d.ts.map +1 -1
- package/dist/es/ir/coordinate.d.ts +8 -8
- package/dist/es/ir/index.d.ts +1 -0
- package/dist/es/ir/index.d.ts.map +1 -1
- package/dist/es/ir/node.d.ts +249 -92
- package/dist/es/ir/node.d.ts.map +1 -1
- package/dist/es/ir/node.js +25 -23
- package/dist/es/ir/paint.d.ts +19 -18
- package/dist/es/ir/paint.d.ts.map +1 -1
- package/dist/es/ir/paint.js +10 -10
- package/dist/es/ir/path/arrow.d.ts +39 -38
- package/dist/es/ir/path/arrow.d.ts.map +1 -1
- package/dist/es/ir/path/arrow.js +18 -16
- package/dist/es/ir/path/path.d.ts +1106 -209
- package/dist/es/ir/path/path.d.ts.map +1 -1
- package/dist/es/ir/path/path.js +3 -1
- package/dist/es/ir/path/step.d.ts +932 -20
- package/dist/es/ir/path/step.d.ts.map +1 -1
- package/dist/es/ir/path/step.js +73 -22
- package/dist/es/ir/path/target.js +3 -3
- package/dist/es/ir/position/at-position.d.ts +18 -18
- package/dist/es/ir/position/at-position.d.ts.map +1 -1
- package/dist/es/ir/position/at-position.js +11 -11
- package/dist/es/ir/scene.d.ts +156 -0
- package/dist/es/ir/scene.d.ts.map +1 -1
- package/dist/es/ir/scene.js +3 -1
- package/dist/es/ir/scope.d.ts +3446 -1306
- package/dist/es/ir/scope.d.ts.map +1 -1
- package/dist/es/ir/scope.js +10 -6
- package/dist/es/ir/transform.d.ts +44 -17
- package/dist/es/ir/transform.d.ts.map +1 -1
- package/dist/es/ir/transform.js +10 -3
- package/dist/es/parsers/index.d.ts +3 -3
- package/dist/es/parsers/index.d.ts.map +1 -1
- package/dist/es/parsers/{parseNodeTarget.d.ts → node-target.d.ts} +1 -1
- package/dist/es/parsers/node-target.d.ts.map +1 -0
- package/dist/es/parsers/{parseNodeTarget.js → node-target.js} +10 -8
- package/dist/{lib/parsers/parseTargetSugar.d.ts → es/parsers/target-sugar.d.ts} +1 -1
- package/dist/es/parsers/target-sugar.d.ts.map +1 -0
- package/dist/es/parsers/{parseTargetSugar.js → target-sugar.js} +9 -4
- package/dist/{lib/parsers/parseWay.d.ts → es/parsers/way.d.ts} +1 -1
- package/dist/es/parsers/way.d.ts.map +1 -0
- package/dist/es/parsers/{parseWay.js → way.js} +9 -5
- package/dist/es/path-generators/define.d.ts.map +1 -0
- package/dist/es/{pathGenerators → path-generators}/define.js +1 -1
- package/dist/es/path-generators/index.d.ts.map +1 -0
- package/dist/es/path-generators/types.d.ts.map +1 -0
- package/dist/es/patterns/define.d.ts +9 -0
- package/dist/es/patterns/define.d.ts.map +1 -0
- package/dist/es/patterns/define.js +10 -0
- package/dist/es/patterns/index.d.ts +1 -0
- package/dist/es/patterns/index.d.ts.map +1 -1
- package/dist/es/patterns/index.js +42 -35
- package/dist/es/presets/animation.d.ts +123 -0
- package/dist/es/presets/animation.d.ts.map +1 -0
- package/dist/es/presets/animation.js +272 -0
- package/dist/es/presets/index.d.ts +3 -0
- package/dist/es/presets/index.d.ts.map +1 -0
- package/dist/es/primitive/ellipse.d.ts +3 -0
- package/dist/es/primitive/ellipse.d.ts.map +1 -1
- package/dist/es/primitive/group.d.ts +3 -0
- package/dist/es/primitive/group.d.ts.map +1 -1
- package/dist/es/primitive/marker.d.ts +1 -1
- package/dist/es/primitive/paint.d.ts +1 -1
- package/dist/es/primitive/path.d.ts +4 -1
- package/dist/es/primitive/path.d.ts.map +1 -1
- package/dist/es/primitive/rect.d.ts +3 -0
- package/dist/es/primitive/rect.d.ts.map +1 -1
- package/dist/es/primitive/scene.d.ts +3 -0
- package/dist/es/primitive/scene.d.ts.map +1 -1
- package/dist/es/primitive/text.d.ts +3 -0
- package/dist/es/primitive/text.d.ts.map +1 -1
- package/dist/es/shapes/arc.js +2 -2
- package/dist/{lib/shapes/_contour.d.ts → es/shapes/contour.d.ts} +6 -3
- package/dist/es/shapes/contour.d.ts.map +1 -0
- package/dist/es/shapes/{_contour.js → contour.js} +14 -2
- package/dist/es/shapes/ellipse.js +2 -2
- package/dist/es/shapes/index.d.ts +1 -1
- package/dist/es/shapes/index.d.ts.map +1 -1
- package/dist/es/shapes/index.js +1 -1
- package/dist/es/shapes/polygon.d.ts +1 -1
- package/dist/es/shapes/polygon.d.ts.map +1 -1
- package/dist/es/shapes/polygon.js +26 -21
- package/dist/es/shapes/rectangle.js +5 -5
- package/dist/es/shapes/sector.d.ts.map +1 -1
- package/dist/es/shapes/sector.js +30 -22
- package/dist/es/shapes/{_shared.d.ts → shared.d.ts} +4 -8
- package/dist/es/shapes/shared.d.ts.map +1 -0
- package/dist/es/shapes/{_shared.js → shared.js} +8 -12
- package/dist/es/shapes/star.d.ts.map +1 -1
- package/dist/es/shapes/star.js +4 -14
- package/dist/lib/arrows/define.cjs +10 -0
- package/dist/lib/arrows/define.d.ts +9 -0
- package/dist/lib/arrows/define.d.ts.map +1 -0
- package/dist/lib/arrows/index.cjs +14 -1
- package/dist/lib/arrows/index.d.ts +3 -1
- package/dist/lib/arrows/index.d.ts.map +1 -1
- package/dist/lib/arrows/types.d.ts +4 -2
- package/dist/lib/arrows/types.d.ts.map +1 -1
- package/dist/lib/compile/anchor-cache.cjs +17 -4
- package/dist/lib/compile/anchor-cache.d.ts +3 -3
- package/dist/lib/compile/anchor-cache.d.ts.map +1 -1
- package/dist/lib/compile/compile.cjs +71 -39
- package/dist/lib/compile/compile.d.ts +5 -14
- package/dist/lib/compile/compile.d.ts.map +1 -1
- package/dist/lib/compile/{lowerComposites.cjs → composite.cjs} +9 -1
- package/dist/lib/compile/{lowerComposites.d.ts → composite.d.ts} +9 -2
- package/dist/lib/compile/composite.d.ts.map +1 -0
- package/dist/lib/compile/constant.cjs +24 -0
- package/dist/lib/compile/constant.d.ts +32 -0
- package/dist/lib/compile/constant.d.ts.map +1 -0
- package/dist/lib/compile/direction.cjs +31 -0
- package/dist/lib/compile/direction.d.ts +27 -0
- package/dist/lib/compile/direction.d.ts.map +1 -0
- package/dist/lib/compile/index.d.ts +3 -1
- package/dist/lib/compile/index.d.ts.map +1 -1
- package/dist/lib/compile/name-stack.cjs +5 -1
- package/dist/lib/compile/name-stack.d.ts +3 -1
- package/dist/lib/compile/name-stack.d.ts.map +1 -1
- package/dist/lib/compile/node.cjs +42 -62
- package/dist/lib/compile/node.d.ts +20 -7
- package/dist/lib/compile/node.d.ts.map +1 -1
- package/dist/lib/compile/paint.cjs +1 -1
- package/dist/lib/compile/path/anchor.cjs +10 -12
- package/dist/lib/compile/path/anchor.d.ts +4 -3
- package/dist/lib/compile/path/anchor.d.ts.map +1 -1
- package/dist/lib/compile/path/index.cjs +58 -33
- package/dist/lib/compile/path/index.d.ts +6 -8
- package/dist/lib/compile/path/index.d.ts.map +1 -1
- package/dist/lib/compile/path/relative.cjs +1 -1
- package/dist/lib/compile/path/relative.d.ts +1 -1
- package/dist/lib/compile/path/shrink.cjs +16 -11
- package/dist/lib/compile/path/shrink.d.ts +3 -1
- package/dist/lib/compile/path/shrink.d.ts.map +1 -1
- package/dist/lib/compile/position.cjs +6 -19
- package/dist/lib/compile/position.d.ts +2 -2
- package/dist/lib/compile/position.d.ts.map +1 -1
- package/dist/lib/compile/precision.cjs +2 -2
- package/dist/lib/compile/precision.d.ts +1 -1
- package/dist/lib/compile/precision.d.ts.map +1 -1
- package/dist/lib/compile/scope.cjs +29 -13
- package/dist/lib/compile/scope.d.ts +7 -5
- package/dist/lib/compile/scope.d.ts.map +1 -1
- package/dist/lib/compile/style.cjs +2 -2
- package/dist/lib/compile/style.d.ts +2 -2
- package/dist/lib/compile/style.d.ts.map +1 -1
- package/dist/lib/composites/{types.cjs → define.cjs} +2 -2
- package/dist/lib/composites/define.d.ts +8 -0
- package/dist/lib/composites/define.d.ts.map +1 -0
- package/dist/lib/composites/index.d.ts +1 -1
- package/dist/lib/composites/index.d.ts.map +1 -1
- package/dist/lib/composites/types.d.ts +0 -6
- package/dist/lib/composites/types.d.ts.map +1 -1
- package/dist/lib/geometry/anchor.cjs +47 -0
- package/dist/lib/geometry/anchor.d.ts +33 -0
- package/dist/lib/geometry/anchor.d.ts.map +1 -0
- package/dist/lib/geometry/bend.cjs +2 -2
- package/dist/lib/geometry/bend.d.ts +1 -1
- package/dist/lib/geometry/circle.cjs +9 -9
- package/dist/lib/geometry/circle.d.ts +4 -4
- package/dist/lib/geometry/circle.d.ts.map +1 -1
- package/dist/lib/geometry/{roundedContour.cjs → contour.cjs} +21 -32
- package/dist/lib/geometry/{roundedContour.d.ts → contour.d.ts} +4 -5
- package/dist/lib/geometry/contour.d.ts.map +1 -0
- package/dist/lib/geometry/diamond.cjs +7 -7
- package/dist/lib/geometry/diamond.d.ts +3 -3
- package/dist/lib/geometry/diamond.d.ts.map +1 -1
- package/dist/lib/geometry/{_edge.cjs → edge.cjs} +1 -1
- package/dist/{es/geometry/_edge.d.ts → lib/geometry/edge.d.ts} +1 -1
- package/dist/lib/geometry/edge.d.ts.map +1 -0
- package/dist/lib/geometry/ellipse.cjs +8 -8
- package/dist/lib/geometry/ellipse.d.ts +3 -3
- package/dist/lib/geometry/ellipse.d.ts.map +1 -1
- package/dist/lib/geometry/index.d.ts +2 -1
- package/dist/lib/geometry/index.d.ts.map +1 -1
- package/dist/lib/geometry/point.cjs +17 -0
- package/dist/lib/geometry/point.d.ts +6 -0
- package/dist/lib/geometry/point.d.ts.map +1 -1
- package/dist/lib/geometry/rect.cjs +9 -22
- package/dist/lib/geometry/rect.d.ts +4 -17
- package/dist/lib/geometry/rect.d.ts.map +1 -1
- package/dist/lib/geometry/segment.cjs +25 -47
- package/dist/lib/geometry/segment.d.ts.map +1 -1
- package/dist/lib/geometry/{_transform.cjs → transform.cjs} +1 -1
- package/dist/{es/geometry/_transform.d.ts → lib/geometry/transform.d.ts} +1 -1
- package/dist/lib/geometry/transform.d.ts.map +1 -0
- package/dist/lib/index.cjs +56 -22
- package/dist/lib/index.d.ts +13 -10
- package/dist/lib/index.d.ts.map +1 -1
- package/dist/lib/ir/animation.cjs +127 -0
- package/dist/lib/ir/animation.d.ts +219 -0
- package/dist/lib/ir/animation.d.ts.map +1 -0
- package/dist/lib/ir/boundary.d.ts +1 -1
- package/dist/lib/ir/boundary.d.ts.map +1 -1
- package/dist/lib/ir/coordinate.d.ts +8 -8
- package/dist/lib/ir/index.d.ts +1 -0
- package/dist/lib/ir/index.d.ts.map +1 -1
- package/dist/lib/ir/node.cjs +25 -23
- package/dist/lib/ir/node.d.ts +249 -92
- package/dist/lib/ir/node.d.ts.map +1 -1
- package/dist/lib/ir/paint.cjs +10 -10
- package/dist/lib/ir/paint.d.ts +19 -18
- package/dist/lib/ir/paint.d.ts.map +1 -1
- package/dist/lib/ir/path/arrow.cjs +18 -16
- package/dist/lib/ir/path/arrow.d.ts +39 -38
- package/dist/lib/ir/path/arrow.d.ts.map +1 -1
- package/dist/lib/ir/path/path.cjs +3 -1
- package/dist/lib/ir/path/path.d.ts +1106 -209
- package/dist/lib/ir/path/path.d.ts.map +1 -1
- package/dist/lib/ir/path/step.cjs +73 -21
- package/dist/lib/ir/path/step.d.ts +932 -20
- package/dist/lib/ir/path/step.d.ts.map +1 -1
- package/dist/lib/ir/path/target.cjs +3 -3
- package/dist/lib/ir/position/at-position.cjs +11 -11
- package/dist/lib/ir/position/at-position.d.ts +18 -18
- package/dist/lib/ir/position/at-position.d.ts.map +1 -1
- package/dist/lib/ir/scene.cjs +3 -1
- package/dist/lib/ir/scene.d.ts +156 -0
- package/dist/lib/ir/scene.d.ts.map +1 -1
- package/dist/lib/ir/scope.cjs +10 -6
- package/dist/lib/ir/scope.d.ts +3446 -1306
- package/dist/lib/ir/scope.d.ts.map +1 -1
- package/dist/lib/ir/transform.cjs +9 -2
- package/dist/lib/ir/transform.d.ts +44 -17
- package/dist/lib/ir/transform.d.ts.map +1 -1
- package/dist/lib/parsers/index.d.ts +3 -3
- package/dist/lib/parsers/index.d.ts.map +1 -1
- package/dist/lib/parsers/{parseNodeTarget.cjs → node-target.cjs} +10 -8
- package/dist/lib/parsers/{parseNodeTarget.d.ts → node-target.d.ts} +1 -1
- package/dist/lib/parsers/node-target.d.ts.map +1 -0
- package/dist/lib/parsers/{parseTargetSugar.cjs → target-sugar.cjs} +9 -4
- package/dist/{es/parsers/parseTargetSugar.d.ts → lib/parsers/target-sugar.d.ts} +1 -1
- package/dist/lib/parsers/target-sugar.d.ts.map +1 -0
- package/dist/lib/parsers/{parseWay.cjs → way.cjs} +12 -8
- package/dist/{es/parsers/parseWay.d.ts → lib/parsers/way.d.ts} +1 -1
- package/dist/lib/parsers/way.d.ts.map +1 -0
- package/dist/lib/{pathGenerators → path-generators}/define.cjs +1 -1
- package/dist/lib/path-generators/define.d.ts.map +1 -0
- package/dist/lib/path-generators/index.d.ts.map +1 -0
- package/dist/lib/path-generators/types.d.ts.map +1 -0
- package/dist/lib/patterns/define.cjs +10 -0
- package/dist/lib/patterns/define.d.ts +9 -0
- package/dist/lib/patterns/define.d.ts.map +1 -0
- package/dist/lib/patterns/index.cjs +42 -35
- package/dist/lib/patterns/index.d.ts +1 -0
- package/dist/lib/patterns/index.d.ts.map +1 -1
- package/dist/lib/presets/animation.cjs +286 -0
- package/dist/lib/presets/animation.d.ts +123 -0
- package/dist/lib/presets/animation.d.ts.map +1 -0
- package/dist/lib/presets/index.d.ts +3 -0
- package/dist/lib/presets/index.d.ts.map +1 -0
- package/dist/lib/primitive/ellipse.d.ts +3 -0
- package/dist/lib/primitive/ellipse.d.ts.map +1 -1
- package/dist/lib/primitive/group.d.ts +3 -0
- package/dist/lib/primitive/group.d.ts.map +1 -1
- package/dist/lib/primitive/marker.d.ts +1 -1
- package/dist/lib/primitive/paint.d.ts +1 -1
- package/dist/lib/primitive/path.d.ts +4 -1
- package/dist/lib/primitive/path.d.ts.map +1 -1
- package/dist/lib/primitive/rect.d.ts +3 -0
- package/dist/lib/primitive/rect.d.ts.map +1 -1
- package/dist/lib/primitive/scene.d.ts +3 -0
- package/dist/lib/primitive/scene.d.ts.map +1 -1
- package/dist/lib/primitive/text.d.ts +3 -0
- package/dist/lib/primitive/text.d.ts.map +1 -1
- package/dist/lib/shapes/arc.cjs +4 -4
- package/dist/lib/shapes/{_contour.cjs → contour.cjs} +14 -1
- package/dist/{es/shapes/_contour.d.ts → lib/shapes/contour.d.ts} +6 -3
- package/dist/lib/shapes/contour.d.ts.map +1 -0
- package/dist/lib/shapes/ellipse.cjs +2 -2
- package/dist/lib/shapes/index.cjs +1 -1
- package/dist/lib/shapes/index.d.ts +1 -1
- package/dist/lib/shapes/index.d.ts.map +1 -1
- package/dist/lib/shapes/polygon.cjs +29 -24
- package/dist/lib/shapes/polygon.d.ts +1 -1
- package/dist/lib/shapes/polygon.d.ts.map +1 -1
- package/dist/lib/shapes/rectangle.cjs +11 -11
- package/dist/lib/shapes/sector.cjs +41 -33
- package/dist/lib/shapes/sector.d.ts.map +1 -1
- package/dist/lib/shapes/{_shared.cjs → shared.cjs} +7 -12
- package/dist/lib/shapes/{_shared.d.ts → shared.d.ts} +4 -8
- package/dist/lib/shapes/shared.d.ts.map +1 -0
- package/dist/lib/shapes/star.cjs +7 -17
- package/dist/lib/shapes/star.d.ts.map +1 -1
- package/package.json +2 -3
- package/dist/es/compile/lowerComposites.d.ts.map +0 -1
- package/dist/es/geometry/_edge.d.ts.map +0 -1
- package/dist/es/geometry/_transform.d.ts.map +0 -1
- package/dist/es/geometry/roundedContour.d.ts.map +0 -1
- package/dist/es/parsers/parseNodeTarget.d.ts.map +0 -1
- package/dist/es/parsers/parseTargetSugar.d.ts.map +0 -1
- package/dist/es/parsers/parseWay.d.ts.map +0 -1
- package/dist/es/pathGenerators/define.d.ts.map +0 -1
- package/dist/es/pathGenerators/index.d.ts.map +0 -1
- package/dist/es/pathGenerators/types.d.ts.map +0 -1
- package/dist/es/shapes/_contour.d.ts.map +0 -1
- package/dist/es/shapes/_shared.d.ts.map +0 -1
- package/dist/lib/compile/lowerComposites.d.ts.map +0 -1
- package/dist/lib/geometry/_edge.d.ts.map +0 -1
- package/dist/lib/geometry/_transform.d.ts.map +0 -1
- package/dist/lib/geometry/roundedContour.d.ts.map +0 -1
- package/dist/lib/parsers/parseNodeTarget.d.ts.map +0 -1
- package/dist/lib/parsers/parseTargetSugar.d.ts.map +0 -1
- package/dist/lib/parsers/parseWay.d.ts.map +0 -1
- package/dist/lib/pathGenerators/define.d.ts.map +0 -1
- package/dist/lib/pathGenerators/index.d.ts.map +0 -1
- package/dist/lib/pathGenerators/types.d.ts.map +0 -1
- package/dist/lib/shapes/_contour.d.ts.map +0 -1
- package/dist/lib/shapes/_shared.d.ts.map +0 -1
- /package/dist/es/{pathGenerators → path-generators}/define.d.ts +0 -0
- /package/dist/es/{pathGenerators → path-generators}/index.d.ts +0 -0
- /package/dist/es/{pathGenerators → path-generators}/types.d.ts +0 -0
- /package/dist/lib/{pathGenerators → path-generators}/define.d.ts +0 -0
- /package/dist/lib/{pathGenerators → path-generators}/index.d.ts +0 -0
- /package/dist/lib/{pathGenerators → path-generators}/types.d.ts +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scope.d.ts","sourceRoot":"","sources":["../../../src/ir/scope.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAkB,KAAK,UAAU,EAAE,MAAM,QAAQ,CAAC;AACzD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC/C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAEjD,OAAO,EAAE,KAAK,YAAY,EAAoB,MAAM,QAAQ,CAAC;AAC7D,OAAO,EAAE,KAAK,WAAW,EAAmB,MAAM,SAAS,CAAC;AAC5D,OAAO,EAAE,KAAK,MAAM,EAAc,MAAM,QAAQ,CAAC;AACjD,OAAO,EAAE,KAAK,MAAM,EAAc,MAAM,QAAQ,CAAC;AAEjD,OAAO,EAAE,KAAK,WAAW,EAAmB,MAAM,aAAa,CAAC;AAOhE;;;;GAIG;AACH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAyHrB,CAAC"}
|
package/dist/es/ir/scope.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { JsonObjectSchema } from "./json.js";
|
|
2
2
|
import { FontSchema } from "./font.js";
|
|
3
|
+
import { AnimationTrackSchema } from "./animation.js";
|
|
3
4
|
import { PaintSpecSchema } from "./paint.js";
|
|
4
5
|
import { ClipSpecSchema } from "./clip.js";
|
|
5
6
|
import { ArrowDetailSchema } from "./path/arrow.js";
|
|
@@ -20,7 +21,8 @@ var NodeDefaultSchema = NodeSchema.omit({
|
|
|
20
21
|
text: true,
|
|
21
22
|
label: true,
|
|
22
23
|
zIndex: true,
|
|
23
|
-
meta: true
|
|
24
|
+
meta: true,
|
|
25
|
+
animations: true
|
|
24
26
|
}).strict();
|
|
25
27
|
/**
|
|
26
28
|
* every path 默认样式 schema
|
|
@@ -32,7 +34,8 @@ var PathDefaultSchema = PathSchema.omit({
|
|
|
32
34
|
arrow: true,
|
|
33
35
|
arrowDetail: true,
|
|
34
36
|
zIndex: true,
|
|
35
|
-
meta: true
|
|
37
|
+
meta: true,
|
|
38
|
+
animations: true
|
|
36
39
|
}).strict();
|
|
37
40
|
/**
|
|
38
41
|
* every label 默认样式 schema(node label 与 step label 共享)
|
|
@@ -62,18 +65,18 @@ var __registerChildSchema = (schema) => {
|
|
|
62
65
|
* Scope schema:容器 + 局部 transform + 样式默认挂点
|
|
63
66
|
* @description 直接 `z.object` 让 ChildSchema discriminatedUnion 能识别 `type` 鉴别字段;
|
|
64
67
|
* children 字段内部用 z.lazy 引用 ChildSchema 实现递归,避免直接 `z.lazy(() => z.object(...))` 让外层 union 拒识 type。
|
|
65
|
-
*
|
|
68
|
+
* 支持:① 级联 graphic state(color + stroke / fill / strokeWidth / opacity / fillOpacity / drawOpacity);
|
|
66
69
|
* ② 四通道 every-X 默认(nodeDefault / pathDefault / labelDefault / arrowDefault);③ resetStyle 继承屏障。
|
|
67
70
|
*/
|
|
68
71
|
var ScopeSchema = z.object({
|
|
69
72
|
type: z.literal("scope").describe("Discriminator marking this child as a scope container."),
|
|
70
73
|
id: z.string().min(1).optional().describe("Optional reference id; when set, the scope registers a synthetic rectangle bbox node in the **parent** namespace frame so paths / positions can target the scope as a whole. scope.id always registers in the parent frame, regardless of `localNamespace` (it is the external handle)."),
|
|
71
74
|
localNamespace: z.boolean().optional().describe("When true, the scope creates a local namespace boundary — child node / coordinate / nested-scope ids registered inside do NOT propagate to the parent namespace; external lookups cannot see them. Default false (matches TikZ pgf default: child ids flow up to global). scope.id itself always registers in the parent frame regardless of this flag."),
|
|
72
|
-
transforms: z.array(TransformSchema).optional().describe("Local transforms applied to all scope children; array order = application order (first element applied innermost, matching Scene `GroupPrim.transforms` / SVG transform list). Supports
|
|
75
|
+
transforms: z.array(TransformSchema).optional().describe("Local transforms applied to all scope children; array order = application order (first element applied innermost, matching Scene `GroupPrim.transforms` / SVG transform list). Supports 7 variants; the 5 translate variants are lowered to Cartesian translate at compile time."),
|
|
73
76
|
color: z.string().optional().describe("Cascading master color for all elements in this scope (TikZ scope `color=`). Stroke / fill / text of inner elements default to it unless individually overridden; cascades into edge labels and arrows."),
|
|
74
77
|
stroke: z.string().optional().describe("Cascading default stroke color for inner nodes and paths; overrides the cascading master color for the stroke channel."),
|
|
75
78
|
fill: z.union([z.string(), PaintSpecSchema]).optional().describe("Cascading default fill (CSS color or PaintSpec: gradient / pattern / image) for inner nodes and paths."),
|
|
76
|
-
strokeWidth: z.number().optional().describe("Cascading default stroke width (user units) for inner nodes and paths."),
|
|
79
|
+
strokeWidth: z.number().finite().nonnegative().optional().describe("Cascading default stroke width (user units) for inner nodes and paths."),
|
|
77
80
|
opacity: z.number().min(0).max(1).optional().describe("Cascading default whole-element opacity 0..1. Replaces (does NOT compound across nested scopes — TikZ default)."),
|
|
78
81
|
fillOpacity: z.number().min(0).max(1).optional().describe("Cascading default fill opacity 0..1 for inner nodes and paths."),
|
|
79
82
|
drawOpacity: z.number().min(0).max(1).optional().describe("Cascading default stroke opacity 0..1 (TikZ `draw opacity`) for inner nodes and paths."),
|
|
@@ -88,8 +91,9 @@ var ScopeSchema = z.object({
|
|
|
88
91
|
"arrow"
|
|
89
92
|
]))]).optional().describe("Inheritance barrier: drop the outer scope cascade + every-X defaults for the listed channels (or all when true), falling back to the built-in baseline. Only cuts the scope-inheritance axis; labels / arrows still follow their host path / node resolved color (structural relation, not scope inheritance)."),
|
|
90
93
|
zIndex: z.number().int().finite().optional().describe("Explicit stacking order of this scope as a whole among its sibling IR children. Higher draws on top. Applies to the scope group as a single unit in the parent; does NOT affect how children stack inside the scope. Omitted = 0 = source order."),
|
|
91
|
-
clip: ClipSpecSchema.optional().describe("Clip region (rect / circle / ellipse / polygon, in scope-local coords); when set,
|
|
94
|
+
clip: ClipSpecSchema.optional().describe("Clip region (rect / circle / ellipse / polygon, in scope-local coords); when set, node children of this scope are clipped to it. Compiled into a renderer-agnostic ClipResource referenced via the group clipRef. Known limitation: a path child of a scope that ALSO has transforms is currently emitted at the top level (its geometry is already resolved to global coords) and is therefore NOT clipped by this region; tracked for the local-coordinate path-compile rework."),
|
|
92
95
|
meta: JsonObjectSchema.optional().describe("Opaque provenance metadata carried by this element (e.g. a Tier 2 lowering tagging which datum / series / layer it came from). Provenance passthrough: preserved verbatim into the Scene primitive(s) this element emits, ignored by renderers, and never interpreted by the compiler — it does not affect layout, connection, style, or bounding box. Must be a JSON object (fully serializable). Not inherited across scopes; not part of the every-X style defaults."),
|
|
96
|
+
animations: z.array(AnimationTrackSchema).optional().describe("Declarative timeline animation tracks for this scope as a whole (applied to its group). Each track animates one renderer-agnostic property over normalized time; the base value is the settled (animation-end) state. Carried verbatim into the emitted group primitive; renderers play them or render the static settled state with a diagnosable warning when unable. Does not affect layout / bounding box; not propagated to child elements; not part of the every-X style defaults. Known limitation: same as clip — path children of a scope that also has transforms are hoisted to the top level and do not receive these scope animations."),
|
|
93
97
|
children: z.array(z.lazy(() => {
|
|
94
98
|
if (!childSchemaRef) throw new Error("ScopeSchema: ChildSchema not registered yet; ensure scene.ts loaded");
|
|
95
99
|
return childSchemaRef;
|
|
@@ -31,14 +31,14 @@ declare const PolarTranslateSchema: z.ZodObject<{
|
|
|
31
31
|
declare const AtTranslateSchema: z.ZodObject<{
|
|
32
32
|
kind: z.ZodLiteral<"at-translate">;
|
|
33
33
|
direction: z.ZodNativeEnum<{
|
|
34
|
-
readonly
|
|
35
|
-
readonly
|
|
36
|
-
readonly
|
|
37
|
-
readonly
|
|
38
|
-
readonly
|
|
39
|
-
readonly
|
|
40
|
-
readonly
|
|
41
|
-
readonly
|
|
34
|
+
readonly Above: "above";
|
|
35
|
+
readonly Below: "below";
|
|
36
|
+
readonly Left: "left";
|
|
37
|
+
readonly Right: "right";
|
|
38
|
+
readonly AboveLeft: "above-left";
|
|
39
|
+
readonly AboveRight: "above-right";
|
|
40
|
+
readonly BelowLeft: "below-left";
|
|
41
|
+
readonly BelowRight: "below-right";
|
|
42
42
|
}>;
|
|
43
43
|
of: z.ZodString;
|
|
44
44
|
distance: z.ZodOptional<z.ZodNumber>;
|
|
@@ -66,6 +66,19 @@ declare const OffsetTranslateSchema: z.ZodObject<{
|
|
|
66
66
|
kind: "offset-translate";
|
|
67
67
|
offset?: [number, number] | undefined;
|
|
68
68
|
}>;
|
|
69
|
+
declare const BetweenTranslateSchema: z.ZodObject<{
|
|
70
|
+
kind: z.ZodLiteral<"between-translate">;
|
|
71
|
+
between: z.ZodTuple<[z.ZodType<import('./position').IRAbsoluteTarget, z.ZodTypeDef, import('./position').IRAbsoluteTarget>, z.ZodType<import('./position').IRAbsoluteTarget, z.ZodTypeDef, import('./position').IRAbsoluteTarget>], null>;
|
|
72
|
+
t: z.ZodNumber;
|
|
73
|
+
}, "strip", z.ZodTypeAny, {
|
|
74
|
+
t: number;
|
|
75
|
+
between: [import('./position').IRAbsoluteTarget, import('./position').IRAbsoluteTarget];
|
|
76
|
+
kind: "between-translate";
|
|
77
|
+
}, {
|
|
78
|
+
t: number;
|
|
79
|
+
between: [import('./position').IRAbsoluteTarget, import('./position').IRAbsoluteTarget];
|
|
80
|
+
kind: "between-translate";
|
|
81
|
+
}>;
|
|
69
82
|
declare const RotateSchema: z.ZodObject<{
|
|
70
83
|
kind: z.ZodLiteral<"rotate">;
|
|
71
84
|
degrees: z.ZodNumber;
|
|
@@ -125,14 +138,14 @@ export declare const TransformSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObje
|
|
|
125
138
|
}>, z.ZodObject<{
|
|
126
139
|
kind: z.ZodLiteral<"at-translate">;
|
|
127
140
|
direction: z.ZodNativeEnum<{
|
|
128
|
-
readonly
|
|
129
|
-
readonly
|
|
130
|
-
readonly
|
|
131
|
-
readonly
|
|
132
|
-
readonly
|
|
133
|
-
readonly
|
|
134
|
-
readonly
|
|
135
|
-
readonly
|
|
141
|
+
readonly Above: "above";
|
|
142
|
+
readonly Below: "below";
|
|
143
|
+
readonly Left: "left";
|
|
144
|
+
readonly Right: "right";
|
|
145
|
+
readonly AboveLeft: "above-left";
|
|
146
|
+
readonly AboveRight: "above-right";
|
|
147
|
+
readonly BelowLeft: "below-left";
|
|
148
|
+
readonly BelowRight: "below-right";
|
|
136
149
|
}>;
|
|
137
150
|
of: z.ZodString;
|
|
138
151
|
distance: z.ZodOptional<z.ZodNumber>;
|
|
@@ -158,6 +171,18 @@ export declare const TransformSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObje
|
|
|
158
171
|
of: string | [number, number] | import('./position').PolarPosition;
|
|
159
172
|
kind: "offset-translate";
|
|
160
173
|
offset?: [number, number] | undefined;
|
|
174
|
+
}>, z.ZodObject<{
|
|
175
|
+
kind: z.ZodLiteral<"between-translate">;
|
|
176
|
+
between: z.ZodTuple<[z.ZodType<import('./position').IRAbsoluteTarget, z.ZodTypeDef, import('./position').IRAbsoluteTarget>, z.ZodType<import('./position').IRAbsoluteTarget, z.ZodTypeDef, import('./position').IRAbsoluteTarget>], null>;
|
|
177
|
+
t: z.ZodNumber;
|
|
178
|
+
}, "strip", z.ZodTypeAny, {
|
|
179
|
+
t: number;
|
|
180
|
+
between: [import('./position').IRAbsoluteTarget, import('./position').IRAbsoluteTarget];
|
|
181
|
+
kind: "between-translate";
|
|
182
|
+
}, {
|
|
183
|
+
t: number;
|
|
184
|
+
between: [import('./position').IRAbsoluteTarget, import('./position').IRAbsoluteTarget];
|
|
185
|
+
kind: "between-translate";
|
|
161
186
|
}>, z.ZodObject<{
|
|
162
187
|
kind: z.ZodLiteral<"rotate">;
|
|
163
188
|
degrees: z.ZodNumber;
|
|
@@ -186,7 +211,7 @@ export declare const TransformSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObje
|
|
|
186
211
|
x: number;
|
|
187
212
|
y?: number | undefined;
|
|
188
213
|
}>]>;
|
|
189
|
-
/** IR 层 transform 类型——
|
|
214
|
+
/** IR 层 transform 类型——7 变体 discriminated union(5 translate + rotate + scale) */
|
|
190
215
|
export type IRTransform = z.infer<typeof TransformSchema>;
|
|
191
216
|
/** 笛卡尔 translate 子分支 */
|
|
192
217
|
export type IRTranslateTransform = z.infer<typeof TranslateSchema>;
|
|
@@ -196,6 +221,8 @@ export type IRPolarTranslateTransform = z.infer<typeof PolarTranslateSchema>;
|
|
|
196
221
|
export type IRAtTranslateTransform = z.infer<typeof AtTranslateSchema>;
|
|
197
222
|
/** 偏移 translate 子分支 */
|
|
198
223
|
export type IROffsetTranslateTransform = z.infer<typeof OffsetTranslateSchema>;
|
|
224
|
+
/** 两端点比例 translate 子分支 */
|
|
225
|
+
export type IRBetweenTranslateTransform = z.infer<typeof BetweenTranslateSchema>;
|
|
199
226
|
/** 旋转子分支 */
|
|
200
227
|
export type IRRotateTransform = z.infer<typeof RotateSchema>;
|
|
201
228
|
/** 缩放子分支 */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transform.d.ts","sourceRoot":"","sources":["../../../src/ir/transform.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"transform.d.ts","sourceRoot":"","sources":["../../../src/ir/transform.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,QAAA,MAAM,eAAe;;;;;;;;;;;;EAYlB,CAAC;AAEJ,QAAA,MAAM,oBAAoB;;;;;;;;;;;;;;;EA0BvB,CAAC;AAEJ,QAAA,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;EAwBpB,CAAC;AAEJ,QAAA,MAAM,qBAAqB;;;;;;;;;;;;EAmBxB,CAAC;AAEJ,QAAA,MAAM,sBAAsB;;;;;;;;;;;;EAgBzB,CAAC;AAEJ,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;EAsBf,CAAC;AAEJ,QAAA,MAAM,WAAW;;;;;;;;;;;;EAqBd,CAAC;AAEJ,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAYzB,CAAC;AAEJ,gFAAgF;AAChF,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAC1D,wBAAwB;AACxB,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AACnE,wBAAwB;AACxB,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAC7E,yBAAyB;AACzB,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AACvE,uBAAuB;AACvB,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAC/E,0BAA0B;AAC1B,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AACjF,YAAY;AACZ,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AAC7D,YAAY;AACZ,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC"}
|
package/dist/es/ir/transform.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { PositionSchema } from "./position/position.js";
|
|
2
2
|
import { PolarPositionSchema } from "./position/polar-position.js";
|
|
3
|
-
import {
|
|
3
|
+
import { AtDirection } from "./position/at-position.js";
|
|
4
|
+
import { AbsoluteTargetSchema } from "./position/between-position.js";
|
|
4
5
|
import { z } from "zod";
|
|
5
6
|
//#region src/ir/transform.ts
|
|
6
7
|
var TranslateSchema = z.object({
|
|
@@ -20,7 +21,7 @@ var PolarTranslateSchema = z.object({
|
|
|
20
21
|
}).describe("Polar translate transform; mirrors PolarPosition. Lowered to Cartesian translate at compile time via resolvePosition.");
|
|
21
22
|
var AtTranslateSchema = z.object({
|
|
22
23
|
kind: z.literal("at-translate").describe("Discriminator: direction-relative translate; mirrors AtPosition."),
|
|
23
|
-
direction: z.nativeEnum(
|
|
24
|
+
direction: z.nativeEnum(AtDirection).describe("Direction enum (8 values, shared with AtPosition.direction)."),
|
|
24
25
|
of: z.string().min(1).describe("Referent node id; must be defined earlier in the IR (forward references rejected, mirroring AtPosition.of)."),
|
|
25
26
|
distance: z.number().positive().optional().describe("Distance along direction in user units; omit → falls back to CompileOptions.nodeDistance (same default chain as AtPosition.distance).")
|
|
26
27
|
}).describe("Direction-relative translate transform; mirrors AtPosition. Lowered to Cartesian translate at compile time via resolvePosition.");
|
|
@@ -33,6 +34,11 @@ var OffsetTranslateSchema = z.object({
|
|
|
33
34
|
]).describe("Referent base point (same union as OffsetPosition.of): node id (forward references rejected) / Cartesian [x, y] / PolarPosition."),
|
|
34
35
|
offset: z.tuple([z.number().finite(), z.number().finite()]).optional().describe("Additional [dx, dy] offset in user units; omit = [0, 0] so the transform translates exactly to the referent.")
|
|
35
36
|
}).describe("Offset translate transform; mirrors OffsetPosition. Lowered to Cartesian translate at compile time via resolvePosition.");
|
|
37
|
+
var BetweenTranslateSchema = z.object({
|
|
38
|
+
kind: z.literal("between-translate").describe("Discriminator: proportional translate between two endpoints; mirrors BetweenPosition."),
|
|
39
|
+
between: z.tuple([AbsoluteTargetSchema, AbsoluteTargetSchema]).describe("Two endpoints (AbsoluteTarget each; path-relative excluded), same as BetweenPosition.between."),
|
|
40
|
+
t: z.number().min(0).max(1).describe("Proportion along A→B, 0..1 (0 = A, 1 = B); same as BetweenPosition.t.")
|
|
41
|
+
}).describe("Proportional translate transform; mirrors BetweenPosition. Lowered to Cartesian translate at compile time via resolvePosition.");
|
|
36
42
|
var RotateSchema = z.object({
|
|
37
43
|
kind: z.literal("rotate").describe("Discriminator: rotation about a point."),
|
|
38
44
|
degrees: z.number().finite().describe("Rotation angle in degrees; positive = visually clockwise under screen y-down."),
|
|
@@ -49,8 +55,9 @@ var TransformSchema = z.discriminatedUnion("kind", [
|
|
|
49
55
|
PolarTranslateSchema,
|
|
50
56
|
AtTranslateSchema,
|
|
51
57
|
OffsetTranslateSchema,
|
|
58
|
+
BetweenTranslateSchema,
|
|
52
59
|
RotateSchema,
|
|
53
60
|
ScaleSchema
|
|
54
|
-
]).describe("IR-level transform;
|
|
61
|
+
]).describe("IR-level transform; 7 variants. The 5 translate variants (translate / polar-translate / at-translate / offset-translate / between-translate) mirror the Node.position union one-for-one; rotate and scale match the Scene `Transform` shape. At compile time the 5 translate variants are lowered to Cartesian translate via resolvePosition before being pushed onto the cumulative chain emitted to Scene `GroupPrim` (which stays at 3 variants).");
|
|
55
62
|
//#endregion
|
|
56
63
|
export { TransformSchema };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from './
|
|
2
|
-
export * from './
|
|
3
|
-
export * from './
|
|
1
|
+
export * from './way';
|
|
2
|
+
export * from './target-sugar';
|
|
3
|
+
export * from './node-target';
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/parsers/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/parsers/index.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAC;AACtB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"node-target.d.ts","sourceRoot":"","sources":["../../../src/parsers/node-target.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAOH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAW1C,0CAA0C;AAC1C,eAAO,MAAM,eAAe,GAAI,GAAG,MAAM,KAAG,YAyB3C,CAAC"}
|
|
@@ -1,21 +1,22 @@
|
|
|
1
|
-
import {
|
|
2
|
-
//#region src/parsers/
|
|
1
|
+
import { CompassAnchor, WebAnchor, normalizeCompassAnchor } from "../geometry/anchor.js";
|
|
2
|
+
//#region src/parsers/node-target.ts
|
|
3
3
|
/**
|
|
4
4
|
* 节点 ref 字符串 shorthand → NodeTarget 对象(单一真源)
|
|
5
5
|
* @description React DSL / Draw way 层把 `'A'` / `'A.north'` / `'A.30'` 解析成对象 IR,core ir/compile 只见对象。
|
|
6
|
-
* `'A'`→`{id:'A'}`;`'A.<name>'`→命名 anchor(center/north/.../south-west
|
|
6
|
+
* `'A'`→`{id:'A'}`;`'A.<name>'`→命名 anchor(center/north/.../south-west 或 top/top-left 等别名);`'A.<deg>'`→角度 anchor。
|
|
7
7
|
* 按**第一个点**切分——含 `.` 的 id 不能用 shorthand,必须写对象 `{ id: 'a.b', anchor: 'north' }`。
|
|
8
8
|
* {side,t} 边上比例点是结构化新能力、shorthand 不表达(仅对象形态)。
|
|
9
|
-
* 字符串 shorthand
|
|
9
|
+
* 字符串 shorthand 只认标准方位 anchor 与 Web 方位别名(提前拦拼写错误);shape 自定义 anchor(如 sector 的
|
|
10
10
|
* `outer-arc-mid`)走对象形态 `{ id, anchor: 'outer-arc-mid' }`,由 compile 据目标 shape 解释。
|
|
11
11
|
* 放 parser 层(非 compile)避免 adapter 反向依赖 compile。
|
|
12
12
|
*/
|
|
13
|
-
|
|
14
|
-
var ANCHOR_NAMES = new Set(Object.values(RECT_ANCHORS));
|
|
13
|
+
var SUPPORTED_ANCHOR_NAMES = [...Object.values(CompassAnchor), ...Object.values(WebAnchor)];
|
|
15
14
|
/** 纯数字识别 `A.30` / `A.-45` / `A.180.5` */
|
|
16
15
|
var ANGLE_RE = /^-?\d+(\.\d+)?$/;
|
|
16
|
+
var DECIMAL_NUMBER_RE = /^-?\d+\.\d+$/;
|
|
17
17
|
/** 字符串节点 ref shorthand → NodeTarget 对象 */
|
|
18
18
|
var parseNodeTarget = (s) => {
|
|
19
|
+
if (DECIMAL_NUMBER_RE.test(s)) throw new Error(`parseNodeTarget: '${s}' looks like a numeric coordinate; use [x, y] for coordinates or object form for ids containing '.'`);
|
|
19
20
|
const dot = s.indexOf(".");
|
|
20
21
|
const id = dot < 0 ? s : s.slice(0, dot);
|
|
21
22
|
if (id.length === 0) throw new Error(`parseNodeTarget: empty node id in '${s}'`);
|
|
@@ -25,10 +26,11 @@ var parseNodeTarget = (s) => {
|
|
|
25
26
|
id,
|
|
26
27
|
anchor: Number(tail)
|
|
27
28
|
};
|
|
28
|
-
|
|
29
|
+
const anchor = normalizeCompassAnchor(tail);
|
|
30
|
+
if (anchor === void 0) throw new Error(`parseNodeTarget: unknown anchor '${tail}' in '${s}' (supports: ${SUPPORTED_ANCHOR_NAMES.join(", ")}); for ids containing '.' or shape-specific anchors, use the object form { id, anchor }`);
|
|
29
31
|
return {
|
|
30
32
|
id,
|
|
31
|
-
anchor
|
|
33
|
+
anchor
|
|
32
34
|
};
|
|
33
35
|
};
|
|
34
36
|
//#endregion
|
|
@@ -6,4 +6,4 @@ import { IRTarget } from '../ir';
|
|
|
6
6
|
* 纯函数无 nodeIndex 依赖,react adapter 与 Draw DSL 共用。core schema 已无字符串 target 分支——eager 解析后才入 IR。
|
|
7
7
|
*/
|
|
8
8
|
export declare const parseTargetSugar: (input: unknown) => IRTarget;
|
|
9
|
-
//# sourceMappingURL=
|
|
9
|
+
//# sourceMappingURL=target-sugar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"target-sugar.d.ts","sourceRoot":"","sources":["../../../src/parsers/target-sugar.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAQtC;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,GAAI,OAAO,OAAO,KAAG,QAkBjD,CAAC"}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import { parseNodeTarget } from "./
|
|
2
|
-
//#region src/parsers/
|
|
1
|
+
import { parseNodeTarget } from "./node-target.js";
|
|
2
|
+
//#region src/parsers/target-sugar.ts
|
|
3
3
|
/** TikZ 风格相对偏移字面量正则:捕获 `+` / `++` 前缀 + dx / dy 数值 */
|
|
4
|
-
var
|
|
4
|
+
var RELATIVE_NUMBER = "-?(?:\\d+(?:\\.\\d*)?|\\.\\d+)(?:[eE][+-]?\\d+)?";
|
|
5
|
+
var RELATIVE_OFFSET_RE = new RegExp(`^(\\+{1,2})\\s*(${RELATIVE_NUMBER})\\s*,\\s*(${RELATIVE_NUMBER})$`);
|
|
6
|
+
var RELATIVE_LIKE_RE = /^\+.*,/;
|
|
5
7
|
/**
|
|
6
8
|
* Sugar 字符串解析:TikZ 风格字符串 shorthand → IR 对象(React DSL 层;core IR 只见对象)
|
|
7
9
|
* @description `'+dx,dy'` → `{relative:[dx,dy]}`(TikZ `+`,不更新 prevEnd);`'++dx,dy'` → `{relativeAccumulate:[dx,dy]}`(TikZ `++`,累积);
|
|
@@ -11,7 +13,10 @@ var RELATIVE_OFFSET_RE = /^(\+{1,2})\s*(-?\d+(?:\.\d+)?)\s*,\s*(-?\d+(?:\.\d+)?)
|
|
|
11
13
|
var parseTargetSugar = (input) => {
|
|
12
14
|
if (typeof input !== "string") return input;
|
|
13
15
|
const match = input.match(RELATIVE_OFFSET_RE);
|
|
14
|
-
if (!match)
|
|
16
|
+
if (!match) {
|
|
17
|
+
if (RELATIVE_LIKE_RE.test(input)) throw new Error(`parseTargetSugar: invalid relative offset '${input}'; expected '+x,y' or '++x,y'`);
|
|
18
|
+
return parseNodeTarget(input);
|
|
19
|
+
}
|
|
15
20
|
const plus = match[1];
|
|
16
21
|
const dx = Number(match[2]);
|
|
17
22
|
const dy = Number(match[3]);
|
|
@@ -85,4 +85,4 @@ export type WayDSL = Array<WayItem>;
|
|
|
85
85
|
* @description 首元素始终 move(way[0] 是算子时降级到原点 [0,0]);后续元素按各自规则:target/RelItem→line;Cycle→cycle;-|/|- 与下一项合并 fold;curve/cubic/bend 与下一项合并;arc/circle/ellipse 单独成 step;label 算子修饰下一段。连续 label/末尾 label/cycle 上的 label 抛错。纯函数,各框架 adapter Sugar 组件复用
|
|
86
86
|
*/
|
|
87
87
|
export declare const parseWay: (way: WayDSL) => Array<IRStep>;
|
|
88
|
-
//# sourceMappingURL=
|
|
88
|
+
//# sourceMappingURL=way.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"way.d.ts","sourceRoot":"","sources":["../../../src/parsers/way.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAIV,cAAc,EAQd,MAAM,EACN,WAAW,EACX,QAAQ,EACT,MAAM,OAAO,CAAC;AAGf;;;GAGG;AACH,eAAO,MAAM,OAAO;IAClB,oDAAoD;;IAEpD,2BAA2B;;IAE3B,2BAA2B;;IAE3B,gDAAgD;;IAEhD,kDAAkD;;CAE1C,CAAC;AAEX,oBAAoB;AACpB,MAAM,MAAM,MAAM,GAAG,OAAO,OAAO,CAAC,EAAE,GAAG,OAAO,OAAO,CAAC,EAAE,CAAC;AAE3D,qBAAqB;AACrB,MAAM,MAAM,QAAQ,GAAG,OAAO,OAAO,CAAC,KAAK,CAAC;AAE5C;;;GAGG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC3B,IAAI,EAAE,OAAO,OAAO,CAAC,QAAQ,GAAG,OAAO,OAAO,CAAC,UAAU,CAAC;CAC3D,CAAC;AAOF,2DAA2D;AAC3D,MAAM,MAAM,UAAU,GAAG;IAAE,KAAK,EAAE,cAAc,CAAA;CAAE,CAAC;AAEnD,+CAA+C;AAC/C,MAAM,MAAM,UAAU,GAAG;IAAE,KAAK,EAAE,CAAC,cAAc,EAAE,cAAc,CAAC,CAAA;CAAE,CAAC;AAErE,qDAAqD;AACrD,MAAM,MA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|
|
4
4
|
* Sugar 层 way 数组的关键字常量
|
|
5
5
|
* @description Cycle 闭合到 way 起点(底层字符串故意写丑避节点 id 冲突,只通过 DrawWay.Cycle 引用);Hv/Vh 折角算子(裸字面量 `-|`/`|-` 与常量等价);Relative/Accumulate 相对偏移 way item 的 type 鉴别值(Relative=TikZ `(+x,+y)` 不推进 prevEnd,Accumulate=TikZ `(++x,++y)` 累积更新)。用 const + as const 而非 TS enum 避免 reverse-mapping 与字面量不互通
|
|
@@ -35,7 +35,10 @@ var normalizeLabel = (l) => typeof l === "string" ? { text: l } : { ...l };
|
|
|
35
35
|
/** sugar `{position,type}` → IR `{relative}|{relativeAccumulate}`;其它形态原样返回 */
|
|
36
36
|
var desugarRelativeItem = (item) => {
|
|
37
37
|
if (!isWayRelativeItem(item)) return item;
|
|
38
|
-
|
|
38
|
+
const candidate = item;
|
|
39
|
+
if (candidate.type === DrawWay.Accumulate) return { relativeAccumulate: candidate.position };
|
|
40
|
+
if (candidate.type === DrawWay.Relative) return { relative: candidate.position };
|
|
41
|
+
throw new Error(`parseWay: WayRelativeItem.type must be DrawWay.Relative or DrawWay.Accumulate`);
|
|
39
42
|
};
|
|
40
43
|
/** WayItem 归约为"目标点",算子/关键字返回 null */
|
|
41
44
|
var targetOf = (item) => {
|
|
@@ -58,10 +61,11 @@ var parseWay = (way) => {
|
|
|
58
61
|
};
|
|
59
62
|
if (isWayLabelOp(way[0])) throw new Error(`parseWay: way[0] must be a target (move start), got label operator`);
|
|
60
63
|
const rawMove = targetOf(way[0]);
|
|
64
|
+
if (rawMove === null) throw new Error(`parseWay: way[0] must be a target (move start), got operator`);
|
|
61
65
|
const moveStep = {
|
|
62
66
|
type: "step",
|
|
63
67
|
kind: "move",
|
|
64
|
-
to:
|
|
68
|
+
to: parseTargetSugar(rawMove)
|
|
65
69
|
};
|
|
66
70
|
out.push(moveStep);
|
|
67
71
|
for (let i = 1; i < way.length; i++) {
|
|
@@ -85,7 +89,7 @@ var parseWay = (way) => {
|
|
|
85
89
|
if (isWayOperator(next)) throw new Error(`parseWay: via operator '${item}' must be followed by a target, got '${String(next)}'`);
|
|
86
90
|
const fold = {
|
|
87
91
|
type: "step",
|
|
88
|
-
kind: "
|
|
92
|
+
kind: "fold",
|
|
89
93
|
via: item,
|
|
90
94
|
to: parseTargetSugar(desugarRelativeItem(next))
|
|
91
95
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"define.d.ts","sourceRoot":"","sources":["../../../src/path-generators/define.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,SAAS,CAAC;AAEvD;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,mBAAmB,GAC9B,KAAK,uBAAuB,KAC3B,uBAwBF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/path-generators/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,YAAY,EAAE,uBAAuB,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAC7E,OAAO,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/path-generators/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,KAAK,CAAC;AACnC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAClD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAC/C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAErD;;;;;;GAMG;AACH,MAAM,MAAM,oBAAoB,GAAG;IACjC,oCAAoC;IACpC,IAAI,EAAE,QAAQ,CAAC;IACf,uDAAuD;IACvD,EAAE,CAAC,EAAE,QAAQ,CAAC;IACd,4DAA4D;IAC5D,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAChC,uDAAuD;IACvD,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;IAC1C,8CAA8C;IAC9C,KAAK,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,MAAM,CAAC;CAC9B,CAAC;AAEF;;;;;;;;;;;;GAYG;AACH,MAAM,MAAM,uBAAuB,GAAG;IACpC,8DAA8D;IAC9D,YAAY,EAAE,OAAO,CAAC,YAAY,CAAC,CAAC;IACpC,qEAAqE;IACrE,YAAY,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAC7B,6EAA6E;IAC7E,QAAQ,EAAE,CAAC,GAAG,EAAE,oBAAoB,KAAK,KAAK,CAAC,WAAW,CAAC,CAAC;CAC7D,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { PatternDefinition } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* 定义一个 pattern motif 注册项
|
|
4
|
+
* @description 与 `defineShape` / `definePathGenerator` 对齐的定义点 helper;当前不做额外运行时校验,
|
|
5
|
+
* 只保留 `PatternDefinition` 形态并让第三方扩展面写法一致。
|
|
6
|
+
* @returns 原样返回的 def(便于 `export const cross = definePattern({ ... })`)
|
|
7
|
+
*/
|
|
8
|
+
export declare const definePattern: (def: PatternDefinition) => PatternDefinition;
|
|
9
|
+
//# sourceMappingURL=define.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"define.d.ts","sourceRoot":"","sources":["../../../src/patterns/define.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAEjD;;;;;GAKG;AACH,eAAO,MAAM,aAAa,GAAI,KAAK,iBAAiB,KAAG,iBAAwB,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
//#region src/patterns/define.ts
|
|
2
|
+
/**
|
|
3
|
+
* 定义一个 pattern motif 注册项
|
|
4
|
+
* @description 与 `defineShape` / `definePathGenerator` 对齐的定义点 helper;当前不做额外运行时校验,
|
|
5
|
+
* 只保留 `PatternDefinition` 形态并让第三方扩展面写法一致。
|
|
6
|
+
* @returns 原样返回的 def(便于 `export const cross = definePattern({ ... })`)
|
|
7
|
+
*/
|
|
8
|
+
var definePattern = (def) => def;
|
|
9
|
+
//#endregion
|
|
10
|
+
export { definePattern };
|
|
@@ -7,4 +7,5 @@ import { PatternDefinition } from './types';
|
|
|
7
7
|
*/
|
|
8
8
|
export declare const BUILTIN_PATTERNS: Record<BuiltinPatternName, PatternDefinition>;
|
|
9
9
|
export type { PatternDefinition, PatternEmitContext } from './types';
|
|
10
|
+
export { definePattern } from './define';
|
|
10
11
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/patterns/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAEtD,OAAO,KAAK,EAAE,iBAAiB,EAAsB,MAAM,SAAS,CAAC;AAwBrE;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,EAAE,MAAM,CAAC,kBAAkB,EAAE,iBAAiB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/patterns/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAEtD,OAAO,KAAK,EAAE,iBAAiB,EAAsB,MAAM,SAAS,CAAC;AAwBrE;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,EAAE,MAAM,CAAC,kBAAkB,EAAE,iBAAiB,CAmD1E,CAAC;AAEF,YAAY,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AACrE,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import "./define.js";
|
|
1
2
|
//#region src/patterns/index.ts
|
|
2
3
|
/** 内置 3 motif 默认 tile 周期(user units);用户 `pattern.size` 覆盖 */
|
|
3
4
|
var DEFAULT_PATTERN_SIZE = 8;
|
|
@@ -24,44 +25,50 @@ var withBackground = (ctx, motif) => ctx.background === void 0 ? [...motif] : [{
|
|
|
24
25
|
var BUILTIN_PATTERNS = {
|
|
25
26
|
lines: {
|
|
26
27
|
defaultSize: DEFAULT_PATTERN_SIZE,
|
|
27
|
-
emit: (ctx) =>
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
28
|
+
emit: (ctx) => {
|
|
29
|
+
const half = ctx.round(ctx.size / 2);
|
|
30
|
+
return withBackground(ctx, [{
|
|
31
|
+
type: "path",
|
|
32
|
+
commands: [{
|
|
33
|
+
kind: "move",
|
|
34
|
+
to: [0, half]
|
|
35
|
+
}, {
|
|
36
|
+
kind: "line",
|
|
37
|
+
to: [ctx.size, half]
|
|
38
|
+
}],
|
|
39
|
+
stroke: ctx.color,
|
|
40
|
+
strokeWidth: ctx.lineWidth ?? DEFAULT_STROKE_WIDTH
|
|
41
|
+
}]);
|
|
42
|
+
}
|
|
39
43
|
},
|
|
40
44
|
grid: {
|
|
41
45
|
defaultSize: DEFAULT_PATTERN_SIZE,
|
|
42
|
-
emit: (ctx) =>
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
46
|
+
emit: (ctx) => {
|
|
47
|
+
const half = ctx.round(ctx.size / 2);
|
|
48
|
+
return withBackground(ctx, [{
|
|
49
|
+
type: "path",
|
|
50
|
+
commands: [
|
|
51
|
+
{
|
|
52
|
+
kind: "move",
|
|
53
|
+
to: [0, half]
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
kind: "line",
|
|
57
|
+
to: [ctx.size, half]
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
kind: "move",
|
|
61
|
+
to: [half, 0]
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
kind: "line",
|
|
65
|
+
to: [half, ctx.size]
|
|
66
|
+
}
|
|
67
|
+
],
|
|
68
|
+
stroke: ctx.color,
|
|
69
|
+
strokeWidth: ctx.lineWidth ?? DEFAULT_STROKE_WIDTH
|
|
70
|
+
}]);
|
|
71
|
+
}
|
|
65
72
|
},
|
|
66
73
|
dots: {
|
|
67
74
|
defaultSize: DEFAULT_PATTERN_SIZE,
|