@vnejs/plugins.canvas.child.bg 0.2.1 → 0.2.2
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/modules/show.js +1 -1
- package/package.json +1 -1
- package/src/modules/show.ts +1 -1
package/dist/modules/show.js
CHANGED
|
@@ -8,7 +8,7 @@ export class LayerBgShow extends ModuleCore {
|
|
|
8
8
|
onBgShow = async ({ name, layer, transition, duration, args = {}, hideOldBgsOnShow = true } = {}) => {
|
|
9
9
|
const clonedArgs = await this.emitClone(args);
|
|
10
10
|
const shouldHideOldImages = hideOldBgsOnShow || clonedArgs.hideOldBgsOnShow;
|
|
11
|
-
const id = clonedArgs.id ||
|
|
11
|
+
const id = clonedArgs.id || crypto.randomUUID();
|
|
12
12
|
const oldChildsId = shouldHideOldImages
|
|
13
13
|
? (await this.emitOne(this.EVENTS.LAYER_BG.STATE_GET, { layer })).map((item) => item.id)
|
|
14
14
|
: [];
|
package/package.json
CHANGED
package/src/modules/show.ts
CHANGED
|
@@ -16,7 +16,7 @@ export class LayerBgShow extends ModuleCore<BgPluginEvents, BgPluginConstants, B
|
|
|
16
16
|
|
|
17
17
|
const shouldHideOldImages = hideOldBgsOnShow || clonedArgs.hideOldBgsOnShow;
|
|
18
18
|
|
|
19
|
-
const id = clonedArgs.id ||
|
|
19
|
+
const id = clonedArgs.id || crypto.randomUUID();
|
|
20
20
|
const oldChildsId = shouldHideOldImages
|
|
21
21
|
? ((await this.emitOne(this.EVENTS.LAYER_BG.STATE_GET, { layer })) as BgStateIdPayload[]).map((item) => item.id!)
|
|
22
22
|
: [];
|