@drincs/pixi-vn 1.9.3 → 1.9.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/README.md +1 -1
- package/dist/{ContainerMemory-BpDgacyr.d.cts → ContainerMemory-DNqSVzLY.d.cts} +12 -116
- package/dist/{ContainerMemory-BpDgacyr.d.ts → ContainerMemory-DNqSVzLY.d.ts} +12 -116
- package/dist/canvas.cjs +2 -2
- package/dist/canvas.d.cts +1375 -562
- package/dist/canvas.d.ts +1375 -562
- package/dist/canvas.mjs +2 -2
- package/dist/characters.mjs +1 -1
- package/dist/{chunk-7P46CLKX.mjs → chunk-5MVDNAT4.mjs} +1 -1
- package/dist/chunk-6OABTG5R.mjs +1 -0
- package/dist/chunk-AW5XWF24.mjs +1 -0
- package/dist/chunk-HD353M4B.mjs +1 -0
- package/dist/chunk-LXIKP2K5.mjs +1 -0
- package/dist/chunk-S7HZUIEI.mjs +1 -0
- package/dist/chunk-XLRCR56W.mjs +1 -0
- package/dist/core.cjs +1 -1
- package/dist/core.d.cts +63 -1
- package/dist/core.d.ts +63 -1
- package/dist/core.mjs +1 -1
- package/dist/filters.cjs +1 -0
- package/dist/filters.d.cts +196 -0
- package/dist/filters.d.ts +196 -0
- package/dist/filters.mjs +1 -0
- package/dist/history.mjs +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.d.cts +5 -2
- package/dist/index.d.ts +5 -2
- package/dist/index.mjs +2 -2
- package/dist/motion.cjs +1 -1
- package/dist/motion.d.cts +35 -8
- package/dist/motion.d.ts +35 -8
- package/dist/motion.mjs +1 -1
- package/dist/narration.mjs +1 -1
- package/dist/pixi/browser.js +170 -169
- package/dist/sound.mjs +1 -1
- package/dist/storage.mjs +1 -1
- package/dist/tickers.cjs +1 -0
- package/dist/tickers.d.cts +625 -0
- package/dist/tickers.d.ts +625 -0
- package/dist/tickers.mjs +1 -0
- package/dist/vite.cjs +6 -6
- package/dist/vite.mjs +6 -6
- package/dist/worker.cjs +1 -1
- package/dist/worker.mjs +1 -1
- package/package.json +22 -1
- package/dist/chunk-AWU37VV6.mjs +0 -1
- package/dist/chunk-QOBPVPCY.mjs +0 -1
- package/dist/chunk-U5BSF6X3.mjs +0 -1
- package/dist/chunk-YBA63R27.mjs +0 -1
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Pixi’VN - PixiJS Game Engine
|
|
2
2
|
|
|
3
|
-

|
|
4
4
|
|
|
5
5
|
<p align="center">
|
|
6
6
|
<a href="https://www.npmjs.com/package/@drincs/pixi-vn" rel="noopener noreferrer nofollow"><img src="https://img.shields.io/npm/v/@drincs/pixi-vn?label=version" alt="npm version"></a>
|
|
@@ -1,118 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
interface Ticker<TArgs extends TickerArgs> {
|
|
7
|
-
/**
|
|
8
|
-
* Arguments to pass to the ticker
|
|
9
|
-
*/
|
|
10
|
-
args: TArgs;
|
|
11
|
-
/**
|
|
12
|
-
* Duration in seconds to run the ticker
|
|
13
|
-
*/
|
|
14
|
-
duration?: number;
|
|
15
|
-
/**
|
|
16
|
-
* Priority of the ticker
|
|
17
|
-
*/
|
|
18
|
-
priority?: UPDATE_PRIORITY;
|
|
19
|
-
/**
|
|
20
|
-
* Get the alias of the ticker class. This variable is used in the system to get the ticker class by id, {@link RegisteredTickers.getInstance}
|
|
21
|
-
*/
|
|
22
|
-
readonly alias: string;
|
|
23
|
-
/**
|
|
24
|
-
* The id of the ticker. Must be unique for each ticker instance.
|
|
25
|
-
*/
|
|
26
|
-
readonly id: string;
|
|
27
|
-
/**
|
|
28
|
-
* The aliases of the canvas elements that are connected to this ticker
|
|
29
|
-
*/
|
|
30
|
-
canvasElementAliases: string[];
|
|
31
|
-
/**
|
|
32
|
-
* Completes the animation and applies the final state.
|
|
33
|
-
*/
|
|
34
|
-
complete: (options?: {
|
|
35
|
-
ignoreTickerSteps?: boolean;
|
|
36
|
-
}) => Promise<void> | void;
|
|
37
|
-
/**
|
|
38
|
-
* Stops the animation at its current state, and prevents it from resuming when the animation is played again.
|
|
39
|
-
*/
|
|
40
|
-
stop: () => void;
|
|
41
|
-
/**
|
|
42
|
-
* Starts the ticker. This will start the ticker and begin the animation.
|
|
43
|
-
*/
|
|
44
|
-
start: () => void;
|
|
45
|
-
/**
|
|
46
|
-
* Pauses the animation.
|
|
47
|
-
*/
|
|
48
|
-
pause: () => void;
|
|
49
|
-
/**
|
|
50
|
-
* Plays the animation.
|
|
51
|
-
*/
|
|
52
|
-
play: () => void;
|
|
53
|
-
/**
|
|
54
|
-
* Checks if the ticker is paused.
|
|
55
|
-
* @returns true if the ticker is paused, false otherwise.
|
|
56
|
-
*/
|
|
57
|
-
readonly paused: boolean;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
/**
|
|
61
|
-
* TickerHistory is a class that contains the name of a class and the arguments that were used to create it.
|
|
62
|
-
*/
|
|
63
|
-
interface TickerInfo<TArgs extends TickerArgs> {
|
|
64
|
-
/**
|
|
65
|
-
* If this ticker was created by steps
|
|
66
|
-
*/
|
|
67
|
-
createdByTicketSteps?: {
|
|
68
|
-
canvasElementAlias: string;
|
|
69
|
-
id: string;
|
|
70
|
-
};
|
|
71
|
-
ticker: Ticker<TArgs>;
|
|
72
|
-
}
|
|
73
|
-
interface TickerHistory<TArgs extends TickerArgs> {
|
|
74
|
-
id: string;
|
|
75
|
-
args: TArgs;
|
|
76
|
-
/**
|
|
77
|
-
* The aliases of the canvas elements that are connected to this ticker
|
|
78
|
-
*/
|
|
79
|
-
canvasElementAliases: string[];
|
|
80
|
-
priority?: UPDATE_PRIORITY;
|
|
81
|
-
duration?: number;
|
|
82
|
-
paused?: boolean;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
interface TickersStep<TArgs extends TickerArgs> {
|
|
86
|
-
/**
|
|
87
|
-
* Ticker class name
|
|
88
|
-
*/
|
|
89
|
-
ticker: string;
|
|
90
|
-
/**
|
|
91
|
-
* Duration in seconds. If is undefined, the step will end only when the animation is finished.
|
|
92
|
-
*/
|
|
93
|
-
duration?: number;
|
|
94
|
-
/**
|
|
95
|
-
* Arguments to pass to the ticker
|
|
96
|
-
*/
|
|
97
|
-
args: TArgs;
|
|
98
|
-
/**
|
|
99
|
-
* Priority of the ticker
|
|
100
|
-
*/
|
|
101
|
-
priority?: UPDATE_PRIORITY;
|
|
102
|
-
}
|
|
103
|
-
/**
|
|
104
|
-
* The steps of the tickers
|
|
105
|
-
*/
|
|
106
|
-
interface TickersSequence {
|
|
107
|
-
/**
|
|
108
|
-
* The step number
|
|
109
|
-
*/
|
|
110
|
-
currentStepNumber: number;
|
|
111
|
-
/**
|
|
112
|
-
* The steps of the tickers
|
|
113
|
-
*/
|
|
114
|
-
steps: TickersStep<any>[];
|
|
115
|
-
}
|
|
1
|
+
import { TickerHistory, TickersSequence } from '@drincs/pixi-vn/tickers';
|
|
2
|
+
import { PointData, Container, ContainerOptions } from '@drincs/pixi-vn/pixi.js';
|
|
3
|
+
import { FilterMemory } from '@drincs/pixi-vn/filters';
|
|
116
4
|
|
|
117
5
|
/**
|
|
118
6
|
* This class is used to create a canvas element to add into a Pixi Application.
|
|
@@ -173,6 +61,14 @@ interface CanvasBaseItemMemory {
|
|
|
173
61
|
parentLabel?: string;
|
|
174
62
|
label?: string;
|
|
175
63
|
zIndex?: number;
|
|
64
|
+
/**
|
|
65
|
+
* The filters applied to this element, if any - kept separate from the real, live `Filter[]`
|
|
66
|
+
* `.filters` (inherited from the PixiJS options types this memory interface also extends) since a
|
|
67
|
+
* memory object is serialized data, not construction options. Only filters registered with
|
|
68
|
+
* {@link filterDecorator}/{@link RegisteredFilters} can be saved - any other `Filter` instance found
|
|
69
|
+
* on `.filters` is skipped (with a warning) when exporting.
|
|
70
|
+
*/
|
|
71
|
+
pixivnFilters?: FilterMemory[];
|
|
176
72
|
}
|
|
177
73
|
|
|
178
74
|
/**
|
|
@@ -376,4 +272,4 @@ interface ContainerMemory<C extends ContainerChild = ContainerChild> extends Con
|
|
|
376
272
|
elements: CanvasBaseItemMemory[];
|
|
377
273
|
}
|
|
378
274
|
|
|
379
|
-
export { type AdditionalPositionsExtensionProps as A, type CanvasBaseItemMemory as C, type ListenerExtensionMemory as L, type OnEventsHandlers as O,
|
|
275
|
+
export { type AdditionalPositionsExtensionProps as A, type CanvasBaseItemMemory as C, type ListenerExtensionMemory as L, type OnEventsHandlers as O, CanvasBaseItem as a, type CanvasGameState as b, type ContainerChild as c, type ListenerExtension as d, type AdditionalPositionsExtension as e, type ContainerMemory as f, addListenerHandler as g, analizePositionsExtensionProps as h };
|
|
@@ -1,118 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
interface Ticker<TArgs extends TickerArgs> {
|
|
7
|
-
/**
|
|
8
|
-
* Arguments to pass to the ticker
|
|
9
|
-
*/
|
|
10
|
-
args: TArgs;
|
|
11
|
-
/**
|
|
12
|
-
* Duration in seconds to run the ticker
|
|
13
|
-
*/
|
|
14
|
-
duration?: number;
|
|
15
|
-
/**
|
|
16
|
-
* Priority of the ticker
|
|
17
|
-
*/
|
|
18
|
-
priority?: UPDATE_PRIORITY;
|
|
19
|
-
/**
|
|
20
|
-
* Get the alias of the ticker class. This variable is used in the system to get the ticker class by id, {@link RegisteredTickers.getInstance}
|
|
21
|
-
*/
|
|
22
|
-
readonly alias: string;
|
|
23
|
-
/**
|
|
24
|
-
* The id of the ticker. Must be unique for each ticker instance.
|
|
25
|
-
*/
|
|
26
|
-
readonly id: string;
|
|
27
|
-
/**
|
|
28
|
-
* The aliases of the canvas elements that are connected to this ticker
|
|
29
|
-
*/
|
|
30
|
-
canvasElementAliases: string[];
|
|
31
|
-
/**
|
|
32
|
-
* Completes the animation and applies the final state.
|
|
33
|
-
*/
|
|
34
|
-
complete: (options?: {
|
|
35
|
-
ignoreTickerSteps?: boolean;
|
|
36
|
-
}) => Promise<void> | void;
|
|
37
|
-
/**
|
|
38
|
-
* Stops the animation at its current state, and prevents it from resuming when the animation is played again.
|
|
39
|
-
*/
|
|
40
|
-
stop: () => void;
|
|
41
|
-
/**
|
|
42
|
-
* Starts the ticker. This will start the ticker and begin the animation.
|
|
43
|
-
*/
|
|
44
|
-
start: () => void;
|
|
45
|
-
/**
|
|
46
|
-
* Pauses the animation.
|
|
47
|
-
*/
|
|
48
|
-
pause: () => void;
|
|
49
|
-
/**
|
|
50
|
-
* Plays the animation.
|
|
51
|
-
*/
|
|
52
|
-
play: () => void;
|
|
53
|
-
/**
|
|
54
|
-
* Checks if the ticker is paused.
|
|
55
|
-
* @returns true if the ticker is paused, false otherwise.
|
|
56
|
-
*/
|
|
57
|
-
readonly paused: boolean;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
/**
|
|
61
|
-
* TickerHistory is a class that contains the name of a class and the arguments that were used to create it.
|
|
62
|
-
*/
|
|
63
|
-
interface TickerInfo<TArgs extends TickerArgs> {
|
|
64
|
-
/**
|
|
65
|
-
* If this ticker was created by steps
|
|
66
|
-
*/
|
|
67
|
-
createdByTicketSteps?: {
|
|
68
|
-
canvasElementAlias: string;
|
|
69
|
-
id: string;
|
|
70
|
-
};
|
|
71
|
-
ticker: Ticker<TArgs>;
|
|
72
|
-
}
|
|
73
|
-
interface TickerHistory<TArgs extends TickerArgs> {
|
|
74
|
-
id: string;
|
|
75
|
-
args: TArgs;
|
|
76
|
-
/**
|
|
77
|
-
* The aliases of the canvas elements that are connected to this ticker
|
|
78
|
-
*/
|
|
79
|
-
canvasElementAliases: string[];
|
|
80
|
-
priority?: UPDATE_PRIORITY;
|
|
81
|
-
duration?: number;
|
|
82
|
-
paused?: boolean;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
interface TickersStep<TArgs extends TickerArgs> {
|
|
86
|
-
/**
|
|
87
|
-
* Ticker class name
|
|
88
|
-
*/
|
|
89
|
-
ticker: string;
|
|
90
|
-
/**
|
|
91
|
-
* Duration in seconds. If is undefined, the step will end only when the animation is finished.
|
|
92
|
-
*/
|
|
93
|
-
duration?: number;
|
|
94
|
-
/**
|
|
95
|
-
* Arguments to pass to the ticker
|
|
96
|
-
*/
|
|
97
|
-
args: TArgs;
|
|
98
|
-
/**
|
|
99
|
-
* Priority of the ticker
|
|
100
|
-
*/
|
|
101
|
-
priority?: UPDATE_PRIORITY;
|
|
102
|
-
}
|
|
103
|
-
/**
|
|
104
|
-
* The steps of the tickers
|
|
105
|
-
*/
|
|
106
|
-
interface TickersSequence {
|
|
107
|
-
/**
|
|
108
|
-
* The step number
|
|
109
|
-
*/
|
|
110
|
-
currentStepNumber: number;
|
|
111
|
-
/**
|
|
112
|
-
* The steps of the tickers
|
|
113
|
-
*/
|
|
114
|
-
steps: TickersStep<any>[];
|
|
115
|
-
}
|
|
1
|
+
import { TickerHistory, TickersSequence } from '@drincs/pixi-vn/tickers';
|
|
2
|
+
import { PointData, Container, ContainerOptions } from '@drincs/pixi-vn/pixi.js';
|
|
3
|
+
import { FilterMemory } from '@drincs/pixi-vn/filters';
|
|
116
4
|
|
|
117
5
|
/**
|
|
118
6
|
* This class is used to create a canvas element to add into a Pixi Application.
|
|
@@ -173,6 +61,14 @@ interface CanvasBaseItemMemory {
|
|
|
173
61
|
parentLabel?: string;
|
|
174
62
|
label?: string;
|
|
175
63
|
zIndex?: number;
|
|
64
|
+
/**
|
|
65
|
+
* The filters applied to this element, if any - kept separate from the real, live `Filter[]`
|
|
66
|
+
* `.filters` (inherited from the PixiJS options types this memory interface also extends) since a
|
|
67
|
+
* memory object is serialized data, not construction options. Only filters registered with
|
|
68
|
+
* {@link filterDecorator}/{@link RegisteredFilters} can be saved - any other `Filter` instance found
|
|
69
|
+
* on `.filters` is skipped (with a warning) when exporting.
|
|
70
|
+
*/
|
|
71
|
+
pixivnFilters?: FilterMemory[];
|
|
176
72
|
}
|
|
177
73
|
|
|
178
74
|
/**
|
|
@@ -376,4 +272,4 @@ interface ContainerMemory<C extends ContainerChild = ContainerChild> extends Con
|
|
|
376
272
|
elements: CanvasBaseItemMemory[];
|
|
377
273
|
}
|
|
378
274
|
|
|
379
|
-
export { type AdditionalPositionsExtensionProps as A, type CanvasBaseItemMemory as C, type ListenerExtensionMemory as L, type OnEventsHandlers as O,
|
|
275
|
+
export { type AdditionalPositionsExtensionProps as A, type CanvasBaseItemMemory as C, type ListenerExtensionMemory as L, type OnEventsHandlers as O, CanvasBaseItem as a, type CanvasGameState as b, type ContainerChild as c, type ListenerExtension as d, type AdditionalPositionsExtension as e, type ContainerMemory as f, addListenerHandler as g, analizePositionsExtensionProps as h };
|