@motionscript/core 0.1.0-alpha.8 → 0.1.0-alpha.9
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/CHANGELOG.md +6 -0
- package/LICENSE +201 -201
- package/NOTICE +49 -49
- package/README.md +91 -91
- package/dist/assets/asset-index.js.map +1 -1
- package/dist/assets/catalog.js.map +1 -1
- package/dist/assets/errors.js.map +1 -1
- package/dist/assets/index.js.map +1 -1
- package/dist/assets/manager.js.map +1 -1
- package/dist/assets/manifest.js.map +1 -1
- package/dist/assets/record.js.map +1 -1
- package/dist/assets/scope.js.map +1 -1
- package/dist/attributes/audio/effects/chain.js.map +1 -1
- package/dist/attributes/audio/effects/implementations/echo.js.map +1 -1
- package/dist/attributes/audio/effects/implementations/gain.js.map +1 -1
- package/dist/attributes/audio/effects/implementations/highpass.js.map +1 -1
- package/dist/attributes/audio/effects/implementations/lowpass.js.map +1 -1
- package/dist/attributes/audio/effects/implementations/tremolo.js.map +1 -1
- package/dist/attributes/audio/effects/index.js.map +1 -1
- package/dist/attributes/audio/effects/registry.js.map +1 -1
- package/dist/attributes/audio/effects/union.js.map +1 -1
- package/dist/attributes/audio/ramp.js.map +1 -1
- package/dist/attributes/audio/request.js.map +1 -1
- package/dist/attributes/audio/schedule.js.map +1 -1
- package/dist/attributes/audio/sound.js.map +1 -1
- package/dist/attributes/audio/transition.js.map +1 -1
- package/dist/attributes/index.js.map +1 -1
- package/dist/attributes/layout/alignment.js.map +1 -1
- package/dist/attributes/layout/index.js.map +1 -1
- package/dist/attributes/layout/insets.js.map +1 -1
- package/dist/attributes/layout/matrix2d.js.map +1 -1
- package/dist/attributes/layout/size.js.map +1 -1
- package/dist/attributes/layout/space3d.js.map +1 -1
- package/dist/attributes/layout/transform3d.js.map +1 -1
- package/dist/attributes/layout/vector2.js.map +1 -1
- package/dist/attributes/layout/world-transform.js.map +1 -1
- package/dist/attributes/mask/boolean.js.map +1 -1
- package/dist/attributes/mask/mask.js.map +1 -1
- package/dist/attributes/properties/decorator.js.map +1 -1
- package/dist/attributes/properties/inputs.js.map +1 -1
- package/dist/attributes/properties/typed.js.map +1 -1
- package/dist/attributes/render3d/orbit.js.map +1 -1
- package/dist/attributes/shape/corners/corner-radius.js.map +1 -1
- package/dist/attributes/shape/corners/corner-style.js.map +1 -1
- package/dist/attributes/shape/corners/corners.js.map +1 -1
- package/dist/attributes/shape/corners/index.js.map +1 -1
- package/dist/attributes/shape/effects/backdrop.js.map +1 -1
- package/dist/attributes/shape/effects/chain.js.map +1 -1
- package/dist/attributes/shape/effects/effect-data.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/ascii.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/bit-crush.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/block-displace.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/bloom.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/blur.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/bulge.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/chromatic-aberration.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/color-adjustment.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/curves.d.ts +2 -2
- package/dist/attributes/shape/effects/implementations/curves.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/directional-blur.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/dither.d.ts +2 -2
- package/dist/attributes/shape/effects/implementations/dither.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/drop-shadow.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/duotone.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/edges.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/glass.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/glow.d.ts +4 -4
- package/dist/attributes/shape/effects/implementations/glow.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/grain.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/grayscale.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/halftone.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/invert.d.ts +2 -2
- package/dist/attributes/shape/effects/implementations/invert.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/kaleidoscope.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/lut.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/magnify.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/motion-blur.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/oil-paint.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/outline.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/pixelate.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/posterize.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/progressive-blur.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/radial-blur.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/rgb-shift.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/scanlines.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/scatter.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/shader.d.ts +2 -2
- package/dist/attributes/shape/effects/implementations/shader.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/sharpen.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/streak.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/threshold.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/twirl.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/vignette.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/vintage.js.map +1 -1
- package/dist/attributes/shape/effects/implementations/wave.js.map +1 -1
- package/dist/attributes/shape/effects/index.js.map +1 -1
- package/dist/attributes/shape/effects/registry.js.map +1 -1
- package/dist/attributes/shape/effects/spec.js.map +1 -1
- package/dist/attributes/shape/effects/union.js.map +1 -1
- package/dist/attributes/shape/fill/blend.js.map +1 -1
- package/dist/attributes/shape/fill/chain.js.map +1 -1
- package/dist/attributes/shape/fill/coerce.js.map +1 -1
- package/dist/attributes/shape/fill/color/constants.js.map +1 -1
- package/dist/attributes/shape/fill/color/parser.js.map +1 -1
- package/dist/attributes/shape/fill/gradient-stops.js.map +1 -1
- package/dist/attributes/shape/fill/implementations/canvas3d.js.map +1 -1
- package/dist/attributes/shape/fill/implementations/color.js.map +1 -1
- package/dist/attributes/shape/fill/implementations/conic-gradient.js.map +1 -1
- package/dist/attributes/shape/fill/implementations/dot-grid.js.map +1 -1
- package/dist/attributes/shape/fill/implementations/fractal-noise.js.map +1 -1
- package/dist/attributes/shape/fill/implementations/grid.js.map +1 -1
- package/dist/attributes/shape/fill/implementations/image.js.map +1 -1
- package/dist/attributes/shape/fill/implementations/linear-gradient.js.map +1 -1
- package/dist/attributes/shape/fill/implementations/noise.js.map +1 -1
- package/dist/attributes/shape/fill/implementations/radial-gradient.js.map +1 -1
- package/dist/attributes/shape/fill/implementations/shader.js.map +1 -1
- package/dist/attributes/shape/fill/implementations/stripe.js.map +1 -1
- package/dist/attributes/shape/fill/implementations/video.js.map +1 -1
- package/dist/attributes/shape/fill/index.js.map +1 -1
- package/dist/attributes/shape/fill/lerp.js.map +1 -1
- package/dist/attributes/shape/fill/media-preset.js.map +1 -1
- package/dist/attributes/shape/fill/registry.js.map +1 -1
- package/dist/attributes/shape/fill/union.js.map +1 -1
- package/dist/attributes/shape/filters/chain.js.map +1 -1
- package/dist/attributes/shape/filters/implementations/alpha.js.map +1 -1
- package/dist/attributes/shape/filters/implementations/blur.js.map +1 -1
- package/dist/attributes/shape/filters/implementations/color-adjustment.js.map +1 -1
- package/dist/attributes/shape/filters/implementations/color-matrix.js.map +1 -1
- package/dist/attributes/shape/filters/implementations/curves.js.map +1 -1
- package/dist/attributes/shape/filters/implementations/echo.js.map +1 -1
- package/dist/attributes/shape/filters/implementations/exposure.js.map +1 -1
- package/dist/attributes/shape/filters/implementations/grayscale.js.map +1 -1
- package/dist/attributes/shape/filters/implementations/posterize-time.js.map +1 -1
- package/dist/attributes/shape/filters/index.js.map +1 -1
- package/dist/attributes/shape/filters/registry.js.map +1 -1
- package/dist/attributes/shape/filters/union.js.map +1 -1
- package/dist/attributes/shape/path/anchors.js.map +1 -1
- package/dist/attributes/shape/path/bezier.js.map +1 -1
- package/dist/attributes/shape/path/index.js.map +1 -1
- package/dist/attributes/shape/path/measure.js.map +1 -1
- package/dist/attributes/shape/path/morph.js.map +1 -1
- package/dist/attributes/shape/path/ops.js.map +1 -1
- package/dist/attributes/shape/path/types.js.map +1 -1
- package/dist/attributes/shape/path/walk.js.map +1 -1
- package/dist/attributes/shape/shaders/index.js.map +1 -1
- package/dist/attributes/shape/shaders/language.js.map +1 -1
- package/dist/attributes/shape/shaders/pack.js.map +1 -1
- package/dist/attributes/shape/shaders/resolve.js.map +1 -1
- package/dist/attributes/shape/shadow/index.js.map +1 -1
- package/dist/attributes/shape/shadow/shadow.js.map +1 -1
- package/dist/attributes/shape/stroke/index.js.map +1 -1
- package/dist/attributes/shape/stroke/stroke.js.map +1 -1
- package/dist/attributes/shared/operators.js.map +1 -1
- package/dist/attributes/text/index.js.map +1 -1
- package/dist/attributes/text/ops.js.map +1 -1
- package/dist/attributes/text/types.js.map +1 -1
- package/dist/browser/chunks/{chunk-LKUYVFU3.js → chunk-4BDLFEOC.js} +1 -1
- package/dist/browser/chunks/chunk-4BDLFEOC.js.map +7 -0
- package/dist/browser/chunks/{chunk-GKM6UZJR.js → chunk-7DB6BI27.js} +2 -2
- package/dist/browser/chunks/chunk-7DB6BI27.js.map +7 -0
- package/dist/browser/chunks/{chunk-AOT33LMS.js → chunk-IX53IFBD.js} +2 -2
- package/dist/browser/chunks/chunk-IX53IFBD.js.map +7 -0
- package/dist/browser/chunks/{chunk-ZRPZPWZU.js → chunk-Q55UPA3E.js} +1 -1
- package/dist/browser/chunks/chunk-Q55UPA3E.js.map +7 -0
- package/dist/browser/component.js +1 -1
- package/dist/browser/experimental.js +1 -1
- package/dist/browser/experimental.js.map +1 -1
- package/dist/browser/index.js +1 -1
- package/dist/browser/index.js.map +1 -1
- package/dist/browser/sdk.js +1 -1
- package/dist/component.js.map +1 -1
- package/dist/components/builtins/audio/audio.js.map +1 -1
- package/dist/components/builtins/geometry/composite.js.map +1 -1
- package/dist/components/builtins/geometry/geometry.js.map +1 -1
- package/dist/components/builtins/geometry/shape-outline.js.map +1 -1
- package/dist/components/builtins/layout/layout.js.map +1 -1
- package/dist/components/builtins/media/media.js.map +1 -1
- package/dist/components/builtins/providers/providers.js.map +1 -1
- package/dist/components/builtins/text/number-format.js.map +1 -1
- package/dist/components/builtins/text/number-pattern.js.map +1 -1
- package/dist/components/builtins/text/text-defaults.js.map +1 -1
- package/dist/components/builtins/text/text-layout.js.map +1 -1
- package/dist/components/builtins/text/text.d.ts +9 -9
- package/dist/components/builtins/text/text.js.map +1 -1
- package/dist/components/builtins/three/canvas3d.js.map +1 -1
- package/dist/components/builtins/three/grid-geometry3d.js.map +1 -1
- package/dist/components/builtins/three/three.js.map +1 -1
- package/dist/components/factory/api.js.map +1 -1
- package/dist/components/factory/clip-of.js.map +1 -1
- package/dist/components/factory/commands-for.js.map +1 -1
- package/dist/components/factory/component-audio.js.map +1 -1
- package/dist/components/factory/component2d.js.map +1 -1
- package/dist/components/factory/component3d.js.map +1 -1
- package/dist/components/factory/factory.js.map +1 -1
- package/dist/components/factory/timeline.js.map +1 -1
- package/dist/components/factory/type-def.js.map +1 -1
- package/dist/components/factory/types.js.map +1 -1
- package/dist/components/factory/views.js.map +1 -1
- package/dist/components/modules/aim.js.map +1 -1
- package/dist/components/modules/corners.js.map +1 -1
- package/dist/components/modules/flow.js.map +1 -1
- package/dist/components/modules/material.js.map +1 -1
- package/dist/components/modules/paint.js.map +1 -1
- package/dist/components/modules/shapes.js.map +1 -1
- package/dist/components/modules/text-layout.js.map +1 -1
- package/dist/components/modules/text-style.d.ts +1 -1
- package/dist/components/modules/text-style.js.map +1 -1
- package/dist/components/modules/three-entries.js.map +1 -1
- package/dist/components/modules/view3d.js.map +1 -1
- package/dist/components/trees/2d/group-bounds.js.map +1 -1
- package/dist/components/trees/2d/node-lifecycle.js.map +1 -1
- package/dist/components/trees/2d/node-motion.js.map +1 -1
- package/dist/components/trees/2d/node-render.js.map +1 -1
- package/dist/components/trees/2d/node-space.js.map +1 -1
- package/dist/components/trees/2d/node-transform.js.map +1 -1
- package/dist/components/trees/2d/node2d.js.map +1 -1
- package/dist/components/trees/audio/index.js.map +1 -1
- package/dist/components/trees/audio/node-audio.js.map +1 -1
- package/dist/components/trees/index.js.map +1 -1
- package/dist/components/trees/node/node-editor-state.js.map +1 -1
- package/dist/components/trees/node/node-reactive.js.map +1 -1
- package/dist/components/trees/node/node-time.js.map +1 -1
- package/dist/components/trees/node/node-walk.js.map +1 -1
- package/dist/components/trees/node/node.js.map +1 -1
- package/dist/components/trees/root/canvas2d-node.js.map +1 -1
- package/dist/components/trees/three/node3d.js.map +1 -1
- package/dist/document/audio.js.map +1 -1
- package/dist/document/builtins.js.map +1 -1
- package/dist/document/command-traits.js.map +1 -1
- package/dist/document/deny-globals.js.map +1 -1
- package/dist/document/diff.js.map +1 -1
- package/dist/document/doc-index.js.map +1 -1
- package/dist/document/expression/compile.js.map +1 -1
- package/dist/document/expression/index.js.map +1 -1
- package/dist/document/expression/ops.js.map +1 -1
- package/dist/document/expression/parse.js.map +1 -1
- package/dist/document/expression/refs.js.map +1 -1
- package/dist/document/expression/types.js.map +1 -1
- package/dist/document/expression/walk.js.map +1 -1
- package/dist/document/index.js.map +1 -1
- package/dist/document/migrate.js.map +1 -1
- package/dist/document/missing-node.js.map +1 -1
- package/dist/document/node-decorator.js.map +1 -1
- package/dist/document/node-descriptor.js.map +1 -1
- package/dist/document/placement.js.map +1 -1
- package/dist/document/project.js.map +1 -1
- package/dist/document/prop-evolution.js.map +1 -1
- package/dist/document/registry.js.map +1 -1
- package/dist/document/settled-index.js.map +1 -1
- package/dist/document/timeline-patch.js.map +1 -1
- package/dist/document/timeline.js.map +1 -1
- package/dist/document/types.js.map +1 -1
- package/dist/document/validate.js.map +1 -1
- package/dist/document/vocabulary.js.map +1 -1
- package/dist/experimental.d.ts.map +1 -1
- package/dist/experimental.js.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/layout/bounds.js.map +1 -1
- package/dist/layout/constraints.js.map +1 -1
- package/dist/layout/flex.js.map +1 -1
- package/dist/layout/freeform.js.map +1 -1
- package/dist/layout/grid.js.map +1 -1
- package/dist/layout/index.js.map +1 -1
- package/dist/layout/item.js.map +1 -1
- package/dist/layout/ops.js.map +1 -1
- package/dist/layout/types.js.map +1 -1
- package/dist/platform/audio-sink.js.map +1 -1
- package/dist/platform/exporter.js.map +1 -1
- package/dist/platform/index.js.map +1 -1
- package/dist/platform/stepped-clock.js.map +1 -1
- package/dist/platform/storage-adapter.js.map +1 -1
- package/dist/platform/ticker.js.map +1 -1
- package/dist/project/config.js.map +1 -1
- package/dist/project/index.js.map +1 -1
- package/dist/project/tree.js.map +1 -1
- package/dist/props/host.js.map +1 -1
- package/dist/props/index.js.map +1 -1
- package/dist/props/observer.js.map +1 -1
- package/dist/props/slot.js.map +1 -1
- package/dist/renamed-scene-names.js.map +1 -1
- package/dist/render/canvas-render-context2d.js.map +1 -1
- package/dist/render/clip-contains.js.map +1 -1
- package/dist/render/clip.js.map +1 -1
- package/dist/render/descriptors/ellipse.js.map +1 -1
- package/dist/render/descriptors/line.js.map +1 -1
- package/dist/render/descriptors/path-builder.js.map +1 -1
- package/dist/render/descriptors/path.js.map +1 -1
- package/dist/render/descriptors/polygon.js.map +1 -1
- package/dist/render/descriptors/polygram.js.map +1 -1
- package/dist/render/descriptors/rect.js.map +1 -1
- package/dist/render/descriptors/richtext.js.map +1 -1
- package/dist/render/descriptors/shape.js.map +1 -1
- package/dist/render/descriptors/text.js.map +1 -1
- package/dist/render/descriptors/transform.js.map +1 -1
- package/dist/render/graphics2d.js.map +1 -1
- package/dist/render/index.js.map +1 -1
- package/dist/render/measure-context.js.map +1 -1
- package/dist/render/null-render-context.js.map +1 -1
- package/dist/render/render-context2d.js.map +1 -1
- package/dist/render/render-issue.js.map +1 -1
- package/dist/render/surface.js.map +1 -1
- package/dist/render/text-defaults.js.map +1 -1
- package/dist/render/text-layout.js.map +1 -1
- package/dist/render3d/bounds3d.js.map +1 -1
- package/dist/render3d/builders.js.map +1 -1
- package/dist/render3d/camera.js.map +1 -1
- package/dist/render3d/fill3d.js.map +1 -1
- package/dist/render3d/geometry.js.map +1 -1
- package/dist/render3d/graphics3d.js.map +1 -1
- package/dist/render3d/index.js.map +1 -1
- package/dist/render3d/inert.js.map +1 -1
- package/dist/render3d/light.js.map +1 -1
- package/dist/render3d/material.js.map +1 -1
- package/dist/render3d/matrix4.js.map +1 -1
- package/dist/render3d/render-context3d.js.map +1 -1
- package/dist/render3d/resources.js.map +1 -1
- package/dist/render3d/rounded-box.js.map +1 -1
- package/dist/render3d/scene-settings.js.map +1 -1
- package/dist/render3d/scene3d.js.map +1 -1
- package/dist/render3d/segments.js.map +1 -1
- package/dist/render3d/texture.js.map +1 -1
- package/dist/render3d/tracking.js.map +1 -1
- package/dist/render3d/transform.js.map +1 -1
- package/dist/render3d/vector3.js.map +1 -1
- package/dist/render3d/walk.js.map +1 -1
- package/dist/runtime/asset-refine.js.map +1 -1
- package/dist/runtime/asset-timeline.js.map +1 -1
- package/dist/runtime/asset-update.js.map +1 -1
- package/dist/runtime/audio-index.js.map +1 -1
- package/dist/runtime/builtin-context.js.map +1 -1
- package/dist/runtime/clip-instance.js.map +1 -1
- package/dist/runtime/clip-store.js.map +1 -1
- package/dist/runtime/engine.js.map +1 -1
- package/dist/runtime/frame-time.js.map +1 -1
- package/dist/runtime/index.js.map +1 -1
- package/dist/runtime/node-picking.js.map +1 -1
- package/dist/runtime/node-picking3d.js.map +1 -1
- package/dist/runtime/placement.js.map +1 -1
- package/dist/runtime/playback-controller.js.map +1 -1
- package/dist/runtime/playback.js.map +1 -1
- package/dist/runtime/precompisition.js.map +1 -1
- package/dist/runtime/project-assets.js.map +1 -1
- package/dist/runtime/session.js.map +1 -1
- package/dist/runtime/settle.js.map +1 -1
- package/dist/runtime/state-evaluator.js.map +1 -1
- package/dist/runtime/text-geometry.js.map +1 -1
- package/dist/sdk/index.js.map +1 -1
- package/dist/tween/command-decorator.js.map +1 -1
- package/dist/tween/command.js.map +1 -1
- package/dist/tween/ease/constants.js.map +1 -1
- package/dist/tween/ease/curve.js.map +1 -1
- package/dist/tween/ease/describe.js.map +1 -1
- package/dist/tween/ease/spec.js.map +1 -1
- package/dist/tween/ease/type.js.map +1 -1
- package/dist/tween/index.js.map +1 -1
- package/dist/tween/inert.js.map +1 -1
- package/dist/tween/lerp.js.map +1 -1
- package/dist/tween/loop.js.map +1 -1
- package/dist/tween/prepare.js.map +1 -1
- package/dist/tween/stepper.js.map +1 -1
- package/dist/tween/to-command.js.map +1 -1
- package/dist/util/clamp.js.map +1 -1
- package/dist/util/context.js.map +1 -1
- package/dist/util/csv.js.map +1 -1
- package/dist/util/generateList.js.map +1 -1
- package/dist/util/index.js.map +1 -1
- package/dist/util/metrics.js.map +1 -1
- package/dist/util/random.js.map +1 -1
- package/dist/util/reference.js.map +1 -1
- package/dist/util/scheduler.js.map +1 -1
- package/package.json +1 -1
- package/dist/attributes/audio/filters/chain.d.ts +0 -113
- package/dist/attributes/audio/filters/chain.d.ts.map +0 -1
- package/dist/attributes/audio/filters/chain.js +0 -104
- package/dist/attributes/audio/filters/chain.js.map +0 -1
- package/dist/attributes/audio/filters/curve.d.ts +0 -152
- package/dist/attributes/audio/filters/curve.d.ts.map +0 -1
- package/dist/attributes/audio/filters/curve.js +0 -250
- package/dist/attributes/audio/filters/curve.js.map +0 -1
- package/dist/attributes/audio/filters/implementations/echo.d.ts +0 -14
- package/dist/attributes/audio/filters/implementations/echo.d.ts.map +0 -1
- package/dist/attributes/audio/filters/implementations/echo.js +0 -11
- package/dist/attributes/audio/filters/implementations/echo.js.map +0 -1
- package/dist/attributes/audio/filters/implementations/gain.d.ts +0 -10
- package/dist/attributes/audio/filters/implementations/gain.d.ts.map +0 -1
- package/dist/attributes/audio/filters/implementations/gain.js +0 -6
- package/dist/attributes/audio/filters/implementations/gain.js.map +0 -1
- package/dist/attributes/audio/filters/implementations/highpass.d.ts +0 -12
- package/dist/attributes/audio/filters/implementations/highpass.d.ts.map +0 -1
- package/dist/attributes/audio/filters/implementations/highpass.js +0 -10
- package/dist/attributes/audio/filters/implementations/highpass.js.map +0 -1
- package/dist/attributes/audio/filters/implementations/lowpass.d.ts +0 -12
- package/dist/attributes/audio/filters/implementations/lowpass.d.ts.map +0 -1
- package/dist/attributes/audio/filters/implementations/lowpass.js +0 -10
- package/dist/attributes/audio/filters/implementations/lowpass.js.map +0 -1
- package/dist/attributes/audio/filters/implementations/speed.d.ts +0 -18
- package/dist/attributes/audio/filters/implementations/speed.d.ts.map +0 -1
- package/dist/attributes/audio/filters/implementations/speed.js +0 -6
- package/dist/attributes/audio/filters/implementations/speed.js.map +0 -1
- package/dist/attributes/audio/filters/implementations/tremolo.d.ts +0 -12
- package/dist/attributes/audio/filters/implementations/tremolo.d.ts.map +0 -1
- package/dist/attributes/audio/filters/implementations/tremolo.js +0 -10
- package/dist/attributes/audio/filters/implementations/tremolo.js.map +0 -1
- package/dist/attributes/audio/filters/index.d.ts +0 -22
- package/dist/attributes/audio/filters/index.d.ts.map +0 -1
- package/dist/attributes/audio/filters/index.js +0 -8
- package/dist/attributes/audio/filters/index.js.map +0 -1
- package/dist/attributes/audio/filters/registry.d.ts +0 -36
- package/dist/attributes/audio/filters/registry.d.ts.map +0 -1
- package/dist/attributes/audio/filters/registry.js +0 -82
- package/dist/attributes/audio/filters/registry.js.map +0 -1
- package/dist/attributes/audio/filters/union.d.ts +0 -18
- package/dist/attributes/audio/filters/union.d.ts.map +0 -1
- package/dist/attributes/audio/filters/union.js +0 -28
- package/dist/attributes/audio/filters/union.js.map +0 -1
- package/dist/attributes/shape/sksl-uniforms.d.ts +0 -146
- package/dist/attributes/shape/sksl-uniforms.d.ts.map +0 -1
- package/dist/attributes/shape/sksl-uniforms.js +0 -0
- package/dist/attributes/shape/sksl-uniforms.js.map +0 -1
- package/dist/browser/chunks/chunk-AOT33LMS.js.map +0 -7
- package/dist/browser/chunks/chunk-GKM6UZJR.js.map +0 -7
- package/dist/browser/chunks/chunk-LKUYVFU3.js.map +0 -7
- package/dist/browser/chunks/chunk-ZRPZPWZU.js.map +0 -7
- package/dist/component/api.d.ts +0 -508
- package/dist/component/api.d.ts.map +0 -1
- package/dist/component/api.js +0 -4
- package/dist/component/api.js.map +0 -1
- package/dist/component/builtins/audio.d.ts +0 -26
- package/dist/component/builtins/audio.d.ts.map +0 -1
- package/dist/component/builtins/audio.js +0 -41
- package/dist/component/builtins/audio.js.map +0 -1
- package/dist/component/builtins/canvas3d.d.ts +0 -98
- package/dist/component/builtins/canvas3d.d.ts.map +0 -1
- package/dist/component/builtins/canvas3d.js +0 -21
- package/dist/component/builtins/canvas3d.js.map +0 -1
- package/dist/component/builtins/composite.d.ts +0 -56
- package/dist/component/builtins/composite.d.ts.map +0 -1
- package/dist/component/builtins/composite.js +0 -25
- package/dist/component/builtins/composite.js.map +0 -1
- package/dist/component/builtins/geometry.d.ts +0 -505
- package/dist/component/builtins/geometry.d.ts.map +0 -1
- package/dist/component/builtins/geometry.js +0 -107
- package/dist/component/builtins/geometry.js.map +0 -1
- package/dist/component/builtins/layout.d.ts +0 -88
- package/dist/component/builtins/layout.d.ts.map +0 -1
- package/dist/component/builtins/layout.js +0 -84
- package/dist/component/builtins/layout.js.map +0 -1
- package/dist/component/builtins/media.d.ts +0 -95
- package/dist/component/builtins/media.d.ts.map +0 -1
- package/dist/component/builtins/media.js +0 -149
- package/dist/component/builtins/media.js.map +0 -1
- package/dist/component/builtins/providers.d.ts +0 -23
- package/dist/component/builtins/providers.d.ts.map +0 -1
- package/dist/component/builtins/providers.js +0 -30
- package/dist/component/builtins/providers.js.map +0 -1
- package/dist/component/builtins/text.d.ts +0 -193
- package/dist/component/builtins/text.d.ts.map +0 -1
- package/dist/component/builtins/text.js +0 -113
- package/dist/component/builtins/text.js.map +0 -1
- package/dist/component/builtins/three.d.ts +0 -1085
- package/dist/component/builtins/three.d.ts.map +0 -1
- package/dist/component/builtins/three.js +0 -265
- package/dist/component/builtins/three.js.map +0 -1
- package/dist/component/clip-of.d.ts +0 -5
- package/dist/component/clip-of.d.ts.map +0 -1
- package/dist/component/clip-of.js +0 -33
- package/dist/component/clip-of.js.map +0 -1
- package/dist/component/commands-for.d.ts +0 -19
- package/dist/component/commands-for.d.ts.map +0 -1
- package/dist/component/commands-for.js +0 -5
- package/dist/component/commands-for.js.map +0 -1
- package/dist/component/component-audio.d.ts +0 -9
- package/dist/component/component-audio.d.ts.map +0 -1
- package/dist/component/component-audio.js +0 -18
- package/dist/component/component-audio.js.map +0 -1
- package/dist/component/component2d.d.ts +0 -9
- package/dist/component/component2d.d.ts.map +0 -1
- package/dist/component/component2d.js +0 -239
- package/dist/component/component2d.js.map +0 -1
- package/dist/component/component3d.d.ts +0 -9
- package/dist/component/component3d.d.ts.map +0 -1
- package/dist/component/component3d.js +0 -99
- package/dist/component/component3d.js.map +0 -1
- package/dist/component/factory.d.ts +0 -63
- package/dist/component/factory.d.ts.map +0 -1
- package/dist/component/factory.js +0 -313
- package/dist/component/factory.js.map +0 -1
- package/dist/component/modules/aim.d.ts +0 -30
- package/dist/component/modules/aim.d.ts.map +0 -1
- package/dist/component/modules/aim.js +0 -39
- package/dist/component/modules/aim.js.map +0 -1
- package/dist/component/modules/corners.d.ts +0 -13
- package/dist/component/modules/corners.d.ts.map +0 -1
- package/dist/component/modules/corners.js +0 -12
- package/dist/component/modules/corners.js.map +0 -1
- package/dist/component/modules/flow.d.ts +0 -26
- package/dist/component/modules/flow.d.ts.map +0 -1
- package/dist/component/modules/flow.js +0 -55
- package/dist/component/modules/flow.js.map +0 -1
- package/dist/component/modules/material.d.ts +0 -40
- package/dist/component/modules/material.d.ts.map +0 -1
- package/dist/component/modules/material.js +0 -75
- package/dist/component/modules/material.js.map +0 -1
- package/dist/component/modules/paint.d.ts +0 -71
- package/dist/component/modules/paint.d.ts.map +0 -1
- package/dist/component/modules/paint.js +0 -106
- package/dist/component/modules/paint.js.map +0 -1
- package/dist/component/modules/shapes.d.ts +0 -31
- package/dist/component/modules/shapes.d.ts.map +0 -1
- package/dist/component/modules/shapes.js +0 -43
- package/dist/component/modules/shapes.js.map +0 -1
- package/dist/component/modules/text-layout.d.ts +0 -26
- package/dist/component/modules/text-layout.d.ts.map +0 -1
- package/dist/component/modules/text-layout.js +0 -57
- package/dist/component/modules/text-layout.js.map +0 -1
- package/dist/component/modules/text-style.d.ts +0 -48
- package/dist/component/modules/text-style.d.ts.map +0 -1
- package/dist/component/modules/text-style.js +0 -63
- package/dist/component/modules/text-style.js.map +0 -1
- package/dist/component/modules/three-entries.d.ts +0 -23
- package/dist/component/modules/three-entries.d.ts.map +0 -1
- package/dist/component/modules/three-entries.js +0 -41
- package/dist/component/modules/three-entries.js.map +0 -1
- package/dist/component/modules/view3d.d.ts +0 -55
- package/dist/component/modules/view3d.d.ts.map +0 -1
- package/dist/component/modules/view3d.js +0 -160
- package/dist/component/modules/view3d.js.map +0 -1
- package/dist/component/timeline.d.ts +0 -22
- package/dist/component/timeline.d.ts.map +0 -1
- package/dist/component/timeline.js +0 -128
- package/dist/component/timeline.js.map +0 -1
- package/dist/component/type-def.d.ts +0 -26
- package/dist/component/type-def.d.ts.map +0 -1
- package/dist/component/type-def.js +0 -16
- package/dist/component/type-def.js.map +0 -1
- package/dist/component/types.d.ts +0 -91
- package/dist/component/types.d.ts.map +0 -1
- package/dist/component/types.js +0 -88
- package/dist/component/types.js.map +0 -1
- package/dist/component/views.d.ts +0 -121
- package/dist/component/views.d.ts.map +0 -1
- package/dist/component/views.js +0 -413
- package/dist/component/views.js.map +0 -1
- package/dist/document/withdraw.d.ts +0 -28
- package/dist/document/withdraw.d.ts.map +0 -1
- package/dist/document/withdraw.js +0 -61
- package/dist/document/withdraw.js.map +0 -1
- package/dist/jsx/jsx-dev-runtime.d.ts +0 -3
- package/dist/jsx/jsx-dev-runtime.d.ts.map +0 -1
- package/dist/jsx/jsx-dev-runtime.js +0 -3
- package/dist/jsx/jsx-dev-runtime.js.map +0 -1
- package/dist/jsx/jsx-runtime.d.ts +0 -27
- package/dist/jsx/jsx-runtime.d.ts.map +0 -1
- package/dist/jsx/jsx-runtime.js +0 -26
- package/dist/jsx/jsx-runtime.js.map +0 -1
- package/dist/nodes/2d/node-lifecycle.d.ts +0 -46
- package/dist/nodes/2d/node-lifecycle.d.ts.map +0 -1
- package/dist/nodes/2d/node-lifecycle.js +0 -264
- package/dist/nodes/2d/node-lifecycle.js.map +0 -1
- package/dist/nodes/2d/node-motion.d.ts +0 -56
- package/dist/nodes/2d/node-motion.d.ts.map +0 -1
- package/dist/nodes/2d/node-motion.js +0 -86
- package/dist/nodes/2d/node-motion.js.map +0 -1
- package/dist/nodes/2d/node-render.d.ts +0 -44
- package/dist/nodes/2d/node-render.d.ts.map +0 -1
- package/dist/nodes/2d/node-render.js +0 -80
- package/dist/nodes/2d/node-render.js.map +0 -1
- package/dist/nodes/2d/node-space.d.ts +0 -63
- package/dist/nodes/2d/node-space.d.ts.map +0 -1
- package/dist/nodes/2d/node-space.js +0 -131
- package/dist/nodes/2d/node-space.js.map +0 -1
- package/dist/nodes/2d/node-transform.d.ts +0 -55
- package/dist/nodes/2d/node-transform.d.ts.map +0 -1
- package/dist/nodes/2d/node-transform.js +0 -73
- package/dist/nodes/2d/node-transform.js.map +0 -1
- package/dist/nodes/2d/node2d.d.ts +0 -1111
- package/dist/nodes/2d/node2d.d.ts.map +0 -1
- package/dist/nodes/2d/node2d.js +0 -1665
- package/dist/nodes/2d/node2d.js.map +0 -1
- package/dist/nodes/2d/paint-node.d.ts +0 -142
- package/dist/nodes/2d/paint-node.d.ts.map +0 -1
- package/dist/nodes/2d/paint-node.js +0 -232
- package/dist/nodes/2d/paint-node.js.map +0 -1
- package/dist/nodes/audio/audio-bus.d.ts +0 -28
- package/dist/nodes/audio/audio-bus.d.ts.map +0 -1
- package/dist/nodes/audio/audio-bus.js +0 -33
- package/dist/nodes/audio/audio-bus.js.map +0 -1
- package/dist/nodes/audio/index.d.ts +0 -4
- package/dist/nodes/audio/index.d.ts.map +0 -1
- package/dist/nodes/audio/index.js +0 -2
- package/dist/nodes/audio/index.js.map +0 -1
- package/dist/nodes/audio/node-audio.d.ts +0 -107
- package/dist/nodes/audio/node-audio.d.ts.map +0 -1
- package/dist/nodes/audio/node-audio.js +0 -179
- package/dist/nodes/audio/node-audio.js.map +0 -1
- package/dist/nodes/audio/sound-node.d.ts +0 -41
- package/dist/nodes/audio/sound-node.d.ts.map +0 -1
- package/dist/nodes/audio/sound-node.js +0 -71
- package/dist/nodes/audio/sound-node.js.map +0 -1
- package/dist/nodes/geometry/boolean-node.d.ts +0 -28
- package/dist/nodes/geometry/boolean-node.d.ts.map +0 -1
- package/dist/nodes/geometry/boolean-node.js +0 -81
- package/dist/nodes/geometry/boolean-node.js.map +0 -1
- package/dist/nodes/geometry/bounds-shape-node.d.ts +0 -149
- package/dist/nodes/geometry/bounds-shape-node.d.ts.map +0 -1
- package/dist/nodes/geometry/bounds-shape-node.js +0 -181
- package/dist/nodes/geometry/bounds-shape-node.js.map +0 -1
- package/dist/nodes/geometry/box-path-node.d.ts +0 -89
- package/dist/nodes/geometry/box-path-node.d.ts.map +0 -1
- package/dist/nodes/geometry/box-path-node.js +0 -116
- package/dist/nodes/geometry/box-path-node.js.map +0 -1
- package/dist/nodes/geometry/ellipse-node.d.ts +0 -18
- package/dist/nodes/geometry/ellipse-node.d.ts.map +0 -1
- package/dist/nodes/geometry/ellipse-node.js +0 -45
- package/dist/nodes/geometry/ellipse-node.js.map +0 -1
- package/dist/nodes/geometry/group-bounds.d.ts +0 -56
- package/dist/nodes/geometry/group-bounds.d.ts.map +0 -1
- package/dist/nodes/geometry/group-bounds.js +0 -87
- package/dist/nodes/geometry/group-bounds.js.map +0 -1
- package/dist/nodes/geometry/mask-node.d.ts +0 -33
- package/dist/nodes/geometry/mask-node.d.ts.map +0 -1
- package/dist/nodes/geometry/mask-node.js +0 -66
- package/dist/nodes/geometry/mask-node.js.map +0 -1
- package/dist/nodes/geometry/path-node.d.ts +0 -26
- package/dist/nodes/geometry/path-node.d.ts.map +0 -1
- package/dist/nodes/geometry/path-node.js +0 -58
- package/dist/nodes/geometry/path-node.js.map +0 -1
- package/dist/nodes/geometry/polygon-node.d.ts +0 -26
- package/dist/nodes/geometry/polygon-node.d.ts.map +0 -1
- package/dist/nodes/geometry/polygon-node.js +0 -47
- package/dist/nodes/geometry/polygon-node.js.map +0 -1
- package/dist/nodes/geometry/polygram-node.d.ts +0 -33
- package/dist/nodes/geometry/polygram-node.d.ts.map +0 -1
- package/dist/nodes/geometry/polygram-node.js +0 -52
- package/dist/nodes/geometry/polygram-node.js.map +0 -1
- package/dist/nodes/geometry/rect-node.d.ts +0 -38
- package/dist/nodes/geometry/rect-node.d.ts.map +0 -1
- package/dist/nodes/geometry/rect-node.js +0 -56
- package/dist/nodes/geometry/rect-node.js.map +0 -1
- package/dist/nodes/geometry/shape-node.d.ts +0 -71
- package/dist/nodes/geometry/shape-node.d.ts.map +0 -1
- package/dist/nodes/geometry/shape-node.js +0 -140
- package/dist/nodes/geometry/shape-node.js.map +0 -1
- package/dist/nodes/geometry/shape-outline.d.ts +0 -93
- package/dist/nodes/geometry/shape-outline.d.ts.map +0 -1
- package/dist/nodes/geometry/shape-outline.js +0 -470
- package/dist/nodes/geometry/shape-outline.js.map +0 -1
- package/dist/nodes/index.d.ts +0 -53
- package/dist/nodes/index.d.ts.map +0 -1
- package/dist/nodes/index.js +0 -35
- package/dist/nodes/index.js.map +0 -1
- package/dist/nodes/layout/camera-node.d.ts +0 -80
- package/dist/nodes/layout/camera-node.d.ts.map +0 -1
- package/dist/nodes/layout/camera-node.js +0 -153
- package/dist/nodes/layout/camera-node.js.map +0 -1
- package/dist/nodes/layout/orbit-camera-node.d.ts +0 -80
- package/dist/nodes/layout/orbit-camera-node.d.ts.map +0 -1
- package/dist/nodes/layout/orbit-camera-node.js +0 -118
- package/dist/nodes/layout/orbit-camera-node.js.map +0 -1
- package/dist/nodes/layout/rotated-box.d.ts +0 -20
- package/dist/nodes/layout/rotated-box.d.ts.map +0 -1
- package/dist/nodes/layout/rotated-box.js +0 -76
- package/dist/nodes/layout/rotated-box.js.map +0 -1
- package/dist/nodes/media/video-node.d.ts +0 -229
- package/dist/nodes/media/video-node.d.ts.map +0 -1
- package/dist/nodes/media/video-node.js +0 -350
- package/dist/nodes/media/video-node.js.map +0 -1
- package/dist/nodes/node/declare-paints.d.ts +0 -19
- package/dist/nodes/node/declare-paints.d.ts.map +0 -1
- package/dist/nodes/node/declare-paints.js +0 -27
- package/dist/nodes/node/declare-paints.js.map +0 -1
- package/dist/nodes/node/node-editor-state.d.ts +0 -53
- package/dist/nodes/node/node-editor-state.d.ts.map +0 -1
- package/dist/nodes/node/node-editor-state.js +0 -23
- package/dist/nodes/node/node-editor-state.js.map +0 -1
- package/dist/nodes/node/node-reactive.d.ts +0 -89
- package/dist/nodes/node/node-reactive.d.ts.map +0 -1
- package/dist/nodes/node/node-reactive.js +0 -135
- package/dist/nodes/node/node-reactive.js.map +0 -1
- package/dist/nodes/node/node-time.d.ts +0 -39
- package/dist/nodes/node/node-time.d.ts.map +0 -1
- package/dist/nodes/node/node-time.js +0 -14
- package/dist/nodes/node/node-time.js.map +0 -1
- package/dist/nodes/node/node-walk.d.ts +0 -46
- package/dist/nodes/node/node-walk.d.ts.map +0 -1
- package/dist/nodes/node/node-walk.js +0 -74
- package/dist/nodes/node/node-walk.js.map +0 -1
- package/dist/nodes/node/node.d.ts +0 -445
- package/dist/nodes/node/node.d.ts.map +0 -1
- package/dist/nodes/node/node.js +0 -745
- package/dist/nodes/node/node.js.map +0 -1
- package/dist/nodes/node/text-defaults.d.ts +0 -32
- package/dist/nodes/node/text-defaults.d.ts.map +0 -1
- package/dist/nodes/node/text-defaults.js +0 -37
- package/dist/nodes/node/text-defaults.js.map +0 -1
- package/dist/nodes/root/canvas2d-node.d.ts +0 -163
- package/dist/nodes/root/canvas2d-node.d.ts.map +0 -1
- package/dist/nodes/root/canvas2d-node.js +0 -264
- package/dist/nodes/root/canvas2d-node.js.map +0 -1
- package/dist/nodes/root/provider-node.d.ts +0 -47
- package/dist/nodes/root/provider-node.d.ts.map +0 -1
- package/dist/nodes/root/provider-node.js +0 -63
- package/dist/nodes/root/provider-node.js.map +0 -1
- package/dist/nodes/root/theme-provider-node.d.ts +0 -29
- package/dist/nodes/root/theme-provider-node.d.ts.map +0 -1
- package/dist/nodes/root/theme-provider-node.js +0 -43
- package/dist/nodes/root/theme-provider-node.js.map +0 -1
- package/dist/nodes/text/default-text-style-node.d.ts +0 -103
- package/dist/nodes/text/default-text-style-node.d.ts.map +0 -1
- package/dist/nodes/text/default-text-style-node.js +0 -146
- package/dist/nodes/text/default-text-style-node.js.map +0 -1
- package/dist/nodes/text/number-format.d.ts +0 -66
- package/dist/nodes/text/number-format.d.ts.map +0 -1
- package/dist/nodes/text/number-format.js +0 -227
- package/dist/nodes/text/number-format.js.map +0 -1
- package/dist/nodes/text/number-node.d.ts +0 -94
- package/dist/nodes/text/number-node.d.ts.map +0 -1
- package/dist/nodes/text/number-node.js +0 -86
- package/dist/nodes/text/number-node.js.map +0 -1
- package/dist/nodes/text/number-pattern.d.ts +0 -51
- package/dist/nodes/text/number-pattern.d.ts.map +0 -1
- package/dist/nodes/text/number-pattern.js +0 -77
- package/dist/nodes/text/number-pattern.js.map +0 -1
- package/dist/nodes/text/richtext-node.d.ts +0 -68
- package/dist/nodes/text/richtext-node.d.ts.map +0 -1
- package/dist/nodes/text/richtext-node.js +0 -78
- package/dist/nodes/text/richtext-node.js.map +0 -1
- package/dist/nodes/text/text-base.d.ts +0 -118
- package/dist/nodes/text/text-base.d.ts.map +0 -1
- package/dist/nodes/text/text-base.js +0 -153
- package/dist/nodes/text/text-base.js.map +0 -1
- package/dist/nodes/text/text-layout.d.ts +0 -87
- package/dist/nodes/text/text-layout.d.ts.map +0 -1
- package/dist/nodes/text/text-layout.js +0 -368
- package/dist/nodes/text/text-layout.js.map +0 -1
- package/dist/nodes/text/text-node.d.ts +0 -84
- package/dist/nodes/text/text-node.d.ts.map +0 -1
- package/dist/nodes/text/text-node.js +0 -188
- package/dist/nodes/text/text-node.js.map +0 -1
- package/dist/nodes/text/text-selection.d.ts +0 -125
- package/dist/nodes/text/text-selection.d.ts.map +0 -1
- package/dist/nodes/text/text-selection.js +0 -209
- package/dist/nodes/text/text-selection.js.map +0 -1
- package/dist/nodes/three/camera-nodes.d.ts +0 -109
- package/dist/nodes/three/camera-nodes.d.ts.map +0 -1
- package/dist/nodes/three/camera-nodes.js +0 -112
- package/dist/nodes/three/camera-nodes.js.map +0 -1
- package/dist/nodes/three/canvas3d-node.d.ts +0 -295
- package/dist/nodes/three/canvas3d-node.d.ts.map +0 -1
- package/dist/nodes/three/canvas3d-node.js +0 -486
- package/dist/nodes/three/canvas3d-node.js.map +0 -1
- package/dist/nodes/three/drawable-nodes.d.ts +0 -173
- package/dist/nodes/three/drawable-nodes.d.ts.map +0 -1
- package/dist/nodes/three/drawable-nodes.js +0 -284
- package/dist/nodes/three/drawable-nodes.js.map +0 -1
- package/dist/nodes/three/environment-nodes.d.ts +0 -106
- package/dist/nodes/three/environment-nodes.d.ts.map +0 -1
- package/dist/nodes/three/environment-nodes.js +0 -134
- package/dist/nodes/three/environment-nodes.js.map +0 -1
- package/dist/nodes/three/geometry-nodes.d.ts +0 -197
- package/dist/nodes/three/geometry-nodes.d.ts.map +0 -1
- package/dist/nodes/three/geometry-nodes.js +0 -322
- package/dist/nodes/three/geometry-nodes.js.map +0 -1
- package/dist/nodes/three/grid-geometry3d.d.ts +0 -62
- package/dist/nodes/three/grid-geometry3d.d.ts.map +0 -1
- package/dist/nodes/three/grid-geometry3d.js +0 -114
- package/dist/nodes/three/grid-geometry3d.js.map +0 -1
- package/dist/nodes/three/group3d.d.ts +0 -23
- package/dist/nodes/three/group3d.d.ts.map +0 -1
- package/dist/nodes/three/group3d.js +0 -21
- package/dist/nodes/three/group3d.js.map +0 -1
- package/dist/nodes/three/light-nodes.d.ts +0 -120
- package/dist/nodes/three/light-nodes.d.ts.map +0 -1
- package/dist/nodes/three/light-nodes.js +0 -173
- package/dist/nodes/three/light-nodes.js.map +0 -1
- package/dist/nodes/three/mesh3d.d.ts +0 -117
- package/dist/nodes/three/mesh3d.d.ts.map +0 -1
- package/dist/nodes/three/mesh3d.js +0 -147
- package/dist/nodes/three/mesh3d.js.map +0 -1
- package/dist/nodes/three/node3d.d.ts +0 -230
- package/dist/nodes/three/node3d.d.ts.map +0 -1
- package/dist/nodes/three/node3d.js +0 -337
- package/dist/nodes/three/node3d.js.map +0 -1
- package/dist/render/descriptors/latex.d.ts +0 -6
- package/dist/render/descriptors/latex.d.ts.map +0 -1
- package/dist/render/descriptors/latex.js +0 -2
- package/dist/render/descriptors/latex.js.map +0 -1
- package/dist/tween/seekable.d.ts +0 -81
- package/dist/tween/seekable.d.ts.map +0 -1
- package/dist/tween/seekable.js +0 -137
- package/dist/tween/seekable.js.map +0 -1
|
@@ -1,232 +0,0 @@
|
|
|
1
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
-
};
|
|
7
|
-
import { fillOps } from "../../attributes/shape/fill/registry.js";
|
|
8
|
-
import { strokeOps } from "../../attributes/shape/stroke/stroke.js";
|
|
9
|
-
import { shadowOps } from "../../attributes/shape/shadow/shadow.js";
|
|
10
|
-
import { fillProperty, shadowProperty, strokeProperty } from "../../attributes/properties/typed.js";
|
|
11
|
-
import { containsClip } from "../../render/clip-contains.js";
|
|
12
|
-
import { property } from "../../attributes/properties/decorator.js";
|
|
13
|
-
import { Node2D } from "../../nodes/2d/node2d.js";
|
|
14
|
-
import { command } from "../../tween/command-decorator.js";
|
|
15
|
-
/**
|
|
16
|
-
* A {@link Node2D} with **paint slots**: fill, stroke, shadow and an outline
|
|
17
|
-
* trim, the commands that tween them, and the asset declaration they imply.
|
|
18
|
-
*
|
|
19
|
-
* Nothing about *shape* and nothing about *children* — the silhouette-shaped
|
|
20
|
-
* paint (`overlay`) and the flex/freeform/grid pass both live one level down, on
|
|
21
|
-
* {@link ShapeNode}, because both are facts about a box with an outline and a
|
|
22
|
-
* subtree inside it. What is left here is what a `Rect`, a `Text` and an
|
|
23
|
-
* out-of-tree node like `Tex` genuinely share, and it is why none of them
|
|
24
|
-
* declares a paint prop, a `*To` command or an asset walk of its own.
|
|
25
|
-
*
|
|
26
|
-
* A subclass supplies the geometry (see {@link shapeGraphics}) or overrides the
|
|
27
|
-
* paint hooks outright, which is what the text nodes do — glyphs are not a
|
|
28
|
-
* silhouette that can be filled once.
|
|
29
|
-
*/
|
|
30
|
-
export class PaintNode extends Node2D {
|
|
31
|
-
// No per-frame fill bookkeeping: a time-dependent fill (video) resolves its
|
|
32
|
-
// own timestamp as it paints, from the node's clock — see
|
|
33
|
-
// `resolveVideoTimestamp`. That is what lets one live anywhere paint is
|
|
34
|
-
// accepted (stroke, shadow, a custom node's raw `Graphics2D`) rather than only
|
|
35
|
-
// on the nodes that remembered to advance it from tick().
|
|
36
|
-
// No longer abstract: `renderSelf` below paints the silhouette that
|
|
37
|
-
// `shapeGraphics` describes, which is what every geometry subclass did
|
|
38
|
-
// identically. A subclass with no single fillable silhouette returns `null`
|
|
39
|
-
// from `shapeGraphics` and simply draws nothing here — the fallback that
|
|
40
|
-
// method already documents — while `Text` and `Video` override the
|
|
41
|
-
// paint themselves.
|
|
42
|
-
/**
|
|
43
|
-
* The node's bare silhouette as a {@link Graphics2D} with **no** paint ops.
|
|
44
|
-
* `renderSelf` appends shadow + fill and {@link renderStroke} appends the
|
|
45
|
-
* stroke; on a {@link ShapeNode} its `renderOverlay` appends the overlay too.
|
|
46
|
-
* Sharing one builder keeps each shape's geometry defined in a single place.
|
|
47
|
-
*
|
|
48
|
-
* Returns `null` for nodes that have no single fillable silhouette (text,
|
|
49
|
-
* boolean groups, grids) — those override the paint hooks themselves or opt
|
|
50
|
-
* out of the generic overlay/stroke passes.
|
|
51
|
-
*/
|
|
52
|
-
shapeGraphics() {
|
|
53
|
-
return null;
|
|
54
|
-
}
|
|
55
|
-
/**
|
|
56
|
-
* Shadow + fill of the node's own silhouette.
|
|
57
|
-
*
|
|
58
|
-
* Hoisted here from the eight geometry subclasses that each had this exact
|
|
59
|
-
* body. A subclass whose paint differs (`Path`, `Video`) still
|
|
60
|
-
* overrides it.
|
|
61
|
-
*
|
|
62
|
-
* Each hook composes its own `Graphics2D` rather than sharing one built once:
|
|
63
|
-
* `.fill()`, `.stroke()` and `.shadow()` push onto `_ops` and return `this`,
|
|
64
|
-
* so a single silhouette handed to all three would accumulate paint ops
|
|
65
|
-
* across passes.
|
|
66
|
-
*/
|
|
67
|
-
renderSelf(ctx) {
|
|
68
|
-
const base = this.shapeGraphics();
|
|
69
|
-
if (base)
|
|
70
|
-
ctx.draw(base.shadow(this.shadow).fill(this.fill));
|
|
71
|
-
}
|
|
72
|
-
// Deferred stroke, painted last so it frames the children and anything laid
|
|
73
|
-
// over them.
|
|
74
|
-
//
|
|
75
|
-
// It carries the node's `shadow` when — and only when — there is no fill to
|
|
76
|
-
// have cast it already. A shadow is cast by the silhouette a node actually
|
|
77
|
-
// paints, and `renderSelf` casts it from the fill; on a fill-less shape that
|
|
78
|
-
// pass paints nothing, so the shadow op it stored is dropped by the empty
|
|
79
|
-
// fill and a stroked outline with a shadow on it drew no shadow at all.
|
|
80
|
-
// The stroke *is* the silhouette there, and the renderer has always known
|
|
81
|
-
// how to cast from one (`applyDropShadow`'s `hasStrokes` branch strokes the
|
|
82
|
-
// shadow layer) — nothing but the op was missing.
|
|
83
|
-
//
|
|
84
|
-
// Guarded on the fill rather than emitted unconditionally, because with a
|
|
85
|
-
// fill present the shadow has already been cast once, from a path the
|
|
86
|
-
// stroke sits directly on top of: casting it again here would double its
|
|
87
|
-
// opacity along the outline and lay a second, band-shaped shadow over the
|
|
88
|
-
// first.
|
|
89
|
-
renderStroke(ctx) {
|
|
90
|
-
const stroke = this.stroke;
|
|
91
|
-
if (stroke.length === 0)
|
|
92
|
-
return;
|
|
93
|
-
const base = this.shapeGraphics();
|
|
94
|
-
if (!base)
|
|
95
|
-
return;
|
|
96
|
-
ctx.draw(this.castsShadowFromStroke() ? base.shadow(this.shadow).stroke(stroke) : base.stroke(stroke));
|
|
97
|
-
}
|
|
98
|
-
/**
|
|
99
|
-
* Whether the stroke pass is the one that has to cast the node's shadow.
|
|
100
|
-
*
|
|
101
|
-
* True when nothing in the fill list can paint — an empty list, or one whose
|
|
102
|
-
* every layer is fully transparent, which is the same test
|
|
103
|
-
* `StrokeHandler.applyShadows` uses to decide there is no filled silhouette
|
|
104
|
-
* to sit the shadow under.
|
|
105
|
-
*/
|
|
106
|
-
castsShadowFromStroke() {
|
|
107
|
-
const shadow = this.shadow;
|
|
108
|
-
if (shadow.length === 0)
|
|
109
|
-
return false;
|
|
110
|
-
const fill = this.fill;
|
|
111
|
-
return !fill.some(layer => (layer.opacity ?? 1) > 0);
|
|
112
|
-
}
|
|
113
|
-
/**
|
|
114
|
-
* Every paint slot is already resolved on `this`, so what it references is read
|
|
115
|
-
* off the node rather than discovered by drawing it. A subclass painting outside
|
|
116
|
-
* these slots — `Video`, `Path`, the grids — overrides this and calls `super`.
|
|
117
|
-
*/
|
|
118
|
-
declareAssets(assets) {
|
|
119
|
-
super.declareAssets(assets);
|
|
120
|
-
assets.fill(this.fill);
|
|
121
|
-
for (const stroke of this.stroke)
|
|
122
|
-
assets.fill(stroke.fill);
|
|
123
|
-
for (const shadow of this.shadow)
|
|
124
|
-
assets.fill(shadow.fill);
|
|
125
|
-
}
|
|
126
|
-
/**
|
|
127
|
-
* Shapes hit on their outline, not their box: a click in the empty corner of
|
|
128
|
-
* a star's bounding box should fall through to whatever is behind it. The
|
|
129
|
-
* outline is the very one this node already declares for clipping
|
|
130
|
-
* ({@link Node2D.clipSelf}), so what is grabbable and what is drawn can never
|
|
131
|
-
* drift. Nodes that declare no outline (Text, RichText, Path) keep the base
|
|
132
|
-
* box test, which is what selection should do for them anyway.
|
|
133
|
-
*/
|
|
134
|
-
hitTestSelf(local, tolerance) {
|
|
135
|
-
const clip = this.clipSelf();
|
|
136
|
-
if (!clip || clip.isEmpty())
|
|
137
|
-
return super.hitTestSelf(local, tolerance);
|
|
138
|
-
return containsClip(clip, local, tolerance);
|
|
139
|
-
}
|
|
140
|
-
// ---- Paint commands ---------------------------------------------------
|
|
141
|
-
//
|
|
142
|
-
// These are the shape a `Command` exists for: a paint has no in-between a
|
|
143
|
-
// numeric tween could find, so each is a `t → props` function the node
|
|
144
|
-
// supplies. They used to be generators over `tween(...)`, which ran fine and
|
|
145
|
-
// could not be asked what they looked like at a time. Same body, returned as
|
|
146
|
-
// a value.
|
|
147
|
-
fillTo(args) {
|
|
148
|
-
const from = this.fill;
|
|
149
|
-
const target = fillOps.resolve(args.data);
|
|
150
|
-
const lerp = args.lerp ?? fillOps.lerp;
|
|
151
|
-
return this.command(t => ({ fill: lerp(from, target, t) }), args.duration, args.easing);
|
|
152
|
-
}
|
|
153
|
-
strokeTo(args) {
|
|
154
|
-
const from = this.stroke;
|
|
155
|
-
const target = strokeOps.resolve(args.data, from);
|
|
156
|
-
const lerp = args.lerp ?? strokeOps.lerp;
|
|
157
|
-
return this.command(t => ({ stroke: lerp(from, target, t) }), args.duration, args.easing);
|
|
158
|
-
}
|
|
159
|
-
shadowTo(args) {
|
|
160
|
-
const from = this.shadow;
|
|
161
|
-
const target = shadowOps.resolve(args.data, from);
|
|
162
|
-
const lerp = args.lerp ?? shadowOps.lerp;
|
|
163
|
-
return this.command(t => ({ shadow: lerp(from, target, t) }), args.duration, args.easing);
|
|
164
|
-
}
|
|
165
|
-
/**
|
|
166
|
-
* Animate how much of the outline is drawn: `start` and `end`, each a
|
|
167
|
-
* fraction of its length in `[0, 1]`, whichever are given.
|
|
168
|
-
*
|
|
169
|
-
* @example
|
|
170
|
-
* path.progressTo({ data: { end: 1 }, duration: 0.8 });
|
|
171
|
-
*/
|
|
172
|
-
progressTo(args) {
|
|
173
|
-
const { start, end } = args.data ?? {};
|
|
174
|
-
const data = { ...(start === undefined ? {} : { start }), ...(end === undefined ? {} : { end }) };
|
|
175
|
-
return this.to({ data: data, duration: args.duration, easing: args.easing });
|
|
176
|
-
}
|
|
177
|
-
/**
|
|
178
|
-
* Send a stretch of the outline along it, `portion` of its length long,
|
|
179
|
-
* from its beginning off its end. Before and after, the node draws as much
|
|
180
|
-
* of its outline as it did: one that rests with `end: 0` is only ever seen
|
|
181
|
-
* as the stretch passing.
|
|
182
|
-
*
|
|
183
|
-
* @example
|
|
184
|
-
* outline.flash({ data: { portion: 0.2 }, duration: 0.8 });
|
|
185
|
-
*/
|
|
186
|
-
flash(args) {
|
|
187
|
-
const rest = { start: this.start, end: this.end };
|
|
188
|
-
const portion = Math.min(1, Math.max(0.01, args.data?.portion ?? 0.25));
|
|
189
|
-
return this.command((t) => {
|
|
190
|
-
if (t <= 0 || t >= 1)
|
|
191
|
-
return rest;
|
|
192
|
-
const head = t * (1 + portion);
|
|
193
|
-
return { start: Math.max(0, head - portion), end: Math.min(1, head) };
|
|
194
|
-
}, args.duration, args.easing);
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
__decorate([
|
|
198
|
-
fillProperty()
|
|
199
|
-
], PaintNode.prototype, "fill", void 0);
|
|
200
|
-
__decorate([
|
|
201
|
-
strokeProperty()
|
|
202
|
-
], PaintNode.prototype, "stroke", void 0);
|
|
203
|
-
__decorate([
|
|
204
|
-
shadowProperty()
|
|
205
|
-
], PaintNode.prototype, "shadow", void 0);
|
|
206
|
-
__decorate([
|
|
207
|
-
property({ default: 0 })
|
|
208
|
-
], PaintNode.prototype, "start", void 0);
|
|
209
|
-
__decorate([
|
|
210
|
-
property({ default: 1 })
|
|
211
|
-
], PaintNode.prototype, "end", void 0);
|
|
212
|
-
__decorate([
|
|
213
|
-
command()
|
|
214
|
-
], PaintNode.prototype, "fillTo", null);
|
|
215
|
-
__decorate([
|
|
216
|
-
command()
|
|
217
|
-
], PaintNode.prototype, "strokeTo", null);
|
|
218
|
-
__decorate([
|
|
219
|
-
command()
|
|
220
|
-
], PaintNode.prototype, "shadowTo", null);
|
|
221
|
-
__decorate([
|
|
222
|
-
command({
|
|
223
|
-
args: [
|
|
224
|
-
{ key: "start", kind: "number", min: 0, max: 1, step: 0.01, scale: 100, unit: "%" },
|
|
225
|
-
{ key: "end", kind: "number", min: 0, max: 1, step: 0.01, scale: 100, unit: "%" },
|
|
226
|
-
],
|
|
227
|
-
})
|
|
228
|
-
], PaintNode.prototype, "progressTo", null);
|
|
229
|
-
__decorate([
|
|
230
|
-
command({ args: [{ key: "portion", kind: "number", min: 0.01, max: 1, step: 0.01, scale: 100, unit: "%", default: 0.25 }] })
|
|
231
|
-
], PaintNode.prototype, "flash", null);
|
|
232
|
-
//# sourceMappingURL=paint-node.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"paint-node.js","sourceRoot":"","sources":["../../../src/nodes/2d/paint-node.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,kCAAkC,CAAC;AAG3D,OAAO,EAA+B,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAC1F,OAAO,EAA+B,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAC1F,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE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EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,EAAE,CAAC;sCAa5H","sourcesContent":["import { fillOps } from \"@/attributes/shape/fill/registry\";\r\nimport type { AssetScope } from \"@/assets/scope\";\r\n\r\nimport { StrokeResolved, type Stroke, strokeOps } from \"@/attributes/shape/stroke/stroke\";\r\nimport { ShadowResolved, type Shadow, shadowOps } from \"@/attributes/shape/shadow/shadow\";\r\nimport { fillProperty, shadowProperty, strokeProperty } from \"@/attributes/properties/typed\";\r\nimport { FillResolved } from \"@/attributes/shape/fill/union\";\r\nimport { Fill } from \"@/attributes/shape/fill/chain\";\r\n\r\nimport { RenderContext2D } from \"@/render/render-context2d\";\r\nimport { Graphics2D } from \"@/render/graphics2d\";\r\nimport { containsClip } from \"@/render/clip-contains\";\r\nimport { Vector2 } from \"@/attributes/layout/vector2\";\r\nimport { property } from \"@/attributes/properties/decorator\";\r\nimport { Node2D, Node2DProps } from \"@/nodes/2d/node2d\";\r\nimport { type Command, type CommandArgs } from \"@/tween/command\";\r\nimport { command } from \"@/tween/command-decorator\";\r\n\r\n\r\nexport interface PaintProps extends Node2DProps {\r\n /**\r\n * Fill layer(s). Each item can be:\r\n * - A plain CSS color string → treated as a solid fill\r\n * - A fill prop object (SolidFillProp, LinearGradientFillProp, …)\r\n * - An already-resolved fill object\r\n * - A {@link FillChain} from the `Fills` builder (e.g. `Fills.color('red')`)\r\n */\r\n fill?: Fill;\r\n /**\r\n * Stroke layer(s): a single {@link StrokeProp}, an array of them, or an\r\n * already-resolved stroke. `fill` inside each stroke accepts the same loose\r\n * values as the top-level fill prop.\r\n */\r\n stroke?: Stroke;\r\n /**\r\n * Shadow layer(s): a single {@link ShadowProp}, an array of them, or an\r\n * already-resolved shadow. `fill` inside each shadow accepts the same loose\r\n * values as the top-level fill prop.\r\n */\r\n shadow?: Shadow;\r\n start?: number;\r\n end?: number;\r\n}\r\n\r\n\r\n/**\r\n * A {@link Node2D} with **paint slots**: fill, stroke, shadow and an outline\r\n * trim, the commands that tween them, and the asset declaration they imply.\r\n *\r\n * Nothing about *shape* and nothing about *children* — the silhouette-shaped\r\n * paint (`overlay`) and the flex/freeform/grid pass both live one level down, on\r\n * {@link ShapeNode}, because both are facts about a box with an outline and a\r\n * subtree inside it. What is left here is what a `Rect`, a `Text` and an\r\n * out-of-tree node like `Tex` genuinely share, and it is why none of them\r\n * declares a paint prop, a `*To` command or an asset walk of its own.\r\n *\r\n * A subclass supplies the geometry (see {@link shapeGraphics}) or overrides the\r\n * paint hooks outright, which is what the text nodes do — glyphs are not a\r\n * silhouette that can be filled once.\r\n */\r\nexport abstract class PaintNode<P extends PaintProps = PaintProps> extends Node2D<P> {\r\n\r\n // Author-facing paint props. The declared type is the loose `Fill`/`Stroke`/\r\n // `Shadow` so assignment (`this.fill = 'red'`) and reads share one simple\r\n // type. At runtime the @property accessor stores the *resolved* value (via\r\n // the mapper), and consumers that need the resolved shape cast at the read\r\n // site — see `tick`/`prepare`/`*To` and the `Graphics2D` paint calls.\r\n // Stroke weight feeds Rect.effectivePadding(), which insets children.\r\n @fillProperty()\r\n declare fill: Fill;\r\n\r\n @strokeProperty()\r\n declare stroke: Stroke;\r\n\r\n @shadowProperty()\r\n declare shadow: Shadow;\r\n\r\n @property({ default: 0 })\r\n declare start: number;\r\n\r\n @property({ default: 1 })\r\n declare end: number;\r\n\r\n // No per-frame fill bookkeeping: a time-dependent fill (video) resolves its\r\n // own timestamp as it paints, from the node's clock — see\r\n // `resolveVideoTimestamp`. That is what lets one live anywhere paint is\r\n // accepted (stroke, shadow, a custom node's raw `Graphics2D`) rather than only\r\n // on the nodes that remembered to advance it from tick().\r\n\r\n // No longer abstract: `renderSelf` below paints the silhouette that\r\n // `shapeGraphics` describes, which is what every geometry subclass did\r\n // identically. A subclass with no single fillable silhouette returns `null`\r\n // from `shapeGraphics` and simply draws nothing here — the fallback that\r\n // method already documents — while `Text` and `Video` override the\r\n // paint themselves.\r\n\r\n /**\r\n * The node's bare silhouette as a {@link Graphics2D} with **no** paint ops.\r\n * `renderSelf` appends shadow + fill and {@link renderStroke} appends the\r\n * stroke; on a {@link ShapeNode} its `renderOverlay` appends the overlay too.\r\n * Sharing one builder keeps each shape's geometry defined in a single place.\r\n *\r\n * Returns `null` for nodes that have no single fillable silhouette (text,\r\n * boolean groups, grids) — those override the paint hooks themselves or opt\r\n * out of the generic overlay/stroke passes.\r\n */\r\n protected shapeGraphics(): Graphics2D | null {\r\n return null;\r\n }\r\n\r\n /**\r\n * Shadow + fill of the node's own silhouette.\r\n *\r\n * Hoisted here from the eight geometry subclasses that each had this exact\r\n * body. A subclass whose paint differs (`Path`, `Video`) still\r\n * overrides it.\r\n *\r\n * Each hook composes its own `Graphics2D` rather than sharing one built once:\r\n * `.fill()`, `.stroke()` and `.shadow()` push onto `_ops` and return `this`,\r\n * so a single silhouette handed to all three would accumulate paint ops\r\n * across passes.\r\n */\r\n protected override renderSelf(ctx: RenderContext2D): void {\r\n const base = this.shapeGraphics();\r\n if (base) ctx.draw(base.shadow(this.shadow).fill(this.fill));\r\n }\r\n\r\n // Deferred stroke, painted last so it frames the children and anything laid\r\n // over them.\r\n //\r\n // It carries the node's `shadow` when — and only when — there is no fill to\r\n // have cast it already. A shadow is cast by the silhouette a node actually\r\n // paints, and `renderSelf` casts it from the fill; on a fill-less shape that\r\n // pass paints nothing, so the shadow op it stored is dropped by the empty\r\n // fill and a stroked outline with a shadow on it drew no shadow at all.\r\n // The stroke *is* the silhouette there, and the renderer has always known\r\n // how to cast from one (`applyDropShadow`'s `hasStrokes` branch strokes the\r\n // shadow layer) — nothing but the op was missing.\r\n //\r\n // Guarded on the fill rather than emitted unconditionally, because with a\r\n // fill present the shadow has already been cast once, from a path the\r\n // stroke sits directly on top of: casting it again here would double its\r\n // opacity along the outline and lay a second, band-shaped shadow over the\r\n // first.\r\n protected override renderStroke(ctx: RenderContext2D): void {\r\n const stroke = this.stroke as StrokeResolved[];\r\n if (stroke.length === 0) return;\r\n const base = this.shapeGraphics();\r\n if (!base) return;\r\n ctx.draw(this.castsShadowFromStroke() ? base.shadow(this.shadow).stroke(stroke) : base.stroke(stroke));\r\n }\r\n\r\n /**\r\n * Whether the stroke pass is the one that has to cast the node's shadow.\r\n *\r\n * True when nothing in the fill list can paint — an empty list, or one whose\r\n * every layer is fully transparent, which is the same test\r\n * `StrokeHandler.applyShadows` uses to decide there is no filled silhouette\r\n * to sit the shadow under.\r\n */\r\n private castsShadowFromStroke(): boolean {\r\n const shadow = this.shadow as ShadowResolved[];\r\n if (shadow.length === 0) return false;\r\n const fill = this.fill as FillResolved[];\r\n return !fill.some(layer => (layer.opacity ?? 1) > 0);\r\n }\r\n\r\n /**\r\n * Every paint slot is already resolved on `this`, so what it references is read\r\n * off the node rather than discovered by drawing it. A subclass painting outside\r\n * these slots — `Video`, `Path`, the grids — overrides this and calls `super`.\r\n */\r\n override declareAssets(assets: AssetScope): void {\r\n super.declareAssets(assets);\r\n assets.fill(this.fill as FillResolved[]);\r\n for (const stroke of this.stroke as StrokeResolved[]) assets.fill(stroke.fill);\r\n for (const shadow of this.shadow as ShadowResolved[]) assets.fill(shadow.fill);\r\n }\r\n\r\n /**\r\n * Shapes hit on their outline, not their box: a click in the empty corner of\r\n * a star's bounding box should fall through to whatever is behind it. The\r\n * outline is the very one this node already declares for clipping\r\n * ({@link Node2D.clipSelf}), so what is grabbable and what is drawn can never\r\n * drift. Nodes that declare no outline (Text, RichText, Path) keep the base\r\n * box test, which is what selection should do for them anyway.\r\n */\r\n protected override hitTestSelf(local: Vector2, tolerance: number): boolean {\r\n const clip = this.clipSelf();\r\n if (!clip || clip.isEmpty()) return super.hitTestSelf(local, tolerance);\r\n return containsClip(clip, local, tolerance);\r\n }\r\n\r\n // ---- Paint commands ---------------------------------------------------\r\n //\r\n // These are the shape a `Command` exists for: a paint has no in-between a\r\n // numeric tween could find, so each is a `t → props` function the node\r\n // supplies. They used to be generators over `tween(...)`, which ran fine and\r\n // could not be asked what they looked like at a time. Same body, returned as\r\n // a value.\r\n\r\n @command()\r\n fillTo(args: CommandArgs<Fill, FillResolved[]> & { duration: number }): Command<P> {\r\n const from = this.fill as FillResolved[];\r\n const target = fillOps.resolve(args.data as Fill);\r\n const lerp = args.lerp ?? fillOps.lerp;\r\n return this.command<P>(t => ({ fill: lerp(from, target, t) }) as Partial<P>, args.duration, args.easing);\r\n }\r\n\r\n @command()\r\n strokeTo(args: CommandArgs<Stroke, StrokeResolved[]> & { duration: number }): Command<P> {\r\n const from = this.stroke as StrokeResolved[];\r\n const target = strokeOps.resolve(args.data as Stroke, from);\r\n const lerp = args.lerp ?? strokeOps.lerp;\r\n return this.command<P>(t => ({ stroke: lerp(from, target, t) }) as Partial<P>, args.duration, args.easing);\r\n }\r\n\r\n @command()\r\n shadowTo(args: CommandArgs<Shadow, ShadowResolved[]> & { duration: number }): Command<P> {\r\n const from = this.shadow as ShadowResolved[];\r\n const target = shadowOps.resolve(args.data as Shadow, from);\r\n const lerp = args.lerp ?? shadowOps.lerp;\r\n return this.command<P>(t => ({ shadow: lerp(from, target, t) }) as Partial<P>, args.duration, args.easing);\r\n }\r\n\r\n /**\r\n * Animate how much of the outline is drawn: `start` and `end`, each a\r\n * fraction of its length in `[0, 1]`, whichever are given.\r\n *\r\n * @example\r\n * path.progressTo({ data: { end: 1 }, duration: 0.8 });\r\n */\r\n @command({\r\n args: [\r\n { key: \"start\", kind: \"number\", min: 0, max: 1, step: 0.01, scale: 100, unit: \"%\" },\r\n { key: \"end\", kind: \"number\", min: 0, max: 1, step: 0.01, scale: 100, unit: \"%\" },\r\n ],\r\n })\r\n progressTo(args: CommandArgs<{ start?: number; end?: number }> & { duration: number }): Command<P> {\r\n const { start, end } = args.data ?? {};\r\n const data = { ...(start === undefined ? {} : { start }), ...(end === undefined ? {} : { end }) };\r\n return this.to({ data: data as Partial<P>, duration: args.duration, easing: args.easing });\r\n }\r\n\r\n /**\r\n * Send a stretch of the outline along it, `portion` of its length long,\r\n * from its beginning off its end. Before and after, the node draws as much\r\n * of its outline as it did: one that rests with `end: 0` is only ever seen\r\n * as the stretch passing.\r\n *\r\n * @example\r\n * outline.flash({ data: { portion: 0.2 }, duration: 0.8 });\r\n */\r\n @command({ args: [{ key: \"portion\", kind: \"number\", min: 0.01, max: 1, step: 0.01, scale: 100, unit: \"%\", default: 0.25 }] })\r\n flash(args: CommandArgs<{ portion?: number }> & { duration: number }): Command<P> {\r\n const rest = { start: this.start, end: this.end };\r\n const portion = Math.min(1, Math.max(0.01, args.data?.portion ?? 0.25));\r\n return this.command<P>(\r\n (t) => {\r\n if (t <= 0 || t >= 1) return rest as Partial<P>;\r\n const head = t * (1 + portion);\r\n return { start: Math.max(0, head - portion), end: Math.min(1, head) } as Partial<P>;\r\n },\r\n args.duration,\r\n args.easing,\r\n );\r\n }\r\n}\r\n"]}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { NodeAudio, type NodeAudioProps } from "./node-audio.js";
|
|
2
|
-
export interface AudioBusProps extends NodeAudioProps {
|
|
3
|
-
/** Silence every other bus that is not itself soloed. */
|
|
4
|
-
solo: boolean;
|
|
5
|
-
}
|
|
6
|
-
/**
|
|
7
|
-
* A group in the audio tree: everything beneath it feeds through its level and
|
|
8
|
-
* its filters.
|
|
9
|
-
*
|
|
10
|
-
* The counterpart to a `Rect` holding children, and it earns its place the same
|
|
11
|
-
* way — one edit reaching many things. Ducking six sound effects under a
|
|
12
|
-
* voiceover is one bus with one gain curve, not six clips whose curves have to
|
|
13
|
-
* be kept identical by hand.
|
|
14
|
-
*
|
|
15
|
-
* It is a real signal path, not an authoring convenience: the platform builds
|
|
16
|
-
* one live chain per bus and every clip under it feeds that same chain, so a
|
|
17
|
-
* reverb here is a single tail the whole group shares. Flattening it into
|
|
18
|
-
* per-clip processing would be a different sound.
|
|
19
|
-
*
|
|
20
|
-
* **One bus node is one bus.** Containment is the only thing that puts a clip on
|
|
21
|
-
* it — being under it, or naming its id in `Video.bus`. Two bus nodes sharing a
|
|
22
|
-
* `key` no longer merge into one; a chain is keyed by {@link NodeAudio._busId},
|
|
23
|
-
* so what two clips have to share to share a chain is that identity.
|
|
24
|
-
*/
|
|
25
|
-
export declare class AudioBus extends NodeAudio<AudioBusProps> {
|
|
26
|
-
solo: boolean;
|
|
27
|
-
}
|
|
28
|
-
//# sourceMappingURL=audio-bus.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"audio-bus.d.ts","sourceRoot":"","sources":["../../../src/nodes/audio/audio-bus.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,KAAK,cAAc,EAAE,MAAM,cAAc,CAAC;AAE9D,MAAM,WAAW,aAAc,SAAQ,cAAc;IACjD,yDAAyD;IACzD,IAAI,EAAE,OAAO,CAAC;CACjB;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,qBAAa,QAAS,SAAQ,SAAS,CAAC,aAAa,CAAC;IACZ,IAAI,EAAE,OAAO,CAAC;CACvD"}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
-
};
|
|
7
|
-
import { property } from "../../attributes/properties/decorator.js";
|
|
8
|
-
import { NodeAudio } from "./node-audio.js";
|
|
9
|
-
/**
|
|
10
|
-
* A group in the audio tree: everything beneath it feeds through its level and
|
|
11
|
-
* its filters.
|
|
12
|
-
*
|
|
13
|
-
* The counterpart to a `Rect` holding children, and it earns its place the same
|
|
14
|
-
* way — one edit reaching many things. Ducking six sound effects under a
|
|
15
|
-
* voiceover is one bus with one gain curve, not six clips whose curves have to
|
|
16
|
-
* be kept identical by hand.
|
|
17
|
-
*
|
|
18
|
-
* It is a real signal path, not an authoring convenience: the platform builds
|
|
19
|
-
* one live chain per bus and every clip under it feeds that same chain, so a
|
|
20
|
-
* reverb here is a single tail the whole group shares. Flattening it into
|
|
21
|
-
* per-clip processing would be a different sound.
|
|
22
|
-
*
|
|
23
|
-
* **One bus node is one bus.** Containment is the only thing that puts a clip on
|
|
24
|
-
* it — being under it, or naming its id in `Video.bus`. Two bus nodes sharing a
|
|
25
|
-
* `key` no longer merge into one; a chain is keyed by {@link NodeAudio._busId},
|
|
26
|
-
* so what two clips have to share to share a chain is that identity.
|
|
27
|
-
*/
|
|
28
|
-
export class AudioBus extends NodeAudio {
|
|
29
|
-
}
|
|
30
|
-
__decorate([
|
|
31
|
-
property({ default: false })
|
|
32
|
-
], AudioBus.prototype, "solo", void 0);
|
|
33
|
-
//# sourceMappingURL=audio-bus.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"audio-bus.js","sourceRoot":"","sources":["../../../src/nodes/audio/audio-bus.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,mCAAmC,CAAC;AAC7D,OAAO,EAAE,SAAS,EAAuB,MAAM,cAAc,CAAC;AAO9D;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,OAAO,QAAS,SAAQ,SAAwB;CAErD;AADyC;IAArC,QAAQ,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;sCAAuB","sourcesContent":["import { property } from \"@/attributes/properties/decorator\";\r\nimport { NodeAudio, type NodeAudioProps } from \"./node-audio\";\r\n\r\nexport interface AudioBusProps extends NodeAudioProps {\r\n /** Silence every other bus that is not itself soloed. */\r\n solo: boolean;\r\n}\r\n\r\n/**\r\n * A group in the audio tree: everything beneath it feeds through its level and\r\n * its filters.\r\n *\r\n * The counterpart to a `Rect` holding children, and it earns its place the same\r\n * way — one edit reaching many things. Ducking six sound effects under a\r\n * voiceover is one bus with one gain curve, not six clips whose curves have to\r\n * be kept identical by hand.\r\n *\r\n * It is a real signal path, not an authoring convenience: the platform builds\r\n * one live chain per bus and every clip under it feeds that same chain, so a\r\n * reverb here is a single tail the whole group shares. Flattening it into\r\n * per-clip processing would be a different sound.\r\n *\r\n * **One bus node is one bus.** Containment is the only thing that puts a clip on\r\n * it — being under it, or naming its id in `Video.bus`. Two bus nodes sharing a\r\n * `key` no longer merge into one; a chain is keyed by {@link NodeAudio._busId},\r\n * so what two clips have to share to share a chain is that identity.\r\n */\r\nexport class AudioBus extends NodeAudio<AudioBusProps> {\r\n @property({ default: false }) declare solo: boolean;\r\n}\r\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/nodes/audio/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,gBAAgB,EAAE,KAAK,cAAc,EAAE,MAAM,cAAc,CAAC;AAEnH,YAAY,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AACjD,YAAY,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/nodes/audio/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,gBAAgB,EAAuB,MAAM,cAAc,CAAC","sourcesContent":["export { NodeAudio, busPathOf, busPathTo, findBusById, structuralPathOf, type NodeAudioProps } from \"./node-audio\";\r\n// The audio built-ins are components (`component/builtins/audio`).\r\nexport type { AudioBusProps } from \"./audio-bus\";\r\nexport type { SoundNodeProps } from \"./sound-node\";\r\n"]}
|
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
import { type AudioFilter } from "../../attributes/audio/filters/chain.js";
|
|
2
|
-
import type { Param } from "../../attributes/audio/filters/curve.js";
|
|
3
|
-
import type { AudioBusStop } from "../../attributes/audio/request.js";
|
|
4
|
-
import type { AudioScope } from "../../attributes/audio/schedule.js";
|
|
5
|
-
import { Node, type NodeConfig, type NodeDimension, type NodeProps } from "../../nodes/node/node.js";
|
|
6
|
-
import type { EasingFunction } from "../../tween/ease/type.js";
|
|
7
|
-
import type { TweenStepper } from "../../tween/stepper.js";
|
|
8
|
-
export interface NodeAudioProps extends NodeProps {
|
|
9
|
-
/** Linear gain. 1 leaves the signal alone, 0 silences it. */
|
|
10
|
-
volume: Param;
|
|
11
|
-
/** Stereo position: -1 hard left, 0 centre, +1 hard right. */
|
|
12
|
-
pan: Param;
|
|
13
|
-
/** Silence this node and, on a bus, everything under it. */
|
|
14
|
-
mute: boolean;
|
|
15
|
-
/** Filters applied in array order, index 0 closest to the source. */
|
|
16
|
-
filters: AudioFilter;
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* The third scene graph: things that make sound.
|
|
20
|
-
*
|
|
21
|
-
* Sibling to `Node2D` and `Node3D`, and thin for the same reason they are thick
|
|
22
|
-
* — a node that makes sound has no box and no place in space, so it inherits the
|
|
23
|
-
* tree, identity, props, commands, context and clock from {@link Node} and adds
|
|
24
|
-
* only what every audible thing has: a level, a position in the stereo field, a
|
|
25
|
-
* mute, and a filter chain.
|
|
26
|
-
*
|
|
27
|
-
* Two concrete kinds, and no more: `SoundNode` is a leaf that plays a file, and
|
|
28
|
-
* `AudioBus` is a group that everything beneath it feeds. That is the whole
|
|
29
|
-
* vocabulary of a mixer, and it is deliberately the same shape as the visual
|
|
30
|
-
* trees — a group node and a drawing node — because the thing being described is
|
|
31
|
-
* the same: what exists, and what is under what.
|
|
32
|
-
*
|
|
33
|
-
* ### Levels are curves, not tweens
|
|
34
|
-
*
|
|
35
|
-
* `volume` and `pan` are {@link Param}, so a fade is `AudioFilters`-style
|
|
36
|
-
* automation (`fadeOut(1)`, `ramp(...)`) rather than a `to()`. That is not a
|
|
37
|
-
* limitation being worked around, it is what the two mechanisms mean: a tween
|
|
38
|
-
* writes a prop once per *frame*, while sound is scheduled once, ahead of
|
|
39
|
-
* time, and then runs at 48 kHz. A per-frame write reaches the graph on the one
|
|
40
|
-
* frame that built the request and never again — so a `to({ volume })` would
|
|
41
|
-
* read as animated on the timeline and render flat. `_prepareStep` refuses it
|
|
42
|
-
* instead.
|
|
43
|
-
*/
|
|
44
|
-
export declare class NodeAudio<P extends NodeAudioProps = NodeAudioProps> extends Node<P> {
|
|
45
|
-
get dimension(): NodeDimension;
|
|
46
|
-
volume: Param;
|
|
47
|
-
pan: Param;
|
|
48
|
-
mute: boolean;
|
|
49
|
-
filters: AudioFilter;
|
|
50
|
-
constructor(props?: NodeConfig<any, P>);
|
|
51
|
-
/** This node's children in the audio tree. */
|
|
52
|
-
get childrenAudio(): NodeAudio[];
|
|
53
|
-
/**
|
|
54
|
-
* This bus's identity in the platform's graph: one chain, which everything
|
|
55
|
-
* under it feeds.
|
|
56
|
-
*
|
|
57
|
-
* The authored id, and the structural path for a bus built in code rather
|
|
58
|
-
* than from a document row. Neither answer alone works, and being wrong is
|
|
59
|
-
* silent either way — the string reaches `AssetManager.stableKey`, so one
|
|
60
|
-
* that changes re-fetches and re-schedules every clip on the bus. A document
|
|
61
|
-
* row's id is fixed for the document's life, while its child index moves as
|
|
62
|
-
* `syncPresence` adds and removes siblings; a code-built bus has no authored
|
|
63
|
-
* id, but its parent builds it in the same slot every time.
|
|
64
|
-
*
|
|
65
|
-
* @internal
|
|
66
|
-
*/
|
|
67
|
-
get _busId(): string;
|
|
68
|
-
/**
|
|
69
|
-
* Refuse a tween on a level, naming the curve that does work.
|
|
70
|
-
*
|
|
71
|
-
* Loud rather than silent because the failure is otherwise invisible: the
|
|
72
|
-
* command runs its full duration, the timeline draws a bar, and the render
|
|
73
|
-
* is at one flat level. See the class docblock for why the two mechanisms
|
|
74
|
-
* cannot agree.
|
|
75
|
-
*/
|
|
76
|
-
_prepareStep(to: Partial<P>, duration: number, easing?: EasingFunction): TweenStepper;
|
|
77
|
-
}
|
|
78
|
-
/**
|
|
79
|
-
* The buses a node feeds, **source-adjacent first**.
|
|
80
|
-
*
|
|
81
|
-
* Walks up the audio ancestors only: the walk stops at the first non-audio
|
|
82
|
-
* parent, which is the `Canvas2D` scene root, because a scene root is not a bus
|
|
83
|
-
* — it has no level of its own and nothing to mix.
|
|
84
|
-
*/
|
|
85
|
-
export declare function busPathOf(node: NodeAudio, audio: AudioScope): AudioBusStop[] | undefined;
|
|
86
|
-
/** {@link busPathOf}, with `bus` itself as the first stop. */
|
|
87
|
-
export declare function busPathTo(bus: NodeAudio, audio: AudioScope): AudioBusStop[];
|
|
88
|
-
/**
|
|
89
|
-
* The bus in `from`'s scene with node id `id`, or `null`.
|
|
90
|
-
*
|
|
91
|
-
* What lets something outside the audio tree feed a bus — a `Video`, whose audio
|
|
92
|
-
* is welded to its picture and so cannot be parented under one. It names the bus
|
|
93
|
-
* by the same id a `SoundNode` under that bus writes in its `parentId`, because
|
|
94
|
-
* it is asking the same question: which bus. A `key` would be a second
|
|
95
|
-
* vocabulary for it, and an optional one.
|
|
96
|
-
*/
|
|
97
|
-
export declare function findBusById(from: Node, id: string): NodeAudio | null;
|
|
98
|
-
/**
|
|
99
|
-
* A node's child-index path from the root of its tree, joined with ".".
|
|
100
|
-
*
|
|
101
|
-
* The same identity `nodePath` gives the runtime, computed bottom-up because a
|
|
102
|
-
* node declaring its audio knows its parents and not its index in a
|
|
103
|
-
* walk. Stable across a rebuild for an unchanged tree, which is the property
|
|
104
|
-
* both a bus id and a clip's request id need.
|
|
105
|
-
*/
|
|
106
|
-
export declare function structuralPathOf(node: Node): string;
|
|
107
|
-
//# sourceMappingURL=node-audio.d.ts.map
|
|
@@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