@almadar/ui 5.138.0 → 5.139.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.
@@ -184,12 +184,18 @@ function collectDrawnItems(nodes) {
184
184
  for (const n of nodes) {
185
185
  switch (n.type) {
186
186
  case "draw-sprite":
187
+ if (isValidScenePos(n.position)) out.push({ pos: n.position, id: n.id, anchor: n.anchor, width: n.width, height: n.height });
188
+ break;
187
189
  case "draw-shape":
188
190
  case "draw-text":
189
191
  case "draw-group":
190
192
  if (isValidScenePos(n.position)) out.push({ pos: n.position, id: n.id });
191
193
  break;
192
194
  case "draw-sprite-layer":
195
+ for (const it of n.items) {
196
+ if (isValidScenePos(it.position)) out.push({ pos: it.position, id: it.id, anchor: it.anchor, width: it.width, height: it.height });
197
+ }
198
+ break;
193
199
  case "draw-shape-layer":
194
200
  case "draw-text-layer":
195
201
  for (const it of n.items) {
@@ -160,12 +160,18 @@ function collectDrawnItems(nodes) {
160
160
  for (const n of nodes) {
161
161
  switch (n.type) {
162
162
  case "draw-sprite":
163
+ if (isValidScenePos(n.position)) out.push({ pos: n.position, id: n.id, anchor: n.anchor, width: n.width, height: n.height });
164
+ break;
163
165
  case "draw-shape":
164
166
  case "draw-text":
165
167
  case "draw-group":
166
168
  if (isValidScenePos(n.position)) out.push({ pos: n.position, id: n.id });
167
169
  break;
168
170
  case "draw-sprite-layer":
171
+ for (const it of n.items) {
172
+ if (isValidScenePos(it.position)) out.push({ pos: it.position, id: it.id, anchor: it.anchor, width: it.width, height: it.height });
173
+ }
174
+ break;
169
175
  case "draw-shape-layer":
170
176
  case "draw-text-layer":
171
177
  for (const it of n.items) {