@glissade/scene 0.23.0-pre.2 → 0.23.0-pre.4

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.23.0-pre.2";
25
+ const RAW_VERSION = "0.23.0-pre.4";
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.js CHANGED
@@ -678,6 +678,7 @@ function breakLines(text, font, maxWidth, measurer) {
678
678
  * `FontSpec`, so it's a parameter here).
679
679
  */
680
680
  function measureWrappedText(text, font, width, lineHeight, measurer) {
681
+ if (typeof font.size !== "number" || !Number.isFinite(font.size) || font.size <= 0) throw new Error(`measureWrappedText: font.size must be a positive number (got ${JSON.stringify(font.size)}). The FontSpec field is \`size\`, not \`fontSize\` (that is the Text node prop) — pass \`{ family, size }\`.`);
681
682
  const lines = breakLines(text, font, width > 0 ? width : void 0, measurer);
682
683
  let widest = 0;
683
684
  let ascent = 0;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@glissade/scene",
3
- "version": "0.23.0-pre.2",
3
+ "version": "0.23.0-pre.4",
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.23.0-pre.2"
62
+ "@glissade/core": "0.23.0-pre.4"
63
63
  },
64
64
  "repository": {
65
65
  "type": "git",