@vnejs/plugins.canvas.layer.sg 0.1.1 → 0.1.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.
@@ -0,0 +1 @@
1
+ export {};
package/dist/index.js ADDED
@@ -0,0 +1,14 @@
1
+ import { regPlugin } from "@vnejs/shared";
2
+ import { CONSTANTS, PARAMS, PLUGIN_NAME, SUBSCRIBE_EVENTS } from "@vnejs/plugins.canvas.layer.sg.contract";
3
+ import { LayerSgController } from "./modules/controller.js";
4
+ import { LayerSgImage } from "./modules/image.js";
5
+ import { LayerSgProps } from "./modules/props.js";
6
+ import { LayerSgSprite } from "./modules/sprite.js";
7
+ import { LayerSgView } from "./modules/view.js";
8
+ regPlugin(PLUGIN_NAME, { constants: CONSTANTS, events: SUBSCRIBE_EVENTS, params: PARAMS }, [
9
+ LayerSgController,
10
+ LayerSgImage,
11
+ LayerSgProps,
12
+ LayerSgSprite,
13
+ LayerSgView,
14
+ ]);
@@ -0,0 +1,8 @@
1
+ import { ModuleLayerController } from "@vnejs/module.layer";
2
+ export declare class LayerSgController extends ModuleLayerController {
3
+ name: string;
4
+ updateEvent: "vne:layer_sg:update";
5
+ LAYER: "sg";
6
+ ZINDEX: number;
7
+ WITH_POINTER_EVENTS_NONE: boolean;
8
+ }
@@ -0,0 +1,8 @@
1
+ import { ModuleLayerController } from "@vnejs/module.layer";
2
+ export class LayerSgController extends ModuleLayerController {
3
+ name = "layer.sg.controller";
4
+ updateEvent = this.EVENTS.LAYER_SG.UPDATE;
5
+ LAYER = this.CONST.LAYER_SG.LAYER;
6
+ ZINDEX = this.PARAMS.LAYER_SG.ZINDEX;
7
+ WITH_POINTER_EVENTS_NONE = true;
8
+ }
@@ -0,0 +1,6 @@
1
+ import { ModuleImage } from "@vnejs/module.layer";
2
+ export declare class LayerSgImage extends ModuleImage {
3
+ name: string;
4
+ LAYER: "sg";
5
+ HIDE_OLD_IMAGES_ON_SHOW: boolean;
6
+ }
@@ -0,0 +1,6 @@
1
+ import { ModuleImage } from "@vnejs/module.layer";
2
+ export class LayerSgImage extends ModuleImage {
3
+ name = "layer.sg.image";
4
+ LAYER = this.CONST.LAYER_SG.LAYER;
5
+ HIDE_OLD_IMAGES_ON_SHOW = true;
6
+ }
@@ -0,0 +1,5 @@
1
+ import { ModuleProps } from "@vnejs/module.layer";
2
+ export declare class LayerSgProps extends ModuleProps {
3
+ name: string;
4
+ LAYER: "sg";
5
+ }
@@ -0,0 +1,5 @@
1
+ import { ModuleProps } from "@vnejs/module.layer";
2
+ export class LayerSgProps extends ModuleProps {
3
+ name = "layer.sg.props";
4
+ LAYER = this.CONST.LAYER_SG.LAYER;
5
+ }
@@ -0,0 +1,5 @@
1
+ import { ModuleSprite } from "@vnejs/module.layer";
2
+ export declare class LayerSgSprite extends ModuleSprite {
3
+ name: string;
4
+ LAYER: "sg";
5
+ }
@@ -0,0 +1,5 @@
1
+ import { ModuleSprite } from "@vnejs/module.layer";
2
+ export class LayerSgSprite extends ModuleSprite {
3
+ name = "layer.sg.sprite";
4
+ LAYER = this.CONST.LAYER_SG.LAYER;
5
+ }
@@ -0,0 +1,5 @@
1
+ import { ModuleLayerView } from "@vnejs/module.layer";
2
+ export declare class LayerSgView extends ModuleLayerView {
3
+ name: string;
4
+ updateEvent: "vne:layer_sg:update";
5
+ }
@@ -0,0 +1,5 @@
1
+ import { ModuleLayerView } from "@vnejs/module.layer";
2
+ export class LayerSgView extends ModuleLayerView {
3
+ name = "layer.sg.view";
4
+ updateEvent = this.EVENTS.LAYER_SG.UPDATE;
5
+ }
package/package.json CHANGED
@@ -1,17 +1,42 @@
1
1
  {
2
2
  "name": "@vnejs/plugins.canvas.layer.sg",
3
- "version": "0.1.1",
4
- "main": "index.js",
3
+ "version": "0.1.5",
4
+ "description": "",
5
+ "main": "dist/index.js",
6
+ "types": "dist/index.d.ts",
7
+ "exports": {
8
+ ".": {
9
+ "types": "./dist/index.d.ts",
10
+ "import": "./dist/index.js",
11
+ "require": "./dist/index.js",
12
+ "default": "./dist/index.js"
13
+ }
14
+ },
15
+ "files": [
16
+ "dist",
17
+ "src",
18
+ "tsconfig.json"
19
+ ],
5
20
  "scripts": {
6
21
  "test": "echo \"Error: no test specified\" && exit 1",
22
+ "build": "npx @vnejs/monorepo package",
7
23
  "publish:major:plugin": "npm run publish:major",
8
24
  "publish:minor:plugin": "npm run publish:minor",
9
25
  "publish:patch:plugin": "npm run publish:patch",
10
- "publish:major": "npm version major && npm publish --access public",
11
- "publish:minor": "npm version minor && npm publish --access public",
12
- "publish:patch": "npm version patch && npm publish --access public"
26
+ "publish:major": "npx @vnejs/monorepo publish major --access public",
27
+ "publish:minor": "npx @vnejs/monorepo publish minor --access public",
28
+ "publish:patch": "npx @vnejs/monorepo publish patch --access public"
13
29
  },
14
30
  "author": "",
15
31
  "license": "ISC",
16
- "description": ""
32
+ "dependencies": {
33
+ "@vnejs/plugins.canvas.layer.sg.contract": "~0.0.1"
34
+ },
35
+ "peerDependencies": {
36
+ "@vnejs/module.layer": "~0.1.0",
37
+ "@vnejs/shared": "~0.0.9"
38
+ },
39
+ "devDependencies": {
40
+ "@vnejs/configs.ts-common": "~0.0.1"
41
+ }
17
42
  }
package/src/index.ts ADDED
@@ -0,0 +1,16 @@
1
+ import { regPlugin } from "@vnejs/shared";
2
+ import { CONSTANTS, PARAMS, PLUGIN_NAME, SUBSCRIBE_EVENTS } from "@vnejs/plugins.canvas.layer.sg.contract";
3
+
4
+ import { LayerSgController } from "./modules/controller.js";
5
+ import { LayerSgImage } from "./modules/image.js";
6
+ import { LayerSgProps } from "./modules/props.js";
7
+ import { LayerSgSprite } from "./modules/sprite.js";
8
+ import { LayerSgView } from "./modules/view.js";
9
+
10
+ regPlugin(PLUGIN_NAME, { constants: CONSTANTS, events: SUBSCRIBE_EVENTS, params: PARAMS }, [
11
+ LayerSgController,
12
+ LayerSgImage,
13
+ LayerSgProps,
14
+ LayerSgSprite,
15
+ LayerSgView,
16
+ ]);
@@ -3,9 +3,9 @@ import { ModuleLayerController } from "@vnejs/module.layer";
3
3
  export class LayerSgController extends ModuleLayerController {
4
4
  name = "layer.sg.controller";
5
5
 
6
- updateEvent = this.EVENTS.LAYER_SG.UPDATE;
6
+ updateEvent = this.EVENTS.LAYER_SG!.UPDATE;
7
7
 
8
- LAYER = this.CONST.LAYER_SG.LAYER;
9
- ZINDEX = this.PARAMS.LAYER_SG.ZINDEX;
8
+ LAYER = this.CONST.LAYER_SG!.LAYER;
9
+ ZINDEX = this.PARAMS.LAYER_SG!.ZINDEX;
10
10
  WITH_POINTER_EVENTS_NONE = true;
11
11
  }
@@ -3,6 +3,6 @@ import { ModuleImage } from "@vnejs/module.layer";
3
3
  export class LayerSgImage extends ModuleImage {
4
4
  name = "layer.sg.image";
5
5
 
6
- LAYER = this.CONST.LAYER_SG.LAYER;
6
+ LAYER = this.CONST.LAYER_SG!.LAYER;
7
7
  HIDE_OLD_IMAGES_ON_SHOW = true;
8
8
  }
@@ -3,5 +3,5 @@ import { ModuleProps } from "@vnejs/module.layer";
3
3
  export class LayerSgProps extends ModuleProps {
4
4
  name = "layer.sg.props";
5
5
 
6
- LAYER = this.CONST.LAYER_SG.LAYER;
6
+ LAYER = this.CONST.LAYER_SG!.LAYER;
7
7
  }
@@ -3,5 +3,5 @@ import { ModuleSprite } from "@vnejs/module.layer";
3
3
  export class LayerSgSprite extends ModuleSprite {
4
4
  name = "layer.sg.sprite";
5
5
 
6
- LAYER = this.CONST.LAYER_SG.LAYER;
6
+ LAYER = this.CONST.LAYER_SG!.LAYER;
7
7
  }
@@ -3,5 +3,5 @@ import { ModuleLayerView } from "@vnejs/module.layer";
3
3
  export class LayerSgView extends ModuleLayerView {
4
4
  name = "layer.sg.view";
5
5
 
6
- updateEvent = this.EVENTS.LAYER_SG.UPDATE;
6
+ updateEvent = this.EVENTS.LAYER_SG!.UPDATE;
7
7
  }
package/tsconfig.json ADDED
@@ -0,0 +1,9 @@
1
+ {
2
+ "extends": "@vnejs/configs.ts-common/tsconfig.json",
3
+ "compilerOptions": {
4
+ "rootDir": "src",
5
+ "outDir": "dist"
6
+ },
7
+ "include": ["src/**/*.ts"],
8
+ "exclude": ["dist", "node_modules"]
9
+ }
package/const/const.js DELETED
@@ -1 +0,0 @@
1
- export const LAYER = "sg";
package/const/events.js DELETED
@@ -1,3 +0,0 @@
1
- export const SUBSCRIBE_EVENTS = {
2
- UPDATE: "vne:layer_sg:update",
3
- };
package/const/params.js DELETED
@@ -1 +0,0 @@
1
- export const ZINDEX = 1500;
package/index.js DELETED
@@ -1,13 +0,0 @@
1
- import { regPlugin } from "@vnejs/shared";
2
-
3
- import * as constants from "./const/const";
4
- import { SUBSCRIBE_EVENTS } from "./const/events";
5
- import * as params from "./const/params";
6
-
7
- import { LayerSgController } from "./modules/controller";
8
- import { LayerSgImage } from "./modules/image";
9
- import { LayerSgProps } from "./modules/props";
10
- import { LayerSgSprite } from "./modules/sprite";
11
- import { LayerSgView } from "./modules/view";
12
-
13
- regPlugin("LAYER_SG", { constants, events: SUBSCRIBE_EVENTS, params }, [LayerSgController, LayerSgImage, LayerSgProps, LayerSgSprite, LayerSgView]);