@vnejs/plugins.canvas.child.sprite.speak 0.2.1 → 0.2.3

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.
@@ -3,7 +3,7 @@ import type { SpriteSpeakPluginConstants, SpriteSpeakPluginEvents, SpriteSpeakPl
3
3
  import type { SpriteSpeakSourcePayload } from "../utils/speak.js";
4
4
  export declare class LayerSpriteSpeakSources extends ModuleCore<SpriteSpeakPluginEvents, SpriteSpeakPluginConstants, SpriteSpeakPluginSettings, SpriteSpeakPluginParams> {
5
5
  name: string;
6
- init: () => void;
6
+ postinject: () => void;
7
7
  subscribe: () => void;
8
8
  onPush: ({ source, silent }?: SpriteSpeakSourcePayload) => void;
9
9
  onPop: ({ source }?: SpriteSpeakSourcePayload) => void;
@@ -2,7 +2,7 @@ import { ModuleCore } from "@vnejs/module.core";
2
2
  import { SourcesSet } from "@vnejs/sources-set";
3
3
  export class LayerSpriteSpeakSources extends ModuleCore {
4
4
  name = "layer.sprite.speak.sources";
5
- init = () => {
5
+ postinject = () => {
6
6
  this.shared.layerSpriteSpeakSources = new SourcesSet();
7
7
  };
8
8
  subscribe = () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vnejs/plugins.canvas.child.sprite.speak",
3
- "version": "0.2.1",
3
+ "version": "0.2.3",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -2,7 +2,12 @@ import { ModuleCore } from "@vnejs/module.core";
2
2
 
3
3
  import type { SpriteSpeakPluginConstants, SpriteSpeakPluginEvents, SpriteSpeakPluginParams, SpriteSpeakPluginSettings } from "../types.js";
4
4
 
5
- export class LayerSpriteSpeakDuration extends ModuleCore<SpriteSpeakPluginEvents, SpriteSpeakPluginConstants, SpriteSpeakPluginSettings, SpriteSpeakPluginParams> {
5
+ export class LayerSpriteSpeakDuration extends ModuleCore<
6
+ SpriteSpeakPluginEvents,
7
+ SpriteSpeakPluginConstants,
8
+ SpriteSpeakPluginSettings,
9
+ SpriteSpeakPluginParams
10
+ > {
6
11
  name = "layer.sprite.speak.duration";
7
12
 
8
13
  timeout: ReturnType<typeof setTimeout> | undefined;
@@ -3,7 +3,12 @@ import { ModuleCore } from "@vnejs/module.core";
3
3
  import type { SpriteSpeakPluginConstants, SpriteSpeakPluginEvents, SpriteSpeakPluginParams, SpriteSpeakPluginSettings } from "../types.js";
4
4
  import type { SpriteSpeakPreloadPayload } from "../utils/speak.js";
5
5
 
6
- export class LayerSpriteSpeakPreload extends ModuleCore<SpriteSpeakPluginEvents, SpriteSpeakPluginConstants, SpriteSpeakPluginSettings, SpriteSpeakPluginParams> {
6
+ export class LayerSpriteSpeakPreload extends ModuleCore<
7
+ SpriteSpeakPluginEvents,
8
+ SpriteSpeakPluginConstants,
9
+ SpriteSpeakPluginSettings,
10
+ SpriteSpeakPluginParams
11
+ > {
7
12
  name = "layer.sprite.speak.preload";
8
13
 
9
14
  subscribe = () => {
@@ -4,10 +4,15 @@ import { SourcesSet } from "@vnejs/sources-set";
4
4
  import type { SpriteSpeakPluginConstants, SpriteSpeakPluginEvents, SpriteSpeakPluginParams, SpriteSpeakPluginSettings } from "../types.js";
5
5
  import type { SpriteSpeakSourcePayload } from "../utils/speak.js";
6
6
 
7
- export class LayerSpriteSpeakSources extends ModuleCore<SpriteSpeakPluginEvents, SpriteSpeakPluginConstants, SpriteSpeakPluginSettings, SpriteSpeakPluginParams> {
7
+ export class LayerSpriteSpeakSources extends ModuleCore<
8
+ SpriteSpeakPluginEvents,
9
+ SpriteSpeakPluginConstants,
10
+ SpriteSpeakPluginSettings,
11
+ SpriteSpeakPluginParams
12
+ > {
8
13
  name = "layer.sprite.speak.sources";
9
14
 
10
- init = () => {
15
+ postinject = () => {
11
16
  this.shared.layerSpriteSpeakSources = new SourcesSet();
12
17
  };
13
18
 
package/tsconfig.json CHANGED
@@ -4,12 +4,6 @@
4
4
  "rootDir": "src",
5
5
  "outDir": "dist"
6
6
  },
7
- "include": [
8
- "src/**/*.ts"
9
- ],
10
- "exclude": [
11
- "dist",
12
- "node_modules",
13
- "src/tests"
14
- ]
7
+ "include": ["src/**/*.ts"],
8
+ "exclude": ["dist", "node_modules", "src/tests"]
15
9
  }