@vnejs/plugins.canvas.child.fill 0.1.1 → 0.2.1
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.js +1 -6
- package/package.json +12 -12
- package/src/index.ts +1 -6
- package/src/modules/change.ts +1 -2
- package/src/modules/show.ts +1 -2
- package/src/types.ts +1 -3
- package/tsconfig.json +2 -8
package/dist/index.js
CHANGED
|
@@ -5,9 +5,4 @@ import { LayerFillChange } from "./modules/change.js";
|
|
|
5
5
|
import { LayerFillHide } from "./modules/hide.js";
|
|
6
6
|
import { LayerFillShow } from "./modules/show.js";
|
|
7
7
|
import { LayerFillState } from "./modules/state.js";
|
|
8
|
-
regPlugin(PLUGIN_NAME, { constants: CONSTANTS, events: SUBSCRIBE_EVENTS, params: PARAMS }, [
|
|
9
|
-
LayerFillShow,
|
|
10
|
-
LayerFillHide,
|
|
11
|
-
LayerFillChange,
|
|
12
|
-
LayerFillState,
|
|
13
|
-
]);
|
|
8
|
+
regPlugin(PLUGIN_NAME, { constants: CONSTANTS, events: SUBSCRIBE_EVENTS, params: PARAMS }, [LayerFillShow, LayerFillHide, LayerFillChange, LayerFillState]);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vnejs/plugins.canvas.child.fill",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -30,20 +30,20 @@
|
|
|
30
30
|
"author": "",
|
|
31
31
|
"license": "ISC",
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@vnejs/contracts.canvas.child.fill": "~0.
|
|
33
|
+
"@vnejs/contracts.canvas.child.fill": "~0.2.0"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
36
|
-
"@vnejs/helpers": "~0.
|
|
37
|
-
"@vnejs/module.core": "~0.
|
|
38
|
-
"@vnejs/contracts.canvas.layer": "~0.
|
|
39
|
-
"@vnejs/shared": "~0.
|
|
36
|
+
"@vnejs/helpers": "~0.2.0",
|
|
37
|
+
"@vnejs/module.core": "~0.2.0",
|
|
38
|
+
"@vnejs/contracts.canvas.layer": "~0.2.0",
|
|
39
|
+
"@vnejs/shared": "~0.2.0"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@vnejs/configs.ts-common": "~0.
|
|
43
|
-
"@vnejs/contracts.canvas.layer": "~0.
|
|
44
|
-
"@vnejs/contracts.canvas.child.fill": "~0.
|
|
45
|
-
"@vnejs/helpers": "~0.
|
|
46
|
-
"@vnejs/module.core": "~0.
|
|
47
|
-
"@vnejs/shared": "~0.
|
|
42
|
+
"@vnejs/configs.ts-common": "~0.2.0",
|
|
43
|
+
"@vnejs/contracts.canvas.layer": "~0.2.0",
|
|
44
|
+
"@vnejs/contracts.canvas.child.fill": "~0.2.0",
|
|
45
|
+
"@vnejs/helpers": "~0.2.0",
|
|
46
|
+
"@vnejs/module.core": "~0.2.0",
|
|
47
|
+
"@vnejs/shared": "~0.2.0"
|
|
48
48
|
}
|
|
49
49
|
}
|
package/src/index.ts
CHANGED
|
@@ -8,9 +8,4 @@ import { LayerFillHide } from "./modules/hide.js";
|
|
|
8
8
|
import { LayerFillShow } from "./modules/show.js";
|
|
9
9
|
import { LayerFillState } from "./modules/state.js";
|
|
10
10
|
|
|
11
|
-
regPlugin(PLUGIN_NAME, { constants: CONSTANTS, events: SUBSCRIBE_EVENTS, params: PARAMS }, [
|
|
12
|
-
LayerFillShow,
|
|
13
|
-
LayerFillHide,
|
|
14
|
-
LayerFillChange,
|
|
15
|
-
LayerFillState,
|
|
16
|
-
]);
|
|
11
|
+
regPlugin(PLUGIN_NAME, { constants: CONSTANTS, events: SUBSCRIBE_EVENTS, params: PARAMS }, [LayerFillShow, LayerFillHide, LayerFillChange, LayerFillState]);
|
package/src/modules/change.ts
CHANGED
|
@@ -22,8 +22,7 @@ export class LayerFillChange extends ModuleCore<FillPluginEvents, FillPluginCons
|
|
|
22
22
|
|
|
23
23
|
await this.emit(this.EVENTS.LAYER_FILL.STATE_UPDATE, { id, color });
|
|
24
24
|
|
|
25
|
-
if (!duration || this.shared.viewForceAnimationSources.isNotEmpty())
|
|
26
|
-
return this.emitChildChange(layer, id, 0, { ...changeArgs, transition: 0 });
|
|
25
|
+
if (!duration || this.shared.viewForceAnimationSources.isNotEmpty()) return this.emitChildChange(layer, id, 0, { ...changeArgs, transition: 0 });
|
|
27
26
|
|
|
28
27
|
const { resolve: skipResolve, promise: skipPromise } = createPromiseResolve();
|
|
29
28
|
|
package/src/modules/show.ts
CHANGED
|
@@ -24,8 +24,7 @@ export class LayerFillShow extends ModuleCore<FillPluginEvents, FillPluginConsta
|
|
|
24
24
|
|
|
25
25
|
await this.emit(this.EVENTS.LAYER_FILL.STATE_ADD, { id, layer, color });
|
|
26
26
|
|
|
27
|
-
if (!duration || this.shared.viewForceAnimationSources.isNotEmpty())
|
|
28
|
-
return this.emit(this.EVENTS.LAYER.CHILD_ADD, { layer, child: childCommon });
|
|
27
|
+
if (!duration || this.shared.viewForceAnimationSources.isNotEmpty()) return this.emit(this.EVENTS.LAYER.CHILD_ADD, { layer, child: childCommon });
|
|
29
28
|
|
|
30
29
|
const { initialProps = {}, finishProps = {} } = this.getTransitionProps(Number(duration));
|
|
31
30
|
const { resolve: skipResolve, promise: skipPromise } = createPromiseResolve();
|
package/src/types.ts
CHANGED
|
@@ -2,9 +2,7 @@ import type { ModuleCoreConstants, ModuleCoreEvents, ModuleCoreParams, ModuleCor
|
|
|
2
2
|
import type { Constants, Params, PluginName, SubscribeEvents } from "@vnejs/contracts.canvas.child.fill";
|
|
3
3
|
import type { PluginName as LayerPluginName, SettingsKeys as LayerSettingsKeys, SubscribeEvents as LayerSubscribeEvents } from "@vnejs/contracts.canvas.layer";
|
|
4
4
|
|
|
5
|
-
export type FillPluginEvents = ModuleCoreEvents &
|
|
6
|
-
Record<PluginName, SubscribeEvents> &
|
|
7
|
-
Record<LayerPluginName, LayerSubscribeEvents>;
|
|
5
|
+
export type FillPluginEvents = ModuleCoreEvents & Record<PluginName, SubscribeEvents> & Record<LayerPluginName, LayerSubscribeEvents>;
|
|
8
6
|
|
|
9
7
|
export type FillPluginConstants = ModuleCoreConstants & Record<PluginName, Constants>;
|
|
10
8
|
|
package/tsconfig.json
CHANGED