@open-pencil/scene-graph 0.18.0-beta.1 → 0.18.0-beta.2
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/arrow-caps.d.ts +14 -17
- package/dist/arrow-caps.d.ts.map +1 -1
- package/dist/arrow-caps.js +1 -2
- package/dist/asset-keys.d.ts +5 -8
- package/dist/asset-keys.d.ts.map +1 -1
- package/dist/asset-keys.js +2 -3
- package/dist/behaviours/index.d.ts +4 -3
- package/dist/behaviours/index.js +6 -5
- package/dist/behaviours/kinds.d.ts +38 -15
- package/dist/behaviours/kinds.d.ts.map +1 -1
- package/dist/behaviours/kinds.js +119 -4
- package/dist/behaviours/kinds.js.map +1 -1
- package/dist/behaviours/layers.d.ts +3 -6
- package/dist/behaviours/layers.d.ts.map +1 -1
- package/dist/behaviours/layers.js +1 -2
- package/dist/behaviours/listing.d.ts +58 -0
- package/dist/behaviours/listing.d.ts.map +1 -0
- package/dist/behaviours/listing.js +98 -0
- package/dist/behaviours/listing.js.map +1 -0
- package/dist/behaviours/model.d.ts +19 -16
- package/dist/behaviours/model.d.ts.map +1 -1
- package/dist/behaviours/model.js +14 -6
- package/dist/behaviours/model.js.map +1 -1
- package/dist/behaviours/schema.d.ts +16 -18
- package/dist/behaviours/schema.d.ts.map +1 -1
- package/dist/behaviours/schema.js +2 -3
- package/dist/behaviours/spec.d.ts +3 -6
- package/dist/behaviours/spec.d.ts.map +1 -1
- package/dist/behaviours/spec.js +4 -5
- package/dist/behaviours/transition.d.ts +6 -9
- package/dist/behaviours/transition.d.ts.map +1 -1
- package/dist/behaviours/transition.js +1 -2
- package/dist/bindings.js +2 -3
- package/dist/blur.d.ts +35 -0
- package/dist/blur.d.ts.map +1 -0
- package/dist/blur.js +69 -0
- package/dist/blur.js.map +1 -0
- package/dist/buffered-events.d.ts +3 -6
- package/dist/buffered-events.d.ts.map +1 -1
- package/dist/buffered-events.js +1 -2
- package/dist/buffered-events.js.map +1 -1
- package/dist/checkpoint.d.ts +3 -6
- package/dist/checkpoint.d.ts.map +1 -1
- package/dist/checkpoint.js +2 -3
- package/dist/clipping.d.ts +4 -7
- package/dist/clipping.d.ts.map +1 -1
- package/dist/clipping.js +4 -16
- package/dist/clipping.js.map +1 -1
- package/dist/color/contrast.d.ts +4 -7
- package/dist/color/contrast.d.ts.map +1 -1
- package/dist/color/contrast.js +2 -3
- package/dist/color/index.d.ts +13 -15
- package/dist/color/index.d.ts.map +1 -1
- package/dist/color/index.js +3 -4
- package/dist/color/management.d.ts +11 -14
- package/dist/color/management.d.ts.map +1 -1
- package/dist/color/management.js +2 -3
- package/dist/color/normalize.d.ts +1 -4
- package/dist/color/normalize.d.ts.map +1 -1
- package/dist/color/normalize.js +1 -2
- package/dist/color/okhcl.d.ts +16 -19
- package/dist/color/okhcl.d.ts.map +1 -1
- package/dist/color/okhcl.js +3 -4
- package/dist/color/schema.d.ts +4 -7
- package/dist/color/schema.d.ts.map +1 -1
- package/dist/color/schema.js +2 -3
- package/dist/comments/document.d.ts +3 -6
- package/dist/comments/document.d.ts.map +1 -1
- package/dist/comments/document.js +1 -2
- package/dist/comments/index.js +2 -2
- package/dist/comments/list.d.ts +5 -8
- package/dist/comments/list.d.ts.map +1 -1
- package/dist/comments/list.js +1 -2
- package/dist/comments/merge.d.ts +2 -5
- package/dist/comments/merge.d.ts.map +1 -1
- package/dist/comments/merge.js +1 -2
- package/dist/comments/schema.d.ts +2 -5
- package/dist/comments/schema.d.ts.map +1 -1
- package/dist/comments/schema.js +1 -2
- package/dist/comments/threads.d.ts +16 -19
- package/dist/comments/threads.d.ts.map +1 -1
- package/dist/comments/threads.js +8 -3
- package/dist/comments/threads.js.map +1 -1
- package/dist/components/exposure.d.ts +4 -7
- package/dist/components/exposure.d.ts.map +1 -1
- package/dist/components/exposure.js +1 -2
- package/dist/components/properties.d.ts +13 -16
- package/dist/components/properties.d.ts.map +1 -1
- package/dist/components/properties.js +3 -4
- package/dist/components/variants.d.ts +5 -8
- package/dist/components/variants.d.ts.map +1 -1
- package/dist/components/variants.js +1 -2
- package/dist/connectors/controls.d.ts +6 -9
- package/dist/connectors/controls.d.ts.map +1 -1
- package/dist/connectors/controls.js +2 -3
- package/dist/connectors/create.d.ts +3 -6
- package/dist/connectors/create.d.ts.map +1 -1
- package/dist/connectors/create.js +2 -3
- package/dist/connectors/elbow.js +0 -1
- package/dist/connectors/gaps.d.ts +1 -4
- package/dist/connectors/gaps.d.ts.map +1 -1
- package/dist/connectors/gaps.js +1 -2
- package/dist/connectors/hit.d.ts +1 -4
- package/dist/connectors/hit.d.ts.map +1 -1
- package/dist/connectors/hit.js +3 -4
- package/dist/connectors/index.d.ts +3 -3
- package/dist/connectors/index.js +6 -6
- package/dist/connectors/label.d.ts +4 -7
- package/dist/connectors/label.d.ts.map +1 -1
- package/dist/connectors/label.js +1 -2
- package/dist/connectors/layout.d.ts +8 -10
- package/dist/connectors/layout.d.ts.map +1 -1
- package/dist/connectors/layout.js +12 -10
- package/dist/connectors/layout.js.map +1 -1
- package/dist/connectors/pieces.d.ts +2 -5
- package/dist/connectors/pieces.d.ts.map +1 -1
- package/dist/connectors/pieces.js +3 -4
- package/dist/connectors/pieces.js.map +1 -1
- package/dist/connectors/route.d.ts +2 -5
- package/dist/connectors/route.d.ts.map +1 -1
- package/dist/connectors/route.js +4 -5
- package/dist/connectors/sides.d.ts +3 -6
- package/dist/connectors/sides.d.ts.map +1 -1
- package/dist/connectors/sides.js +2 -3
- package/dist/connectors/sublayers.d.ts +21 -24
- package/dist/connectors/sublayers.d.ts.map +1 -1
- package/dist/connectors/sublayers.js +3 -3
- package/dist/connectors/sublayers.js.map +1 -1
- package/dist/constants.d.ts +13 -16
- package/dist/constants.d.ts.map +1 -1
- package/dist/constants.js +1 -2
- package/dist/constraints.d.ts +6 -8
- package/dist/constraints.d.ts.map +1 -1
- package/dist/constraints.js +1 -2
- package/dist/coordinate.d.ts +27 -29
- package/dist/coordinate.d.ts.map +1 -1
- package/dist/coordinate.js +19 -38
- package/dist/coordinate.js.map +1 -1
- package/dist/copy.d.ts +31 -25
- package/dist/copy.d.ts.map +1 -1
- package/dist/copy.js +13 -5
- package/dist/copy.js.map +1 -1
- package/dist/corners.d.ts +8 -10
- package/dist/corners.d.ts.map +1 -1
- package/dist/corners.js +1 -2
- package/dist/css/blend.d.ts +1 -4
- package/dist/css/blend.d.ts.map +1 -1
- package/dist/css/blend.js +1 -2
- package/dist/css/grid.d.ts +1 -4
- package/dist/css/grid.d.ts.map +1 -1
- package/dist/css/grid.js +4 -5
- package/dist/css/index.js +2 -2
- package/dist/css/layout.d.ts +7 -10
- package/dist/css/layout.d.ts.map +1 -1
- package/dist/css/layout.js +2 -3
- package/dist/css/motion.d.ts +2 -5
- package/dist/css/motion.d.ts.map +1 -1
- package/dist/css/motion.js +2 -3
- package/dist/css/shadows.d.ts +1 -4
- package/dist/css/shadows.d.ts.map +1 -1
- package/dist/css/shadows.js +3 -4
- package/dist/css/text.d.ts +8 -11
- package/dist/css/text.d.ts.map +1 -1
- package/dist/css/text.js +1 -2
- package/dist/css/transform.d.ts +6 -9
- package/dist/css/transform.d.ts.map +1 -1
- package/dist/css/transform.js +2 -3
- package/dist/css/values.d.ts +9 -12
- package/dist/css/values.d.ts.map +1 -1
- package/dist/css/values.js +2 -3
- package/dist/cubic.d.ts +11 -5
- package/dist/cubic.d.ts.map +1 -1
- package/dist/cubic.js +71 -3
- package/dist/cubic.js.map +1 -1
- package/dist/events.js +1 -2
- package/dist/export-format.d.ts +5 -8
- package/dist/export-format.d.ts.map +1 -1
- package/dist/export-format.js +4 -3
- package/dist/export-format.js.map +1 -1
- package/dist/export-scale.d.ts +4 -7
- package/dist/export-scale.d.ts.map +1 -1
- package/dist/export-scale.js +1 -2
- package/dist/fields/appearance.d.ts +3 -6
- package/dist/fields/appearance.d.ts.map +1 -1
- package/dist/fields/appearance.js +1 -2
- package/dist/fields/geometry.d.ts +2 -5
- package/dist/fields/geometry.d.ts.map +1 -1
- package/dist/fields/geometry.js +1 -2
- package/dist/fields/index.js +1 -1
- package/dist/fields/layout.d.ts +4 -7
- package/dist/fields/layout.d.ts.map +1 -1
- package/dist/fields/layout.js +1 -2
- package/dist/fields/text.d.ts +5 -8
- package/dist/fields/text.d.ts.map +1 -1
- package/dist/fields/text.js +1 -2
- package/dist/fig-compression.d.ts +3 -6
- package/dist/fig-compression.d.ts.map +1 -1
- package/dist/fig-compression.js +1 -2
- package/dist/figjam/index.js +1 -1
- package/dist/figjam/palette.d.ts +21 -23
- package/dist/figjam/palette.d.ts.map +1 -1
- package/dist/figjam/palette.js +3 -4
- package/dist/figjam/text.d.ts +10 -13
- package/dist/figjam/text.d.ts.map +1 -1
- package/dist/figjam/text.js +1 -2
- package/dist/font-style.d.ts +18 -18
- package/dist/font-style.d.ts.map +1 -1
- package/dist/font-style.js +5 -5
- package/dist/font-style.js.map +1 -1
- package/dist/generated/index.d.ts +32 -16
- package/dist/generated/index.d.ts.map +1 -1
- package/dist/generated/index.js +37 -9
- package/dist/generated/index.js.map +1 -1
- package/dist/generated/kind.d.ts +17 -6
- package/dist/generated/kind.d.ts.map +1 -1
- package/dist/generated/shape-with-text.d.ts +10 -13
- package/dist/generated/shape-with-text.d.ts.map +1 -1
- package/dist/generated/shape-with-text.js +3 -3
- package/dist/generated/shape-with-text.js.map +1 -1
- package/dist/generated/spec.d.ts +45 -0
- package/dist/generated/spec.d.ts.map +1 -0
- package/dist/generated/spec.js +281 -0
- package/dist/generated/spec.js.map +1 -0
- package/dist/generated/sticky.d.ts +23 -26
- package/dist/generated/sticky.d.ts.map +1 -1
- package/dist/generated/sticky.js +4 -4
- package/dist/generated/sticky.js.map +1 -1
- package/dist/geometry.d.ts +43 -69
- package/dist/geometry.d.ts.map +1 -1
- package/dist/geometry.js +44 -76
- package/dist/geometry.js.map +1 -1
- package/dist/gradient.d.ts +15 -18
- package/dist/gradient.d.ts.map +1 -1
- package/dist/gradient.js +1 -2
- package/dist/graph.d.ts +4 -7
- package/dist/graph.d.ts.map +1 -1
- package/dist/graph.js +26 -19
- package/dist/graph.js.map +1 -1
- package/dist/group-bounds.d.ts +10 -12
- package/dist/group-bounds.d.ts.map +1 -1
- package/dist/group-bounds.js +5 -6
- package/dist/guides.d.ts +5 -8
- package/dist/guides.d.ts.map +1 -1
- package/dist/guides.js +2 -3
- package/dist/hit-test.d.ts +20 -12
- package/dist/hit-test.d.ts.map +1 -1
- package/dist/hit-test.js +51 -31
- package/dist/hit-test.js.map +1 -1
- package/dist/icons/fit.d.ts +2 -4
- package/dist/icons/fit.d.ts.map +1 -1
- package/dist/icons/fit.js +1 -2
- package/dist/icons/glyph.d.ts +3 -5
- package/dist/icons/glyph.d.ts.map +1 -1
- package/dist/icons/glyph.js +3 -4
- package/dist/icons/index.d.ts +1 -1
- package/dist/icons/index.js +2 -2
- package/dist/icons/model.d.ts +8 -11
- package/dist/icons/model.d.ts.map +1 -1
- package/dist/icons/model.js +1 -2
- package/dist/icons/schema.d.ts +8 -11
- package/dist/icons/schema.d.ts.map +1 -1
- package/dist/icons/schema.js +1 -2
- package/dist/ids.d.ts +2 -5
- package/dist/ids.d.ts.map +1 -1
- package/dist/ids.js +3 -4
- package/dist/images.d.ts +20 -21
- package/dist/images.d.ts.map +1 -1
- package/dist/images.js +7 -6
- package/dist/images.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +3 -3
- package/dist/instances/assignments.js +1 -2
- package/dist/instances/content-marks.js +98 -0
- package/dist/instances/content-marks.js.map +1 -0
- package/dist/instances/content-size.js +3 -4
- package/dist/instances/copies.js +2 -3
- package/dist/instances/cycles.d.ts +3 -6
- package/dist/instances/cycles.d.ts.map +1 -1
- package/dist/instances/cycles.js +1 -2
- package/dist/instances/deleted.d.ts +23 -0
- package/dist/instances/deleted.d.ts.map +1 -0
- package/dist/instances/deleted.js +82 -0
- package/dist/instances/deleted.js.map +1 -0
- package/dist/instances/fields.d.ts +5 -8
- package/dist/instances/fields.d.ts.map +1 -1
- package/dist/instances/fields.js +9 -7
- package/dist/instances/fields.js.map +1 -1
- package/dist/instances/index.d.ts +21 -20
- package/dist/instances/index.d.ts.map +1 -1
- package/dist/instances/index.js +69 -12
- package/dist/instances/index.js.map +1 -1
- package/dist/instances/kept-overrides.js +4 -5
- package/dist/instances/lookup.d.ts +17 -0
- package/dist/instances/lookup.d.ts.map +1 -0
- package/dist/instances/lookup.js +48 -0
- package/dist/instances/lookup.js.map +1 -0
- package/dist/instances/main-component.d.ts +2 -5
- package/dist/instances/main-component.d.ts.map +1 -1
- package/dist/instances/main-component.js +1 -2
- package/dist/instances/matching.js +1 -2
- package/dist/instances/overrides.d.ts +23 -26
- package/dist/instances/overrides.d.ts.map +1 -1
- package/dist/instances/overrides.js +1 -2
- package/dist/instances/placement.js +3 -4
- package/dist/instances/protection.js +3 -4
- package/dist/instances/source-walk.js +1 -2
- package/dist/instances/swap.js +7 -8
- package/dist/instances/sync.js +27 -14
- package/dist/instances/sync.js.map +1 -1
- package/dist/instances/vector-geometry.js +2 -3
- package/dist/layout/aspect-ratio.d.ts +7 -9
- package/dist/layout/aspect-ratio.d.ts.map +1 -1
- package/dist/layout/aspect-ratio.js +1 -2
- package/dist/layout/flow.d.ts +3 -6
- package/dist/layout/flow.d.ts.map +1 -1
- package/dist/layout/flow.js +6 -5
- package/dist/layout/flow.js.map +1 -1
- package/dist/layout/guides.d.ts +13 -16
- package/dist/layout/guides.d.ts.map +1 -1
- package/dist/layout/guides.js +4 -5
- package/dist/layout/guides.js.map +1 -1
- package/dist/layout/index.d.ts +3 -2
- package/dist/layout/index.js +6 -5
- package/dist/layout/keywords.d.ts +7 -9
- package/dist/layout/keywords.d.ts.map +1 -1
- package/dist/layout/keywords.js +1 -2
- package/dist/layout/limits.d.ts +13 -16
- package/dist/layout/limits.d.ts.map +1 -1
- package/dist/layout/limits.js +1 -2
- package/dist/layout/sizing.d.ts +11 -13
- package/dist/layout/sizing.d.ts.map +1 -1
- package/dist/layout/sizing.js +1 -2
- package/dist/layout/spacing.d.ts +2 -5
- package/dist/layout/spacing.d.ts.map +1 -1
- package/dist/layout/spacing.js +1 -2
- package/dist/layout/stacking.d.ts +8 -0
- package/dist/layout/stacking.d.ts.map +1 -0
- package/dist/layout/stacking.js +12 -0
- package/dist/layout/stacking.js.map +1 -0
- package/dist/layout/strokes.d.ts +1 -4
- package/dist/layout/strokes.d.ts.map +1 -1
- package/dist/layout/strokes.js +1 -2
- package/dist/layout/writes.js +1 -2
- package/dist/layout/writes.js.map +1 -1
- package/dist/masks.d.ts +4 -7
- package/dist/masks.d.ts.map +1 -1
- package/dist/masks.js +1 -2
- package/dist/matrix.d.ts +3 -4
- package/dist/matrix.d.ts.map +1 -1
- package/dist/matrix.js +11 -3
- package/dist/matrix.js.map +1 -1
- package/dist/mesh/geometry.d.ts +21 -24
- package/dist/mesh/geometry.d.ts.map +1 -1
- package/dist/mesh/geometry.js +3 -14
- package/dist/mesh/geometry.js.map +1 -1
- package/dist/mesh/index.d.ts +1 -1
- package/dist/mesh/index.js +1 -1
- package/dist/mesh/model.d.ts +5 -8
- package/dist/mesh/model.d.ts.map +1 -1
- package/dist/mesh/model.js +2 -3
- package/dist/mesh/schema.d.ts +10 -13
- package/dist/mesh/schema.d.ts.map +1 -1
- package/dist/mesh/schema.js +3 -4
- package/dist/motion/apply.d.ts +42 -0
- package/dist/motion/apply.d.ts.map +1 -0
- package/dist/motion/apply.js +98 -0
- package/dist/motion/apply.js.map +1 -0
- package/dist/motion/edit.d.ts +53 -0
- package/dist/motion/edit.d.ts.map +1 -0
- package/dist/motion/edit.js +125 -0
- package/dist/motion/edit.js.map +1 -0
- package/dist/motion/effects.js +86 -0
- package/dist/motion/effects.js.map +1 -0
- package/dist/motion/evaluate.d.ts +33 -0
- package/dist/motion/evaluate.d.ts.map +1 -0
- package/dist/motion/evaluate.js +160 -0
- package/dist/motion/evaluate.js.map +1 -0
- package/dist/motion/fields.d.ts +69 -0
- package/dist/motion/fields.d.ts.map +1 -0
- package/dist/motion/fields.js +132 -0
- package/dist/motion/fields.js.map +1 -0
- package/dist/motion/index.d.ts +16 -0
- package/dist/motion/index.js +15 -0
- package/dist/motion/keyable.d.ts +32 -0
- package/dist/motion/keyable.d.ts.map +1 -0
- package/dist/motion/keyable.js +120 -0
- package/dist/motion/keyable.js.map +1 -0
- package/dist/motion/outline.d.ts +35 -0
- package/dist/motion/outline.d.ts.map +1 -0
- package/dist/motion/outline.js +59 -0
- package/dist/motion/outline.js.map +1 -0
- package/dist/motion/presets/index.d.ts +20 -0
- package/dist/motion/presets/index.d.ts.map +1 -0
- package/dist/motion/presets/index.js +166 -0
- package/dist/motion/presets/index.js.map +1 -0
- package/dist/motion/presets/settings.d.ts +43 -0
- package/dist/motion/presets/settings.d.ts.map +1 -0
- package/dist/motion/presets/settings.js +254 -0
- package/dist/motion/presets/settings.js.map +1 -0
- package/dist/motion/presets/stagger.d.ts +69 -0
- package/dist/motion/presets/stagger.d.ts.map +1 -0
- package/dist/motion/presets/stagger.js +185 -0
- package/dist/motion/presets/stagger.js.map +1 -0
- package/dist/motion/schema.d.ts +185 -0
- package/dist/motion/schema.d.ts.map +1 -0
- package/dist/motion/schema.js +62 -0
- package/dist/motion/schema.js.map +1 -0
- package/dist/motion/segment.d.ts +25 -0
- package/dist/motion/segment.d.ts.map +1 -0
- package/dist/motion/segment.js +73 -0
- package/dist/motion/segment.js.map +1 -0
- package/dist/motion/spec.d.ts +26 -0
- package/dist/motion/spec.d.ts.map +1 -0
- package/dist/motion/spec.js +175 -0
- package/dist/motion/spec.js.map +1 -0
- package/dist/motion/timeline.d.ts +16 -0
- package/dist/motion/timeline.d.ts.map +1 -0
- package/dist/motion/timeline.js +53 -0
- package/dist/motion/timeline.js.map +1 -0
- package/dist/motion/types.d.ts +49 -0
- package/dist/motion/types.d.ts.map +1 -0
- package/dist/motion/variables.d.ts +9 -0
- package/dist/motion/variables.d.ts.map +1 -0
- package/dist/motion/variables.js +25 -0
- package/dist/motion/variables.js.map +1 -0
- package/dist/mutation-impact.d.ts +7 -10
- package/dist/mutation-impact.d.ts.map +1 -1
- package/dist/mutation-impact.js +2 -3
- package/dist/node-defaults.d.ts +14 -15
- package/dist/node-defaults.d.ts.map +1 -1
- package/dist/node-defaults.js +133 -51
- package/dist/node-defaults.js.map +1 -1
- package/dist/order-keys.d.ts +8 -9
- package/dist/order-keys.d.ts.map +1 -1
- package/dist/order-keys.js +10 -2
- package/dist/order-keys.js.map +1 -1
- package/dist/outline/flatten.d.ts +3 -6
- package/dist/outline/flatten.d.ts.map +1 -1
- package/dist/outline/flatten.js +3 -4
- package/dist/outline/heads.js +1 -2
- package/dist/outline/hit.d.ts +2 -5
- package/dist/outline/hit.d.ts.map +1 -1
- package/dist/outline/hit.js +5 -6
- package/dist/outline/index.js +3 -3
- package/dist/outline/point.d.ts +4 -7
- package/dist/outline/point.d.ts.map +1 -1
- package/dist/outline/point.js +2 -3
- package/dist/outline/shapes.d.ts +4 -7
- package/dist/outline/shapes.d.ts.map +1 -1
- package/dist/outline/shapes.js +2 -3
- package/dist/paints/index.d.ts +2 -2
- package/dist/paints/index.js +4 -4
- package/dist/paints/pattern.d.ts +6 -9
- package/dist/paints/pattern.d.ts.map +1 -1
- package/dist/paints/pattern.js +1 -2
- package/dist/paints/schema.d.ts +4 -7
- package/dist/paints/schema.d.ts.map +1 -1
- package/dist/paints/schema.js +3 -4
- package/dist/paints/shows.d.ts +3 -6
- package/dist/paints/shows.d.ts.map +1 -1
- package/dist/paints/shows.js +1 -2
- package/dist/paints/solid.d.ts +1 -4
- package/dist/paints/solid.d.ts.map +1 -1
- package/dist/paints/solid.js +1 -2
- package/dist/paints/stills.d.ts +17 -17
- package/dist/paints/stills.d.ts.map +1 -1
- package/dist/paints/stills.js +22 -18
- package/dist/paints/stills.js.map +1 -1
- package/dist/parse-path.d.ts +12 -9
- package/dist/parse-path.d.ts.map +1 -1
- package/dist/parse-path.js +13 -3
- package/dist/parse-path.js.map +1 -1
- package/dist/paths/arc.d.ts +6 -9
- package/dist/paths/arc.d.ts.map +1 -1
- package/dist/paths/arc.js +1 -2
- package/dist/paths/index.d.ts +1 -1
- package/dist/paths/index.js +1 -1
- package/dist/paths/network.d.ts +13 -16
- package/dist/paths/network.d.ts.map +1 -1
- package/dist/paths/network.js +1 -2
- package/dist/paths/sink.d.ts +5 -8
- package/dist/paths/sink.d.ts.map +1 -1
- package/dist/paths/sink.js +1 -2
- package/dist/paths/smooth-corners.d.ts +3 -6
- package/dist/paths/smooth-corners.d.ts.map +1 -1
- package/dist/paths/smooth-corners.js +1 -2
- package/dist/plugin-data/field.d.ts +15 -18
- package/dist/plugin-data/field.d.ts.map +1 -1
- package/dist/plugin-data/field.js +1 -2
- package/dist/plugin-data/fields.d.ts +37 -11
- package/dist/plugin-data/fields.d.ts.map +1 -1
- package/dist/plugin-data/fields.js +35 -10
- package/dist/plugin-data/fields.js.map +1 -1
- package/dist/plugin-data/index.d.ts +2 -2
- package/dist/plugin-data/index.js +2 -2
- package/dist/polygon.d.ts +8 -8
- package/dist/polygon.d.ts.map +1 -1
- package/dist/polygon.js +7 -7
- package/dist/polygon.js.map +1 -1
- package/dist/preview.d.ts +3 -5
- package/dist/preview.d.ts.map +1 -1
- package/dist/preview.js +2 -3
- package/dist/primitives/index.d.ts +7 -9
- package/dist/primitives/index.d.ts.map +1 -1
- package/dist/primitives/index.js +1 -2
- package/dist/primitives/schema.d.ts +3 -6
- package/dist/primitives/schema.d.ts.map +1 -1
- package/dist/primitives/schema.js +1 -2
- package/dist/resize.d.ts +13 -15
- package/dist/resize.d.ts.map +1 -1
- package/dist/resize.js +5 -6
- package/dist/scaling/node.d.ts +2 -5
- package/dist/scaling/node.d.ts.map +1 -1
- package/dist/scaling/node.js +4 -5
- package/dist/scaling/snapshot.d.ts +5 -8
- package/dist/scaling/snapshot.d.ts.map +1 -1
- package/dist/scaling/snapshot.js +1 -2
- package/dist/scaling/tree.d.ts +6 -9
- package/dist/scaling/tree.d.ts.map +1 -1
- package/dist/scaling/tree.js +2 -3
- package/dist/shaders/index.d.ts +2 -2
- package/dist/shaders/index.js +2 -2
- package/dist/shaders/model.d.ts +54 -13
- package/dist/shaders/model.d.ts.map +1 -1
- package/dist/shaders/model.js +98 -7
- package/dist/shaders/model.js.map +1 -1
- package/dist/shaders/schema.d.ts +15 -8
- package/dist/shaders/schema.d.ts.map +1 -1
- package/dist/shaders/schema.js +11 -2
- package/dist/shaders/schema.js.map +1 -1
- package/dist/shape-with-text/document.js +9 -21
- package/dist/shape-with-text/document.js.map +1 -1
- package/dist/shape-with-text/fit.d.ts +6 -9
- package/dist/shape-with-text/fit.d.ts.map +1 -1
- package/dist/shape-with-text/fit.js +1 -2
- package/dist/shape-with-text/geometry.d.ts +7 -10
- package/dist/shape-with-text/geometry.d.ts.map +1 -1
- package/dist/shape-with-text/geometry.js +4 -7
- package/dist/shape-with-text/geometry.js.map +1 -1
- package/dist/shape-with-text/index.js +1 -1
- package/dist/shape-with-text/kinds.d.ts +4 -7
- package/dist/shape-with-text/kinds.d.ts.map +1 -1
- package/dist/shape-with-text/kinds.js +1 -2
- package/dist/shared-style-index.d.ts +2 -4
- package/dist/shared-style-index.d.ts.map +1 -1
- package/dist/shared-style-index.js +1 -2
- package/dist/shared-style-index.js.map +1 -1
- package/dist/shared-styles.d.ts +17 -19
- package/dist/shared-styles.d.ts.map +1 -1
- package/dist/shared-styles.js +5 -6
- package/dist/slides/drop.d.ts +5 -8
- package/dist/slides/drop.d.ts.map +1 -1
- package/dist/slides/drop.js +1 -2
- package/dist/slides/index.d.ts +19 -19
- package/dist/slides/index.d.ts.map +1 -1
- package/dist/slides/index.js +8 -5
- package/dist/slides/index.js.map +1 -1
- package/dist/slides/motion.d.ts +32 -16
- package/dist/slides/motion.d.ts.map +1 -1
- package/dist/slides/motion.js +30 -5
- package/dist/slides/motion.js.map +1 -1
- package/dist/slides/playback.d.ts +24 -21
- package/dist/slides/playback.d.ts.map +1 -1
- package/dist/slides/playback.js +45 -13
- package/dist/slides/playback.js.map +1 -1
- package/dist/slides/types.d.ts +8 -11
- package/dist/slides/types.d.ts.map +1 -1
- package/dist/slides/types.js +1 -2
- package/dist/slots/authoring.d.ts +6 -9
- package/dist/slots/authoring.d.ts.map +1 -1
- package/dist/slots/authoring.js +2 -3
- package/dist/slots/content.d.ts +5 -8
- package/dist/slots/content.d.ts.map +1 -1
- package/dist/slots/content.js +4 -5
- package/dist/slots/frames.d.ts +7 -9
- package/dist/slots/frames.d.ts.map +1 -1
- package/dist/slots/frames.js +3 -4
- package/dist/slots/frames.js.map +1 -1
- package/dist/slots/index.js +1 -1
- package/dist/slots/limits.d.ts +4 -7
- package/dist/slots/limits.d.ts.map +1 -1
- package/dist/slots/limits.js +1 -2
- package/dist/snap.d.ts +4 -7
- package/dist/snap.d.ts.map +1 -1
- package/dist/snap.js +7 -8
- package/dist/source-metadata.d.ts +1 -4
- package/dist/source-metadata.d.ts.map +1 -1
- package/dist/source-metadata.js +1 -2
- package/dist/specs/index.d.ts +3 -0
- package/dist/specs/index.js +3 -0
- package/dist/specs/model.d.ts +20 -0
- package/dist/specs/model.d.ts.map +1 -0
- package/dist/specs/model.js +32 -0
- package/dist/specs/model.js.map +1 -0
- package/dist/specs/schema.d.ts +24 -0
- package/dist/specs/schema.d.ts.map +1 -0
- package/dist/specs/schema.js +32 -0
- package/dist/specs/schema.js.map +1 -0
- package/dist/statuses/impact.d.ts +2 -5
- package/dist/statuses/impact.d.ts.map +1 -1
- package/dist/statuses/impact.js +2 -3
- package/dist/statuses/index.d.ts +1 -1
- package/dist/statuses/index.js +2 -2
- package/dist/statuses/node.d.ts +4 -7
- package/dist/statuses/node.d.ts.map +1 -1
- package/dist/statuses/node.js +1 -2
- package/dist/statuses/schema.d.ts +7 -9
- package/dist/statuses/schema.d.ts.map +1 -1
- package/dist/statuses/schema.js +1 -2
- package/dist/statuses/workflow.d.ts +9 -12
- package/dist/statuses/workflow.d.ts.map +1 -1
- package/dist/statuses/workflow.js +1 -2
- package/dist/strokes.d.ts +8 -10
- package/dist/strokes.d.ts.map +1 -1
- package/dist/strokes.js +2 -3
- package/dist/text/auto-resize.d.ts +4 -6
- package/dist/text/auto-resize.d.ts.map +1 -1
- package/dist/text/auto-resize.js +1 -2
- package/dist/text/direction.d.ts +5 -8
- package/dist/text/direction.d.ts.map +1 -1
- package/dist/text/direction.js +1 -2
- package/dist/text/index.d.ts +2 -2
- package/dist/text/index.js +5 -5
- package/dist/text/lengths.d.ts +9 -12
- package/dist/text/lengths.d.ts.map +1 -1
- package/dist/text/lengths.js +1 -2
- package/dist/text/lists.d.ts +17 -13
- package/dist/text/lists.d.ts.map +1 -1
- package/dist/text/lists.js +15 -4
- package/dist/text/lists.js.map +1 -1
- package/dist/text/name.d.ts +4 -7
- package/dist/text/name.d.ts.map +1 -1
- package/dist/text/name.js +1 -2
- package/dist/text/overflow.d.ts +5 -7
- package/dist/text/overflow.d.ts.map +1 -1
- package/dist/text/overflow.js +1 -2
- package/dist/text/paragraphs.d.ts +20 -23
- package/dist/text/paragraphs.d.ts.map +1 -1
- package/dist/text/paragraphs.js +8 -5
- package/dist/text/paragraphs.js.map +1 -1
- package/dist/text/path.js +1 -2
- package/dist/text/picture.d.ts +3 -6
- package/dist/text/picture.d.ts.map +1 -1
- package/dist/text/picture.js +2 -3
- package/dist/text/references.d.ts +3 -6
- package/dist/text/references.d.ts.map +1 -1
- package/dist/text/references.js +1 -2
- package/dist/text/runs.d.ts +6 -9
- package/dist/text/runs.d.ts.map +1 -1
- package/dist/text/runs.js +1 -2
- package/dist/text/schema.d.ts +1 -4
- package/dist/text/schema.d.ts.map +1 -1
- package/dist/text/schema.js +1 -2
- package/dist/thumbnail.d.ts +4 -7
- package/dist/thumbnail.d.ts.map +1 -1
- package/dist/thumbnail.js +1 -2
- package/dist/transfer/apply.d.ts +2 -5
- package/dist/transfer/apply.d.ts.map +1 -1
- package/dist/transfer/apply.js +2 -3
- package/dist/transfer/copied.d.ts +5 -8
- package/dist/transfer/copied.d.ts.map +1 -1
- package/dist/transfer/copied.js +3 -4
- package/dist/transfer/dependencies.d.ts +6 -9
- package/dist/transfer/dependencies.d.ts.map +1 -1
- package/dist/transfer/dependencies.js +13 -11
- package/dist/transfer/dependencies.js.map +1 -1
- package/dist/transfer/history.d.ts +1 -4
- package/dist/transfer/history.d.ts.map +1 -1
- package/dist/transfer/history.js +1 -2
- package/dist/transfer/identity.js +1 -2
- package/dist/transfer/index.d.ts +3 -3
- package/dist/transfer/index.js +6 -6
- package/dist/transfer/library.d.ts +5 -7
- package/dist/transfer/library.d.ts.map +1 -1
- package/dist/transfer/library.js +32 -12
- package/dist/transfer/library.js.map +1 -1
- package/dist/transfer/nodes.d.ts +2 -5
- package/dist/transfer/nodes.d.ts.map +1 -1
- package/dist/transfer/nodes.js +8 -6
- package/dist/transfer/nodes.js.map +1 -1
- package/dist/transfer/plan.d.ts +2 -5
- package/dist/transfer/plan.d.ts.map +1 -1
- package/dist/transfer/plan.js +2 -3
- package/dist/transfer/references.js +1 -2
- package/dist/transfer/remove.d.ts +1 -4
- package/dist/transfer/remove.d.ts.map +1 -1
- package/dist/transfer/remove.js +2 -3
- package/dist/transfer/resources.d.ts +2 -5
- package/dist/transfer/resources.d.ts.map +1 -1
- package/dist/transfer/resources.js +3 -4
- package/dist/transfer/validation.js +1 -2
- package/dist/transfer/variables.d.ts +3 -6
- package/dist/transfer/variables.d.ts.map +1 -1
- package/dist/transfer/variables.js +2 -3
- package/dist/types.d.ts +191 -142
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +15 -3
- package/dist/types.js.map +1 -1
- package/dist/undo.d.ts +5 -8
- package/dist/undo.d.ts.map +1 -1
- package/dist/undo.js +9 -3
- package/dist/undo.js.map +1 -1
- package/dist/variables/bindings.d.ts +24 -25
- package/dist/variables/bindings.d.ts.map +1 -1
- package/dist/variables/bindings.js +28 -23
- package/dist/variables/bindings.js.map +1 -1
- package/dist/variables/corners.d.ts +1 -4
- package/dist/variables/corners.d.ts.map +1 -1
- package/dist/variables/corners.js +1 -2
- package/dist/variables/easing.d.ts +24 -19
- package/dist/variables/easing.d.ts.map +1 -1
- package/dist/variables/easing.js +17 -17
- package/dist/variables/easing.js.map +1 -1
- package/dist/variables/fields.d.ts +21 -14
- package/dist/variables/fields.d.ts.map +1 -1
- package/dist/variables/fields.js +24 -6
- package/dist/variables/fields.js.map +1 -1
- package/dist/variables/formula/check.d.ts +2 -5
- package/dist/variables/formula/check.d.ts.map +1 -1
- package/dist/variables/formula/check.js +2 -3
- package/dist/variables/formula/evaluate.d.ts +1 -4
- package/dist/variables/formula/evaluate.d.ts.map +1 -1
- package/dist/variables/formula/evaluate.js +3 -4
- package/dist/variables/formula/index.d.ts +6 -8
- package/dist/variables/formula/index.d.ts.map +1 -1
- package/dist/variables/formula/index.js +4 -5
- package/dist/variables/formula/parse.js +5 -6
- package/dist/variables/formula/print.d.ts +2 -5
- package/dist/variables/formula/print.d.ts.map +1 -1
- package/dist/variables/formula/print.js +4 -5
- package/dist/variables/formula/schema.d.ts +2 -5
- package/dist/variables/formula/schema.d.ts.map +1 -1
- package/dist/variables/formula/schema.js +5 -6
- package/dist/variables/formula/signatures.d.ts +3 -6
- package/dist/variables/formula/signatures.d.ts.map +1 -1
- package/dist/variables/formula/signatures.js +1 -2
- package/dist/variables/formula/tokens.d.ts +5 -8
- package/dist/variables/formula/tokens.d.ts.map +1 -1
- package/dist/variables/formula/tokens.js +1 -2
- package/dist/variables/formula/tree.d.ts +6 -9
- package/dist/variables/formula/tree.d.ts.map +1 -1
- package/dist/variables/formula/tree.js +1 -2
- package/dist/variables/formula/tree.js.map +1 -1
- package/dist/variables/index.d.ts +30 -32
- package/dist/variables/index.d.ts.map +1 -1
- package/dist/variables/index.js +17 -18
- package/dist/variables/lookup.d.ts +11 -7
- package/dist/variables/lookup.d.ts.map +1 -1
- package/dist/variables/lookup.js +24 -3
- package/dist/variables/lookup.js.map +1 -1
- package/dist/variables/motion.d.ts +9 -12
- package/dist/variables/motion.d.ts.map +1 -1
- package/dist/variables/motion.js +3 -4
- package/dist/variables/paints.d.ts +18 -20
- package/dist/variables/paints.d.ts.map +1 -1
- package/dist/variables/paints.js +4 -5
- package/dist/variables/resolution.d.ts +22 -19
- package/dist/variables/resolution.d.ts.map +1 -1
- package/dist/variables/resolution.js +13 -5
- package/dist/variables/resolution.js.map +1 -1
- package/dist/variables/schema.d.ts +9 -12
- package/dist/variables/schema.d.ts.map +1 -1
- package/dist/variables/schema.js +3 -4
- package/dist/variables/style-bindings.d.ts +11 -13
- package/dist/variables/style-bindings.d.ts.map +1 -1
- package/dist/variables/style-bindings.js +2 -3
- package/dist/variables/subtree.js +1 -2
- package/dist/variables/text.d.ts +2 -5
- package/dist/variables/text.d.ts.map +1 -1
- package/dist/variables/text.js +3 -4
- package/dist/variables/token.d.ts +5 -8
- package/dist/variables/token.d.ts.map +1 -1
- package/dist/variables/token.js +1 -2
- package/dist/variables/units.js +3 -5
- package/dist/variables/units.js.map +1 -1
- package/dist/variables/value.d.ts +4 -7
- package/dist/variables/value.d.ts.map +1 -1
- package/dist/variables/value.js +4 -5
- package/dist/variant-name.d.ts +2 -5
- package/dist/variant-name.d.ts.map +1 -1
- package/dist/variant-name.js +1 -2
- package/dist/variant-properties.d.ts +4 -7
- package/dist/variant-properties.d.ts.map +1 -1
- package/dist/variant-properties.js +2 -3
- package/dist/vector-network.d.ts +17 -20
- package/dist/vector-network.d.ts.map +1 -1
- package/dist/vector-network.js +4 -5
- package/package.json +23 -5
- package/src/behaviours/index.ts +1 -0
- package/src/behaviours/kinds.ts +103 -1
- package/src/behaviours/listing.ts +142 -0
- package/src/behaviours/model.ts +21 -0
- package/src/blur.ts +88 -0
- package/src/clipping.ts +3 -4
- package/src/comments/threads.ts +8 -1
- package/src/connectors/layout.ts +10 -3
- package/src/connectors/sublayers.ts +2 -1
- package/src/coordinate.ts +17 -25
- package/src/copy.ts +15 -6
- package/src/cubic.ts +57 -1
- package/src/export-format.ts +11 -1
- package/src/font-style.ts +12 -4
- package/src/generated/index.ts +43 -6
- package/src/generated/kind.ts +16 -2
- package/src/generated/shape-with-text.ts +1 -0
- package/src/generated/spec.ts +243 -0
- package/src/generated/sticky.ts +2 -1
- package/src/geometry.ts +39 -88
- package/src/graph.ts +21 -6
- package/src/hit-test.ts +66 -26
- package/src/images.ts +4 -1
- package/src/instances/content-marks.ts +124 -0
- package/src/instances/deleted.ts +115 -0
- package/src/instances/fields.ts +7 -3
- package/src/instances/index.ts +94 -5
- package/src/instances/lookup.ts +61 -0
- package/src/instances/sync.ts +15 -0
- package/src/layout/flow.ts +5 -3
- package/src/layout/index.ts +1 -0
- package/src/layout/stacking.ts +14 -0
- package/src/matrix.ts +11 -1
- package/src/mesh/geometry.ts +2 -13
- package/src/motion/apply.ts +156 -0
- package/src/motion/edit.ts +148 -0
- package/src/motion/effects.ts +166 -0
- package/src/motion/evaluate.ts +181 -0
- package/src/motion/fields.ts +136 -0
- package/src/motion/index.ts +13 -0
- package/src/motion/keyable.ts +141 -0
- package/src/motion/outline.ts +72 -0
- package/src/motion/presets/index.ts +257 -0
- package/src/motion/presets/settings.ts +221 -0
- package/src/motion/presets/stagger.ts +242 -0
- package/src/motion/schema.ts +66 -0
- package/src/motion/segment.ts +83 -0
- package/src/motion/spec.ts +225 -0
- package/src/motion/timeline.ts +48 -0
- package/src/motion/types.ts +45 -0
- package/src/motion/variables.ts +33 -0
- package/src/node-defaults.ts +131 -49
- package/src/order-keys.ts +16 -2
- package/src/paints/stills.ts +16 -12
- package/src/parse-path.ts +15 -0
- package/src/plugin-data/fields.ts +40 -3
- package/src/polygon.ts +6 -4
- package/src/shaders/model.ts +124 -6
- package/src/shaders/schema.ts +12 -0
- package/src/shape-with-text/document.ts +7 -12
- package/src/shape-with-text/geometry.ts +1 -4
- package/src/slides/index.ts +8 -0
- package/src/slides/motion.ts +35 -1
- package/src/slides/playback.ts +51 -9
- package/src/slots/frames.ts +2 -3
- package/src/specs/index.ts +2 -0
- package/src/specs/model.ts +40 -0
- package/src/specs/schema.ts +43 -0
- package/src/text/lists.ts +20 -7
- package/src/text/paragraphs.ts +10 -3
- package/src/transfer/dependencies.ts +17 -11
- package/src/transfer/library.ts +36 -12
- package/src/transfer/nodes.ts +8 -0
- package/src/types.ts +71 -8
- package/src/undo.ts +10 -1
- package/src/variables/bindings.ts +33 -16
- package/src/variables/easing.ts +16 -17
- package/src/variables/fields.ts +30 -3
- package/src/variables/lookup.ts +24 -1
- package/src/variables/resolution.ts +15 -1
- package/src/variables/units.ts +2 -3
package/dist/css/motion.d.ts
CHANGED
|
@@ -1,12 +1,9 @@
|
|
|
1
1
|
import { Easing } from "../types.js";
|
|
2
|
-
//#region src/css/motion.d.ts
|
|
3
2
|
/** A CSS `<time>` in seconds: `250ms` or `0.25s`; a bare number is seconds. Null otherwise. */
|
|
4
|
-
declare function parseCSSTime(value: string): number | null;
|
|
3
|
+
export declare function parseCSSTime(value: string): number | null;
|
|
5
4
|
/**
|
|
6
5
|
* A CSS easing function as an easing: a keyword Figma has a preset for, `ease`, or
|
|
7
6
|
* `cubic-bezier(x1, y1, x2, y2)` with both x between 0 and 1. Null for anything else.
|
|
8
7
|
*/
|
|
9
|
-
declare function parseCSSEasing(value: string): Easing | null;
|
|
10
|
-
//#endregion
|
|
11
|
-
export { parseCSSEasing, parseCSSTime };
|
|
8
|
+
export declare function parseCSSEasing(value: string): Easing | null;
|
|
12
9
|
//# sourceMappingURL=motion.d.ts.map
|
package/dist/css/motion.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"motion.d.ts","names":[],"sources":["../../src/css/motion.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"motion.d.ts","names":[],"sources":["../../src/css/motion.ts"],"mappings":";;wBAOgB,aAAa;;;;;wBAoBb,eAAe,gBAAgB"}
|
package/dist/css/motion.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import valueParser from "postcss-value-parser";
|
|
1
2
|
import { easingForBezier, easingPreset } from "../variables/easing.js";
|
|
2
3
|
import { dimension } from "./values.js";
|
|
3
|
-
|
|
4
|
-
//#region src/css/motion.ts
|
|
4
|
+
// src/css/motion.ts
|
|
5
5
|
/** A CSS `<time>` in seconds: `250ms` or `0.25s`; a bare number is seconds. Null otherwise. */
|
|
6
6
|
function parseCSSTime(value) {
|
|
7
7
|
const parsed = dimension(value.trim());
|
|
@@ -54,7 +54,6 @@ function parseCSSEasing(value) {
|
|
|
54
54
|
y2
|
|
55
55
|
});
|
|
56
56
|
}
|
|
57
|
-
//#endregion
|
|
58
57
|
export { parseCSSEasing, parseCSSTime };
|
|
59
58
|
|
|
60
59
|
//# sourceMappingURL=motion.js.map
|
package/dist/css/shadows.d.ts
CHANGED
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
import { ColorProfile, Effect } from "../types.js";
|
|
2
|
-
//#region src/css/shadows.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* The shadows of a CSS `box-shadow` or `text-shadow` list, such as
|
|
5
4
|
* `0 4px 8px rgb(0 0 0 / 0.2), inset 0 1px #fff`: drop shadows, and inner shadows for `inset`,
|
|
6
5
|
* their colors read into `profile`.
|
|
7
6
|
*/
|
|
8
|
-
declare function parseCSSShadows(value: string | undefined, profile: ColorProfile): Effect[];
|
|
9
|
-
//#endregion
|
|
10
|
-
export { parseCSSShadows };
|
|
7
|
+
export declare function parseCSSShadows(value: string | undefined, profile: ColorProfile): Effect[];
|
|
11
8
|
//# sourceMappingURL=shadows.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shadows.d.ts","names":[],"sources":["../../src/css/shadows.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"shadows.d.ts","names":[],"sources":["../../src/css/shadows.ts"],"mappings":";;;;;;wBAiDgB,gBAAgB,2BAA2B,SAAS,eAAe"}
|
package/dist/css/shadows.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import
|
|
1
|
+
import valueParser from "postcss-value-parser";
|
|
2
2
|
import { tryParseColor } from "../color/management.js";
|
|
3
|
+
import { BLACK } from "../constants.js";
|
|
3
4
|
import { cssLayerNodes, parseCSSNumber } from "./values.js";
|
|
4
|
-
|
|
5
|
-
//#region src/css/shadows.ts
|
|
5
|
+
// src/css/shadows.ts
|
|
6
6
|
/**
|
|
7
7
|
* One layer: `inset`, two to four lengths, and a color in any order. Without a color it is
|
|
8
8
|
* black, as `currentColor` usually is; a layer with anything else, such as `none`, is dropped.
|
|
@@ -48,7 +48,6 @@ function parseCSSShadows(value, profile) {
|
|
|
48
48
|
if (!value) return [];
|
|
49
49
|
return cssLayerNodes(valueParser(value).nodes).flatMap((layer) => shadowOf(layer, profile));
|
|
50
50
|
}
|
|
51
|
-
//#endregion
|
|
52
51
|
export { parseCSSShadows };
|
|
53
52
|
|
|
54
53
|
//# sourceMappingURL=shadows.js.map
|
package/dist/css/text.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { TextLength } from "../types.js";
|
|
2
|
-
//#region src/css/text.d.ts
|
|
3
2
|
/** A family of a CSS `font-family` list: its name, and whether it was a quoted string. */
|
|
4
|
-
interface CSSFontFamily {
|
|
3
|
+
export interface CSSFontFamily {
|
|
5
4
|
name: string;
|
|
6
5
|
quoted: boolean;
|
|
7
6
|
}
|
|
@@ -9,41 +8,39 @@ interface CSSFontFamily {
|
|
|
9
8
|
* Every family of a CSS `font-family` list in order, without quotes and escapes, as
|
|
10
9
|
* `parseCSSFontFamily` reads the first.
|
|
11
10
|
*/
|
|
12
|
-
declare function parseCSSFontFamilies(value: string | undefined): CSSFontFamily[];
|
|
11
|
+
export declare function parseCSSFontFamilies(value: string | undefined): CSSFontFamily[];
|
|
13
12
|
/**
|
|
14
13
|
* The real family a family of a `font-family` list names: a generic one, such as `sans-serif`,
|
|
15
14
|
* mapped to a real one, and any other name as it is. A quoted name is never a generic.
|
|
16
15
|
*/
|
|
17
|
-
declare function cssFontFamilyName(family: CSSFontFamily): string;
|
|
16
|
+
export declare function cssFontFamilyName(family: CSSFontFamily): string;
|
|
18
17
|
/**
|
|
19
18
|
* The first family of a CSS `font-family` list, without its quotes and escapes. A family is a quoted
|
|
20
19
|
* string or unquoted words, which join with single spaces; a quote opens a string only at the start
|
|
21
20
|
* of the family, so a name list such as draw.io's keeps `O'Reilly`. Null for an empty list.
|
|
22
21
|
*/
|
|
23
|
-
declare function parseCSSFontFamily(value: string | undefined): string | null;
|
|
22
|
+
export declare function parseCSSFontFamily(value: string | undefined): string | null;
|
|
24
23
|
/**
|
|
25
24
|
* Real families for CSS generic families, which name no font but whatever the browser picks for
|
|
26
25
|
* them, and for `-apple-system` and `BlinkMacSystemFont`, which browsers read as `system-ui`.
|
|
27
26
|
* Keyed by lowercase name; the rest of the generics, such as `cursive`, draw in the sans-serif one.
|
|
28
27
|
*/
|
|
29
|
-
declare const CSS_GENERIC_FONT_FAMILIES: Readonly<Record<string, string>>;
|
|
28
|
+
export declare const CSS_GENERIC_FONT_FAMILIES: Readonly<Record<string, string>>;
|
|
30
29
|
/**
|
|
31
30
|
* The family a CSS `font-family` list sets text in: its first family, with a generic family
|
|
32
31
|
* such as `sans-serif` or `system-ui` mapped to a real one. A quoted name is a family's own name,
|
|
33
32
|
* never a generic. Null for an empty list.
|
|
34
33
|
*/
|
|
35
|
-
declare function resolveCSSFontFamily(value: string | undefined): string | null;
|
|
34
|
+
export declare function resolveCSSFontFamily(value: string | undefined): string | null;
|
|
36
35
|
/**
|
|
37
36
|
* A CSS `line-height` as a text length: a unitless multiple, `em`, or a percent follows the font size,
|
|
38
37
|
* as a percent does in Figma; pixels stay pixels; `normal` is automatic, a null. Undefined for a
|
|
39
38
|
* value it cannot read.
|
|
40
39
|
*/
|
|
41
|
-
declare function parseCSSLineHeight(value: string | undefined): TextLength | null | undefined;
|
|
40
|
+
export declare function parseCSSLineHeight(value: string | undefined): TextLength | null | undefined;
|
|
42
41
|
/**
|
|
43
42
|
* A CSS `letter-spacing` as a text length: `em` is a percent of the font size, pixels stay pixels,
|
|
44
43
|
* and `normal` is none. Undefined for a value it cannot read.
|
|
45
44
|
*/
|
|
46
|
-
declare function parseCSSLetterSpacing(value: string | undefined): TextLength | undefined;
|
|
47
|
-
//#endregion
|
|
48
|
-
export { CSSFontFamily, CSS_GENERIC_FONT_FAMILIES, cssFontFamilyName, parseCSSFontFamilies, parseCSSFontFamily, parseCSSLetterSpacing, parseCSSLineHeight, resolveCSSFontFamily };
|
|
45
|
+
export declare function parseCSSLetterSpacing(value: string | undefined): TextLength | undefined;
|
|
49
46
|
//# sourceMappingURL=text.d.ts.map
|
package/dist/css/text.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text.d.ts","names":[],"sources":["../../src/css/text.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"text.d.ts","names":[],"sources":["../../src/css/text.ts"],"mappings":";;iBA+BiB;EACf;EACA;;;;;;wBAuBc,qBAAqB,4BAA4B;;;;;wBAgBjD,kBAAkB,QAAQ;;;;;;wBAU1B,mBAAmB;;;;;;qBActB,2BAA2B,SAAS;;;;;;wBAsBjC,qBAAqB;;;;;;wBAUrB,mBAAmB,4BAA4B;;;;;wBAe/C,sBAAsB,4BAA4B"}
|
package/dist/css/text.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DEFAULT_FONT_FAMILY } from "../constants.js";
|
|
2
2
|
import { percentLength, pixelLength } from "../text/lengths.js";
|
|
3
3
|
import { dimension, parseCSSNumber } from "./values.js";
|
|
4
|
-
|
|
4
|
+
// src/css/text.ts
|
|
5
5
|
/** A CSS escape: hex digits and one optional whitespace, an escaped line break, or any one character. */
|
|
6
6
|
const CSS_ESCAPE = /\\(?:([0-9a-fA-F]{1,6})(?:\r\n|[ \t\n\r\f])?|(?:\r\n|[\n\r\f])|([\s\S]))?/gu;
|
|
7
7
|
/** The largest Unicode code point. */
|
|
@@ -137,7 +137,6 @@ function parseCSSLetterSpacing(value) {
|
|
|
137
137
|
const pixels = parseCSSNumber(trimmed);
|
|
138
138
|
return pixels === null ? void 0 : pixelLength(pixels);
|
|
139
139
|
}
|
|
140
|
-
//#endregion
|
|
141
140
|
export { CSS_GENERIC_FONT_FAMILIES, cssFontFamilyName, parseCSSFontFamilies, parseCSSFontFamily, parseCSSLetterSpacing, parseCSSLineHeight, resolveCSSFontFamily };
|
|
142
141
|
|
|
143
142
|
//# sourceMappingURL=text.js.map
|
package/dist/css/transform.d.ts
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import { Vector } from "../primitives/index.js";
|
|
2
1
|
import { Mat3 } from "../matrix.js";
|
|
3
|
-
|
|
2
|
+
import { Vector } from "../primitives/index.js";
|
|
4
3
|
/** The size percentages in a transform resolve against: the element's border box. */
|
|
5
|
-
interface CSSTransformBox {
|
|
4
|
+
export interface CSSTransformBox {
|
|
6
5
|
width: number;
|
|
7
6
|
height: number;
|
|
8
7
|
}
|
|
9
8
|
/** The properties that transform an element, as CSS applies them: translate, rotate, scale, transform. */
|
|
10
|
-
interface CSSTransformStyle {
|
|
9
|
+
export interface CSSTransformStyle {
|
|
11
10
|
transform?: string;
|
|
12
11
|
translate?: string;
|
|
13
12
|
rotate?: string;
|
|
@@ -17,18 +16,16 @@ interface CSSTransformStyle {
|
|
|
17
16
|
* A CSS `transform` as a 2D matrix about the transform origin, with percentages resolved against
|
|
18
17
|
* `box`. The identity for `none`; null when it turns out of the plane or cannot be read.
|
|
19
18
|
*/
|
|
20
|
-
declare function parseCSSTransform(value: string | undefined, box: CSSTransformBox): Mat3 | null;
|
|
19
|
+
export declare function parseCSSTransform(value: string | undefined, box: CSSTransformBox): Mat3 | null;
|
|
21
20
|
/**
|
|
22
21
|
* The 2D matrix about the transform origin that an element's `translate`, `rotate`, `scale`, and
|
|
23
22
|
* `transform` make together, applied in that order as CSS applies them. Null when one of them
|
|
24
23
|
* turns out of the plane or cannot be read.
|
|
25
24
|
*/
|
|
26
|
-
declare function parseCSSTransforms(style: CSSTransformStyle, box: CSSTransformBox): Mat3 | null;
|
|
25
|
+
export declare function parseCSSTransforms(style: CSSTransformStyle, box: CSSTransformBox): Mat3 | null;
|
|
27
26
|
/**
|
|
28
27
|
* Where a CSS `transform-origin` puts the point an element transforms about, from its border
|
|
29
28
|
* box's top left corner. Its center when it is unset or cannot be read.
|
|
30
29
|
*/
|
|
31
|
-
declare function parseCSSTransformOrigin(value: string | undefined, box: CSSTransformBox): Vector;
|
|
32
|
-
//#endregion
|
|
33
|
-
export { CSSTransformBox, CSSTransformStyle, parseCSSTransform, parseCSSTransformOrigin, parseCSSTransforms };
|
|
30
|
+
export declare function parseCSSTransformOrigin(value: string | undefined, box: CSSTransformBox): Vector;
|
|
34
31
|
//# sourceMappingURL=transform.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transform.d.ts","names":[],"sources":["../../src/css/transform.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"transform.d.ts","names":[],"sources":["../../src/css/transform.ts"],"mappings":";;;iBAOiB;EACf;EACA;;;iBAIe;EACf;EACA;EACA;EACA;;;;;;wBAgKc,kBAAkB,2BAA2B,KAAK,kBAAkB;;;;;;wBAoCpE,mBAAmB,OAAO,mBAAmB,KAAK,kBAAkB;;;;;wBAiCpE,wBAAwB,2BAA2B,KAAK,kBAAkB"}
|
package/dist/css/transform.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import valueParser from "postcss-value-parser";
|
|
1
2
|
import Matrix from "../matrix.js";
|
|
2
3
|
import { dimension, splitCSSValue } from "./values.js";
|
|
3
|
-
|
|
4
|
-
//#region src/css/transform.ts
|
|
4
|
+
// src/css/transform.ts
|
|
5
5
|
const ANGLE_UNITS = {
|
|
6
6
|
deg: Math.PI / 180,
|
|
7
7
|
rad: 1,
|
|
@@ -314,7 +314,6 @@ function parseCSSTransformOrigin(value, box) {
|
|
|
314
314
|
y: oy
|
|
315
315
|
};
|
|
316
316
|
}
|
|
317
|
-
//#endregion
|
|
318
317
|
export { parseCSSTransform, parseCSSTransformOrigin, parseCSSTransforms };
|
|
319
318
|
|
|
320
319
|
//# sourceMappingURL=transform.js.map
|
package/dist/css/values.d.ts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { Color } from "../primitives/index.js";
|
|
2
2
|
import { ColorProfile } from "../types.js";
|
|
3
|
-
//#region src/css/values.d.ts
|
|
4
3
|
/** A CSS dimension's number and lowercase unit, or null. */
|
|
5
|
-
declare function dimension(value: string): {
|
|
4
|
+
export declare function dimension(value: string): {
|
|
6
5
|
number: number;
|
|
7
6
|
unit: string;
|
|
8
7
|
} | null;
|
|
@@ -10,30 +9,28 @@ declare function dimension(value: string): {
|
|
|
10
9
|
* A CSS number in pixels: unitless, `px`, or `rem`. Null for `auto`, for units that depend on
|
|
11
10
|
* what the value applies to (`%`, `em`, `vh`), and for anything that is not a number.
|
|
12
11
|
*/
|
|
13
|
-
declare function parseCSSNumber(value: string | undefined): number | null;
|
|
12
|
+
export declare function parseCSSNumber(value: string | undefined): number | null;
|
|
14
13
|
/** A CSS color that paints something, as components in `profile`; null for an invalid or transparent one. */
|
|
15
|
-
declare function parseCSSColor(value: string | undefined, profile?: ColorProfile): Color | null;
|
|
14
|
+
export declare function parseCSSColor(value: string | undefined, profile?: ColorProfile): Color | null;
|
|
16
15
|
/** The layers of a comma-separated CSS list as text, each its parts joined by single spaces. */
|
|
17
|
-
declare function splitCSSLayers(value: string): string[];
|
|
16
|
+
export declare function splitCSSLayers(value: string): string[];
|
|
18
17
|
/** The space-separated parts of a CSS value, keeping functions such as `rgb(0, 0, 0)` whole. */
|
|
19
|
-
declare function splitCSSValue(value: string): string[];
|
|
18
|
+
export declare function splitCSSValue(value: string): string[];
|
|
20
19
|
/**
|
|
21
20
|
* The id of the element a reference points to in its own document, as `href="#mark"` and
|
|
22
21
|
* `url(#clip)` point, decoded; null for a reference to another file or without a fragment.
|
|
23
22
|
*/
|
|
24
|
-
declare function parseFragmentReference(reference: string | null | undefined): string | null;
|
|
23
|
+
export declare function parseFragmentReference(reference: string | null | undefined): string | null;
|
|
25
24
|
/** What each `url()` in a CSS value points at, quoted or not, such as an image's data URL. */
|
|
26
|
-
declare function parseCSSURLs(value: string | undefined): string[];
|
|
25
|
+
export declare function parseCSSURLs(value: string | undefined): string[];
|
|
27
26
|
/**
|
|
28
27
|
* What a paint written as `url(#id) fallback` falls back to when its reference cannot be used:
|
|
29
28
|
* the value without its `url()`, or undefined when nothing follows it, which paints nothing.
|
|
30
29
|
*/
|
|
31
|
-
declare function parsePaintFallback(value: string): string | undefined;
|
|
30
|
+
export declare function parsePaintFallback(value: string): string | undefined;
|
|
32
31
|
/**
|
|
33
32
|
* The ids a CSS value points at with local `url(#id)` references, as `clip-path`, `mask`,
|
|
34
33
|
* `filter`, and SVG paints do, quoted or not.
|
|
35
34
|
*/
|
|
36
|
-
declare function parseCSSURLReferences(value: string | undefined): string[];
|
|
37
|
-
//#endregion
|
|
38
|
-
export { dimension, parseCSSColor, parseCSSNumber, parseCSSURLReferences, parseCSSURLs, parseFragmentReference, parsePaintFallback, splitCSSLayers, splitCSSValue };
|
|
35
|
+
export declare function parseCSSURLReferences(value: string | undefined): string[];
|
|
39
36
|
//# sourceMappingURL=values.d.ts.map
|
package/dist/css/values.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"values.d.ts","names":[],"sources":["../../src/css/values.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"values.d.ts","names":[],"sources":["../../src/css/values.ts"],"mappings":";;;wBASgB,UAAU;EAAkB;EAAgB;;;;;;wBAc5C,eAAe;;wBAkBf,cACd,2BACA,UAAS,eACR;;wBA0Ba,eAAe;;wBAOf,cAAc;;;;;wBAUd,uBAAuB;;wBAQvB,aAAa;;;;;wBAgBb,mBAAmB;;;;;wBAenB,sBAAsB"}
|
package/dist/css/values.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { tryParseColor } from "../color/management.js";
|
|
2
1
|
import { compact } from "es-toolkit";
|
|
3
2
|
import valueParser from "postcss-value-parser";
|
|
4
3
|
import { decode, parsePath } from "ufo";
|
|
5
|
-
|
|
4
|
+
import { tryParseColor } from "../color/management.js";
|
|
5
|
+
// src/css/values.ts
|
|
6
6
|
/** A CSS dimension's number and lowercase unit, or null. */
|
|
7
7
|
function dimension(value) {
|
|
8
8
|
const parsed = valueParser.unit(value);
|
|
@@ -96,7 +96,6 @@ function parsePaintFallback(value) {
|
|
|
96
96
|
function parseCSSURLReferences(value) {
|
|
97
97
|
return compact(parseCSSURLs(value).map(parseFragmentReference));
|
|
98
98
|
}
|
|
99
|
-
//#endregion
|
|
100
99
|
export { cssLayerNodes, dimension, parseCSSColor, parseCSSNumber, parseCSSURLReferences, parseCSSURLs, parseFragmentReference, parsePaintFallback, splitCSSLayers, splitCSSValue };
|
|
101
100
|
|
|
102
101
|
//# sourceMappingURL=values.js.map
|
package/dist/cubic.d.ts
CHANGED
|
@@ -1,7 +1,13 @@
|
|
|
1
|
-
import { Vector } from "./primitives/index.js";
|
|
2
|
-
|
|
1
|
+
import { Rect, Vector } from "./primitives/index.js";
|
|
2
|
+
import { VectorNetwork } from "./types.js";
|
|
3
3
|
/** The point at `t` along the cubic from `p0` to `p3` with control points `p1` and `p2`. */
|
|
4
|
-
declare function cubicPoint(p0: Vector, p1: Vector, p2: Vector, p3: Vector, t: number): Vector;
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
export declare function cubicPoint(p0: Vector, p1: Vector, p2: Vector, p3: Vector, t: number): Vector;
|
|
5
|
+
/**
|
|
6
|
+
* Where a cubic's coordinate along one axis turns, as curve parameters strictly inside 0 to 1:
|
|
7
|
+
* the roots of its derivative, a·t² + b·t + c with a = -p0 + 3p1 - 3p2 + p3, b = 2(p0 - 2p1 + p2)
|
|
8
|
+
* and c = p1 - p0.
|
|
9
|
+
*/
|
|
10
|
+
export declare function cubicExtrema(p0: number, p1: number, p2: number, p3: number): number[];
|
|
11
|
+
/** The tight box around a vector network: its vertices and how far its curves reach between them. */
|
|
12
|
+
export declare function computeAccurateBounds(network: VectorNetwork): Rect;
|
|
7
13
|
//# sourceMappingURL=cubic.d.ts.map
|
package/dist/cubic.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cubic.d.ts","names":[],"sources":["../src/cubic.ts"],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"cubic.d.ts","names":[],"sources":["../src/cubic.ts"],"mappings":";;;wBAIgB,WAAW,IAAI,QAAQ,IAAI,QAAQ,IAAI,QAAQ,IAAI,QAAQ,YAAY;;;;;;wBAiBvE,aAAa,YAAY,YAAY,YAAY;;wBAwBjD,sBAAsB,SAAS,gBAAgB"}
|
package/dist/cubic.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/cubic.ts
|
|
2
2
|
/** The point at `t` along the cubic from `p0` to `p3` with control points `p1` and `p2`. */
|
|
3
3
|
function cubicPoint(p0, p1, p2, p3, t) {
|
|
4
4
|
const u = 1 - t;
|
|
@@ -11,7 +11,75 @@ function cubicPoint(p0, p1, p2, p3, t) {
|
|
|
11
11
|
y: a * p0.y + b * p1.y + c * p2.y + d * p3.y
|
|
12
12
|
};
|
|
13
13
|
}
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
/**
|
|
15
|
+
* Where a cubic's coordinate along one axis turns, as curve parameters strictly inside 0 to 1:
|
|
16
|
+
* the roots of its derivative, a·t² + b·t + c with a = -p0 + 3p1 - 3p2 + p3, b = 2(p0 - 2p1 + p2)
|
|
17
|
+
* and c = p1 - p0.
|
|
18
|
+
*/
|
|
19
|
+
function cubicExtrema(p0, p1, p2, p3) {
|
|
20
|
+
const a = -p0 + 3 * p1 - 3 * p2 + p3;
|
|
21
|
+
const b = 2 * (p0 - 2 * p1 + p2);
|
|
22
|
+
const c = -p0 + p1;
|
|
23
|
+
const EPS = 1e-12;
|
|
24
|
+
const results = [];
|
|
25
|
+
if (Math.abs(a) < EPS) {
|
|
26
|
+
if (Math.abs(b) > EPS) {
|
|
27
|
+
const t = -c / b;
|
|
28
|
+
if (t > 0 && t < 1) results.push(t);
|
|
29
|
+
}
|
|
30
|
+
return results;
|
|
31
|
+
}
|
|
32
|
+
const disc = b * b - 4 * a * c;
|
|
33
|
+
if (disc < 0) return results;
|
|
34
|
+
const sq = Math.sqrt(disc);
|
|
35
|
+
const t1 = (-b + sq) / (2 * a);
|
|
36
|
+
const t2 = (-b - sq) / (2 * a);
|
|
37
|
+
if (t1 > 0 && t1 < 1) results.push(t1);
|
|
38
|
+
if (t2 > 0 && t2 < 1 && Math.abs(t2 - t1) > EPS) results.push(t2);
|
|
39
|
+
return results;
|
|
40
|
+
}
|
|
41
|
+
/** The tight box around a vector network: its vertices and how far its curves reach between them. */
|
|
42
|
+
function computeAccurateBounds(network) {
|
|
43
|
+
const { vertices, segments } = network;
|
|
44
|
+
if (vertices.length === 0) return {
|
|
45
|
+
x: 0,
|
|
46
|
+
y: 0,
|
|
47
|
+
width: 0,
|
|
48
|
+
height: 0
|
|
49
|
+
};
|
|
50
|
+
let [minX, minY, maxX, maxY] = [
|
|
51
|
+
1e400,
|
|
52
|
+
1e400,
|
|
53
|
+
-1e400,
|
|
54
|
+
-1e400
|
|
55
|
+
];
|
|
56
|
+
const include = ({ x, y }) => {
|
|
57
|
+
minX = Math.min(minX, x);
|
|
58
|
+
minY = Math.min(minY, y);
|
|
59
|
+
maxX = Math.max(maxX, x);
|
|
60
|
+
maxY = Math.max(maxY, y);
|
|
61
|
+
};
|
|
62
|
+
for (const vertex of vertices) include(vertex);
|
|
63
|
+
for (const segment of segments) {
|
|
64
|
+
const p0 = vertices[segment.start];
|
|
65
|
+
const p3 = vertices[segment.end];
|
|
66
|
+
const p1 = {
|
|
67
|
+
x: p0.x + segment.tangentStart.x,
|
|
68
|
+
y: p0.y + segment.tangentStart.y
|
|
69
|
+
};
|
|
70
|
+
const p2 = {
|
|
71
|
+
x: p3.x + segment.tangentEnd.x,
|
|
72
|
+
y: p3.y + segment.tangentEnd.y
|
|
73
|
+
};
|
|
74
|
+
for (const t of [...cubicExtrema(p0.x, p1.x, p2.x, p3.x), ...cubicExtrema(p0.y, p1.y, p2.y, p3.y)]) include(cubicPoint(p0, p1, p2, p3, t));
|
|
75
|
+
}
|
|
76
|
+
return {
|
|
77
|
+
x: minX,
|
|
78
|
+
y: minY,
|
|
79
|
+
width: maxX - minX,
|
|
80
|
+
height: maxY - minY
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
export { computeAccurateBounds, cubicExtrema, cubicPoint };
|
|
16
84
|
|
|
17
85
|
//# sourceMappingURL=cubic.js.map
|
package/dist/cubic.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cubic.js","names":[],"sources":["../src/cubic.ts"],"sourcesContent":["import type { Vector } from './primitives'\n\n/** The point at `t` along the cubic from `p0` to `p3` with control points `p1` and `p2`. */\nexport function cubicPoint(p0: Vector, p1: Vector, p2: Vector, p3: Vector, t: number): Vector {\n const u = 1 - t\n const a = u * u * u\n const b = 3 * u * u * t\n const c = 3 * u * t * t\n const d = t * t * t\n return {\n x: a * p0.x + b * p1.x + c * p2.x + d * p3.x,\n y: a * p0.y + b * p1.y + c * p2.y + d * p3.y\n }\n}\n"],"mappings":";;
|
|
1
|
+
{"version":3,"file":"cubic.js","names":[],"sources":["../src/cubic.ts"],"sourcesContent":["import type { Rect, Vector } from './primitives'\nimport type { VectorNetwork } from './types'\n\n/** The point at `t` along the cubic from `p0` to `p3` with control points `p1` and `p2`. */\nexport function cubicPoint(p0: Vector, p1: Vector, p2: Vector, p3: Vector, t: number): Vector {\n const u = 1 - t\n const a = u * u * u\n const b = 3 * u * u * t\n const c = 3 * u * t * t\n const d = t * t * t\n return {\n x: a * p0.x + b * p1.x + c * p2.x + d * p3.x,\n y: a * p0.y + b * p1.y + c * p2.y + d * p3.y\n }\n}\n\n/**\n * Where a cubic's coordinate along one axis turns, as curve parameters strictly inside 0 to 1:\n * the roots of its derivative, a·t² + b·t + c with a = -p0 + 3p1 - 3p2 + p3, b = 2(p0 - 2p1 + p2)\n * and c = p1 - p0.\n */\nexport function cubicExtrema(p0: number, p1: number, p2: number, p3: number): number[] {\n const a = -p0 + 3 * p1 - 3 * p2 + p3\n const b = 2 * (p0 - 2 * p1 + p2)\n const c = -p0 + p1\n const EPS = 1e-12\n const results: number[] = []\n if (Math.abs(a) < EPS) {\n if (Math.abs(b) > EPS) {\n const t = -c / b\n if (t > 0 && t < 1) results.push(t)\n }\n return results\n }\n const disc = b * b - 4 * a * c\n if (disc < 0) return results\n const sq = Math.sqrt(disc)\n const t1 = (-b + sq) / (2 * a)\n const t2 = (-b - sq) / (2 * a)\n if (t1 > 0 && t1 < 1) results.push(t1)\n if (t2 > 0 && t2 < 1 && Math.abs(t2 - t1) > EPS) results.push(t2)\n return results\n}\n\n/** The tight box around a vector network: its vertices and how far its curves reach between them. */\nexport function computeAccurateBounds(network: VectorNetwork): Rect {\n const { vertices, segments } = network\n if (vertices.length === 0) return { x: 0, y: 0, width: 0, height: 0 }\n let [minX, minY, maxX, maxY] = [Infinity, Infinity, -Infinity, -Infinity]\n const include = ({ x, y }: Vector) => {\n minX = Math.min(minX, x)\n minY = Math.min(minY, y)\n maxX = Math.max(maxX, x)\n maxY = Math.max(maxY, y)\n }\n for (const vertex of vertices) include(vertex)\n for (const segment of segments) {\n const p0 = vertices[segment.start]\n const p3 = vertices[segment.end]\n const p1 = { x: p0.x + segment.tangentStart.x, y: p0.y + segment.tangentStart.y }\n const p2 = { x: p3.x + segment.tangentEnd.x, y: p3.y + segment.tangentEnd.y }\n for (const t of [\n ...cubicExtrema(p0.x, p1.x, p2.x, p3.x),\n ...cubicExtrema(p0.y, p1.y, p2.y, p3.y)\n ]) {\n include(cubicPoint(p0, p1, p2, p3, t))\n }\n }\n return { x: minX, y: minY, width: maxX - minX, height: maxY - minY }\n}\n"],"mappings":";;AAIA,SAAgB,WAAW,IAAY,IAAY,IAAY,IAAY,GAAmB;CAC5F,MAAM,IAAI,IAAI;CACd,MAAM,IAAI,IAAI,IAAI;CAClB,MAAM,IAAI,IAAI,IAAI,IAAI;CACtB,MAAM,IAAI,IAAI,IAAI,IAAI;CACtB,MAAM,IAAI,IAAI,IAAI;CAClB,OAAO;EACL,GAAG,IAAI,GAAG,IAAI,IAAI,GAAG,IAAI,IAAI,GAAG,IAAI,IAAI,GAAG;EAC3C,GAAG,IAAI,GAAG,IAAI,IAAI,GAAG,IAAI,IAAI,GAAG,IAAI,IAAI,GAAG;CAC7C;AACF;;;;;;AAOA,SAAgB,aAAa,IAAY,IAAY,IAAY,IAAsB;CACrF,MAAM,IAAI,CAAC,KAAK,IAAI,KAAK,IAAI,KAAK;CAClC,MAAM,IAAI,KAAK,KAAK,IAAI,KAAK;CAC7B,MAAM,IAAI,CAAC,KAAK;CAChB,MAAM,MAAM;CACZ,MAAM,UAAoB,CAAC;CAC3B,IAAI,KAAK,IAAI,CAAC,IAAI,KAAK;EACrB,IAAI,KAAK,IAAI,CAAC,IAAI,KAAK;GACrB,MAAM,IAAI,CAAC,IAAI;GACf,IAAI,IAAI,KAAK,IAAI,GAAG,QAAQ,KAAK,CAAC;EACpC;EACA,OAAO;CACT;CACA,MAAM,OAAO,IAAI,IAAI,IAAI,IAAI;CAC7B,IAAI,OAAO,GAAG,OAAO;CACrB,MAAM,KAAK,KAAK,KAAK,IAAI;CACzB,MAAM,MAAM,CAAC,IAAI,OAAO,IAAI;CAC5B,MAAM,MAAM,CAAC,IAAI,OAAO,IAAI;CAC5B,IAAI,KAAK,KAAK,KAAK,GAAG,QAAQ,KAAK,EAAE;CACrC,IAAI,KAAK,KAAK,KAAK,KAAK,KAAK,IAAI,KAAK,EAAE,IAAI,KAAK,QAAQ,KAAK,EAAE;CAChE,OAAO;AACT;;AAGA,SAAgB,sBAAsB,SAA8B;CAClE,MAAM,EAAE,UAAU,aAAa;CAC/B,IAAI,SAAS,WAAW,GAAG,OAAO;EAAE,GAAG;EAAG,GAAG;EAAG,OAAO;EAAG,QAAQ;CAAE;CACpE,IAAI,CAAC,MAAM,MAAM,MAAM,QAAQ;EAAC;EAAU;EAAU;EAAW;CAAS;CACxE,MAAM,WAAW,EAAE,GAAG,QAAgB;EACpC,OAAO,KAAK,IAAI,MAAM,CAAC;EACvB,OAAO,KAAK,IAAI,MAAM,CAAC;EACvB,OAAO,KAAK,IAAI,MAAM,CAAC;EACvB,OAAO,KAAK,IAAI,MAAM,CAAC;CACzB;CACA,KAAK,MAAM,UAAU,UAAU,QAAQ,MAAM;CAC7C,KAAK,MAAM,WAAW,UAAU;EAC9B,MAAM,KAAK,SAAS,QAAQ;EAC5B,MAAM,KAAK,SAAS,QAAQ;EAC5B,MAAM,KAAK;GAAE,GAAG,GAAG,IAAI,QAAQ,aAAa;GAAG,GAAG,GAAG,IAAI,QAAQ,aAAa;EAAE;EAChF,MAAM,KAAK;GAAE,GAAG,GAAG,IAAI,QAAQ,WAAW;GAAG,GAAG,GAAG,IAAI,QAAQ,WAAW;EAAE;EAC5E,KAAK,MAAM,KAAK,CACd,GAAG,aAAa,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,CAAC,GACtC,GAAG,aAAa,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,CAAC,CACxC,GACE,QAAQ,WAAW,IAAI,IAAI,IAAI,IAAI,CAAC,CAAC;CAEzC;CACA,OAAO;EAAE,GAAG;EAAM,GAAG;EAAM,OAAO,OAAO;EAAM,QAAQ,OAAO;CAAK;AACrE"}
|
package/dist/events.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/events.ts
|
|
2
2
|
function bindNodeEvents(emitter, handlers) {
|
|
3
3
|
const unbinds = [
|
|
4
4
|
handlers.created ? emitter.on("node:created", handlers.created) : null,
|
|
@@ -12,7 +12,6 @@ function bindNodeEvents(emitter, handlers) {
|
|
|
12
12
|
for (const unbind of unbinds) unbind();
|
|
13
13
|
};
|
|
14
14
|
}
|
|
15
|
-
//#endregion
|
|
16
15
|
export { bindNodeEvents };
|
|
17
16
|
|
|
18
17
|
//# sourceMappingURL=events.js.map
|
package/dist/export-format.d.ts
CHANGED
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import { ExportSetting } from "./types.js";
|
|
2
|
-
//#region src/export-format.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* Formats a node's export settings may persist. Each id must name a Core IO
|
|
5
4
|
* export adapter that supports node export; labels and options come from that
|
|
6
5
|
* adapter, so this list only decides what the Export panel offers.
|
|
7
6
|
*/
|
|
8
|
-
declare const EXPORT_FORMAT_IDS: readonly ["png", "jpg", "webp", "svg", "pdf", "pptx", "drawio"];
|
|
9
|
-
type ExportFormatId = (typeof EXPORT_FORMAT_IDS)[number];
|
|
10
|
-
declare function isExportFormatId(value: unknown): value is ExportFormatId;
|
|
7
|
+
export declare const EXPORT_FORMAT_IDS: readonly ["png", "jpg", "webp", "svg", "pdf", "pptx", "drawio", "md", "spec"];
|
|
8
|
+
export type ExportFormatId = (typeof EXPORT_FORMAT_IDS)[number];
|
|
9
|
+
export declare function isExportFormatId(value: unknown): value is ExportFormatId;
|
|
11
10
|
/** What each of Figma's export options reads as when an export leaves it out. */
|
|
12
|
-
declare const EXPORT_OPTION_DEFAULTS: {
|
|
11
|
+
export declare const EXPORT_OPTION_DEFAULTS: {
|
|
13
12
|
readonly suffix: "";
|
|
14
13
|
readonly contentsOnly: true;
|
|
15
14
|
readonly useAbsoluteBounds: false;
|
|
@@ -19,7 +18,5 @@ declare const EXPORT_OPTION_DEFAULTS: {
|
|
|
19
18
|
readonly svgSimplifyStroke: true;
|
|
20
19
|
};
|
|
21
20
|
/** An export as the model keeps it: options that are unset or at Figma's default left out. */
|
|
22
|
-
declare function compactExportSetting({ scale, format, size, ...options }: ExportSetting): ExportSetting;
|
|
23
|
-
//#endregion
|
|
24
|
-
export { EXPORT_FORMAT_IDS, EXPORT_OPTION_DEFAULTS, ExportFormatId, compactExportSetting, isExportFormatId };
|
|
21
|
+
export declare function compactExportSetting({ scale, format, size, ...options }: ExportSetting): ExportSetting;
|
|
25
22
|
//# sourceMappingURL=export-format.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"export-format.d.ts","names":[],"sources":["../src/export-format.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"export-format.d.ts","names":[],"sources":["../src/export-format.ts"],"mappings":";;;;;;qBASa;YAYD,yBAAyB;wBAErB,iBAAiB,iBAAiB,SAAS;;qBAK9C;;;;;;;;;;wBAWG,uBACd,OACA,QACA,SACG,WACF,gBAAgB"}
|
package/dist/export-format.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { omitBy } from "es-toolkit/object";
|
|
2
|
-
|
|
2
|
+
// src/export-format.ts
|
|
3
3
|
/**
|
|
4
4
|
* Formats a node's export settings may persist. Each id must name a Core IO
|
|
5
5
|
* export adapter that supports node export; labels and options come from that
|
|
@@ -12,7 +12,9 @@ const EXPORT_FORMAT_IDS = [
|
|
|
12
12
|
"svg",
|
|
13
13
|
"pdf",
|
|
14
14
|
"pptx",
|
|
15
|
-
"drawio"
|
|
15
|
+
"drawio",
|
|
16
|
+
"md",
|
|
17
|
+
"spec"
|
|
16
18
|
];
|
|
17
19
|
function isExportFormatId(value) {
|
|
18
20
|
return EXPORT_FORMAT_IDS.some((id) => id === value);
|
|
@@ -41,7 +43,6 @@ function compactExportSetting({ scale, format, size, ...options }) {
|
|
|
41
43
|
...changed
|
|
42
44
|
};
|
|
43
45
|
}
|
|
44
|
-
//#endregion
|
|
45
46
|
export { EXPORT_FORMAT_IDS, EXPORT_OPTION_DEFAULTS, compactExportSetting, isExportFormatId };
|
|
46
47
|
|
|
47
48
|
//# sourceMappingURL=export-format.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"export-format.js","names":[],"sources":["../src/export-format.ts"],"sourcesContent":["import { omitBy } from 'es-toolkit/object'\n\nimport type { ExportSetting } from './types'\n\n/**\n * Formats a node's export settings may persist. Each id must name a Core IO\n * export adapter that supports node export; labels and options come from that\n * adapter, so this list only decides what the Export panel offers.\n */\nexport const EXPORT_FORMAT_IDS = ['png'
|
|
1
|
+
{"version":3,"file":"export-format.js","names":[],"sources":["../src/export-format.ts"],"sourcesContent":["import { omitBy } from 'es-toolkit/object'\n\nimport type { ExportSetting } from './types'\n\n/**\n * Formats a node's export settings may persist. Each id must name a Core IO\n * export adapter that supports node export; labels and options come from that\n * adapter, so this list only decides what the Export panel offers.\n */\nexport const EXPORT_FORMAT_IDS = [\n 'png',\n 'jpg',\n 'webp',\n 'svg',\n 'pdf',\n 'pptx',\n 'drawio',\n 'md',\n 'spec'\n] as const\n\nexport type ExportFormatId = (typeof EXPORT_FORMAT_IDS)[number]\n\nexport function isExportFormatId(value: unknown): value is ExportFormatId {\n return EXPORT_FORMAT_IDS.some((id) => id === value)\n}\n\n/** What each of Figma's export options reads as when an export leaves it out. */\nexport const EXPORT_OPTION_DEFAULTS = {\n suffix: '',\n contentsOnly: true,\n useAbsoluteBounds: false,\n colorProfile: 'DOCUMENT',\n svgOutlineText: true,\n svgIdAttribute: false,\n svgSimplifyStroke: true\n} as const satisfies Required<Omit<ExportSetting, 'scale' | 'format' | 'size'>>\n\n/** An export as the model keeps it: options that are unset or at Figma's default left out. */\nexport function compactExportSetting({\n scale,\n format,\n size,\n ...options\n}: ExportSetting): ExportSetting {\n const changed = omitBy(\n options,\n (value, key) => value === undefined || value === EXPORT_OPTION_DEFAULTS[key]\n )\n return size ? { scale, format, size, ...changed } : { scale, format, ...changed }\n}\n"],"mappings":";;;;;;;AASA,MAAa,oBAAoB;CAC/B;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACF;AAIA,SAAgB,iBAAiB,OAAyC;CACxE,OAAO,kBAAkB,MAAM,OAAO,OAAO,KAAK;AACpD;;AAGA,MAAa,yBAAyB;CACpC,QAAQ;CACR,cAAc;CACd,mBAAmB;CACnB,cAAc;CACd,gBAAgB;CAChB,gBAAgB;CAChB,mBAAmB;AACrB;;AAGA,SAAgB,qBAAqB,EACnC,OACA,QACA,MACA,GAAG,WAC4B;CAC/B,MAAM,UAAU,OACd,UACC,OAAO,QAAQ,UAAU,KAAA,KAAa,UAAU,uBAAuB,IAC1E;CACA,OAAO,OAAO;EAAE;EAAO;EAAQ;EAAM,GAAG;CAAQ,IAAI;EAAE;EAAO;EAAQ,GAAG;CAAQ;AAClF"}
|
package/dist/export-scale.d.ts
CHANGED
|
@@ -1,14 +1,11 @@
|
|
|
1
|
-
//#region src/export-scale.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* Bounds for export scale multipliers. A huge multiplier would allocate an
|
|
4
3
|
* enormous canvas and crash the renderer, so clamp at every boundary the value
|
|
5
4
|
* can enter from: the UI (edits) and the file format (imported/plugin .fig data).
|
|
6
5
|
*/
|
|
7
|
-
declare const MIN_EXPORT_SCALE = 0.01;
|
|
8
|
-
declare const MAX_EXPORT_SCALE = 1024;
|
|
9
|
-
declare function clampExportScale(scale: number): number;
|
|
6
|
+
export declare const MIN_EXPORT_SCALE = 0.01;
|
|
7
|
+
export declare const MAX_EXPORT_SCALE = 1024;
|
|
8
|
+
export declare function clampExportScale(scale: number): number;
|
|
10
9
|
/** Accept a scale only if it is finite and within bounds (no silent clamping). */
|
|
11
|
-
declare function isValidExportScale(scale: number): boolean;
|
|
12
|
-
//#endregion
|
|
13
|
-
export { MAX_EXPORT_SCALE, MIN_EXPORT_SCALE, clampExportScale, isValidExportScale };
|
|
10
|
+
export declare function isValidExportScale(scale: number): boolean;
|
|
14
11
|
//# sourceMappingURL=export-scale.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"export-scale.d.ts","names":[],"sources":["../src/export-scale.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"export-scale.d.ts","names":[],"sources":["../src/export-scale.ts"],"mappings":";;;;;qBAKa;qBACA;wBAEG,iBAAiB;;wBAKjB,mBAAmB"}
|
package/dist/export-scale.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/export-scale.ts
|
|
2
2
|
/**
|
|
3
3
|
* Bounds for export scale multipliers. A huge multiplier would allocate an
|
|
4
4
|
* enormous canvas and crash the renderer, so clamp at every boundary the value
|
|
@@ -13,7 +13,6 @@ function clampExportScale(scale) {
|
|
|
13
13
|
function isValidExportScale(scale) {
|
|
14
14
|
return Number.isFinite(scale) && scale >= .01 && scale <= 1024;
|
|
15
15
|
}
|
|
16
|
-
//#endregion
|
|
17
16
|
export { MAX_EXPORT_SCALE, MIN_EXPORT_SCALE, clampExportScale, isValidExportScale };
|
|
18
17
|
|
|
19
18
|
//# sourceMappingURL=export-scale.js.map
|
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
//#region src/fields/appearance.d.ts
|
|
2
1
|
/** What a layer is painted with, and how it blends. */
|
|
3
|
-
declare const PAINT_FIELDS: readonly ["fills", "strokes", "effects", "opacity", "blendMode"];
|
|
2
|
+
export declare const PAINT_FIELDS: readonly ["fills", "strokes", "effects", "opacity", "blendMode"];
|
|
4
3
|
/** How strokes are drawn, beside their paints. */
|
|
5
|
-
declare const STROKE_FIELDS: readonly ["strokeWeight", "strokeAlign", "strokeCap", "strokeJoin", "strokeMiterLimit", "dashPattern", "independentStrokeWeights", "borderTopWeight", "borderRightWeight", "borderBottomWeight", "borderLeftWeight"];
|
|
6
|
-
declare const CORNER_FIELDS: readonly ["cornerRadius", "topLeftRadius", "topRightRadius", "bottomRightRadius", "bottomLeftRadius", "independentCorners", "cornerSmoothing"];
|
|
7
|
-
//#endregion
|
|
8
|
-
export { CORNER_FIELDS, PAINT_FIELDS, STROKE_FIELDS };
|
|
4
|
+
export declare const STROKE_FIELDS: readonly ["strokeWeight", "strokeAlign", "strokeCap", "strokeJoin", "strokeMiterLimit", "dashPattern", "independentStrokeWeights", "borderTopWeight", "borderRightWeight", "borderBottomWeight", "borderLeftWeight"];
|
|
5
|
+
export declare const CORNER_FIELDS: readonly ["cornerRadius", "topLeftRadius", "topRightRadius", "bottomRightRadius", "bottomLeftRadius", "independentCorners", "cornerSmoothing"];
|
|
9
6
|
//# sourceMappingURL=appearance.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"appearance.d.ts","names":[],"sources":["../../src/fields/appearance.ts"],"mappings":";;
|
|
1
|
+
{"version":3,"file":"appearance.d.ts","names":[],"sources":["../../src/fields/appearance.ts"],"mappings":";qBAGa;;qBASA;qBAcA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/fields/appearance.ts
|
|
2
2
|
/** What a layer is painted with, and how it blends. */
|
|
3
3
|
const PAINT_FIELDS = [
|
|
4
4
|
"fills",
|
|
@@ -30,7 +30,6 @@ const CORNER_FIELDS = [
|
|
|
30
30
|
"independentCorners",
|
|
31
31
|
"cornerSmoothing"
|
|
32
32
|
];
|
|
33
|
-
//#endregion
|
|
34
33
|
export { CORNER_FIELDS, PAINT_FIELDS, STROKE_FIELDS };
|
|
35
34
|
|
|
36
35
|
//# sourceMappingURL=appearance.js.map
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
//#region src/fields/geometry.d.ts
|
|
2
1
|
/** Placement/orientation only; dimensions are a separate geometry contract. */
|
|
3
|
-
declare const TRANSFORM_FIELDS: readonly ["x", "y", "rotation", "flipX", "flipY"];
|
|
4
|
-
declare const SIZE_FIELDS: readonly ["width", "height"];
|
|
5
|
-
//#endregion
|
|
6
|
-
export { SIZE_FIELDS, TRANSFORM_FIELDS };
|
|
2
|
+
export declare const TRANSFORM_FIELDS: readonly ["x", "y", "rotation", "flipX", "flipY"];
|
|
3
|
+
export declare const SIZE_FIELDS: readonly ["width", "height"];
|
|
7
4
|
//# sourceMappingURL=geometry.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"geometry.d.ts","names":[],"sources":["../../src/fields/geometry.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"geometry.d.ts","names":[],"sources":["../../src/fields/geometry.ts"],"mappings":";qBAGa;qBAOA"}
|
package/dist/fields/geometry.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/fields/geometry.ts
|
|
2
2
|
/** Placement/orientation only; dimensions are a separate geometry contract. */
|
|
3
3
|
const TRANSFORM_FIELDS = [
|
|
4
4
|
"x",
|
|
@@ -8,7 +8,6 @@ const TRANSFORM_FIELDS = [
|
|
|
8
8
|
"flipY"
|
|
9
9
|
];
|
|
10
10
|
const SIZE_FIELDS = ["width", "height"];
|
|
11
|
-
//#endregion
|
|
12
11
|
export { SIZE_FIELDS, TRANSFORM_FIELDS };
|
|
13
12
|
|
|
14
13
|
//# sourceMappingURL=geometry.js.map
|
package/dist/fields/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { CORNER_FIELDS, PAINT_FIELDS, STROKE_FIELDS } from "./appearance.js";
|
|
1
2
|
import { SIZE_FIELDS, TRANSFORM_FIELDS } from "./geometry.js";
|
|
2
3
|
import { AUTO_LAYOUT_FIELDS, LAYOUT_AFFECTING_KEYS, LAYOUT_NEUTRAL_FIELDS, SIZE_CONSTRAINT_FIELDS } from "./layout.js";
|
|
3
4
|
import { TEXT_DECORATION_FIELDS, TEXT_LAYOUT_FIELDS, TEXT_METRIC_FIELDS, TEXT_SHAPING_FIELDS, TEXT_STYLE_FIELDS } from "./text.js";
|
|
4
|
-
import { CORNER_FIELDS, PAINT_FIELDS, STROKE_FIELDS } from "./appearance.js";
|
|
5
5
|
export { AUTO_LAYOUT_FIELDS, CORNER_FIELDS, LAYOUT_AFFECTING_KEYS, LAYOUT_NEUTRAL_FIELDS, PAINT_FIELDS, SIZE_CONSTRAINT_FIELDS, SIZE_FIELDS, STROKE_FIELDS, TEXT_DECORATION_FIELDS, TEXT_LAYOUT_FIELDS, TEXT_METRIC_FIELDS, TEXT_SHAPING_FIELDS, TEXT_STYLE_FIELDS, TRANSFORM_FIELDS };
|