@drincs/pixi-vn 1.2.25 → 1.3.0
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/{ContainerMemory-Bemxh6ml.d.cts → ContainerMemory-CrY9QSo2.d.cts} +16 -13
- package/dist/{ContainerMemory-BSDt46hh.d.ts → ContainerMemory-DrijxCcD.d.ts} +16 -13
- package/dist/{TickersSequence-_GvVF_1g.d.cts → TickersSequence-Cf1Vcu22.d.cts} +55 -12
- package/dist/{TickersSequence-_GvVF_1g.d.ts → TickersSequence-Cf1Vcu22.d.ts} +55 -12
- package/dist/canvas/index.cjs +144 -142
- package/dist/canvas/index.d.cts +5 -4
- package/dist/canvas/index.d.ts +5 -4
- package/dist/canvas/index.mjs +144 -142
- package/dist/canvas/tickers/index.cjs +145 -143
- package/dist/canvas/tickers/index.d.cts +141 -118
- package/dist/canvas/tickers/index.d.ts +141 -118
- package/dist/canvas/tickers/index.mjs +145 -143
- package/dist/character/index.cjs +41 -40
- package/dist/character/index.d.cts +1 -1
- package/dist/character/index.d.ts +1 -1
- package/dist/character/index.mjs +41 -40
- package/dist/{index-DiDhb7Kl.d.cts → index-Bl9hiHQR.d.cts} +4 -143
- package/dist/{index-DPlLfwK1.d.cts → index-Cax-mGq_.d.cts} +2 -17
- package/dist/{index-BWzZWl0z.d.ts → index-Cvdua0o-.d.ts} +2 -17
- package/dist/{index-BhqocQcj.d.cts → index-Dib5x6-D.d.ts} +138 -73
- package/dist/{index-B7Tn343-.d.ts → index-_rD16ks5.d.ts} +4 -143
- package/dist/{index-Bju40pxd.d.ts → index-jEmIURMn.d.cts} +138 -73
- package/dist/index.cjs +144 -143
- package/dist/index.d.cts +13 -37
- package/dist/index.d.ts +13 -37
- package/dist/index.mjs +144 -143
- package/dist/interfaces/index.d.cts +3 -3
- package/dist/interfaces/index.d.ts +3 -3
- package/dist/narration/index.cjs +55 -54
- package/dist/narration/index.d.cts +1 -1
- package/dist/narration/index.d.ts +1 -1
- package/dist/narration/index.mjs +55 -54
- package/dist/sound/index.cjs +42 -41
- package/dist/sound/index.mjs +42 -41
- package/package.json +4 -3
|
@@ -1,17 +1,6 @@
|
|
|
1
|
-
import { b as
|
|
1
|
+
import { b as TickerHistory, d as TickersSequence } from './TickersSequence-Cf1Vcu22.cjs';
|
|
2
2
|
import { Container, ContainerOptions } from 'pixi.js';
|
|
3
3
|
|
|
4
|
-
type PauseTickerType = {
|
|
5
|
-
/**
|
|
6
|
-
* Ticker ids excluded
|
|
7
|
-
*/
|
|
8
|
-
tickerIdsExcluded?: string[];
|
|
9
|
-
/**
|
|
10
|
-
* Ticker ids included
|
|
11
|
-
*/
|
|
12
|
-
tickerIdsIncluded?: string[];
|
|
13
|
-
};
|
|
14
|
-
|
|
15
4
|
/**
|
|
16
5
|
* This class is used to create a canvas element to add into a Pixi Application.
|
|
17
6
|
* You can use {@link canvas.add()} to add this element into the application.
|
|
@@ -60,12 +49,23 @@ interface CanvasBaseItemMemory {
|
|
|
60
49
|
pixivnId: string;
|
|
61
50
|
}
|
|
62
51
|
|
|
52
|
+
type PauseTickerType = {
|
|
53
|
+
/**
|
|
54
|
+
* Ticker ids excluded
|
|
55
|
+
*/
|
|
56
|
+
tickerIdsExcluded?: string[];
|
|
57
|
+
/**
|
|
58
|
+
* Ticker ids included
|
|
59
|
+
*/
|
|
60
|
+
tickerIdsIncluded?: string[];
|
|
61
|
+
};
|
|
62
|
+
|
|
63
63
|
/**
|
|
64
64
|
* Interface exported canvas
|
|
65
65
|
*/
|
|
66
66
|
interface CanvasGameState {
|
|
67
67
|
tickers: {
|
|
68
|
-
[id: string]:
|
|
68
|
+
[id: string]: TickerHistory<any>;
|
|
69
69
|
};
|
|
70
70
|
tickersSteps: {
|
|
71
71
|
[alias: string]: {
|
|
@@ -77,6 +77,9 @@ interface CanvasGameState {
|
|
|
77
77
|
};
|
|
78
78
|
stage: Partial<ContainerMemory>;
|
|
79
79
|
elementAliasesOrder: string[];
|
|
80
|
+
/**
|
|
81
|
+
* @deprecated
|
|
82
|
+
*/
|
|
80
83
|
tickersOnPause: {
|
|
81
84
|
[alias: string]: PauseTickerType;
|
|
82
85
|
};
|
|
@@ -1,17 +1,6 @@
|
|
|
1
|
-
import { b as
|
|
1
|
+
import { b as TickerHistory, d as TickersSequence } from './TickersSequence-Cf1Vcu22.js';
|
|
2
2
|
import { Container, ContainerOptions } from 'pixi.js';
|
|
3
3
|
|
|
4
|
-
type PauseTickerType = {
|
|
5
|
-
/**
|
|
6
|
-
* Ticker ids excluded
|
|
7
|
-
*/
|
|
8
|
-
tickerIdsExcluded?: string[];
|
|
9
|
-
/**
|
|
10
|
-
* Ticker ids included
|
|
11
|
-
*/
|
|
12
|
-
tickerIdsIncluded?: string[];
|
|
13
|
-
};
|
|
14
|
-
|
|
15
4
|
/**
|
|
16
5
|
* This class is used to create a canvas element to add into a Pixi Application.
|
|
17
6
|
* You can use {@link canvas.add()} to add this element into the application.
|
|
@@ -60,12 +49,23 @@ interface CanvasBaseItemMemory {
|
|
|
60
49
|
pixivnId: string;
|
|
61
50
|
}
|
|
62
51
|
|
|
52
|
+
type PauseTickerType = {
|
|
53
|
+
/**
|
|
54
|
+
* Ticker ids excluded
|
|
55
|
+
*/
|
|
56
|
+
tickerIdsExcluded?: string[];
|
|
57
|
+
/**
|
|
58
|
+
* Ticker ids included
|
|
59
|
+
*/
|
|
60
|
+
tickerIdsIncluded?: string[];
|
|
61
|
+
};
|
|
62
|
+
|
|
63
63
|
/**
|
|
64
64
|
* Interface exported canvas
|
|
65
65
|
*/
|
|
66
66
|
interface CanvasGameState {
|
|
67
67
|
tickers: {
|
|
68
|
-
[id: string]:
|
|
68
|
+
[id: string]: TickerHistory<any>;
|
|
69
69
|
};
|
|
70
70
|
tickersSteps: {
|
|
71
71
|
[alias: string]: {
|
|
@@ -77,6 +77,9 @@ interface CanvasGameState {
|
|
|
77
77
|
};
|
|
78
78
|
stage: Partial<ContainerMemory>;
|
|
79
79
|
elementAliasesOrder: string[];
|
|
80
|
+
/**
|
|
81
|
+
* @deprecated
|
|
82
|
+
*/
|
|
80
83
|
tickersOnPause: {
|
|
81
84
|
[alias: string]: PauseTickerType;
|
|
82
85
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { UPDATE_PRIORITY } from 'pixi.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* is a string that represents a ticker id.
|
|
@@ -9,19 +9,61 @@ type TickerIdType = string;
|
|
|
9
9
|
interface TickerArgs {
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
fn: TickerCallback<any>;
|
|
17
|
-
id: TickerIdType;
|
|
12
|
+
interface Ticker<TArgs extends TickerArgs> {
|
|
13
|
+
/**
|
|
14
|
+
* Arguments to pass to the ticker
|
|
15
|
+
*/
|
|
18
16
|
args: TArgs;
|
|
17
|
+
/**
|
|
18
|
+
* Duration in seconds to run the ticker
|
|
19
|
+
*/
|
|
20
|
+
duration?: number;
|
|
21
|
+
/**
|
|
22
|
+
* Priority of the ticker
|
|
23
|
+
*/
|
|
24
|
+
priority?: UPDATE_PRIORITY;
|
|
25
|
+
/**
|
|
26
|
+
* Get the id of the ticker. This variable is used in the system to get the ticker by id, {@link RegisteredTickers.getInstance}
|
|
27
|
+
*/
|
|
28
|
+
id: TickerIdType;
|
|
19
29
|
/**
|
|
20
30
|
* The aliases of the canvas elements that are connected to this ticker
|
|
21
31
|
*/
|
|
22
32
|
canvasElementAliases: string[];
|
|
23
|
-
|
|
24
|
-
|
|
33
|
+
/**
|
|
34
|
+
* Completes the animation and applies the final state.
|
|
35
|
+
*/
|
|
36
|
+
complete: (options?: {
|
|
37
|
+
ignoreTickerSteps?: boolean;
|
|
38
|
+
}) => Promise<void> | void;
|
|
39
|
+
/**
|
|
40
|
+
* Stops the animation at its current state, and prevents it from resuming when the animation is played again.
|
|
41
|
+
*/
|
|
42
|
+
stop: () => void;
|
|
43
|
+
/**
|
|
44
|
+
* Starts the ticker. This will start the ticker and begin the animation.
|
|
45
|
+
* @param id The id of the ticker.
|
|
46
|
+
*/
|
|
47
|
+
start: (id: string) => void;
|
|
48
|
+
/**
|
|
49
|
+
* Pauses the animation.
|
|
50
|
+
*/
|
|
51
|
+
pause: () => void;
|
|
52
|
+
/**
|
|
53
|
+
* Plays the animation.
|
|
54
|
+
*/
|
|
55
|
+
play: () => void;
|
|
56
|
+
/**
|
|
57
|
+
* Checks if the ticker is paused.
|
|
58
|
+
* @returns true if the ticker is paused, false otherwise.
|
|
59
|
+
*/
|
|
60
|
+
readonly paused: boolean;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* TickerHistory is a class that contains the name of a class and the arguments that were used to create it.
|
|
65
|
+
*/
|
|
66
|
+
interface TickerInfo<TArgs extends TickerArgs> {
|
|
25
67
|
/**
|
|
26
68
|
* If this ticker was created by steps
|
|
27
69
|
*/
|
|
@@ -29,9 +71,9 @@ interface TickerHistory<TArgs extends TickerArgs> {
|
|
|
29
71
|
canvasElementAlias: string;
|
|
30
72
|
id: string;
|
|
31
73
|
};
|
|
32
|
-
|
|
74
|
+
ticker: Ticker<TArgs>;
|
|
33
75
|
}
|
|
34
|
-
interface
|
|
76
|
+
interface TickerHistory<TArgs extends TickerArgs> {
|
|
35
77
|
id: TickerIdType;
|
|
36
78
|
args: TArgs;
|
|
37
79
|
/**
|
|
@@ -40,6 +82,7 @@ interface TickerHistoryForExport<TArgs extends TickerArgs> {
|
|
|
40
82
|
canvasElementAliases: string[];
|
|
41
83
|
priority?: UPDATE_PRIORITY;
|
|
42
84
|
duration?: number;
|
|
85
|
+
paused?: boolean;
|
|
43
86
|
}
|
|
44
87
|
|
|
45
88
|
type PauseType = {
|
|
@@ -87,4 +130,4 @@ interface TickersSequence {
|
|
|
87
130
|
steps: (TickersStep<any> | RepeatType | PauseType)[];
|
|
88
131
|
}
|
|
89
132
|
|
|
90
|
-
export type { PauseType as P, RepeatType as R,
|
|
133
|
+
export type { PauseType as P, RepeatType as R, Ticker as T, TickerArgs as a, TickerHistory as b, TickerInfo as c, TickersSequence as d, TickerIdType as e };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { UPDATE_PRIORITY } from 'pixi.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* is a string that represents a ticker id.
|
|
@@ -9,19 +9,61 @@ type TickerIdType = string;
|
|
|
9
9
|
interface TickerArgs {
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
fn: TickerCallback<any>;
|
|
17
|
-
id: TickerIdType;
|
|
12
|
+
interface Ticker<TArgs extends TickerArgs> {
|
|
13
|
+
/**
|
|
14
|
+
* Arguments to pass to the ticker
|
|
15
|
+
*/
|
|
18
16
|
args: TArgs;
|
|
17
|
+
/**
|
|
18
|
+
* Duration in seconds to run the ticker
|
|
19
|
+
*/
|
|
20
|
+
duration?: number;
|
|
21
|
+
/**
|
|
22
|
+
* Priority of the ticker
|
|
23
|
+
*/
|
|
24
|
+
priority?: UPDATE_PRIORITY;
|
|
25
|
+
/**
|
|
26
|
+
* Get the id of the ticker. This variable is used in the system to get the ticker by id, {@link RegisteredTickers.getInstance}
|
|
27
|
+
*/
|
|
28
|
+
id: TickerIdType;
|
|
19
29
|
/**
|
|
20
30
|
* The aliases of the canvas elements that are connected to this ticker
|
|
21
31
|
*/
|
|
22
32
|
canvasElementAliases: string[];
|
|
23
|
-
|
|
24
|
-
|
|
33
|
+
/**
|
|
34
|
+
* Completes the animation and applies the final state.
|
|
35
|
+
*/
|
|
36
|
+
complete: (options?: {
|
|
37
|
+
ignoreTickerSteps?: boolean;
|
|
38
|
+
}) => Promise<void> | void;
|
|
39
|
+
/**
|
|
40
|
+
* Stops the animation at its current state, and prevents it from resuming when the animation is played again.
|
|
41
|
+
*/
|
|
42
|
+
stop: () => void;
|
|
43
|
+
/**
|
|
44
|
+
* Starts the ticker. This will start the ticker and begin the animation.
|
|
45
|
+
* @param id The id of the ticker.
|
|
46
|
+
*/
|
|
47
|
+
start: (id: string) => void;
|
|
48
|
+
/**
|
|
49
|
+
* Pauses the animation.
|
|
50
|
+
*/
|
|
51
|
+
pause: () => void;
|
|
52
|
+
/**
|
|
53
|
+
* Plays the animation.
|
|
54
|
+
*/
|
|
55
|
+
play: () => void;
|
|
56
|
+
/**
|
|
57
|
+
* Checks if the ticker is paused.
|
|
58
|
+
* @returns true if the ticker is paused, false otherwise.
|
|
59
|
+
*/
|
|
60
|
+
readonly paused: boolean;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* TickerHistory is a class that contains the name of a class and the arguments that were used to create it.
|
|
65
|
+
*/
|
|
66
|
+
interface TickerInfo<TArgs extends TickerArgs> {
|
|
25
67
|
/**
|
|
26
68
|
* If this ticker was created by steps
|
|
27
69
|
*/
|
|
@@ -29,9 +71,9 @@ interface TickerHistory<TArgs extends TickerArgs> {
|
|
|
29
71
|
canvasElementAlias: string;
|
|
30
72
|
id: string;
|
|
31
73
|
};
|
|
32
|
-
|
|
74
|
+
ticker: Ticker<TArgs>;
|
|
33
75
|
}
|
|
34
|
-
interface
|
|
76
|
+
interface TickerHistory<TArgs extends TickerArgs> {
|
|
35
77
|
id: TickerIdType;
|
|
36
78
|
args: TArgs;
|
|
37
79
|
/**
|
|
@@ -40,6 +82,7 @@ interface TickerHistoryForExport<TArgs extends TickerArgs> {
|
|
|
40
82
|
canvasElementAliases: string[];
|
|
41
83
|
priority?: UPDATE_PRIORITY;
|
|
42
84
|
duration?: number;
|
|
85
|
+
paused?: boolean;
|
|
43
86
|
}
|
|
44
87
|
|
|
45
88
|
type PauseType = {
|
|
@@ -87,4 +130,4 @@ interface TickersSequence {
|
|
|
87
130
|
steps: (TickersStep<any> | RepeatType | PauseType)[];
|
|
88
131
|
}
|
|
89
132
|
|
|
90
|
-
export type { PauseType as P, RepeatType as R,
|
|
133
|
+
export type { PauseType as P, RepeatType as R, Ticker as T, TickerArgs as a, TickerHistory as b, TickerInfo as c, TickersSequence as d, TickerIdType as e };
|