@glissade/scene 0.13.0-pre.0 → 0.13.0-pre.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +4 -3
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -561,9 +561,10 @@ function createScene(init) {
561
561
  size: init.size,
562
562
  playhead,
563
563
  resolveTarget: (target) => {
564
- const slash = target.lastIndexOf("/");
565
- if (slash < 0) return void 0;
566
- return nodes.get(target.slice(0, slash))?.resolveTarget(target.slice(slash + 1));
564
+ for (let slash = target.lastIndexOf("/"); slash > 0; slash = target.lastIndexOf("/", slash - 1)) {
565
+ const node = nodes.get(target.slice(0, slash));
566
+ if (node) return node.resolveTarget(target.slice(slash + 1));
567
+ }
567
568
  },
568
569
  setTextMeasurer: (m) => {
569
570
  measurer.set(m);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@glissade/scene",
3
- "version": "0.13.0-pre.0",
3
+ "version": "0.13.0-pre.1",
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": {
@@ -23,7 +23,7 @@
23
23
  ],
24
24
  "dependencies": {
25
25
  "yoga-layout": "^3.2.1",
26
- "@glissade/core": "0.13.0-pre.0"
26
+ "@glissade/core": "0.13.0-pre.1"
27
27
  },
28
28
  "repository": {
29
29
  "type": "git",