@vunk/plus 1.6.2 → 1.6.5
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/components/index2.mjs
CHANGED
|
@@ -22386,7 +22386,6 @@ var _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
22386
22386
|
emit("notFound", index.value);
|
|
22387
22387
|
}
|
|
22388
22388
|
}
|
|
22389
|
-
onBeforeUnmount(stop);
|
|
22390
22389
|
watch(() => props.status, (newStatus) => {
|
|
22391
22390
|
newStatus === TickerStatus.play && play();
|
|
22392
22391
|
newStatus === TickerStatus.pause && pause();
|
|
@@ -22412,6 +22411,15 @@ var _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
22412
22411
|
textureMap.clear();
|
|
22413
22412
|
index.value = 0;
|
|
22414
22413
|
}
|
|
22414
|
+
onBeforeUnmount(() => {
|
|
22415
|
+
const entries = Array.from(textureMap.entries());
|
|
22416
|
+
entries.forEach(([_, texture]) => {
|
|
22417
|
+
if (texture) {
|
|
22418
|
+
texture.destroy(true);
|
|
22419
|
+
}
|
|
22420
|
+
});
|
|
22421
|
+
stop();
|
|
22422
|
+
});
|
|
22415
22423
|
return (_ctx, _cache) => {
|
|
22416
22424
|
return renderSlot(_ctx.$slots, "default");
|
|
22417
22425
|
};
|
|
@@ -22528,10 +22536,6 @@ var _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
22528
22536
|
});
|
|
22529
22537
|
}
|
|
22530
22538
|
sprite.texture = currentTexture;
|
|
22531
|
-
console.log(
|
|
22532
|
-
`Rendering frame ${index.value} with texture:`,
|
|
22533
|
-
currentTexture
|
|
22534
|
-
);
|
|
22535
22539
|
resizeSprite();
|
|
22536
22540
|
index.value = props.loop ? (index.value + 1) % props.data.length : index.value + 1;
|
|
22537
22541
|
} else {
|
|
@@ -22545,7 +22549,6 @@ var _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
22545
22549
|
}
|
|
22546
22550
|
animationId = requestAnimationFrame(renderFrame);
|
|
22547
22551
|
}
|
|
22548
|
-
onBeforeUnmount(stop);
|
|
22549
22552
|
watch(() => props.status, (newStatus) => {
|
|
22550
22553
|
newStatus === TickerStatus.play && play();
|
|
22551
22554
|
newStatus === TickerStatus.pause && pause();
|
|
@@ -22572,6 +22575,15 @@ var _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
22572
22575
|
textureMap.clear();
|
|
22573
22576
|
index.value = 0;
|
|
22574
22577
|
}
|
|
22578
|
+
onBeforeUnmount(() => {
|
|
22579
|
+
const entries = Array.from(textureMap.entries());
|
|
22580
|
+
entries.forEach(([alias, texture]) => {
|
|
22581
|
+
if (texture) {
|
|
22582
|
+
Assets.unload(alias);
|
|
22583
|
+
}
|
|
22584
|
+
});
|
|
22585
|
+
stop();
|
|
22586
|
+
});
|
|
22575
22587
|
return (_ctx, _cache) => {
|
|
22576
22588
|
return renderSlot(_ctx.$slots, "default");
|
|
22577
22589
|
};
|
|
@@ -166,12 +166,13 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
166
166
|
createVNode(unref(VkPixiFrameBitmap), {
|
|
167
167
|
status: unref(frameStatus),
|
|
168
168
|
"onUpdate:status": _cache[1] || (_cache[1] = ($event) => isRef(frameStatus) ? frameStatus.value = $event : null),
|
|
169
|
-
data: frameUrls.value
|
|
169
|
+
data: frameUrls.value,
|
|
170
|
+
onSetData: _cache[2] || (_cache[2] = ($event) => unref(setData)(frameUrls.value, $event))
|
|
170
171
|
}, null, 8, ["status", "data"]),
|
|
171
172
|
ready.value ? (openBlock(), createBlock(unref(VkPixiFrameCore), {
|
|
172
173
|
key: 0,
|
|
173
174
|
status: slientFrameStatus.value,
|
|
174
|
-
"onUpdate:status": _cache[
|
|
175
|
+
"onUpdate:status": _cache[3] || (_cache[3] = ($event) => slientFrameStatus.value = $event),
|
|
175
176
|
data: unref(silentFrameUrls),
|
|
176
177
|
loop: true,
|
|
177
178
|
prerender: true,
|