@vnejs/plugins.canvas.child.sprite.speak 0.2.4 → 0.2.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.
@@ -18,7 +18,7 @@ export class LayerSpriteSpeakStaff extends ModuleCore {
18
18
  onOptionSet = async ({ sprite, value = false } = {}) => {
19
19
  if (!sprite)
20
20
  return;
21
- const args = await this.emitClone(sprite.args);
21
+ const args = structuredClone(sprite.args ?? {});
22
22
  if (!args.options)
23
23
  args.options = {};
24
24
  args.options.speak = value;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vnejs/plugins.canvas.child.sprite.speak",
3
- "version": "0.2.4",
3
+ "version": "0.2.5",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -33,7 +33,7 @@ export class LayerSpriteSpeakStaff extends ModuleCore<SpriteSpeakPluginEvents, S
33
33
  onOptionSet = async ({ sprite, value = false }: SpriteSpeakSetOptionPayload = {}) => {
34
34
  if (!sprite) return;
35
35
 
36
- const args = await this.emitClone<SpriteSpeakArgs>(sprite.args);
36
+ const args = structuredClone(sprite.args ?? {});
37
37
 
38
38
  if (!args.options) args.options = {};
39
39
  args.options.speak = value;