@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.
- package/dist/index.d.ts +1 -0
- package/dist/index.js +14 -0
- package/dist/modules/controller.d.ts +8 -0
- package/dist/modules/controller.js +8 -0
- package/dist/modules/image.d.ts +6 -0
- package/dist/modules/image.js +6 -0
- package/dist/modules/props.d.ts +5 -0
- package/dist/modules/props.js +5 -0
- package/dist/modules/sprite.d.ts +5 -0
- package/dist/modules/sprite.js +5 -0
- package/dist/modules/view.d.ts +5 -0
- package/dist/modules/view.js +5 -0
- package/package.json +31 -6
- package/src/index.ts +16 -0
- package/{modules/controller.js → src/modules/controller.ts} +3 -3
- package/{modules/image.js → src/modules/image.ts} +1 -1
- package/{modules/props.js → src/modules/props.ts} +1 -1
- package/{modules/sprite.js → src/modules/sprite.ts} +1 -1
- package/{modules/view.js → src/modules/view.ts} +1 -1
- package/tsconfig.json +9 -0
- package/const/const.js +0 -1
- package/const/events.js +0 -3
- package/const/params.js +0 -1
- package/index.js +0 -13
package/dist/index.d.ts
ADDED
|
@@ -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 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
|
+
}
|
package/package.json
CHANGED
|
@@ -1,17 +1,42 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vnejs/plugins.canvas.layer.sg",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"
|
|
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": "
|
|
11
|
-
"publish:minor": "
|
|
12
|
-
"publish:patch": "
|
|
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
|
-
"
|
|
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
|
|
6
|
+
updateEvent = this.EVENTS.LAYER_SG!.UPDATE;
|
|
7
7
|
|
|
8
|
-
LAYER = this.CONST.LAYER_SG
|
|
9
|
-
ZINDEX = this.PARAMS.LAYER_SG
|
|
8
|
+
LAYER = this.CONST.LAYER_SG!.LAYER;
|
|
9
|
+
ZINDEX = this.PARAMS.LAYER_SG!.ZINDEX;
|
|
10
10
|
WITH_POINTER_EVENTS_NONE = true;
|
|
11
11
|
}
|
package/tsconfig.json
ADDED
package/const/const.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export const LAYER = "sg";
|
package/const/events.js
DELETED
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]);
|