@glissade/scene 0.20.1 → 0.21.0-pre.0

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/describe.js CHANGED
@@ -22,7 +22,7 @@ import { easings, listValueTypes } from "@glissade/core";
22
22
  * never pulled onto the base embed path — a scene that never calls `describe()`
23
23
  * pays zero bytes for it.
24
24
  */
25
- const RAW_VERSION = "0.20.1";
25
+ const RAW_VERSION = "0.21.0-pre.0";
26
26
  const PACKAGE_VERSION = RAW_VERSION.includes("GLISSADE_".concat("VERSION")) ? "0.0.0-dev" : RAW_VERSION;
27
27
  /** Arity of a value type's numeric repr: vec2/vec2-arc → 2, number → 1; others (color/paint/path/string/boolean) carry no scalar arity. */
28
28
  function arityOf(type) {
package/dist/nodes.d.ts CHANGED
@@ -455,6 +455,15 @@ declare abstract class Shape extends Node {
455
455
  * tree-shakeable `@glissade/scene/path` subpath (kept off the base embed), so a
456
456
  * string `data` throws a clear error pointing at `pathFromSvg(d)`. Returns `[]`
457
457
  * for `undefined` (the empty-path default).
458
+ *
459
+ * Note on the two surfaces (both accept `PathValue`, both reject raw `d`
460
+ * strings — only the rejection LAYER differs, by design): the construction prop
461
+ * `data` is coerced HERE at `new Path({ data })` time; the animatable target
462
+ * `<id>/d` (the same underlying signal) is a `'path'`-typed track validated at
463
+ * bind time by core's value-type guard. So a string passed to `data` throws
464
+ * this construction-time `TypeError`, while a string track VALUE on `d` is
465
+ * rejected at `bindScene` — same outcome (use `pathFromSvg` for SVG strings),
466
+ * different layer/wording.
458
467
  */
459
468
  declare function coercePathData(data: unknown): PathValue;
460
469
  /**
package/dist/nodes.js CHANGED
@@ -1441,6 +1441,15 @@ function emitDrawOnStroke(out, segs, paint, baseStroke, reveal) {
1441
1441
  * tree-shakeable `@glissade/scene/path` subpath (kept off the base embed), so a
1442
1442
  * string `data` throws a clear error pointing at `pathFromSvg(d)`. Returns `[]`
1443
1443
  * for `undefined` (the empty-path default).
1444
+ *
1445
+ * Note on the two surfaces (both accept `PathValue`, both reject raw `d`
1446
+ * strings — only the rejection LAYER differs, by design): the construction prop
1447
+ * `data` is coerced HERE at `new Path({ data })` time; the animatable target
1448
+ * `<id>/d` (the same underlying signal) is a `'path'`-typed track validated at
1449
+ * bind time by core's value-type guard. So a string passed to `data` throws
1450
+ * this construction-time `TypeError`, while a string track VALUE on `d` is
1451
+ * rejected at `bindScene` — same outcome (use `pathFromSvg` for SVG strings),
1452
+ * different layer/wording.
1444
1453
  */
1445
1454
  function coercePathData(data) {
1446
1455
  if (data === void 0) return [];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@glissade/scene",
3
- "version": "0.20.1",
3
+ "version": "0.21.0-pre.0",
4
4
  "description": "glissade scene graph: nodes, transforms, DisplayList emission. Renderer-agnostic; zero DOM/Node dependencies.",
5
5
  "license": "Apache-2.0",
6
6
  "engines": {
@@ -59,7 +59,7 @@
59
59
  ],
60
60
  "dependencies": {
61
61
  "yoga-layout": "^3.2.1",
62
- "@glissade/core": "0.20.1"
62
+ "@glissade/core": "0.21.0-pre.0"
63
63
  },
64
64
  "repository": {
65
65
  "type": "git",