@drincs/pixi-vn 0.9.5 → 0.9.6
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/{chunk-K7XIRQGF.js → chunk-AQPVWC55.js} +1 -1
- package/dist/{chunk-RFNGGK7X.js → chunk-JMXJKUTS.js} +20 -8
- package/dist/chunk-SCOZ46ME.js +116 -0
- package/dist/classes/CharacterBaseModel.cjs +49 -5
- package/dist/classes/CharacterBaseModel.js +6 -5
- package/dist/classes/CharacterStoredClass.cjs +49 -5
- package/dist/classes/CharacterStoredClass.js +6 -5
- package/dist/classes/ChoiceMenuOption.cjs +51 -5
- package/dist/classes/ChoiceMenuOption.js +6 -5
- package/dist/classes/Sound.cjs +49 -5
- package/dist/classes/Sound.js +6 -5
- package/dist/classes/StoredClassModel.cjs +49 -5
- package/dist/classes/StoredClassModel.js +6 -5
- package/dist/classes/canvas/AdditionalPositions.cjs +37 -0
- package/dist/classes/canvas/AdditionalPositions.d.cts +49 -6
- package/dist/classes/canvas/AdditionalPositions.d.ts +49 -6
- package/dist/classes/canvas/AdditionalPositions.js +6 -79
- package/dist/classes/canvas/Container.cjs +51 -5
- package/dist/classes/canvas/Container.js +6 -5
- package/dist/classes/canvas/ImageContainer.cjs +49 -5
- package/dist/classes/canvas/ImageContainer.js +6 -5
- package/dist/classes/canvas/ImageSprite.cjs +51 -5
- package/dist/classes/canvas/ImageSprite.js +6 -5
- package/dist/classes/canvas/Sprite.cjs +51 -5
- package/dist/classes/canvas/Sprite.js +6 -5
- package/dist/classes/canvas/Text.cjs +51 -5
- package/dist/classes/canvas/Text.js +6 -5
- package/dist/classes/canvas/VideoSprite.cjs +51 -5
- package/dist/classes/canvas/VideoSprite.js +6 -5
- package/dist/classes/index.cjs +51 -5
- package/dist/classes/index.js +6 -5
- package/dist/classes/ticker/FadeAlphaTicker.cjs +51 -5
- package/dist/classes/ticker/FadeAlphaTicker.js +6 -5
- package/dist/classes/ticker/MoveTicker.cjs +51 -5
- package/dist/classes/ticker/MoveTicker.js +6 -5
- package/dist/classes/ticker/RotateTicker.cjs +51 -5
- package/dist/classes/ticker/RotateTicker.js +6 -5
- package/dist/classes/ticker/TickerBase.cjs +49 -5
- package/dist/classes/ticker/TickerBase.js +6 -5
- package/dist/classes/ticker/ZoomTicker.cjs +51 -5
- package/dist/classes/ticker/ZoomTicker.js +6 -5
- package/dist/classes/ticker/index.cjs +51 -5
- package/dist/classes/ticker/index.js +6 -5
- package/dist/constants.cjs +1 -1
- package/dist/constants.d.cts +1 -1
- package/dist/constants.d.ts +1 -1
- package/dist/constants.js +1 -1
- package/dist/decorators/canvas-element-decorator.cjs +51 -5
- package/dist/decorators/canvas-element-decorator.js +6 -5
- package/dist/decorators/index.cjs +51 -5
- package/dist/decorators/index.js +6 -5
- package/dist/decorators/label-decorator.cjs +51 -5
- package/dist/decorators/label-decorator.js +6 -5
- package/dist/functions/canvas/canvas-effect.cjs +49 -5
- package/dist/functions/canvas/canvas-effect.js +6 -5
- package/dist/functions/canvas/canvas-memory-utility.cjs +51 -5
- package/dist/functions/canvas/canvas-memory-utility.js +6 -5
- package/dist/functions/canvas/canvas-transition.cjs +51 -5
- package/dist/functions/canvas/canvas-transition.js +6 -5
- package/dist/functions/canvas/canvas-utility.cjs +49 -5
- package/dist/functions/canvas/canvas-utility.js +6 -5
- package/dist/functions/canvas/image-container-utility.cjs +51 -5
- package/dist/functions/canvas/image-container-utility.js +6 -5
- package/dist/functions/canvas/image-utility.cjs +51 -5
- package/dist/functions/canvas/image-utility.js +6 -5
- package/dist/functions/canvas/video-utility.cjs +51 -5
- package/dist/functions/canvas/video-utility.js +6 -5
- package/dist/functions/dialogue-utility.cjs +49 -5
- package/dist/functions/dialogue-utility.js +6 -5
- package/dist/functions/flags-utility.cjs +49 -5
- package/dist/functions/flags-utility.js +6 -5
- package/dist/functions/game-utility.cjs +49 -5
- package/dist/functions/game-utility.js +6 -5
- package/dist/functions/index.cjs +51 -5
- package/dist/functions/index.js +6 -5
- package/dist/functions/saves-utility.cjs +49 -5
- package/dist/functions/saves-utility.js +6 -5
- package/dist/functions/texture-utility.cjs +51 -5
- package/dist/functions/texture-utility.js +6 -5
- package/dist/index.cjs +51 -5
- package/dist/index.js +10 -9
- package/dist/labels/BaseCanvasElementTestLabel.cjs +51 -5
- package/dist/labels/BaseCanvasElementTestLabel.js +6 -5
- package/dist/labels/CanvasEventsTestLabel.cjs +51 -5
- package/dist/labels/CanvasEventsTestLabel.js +6 -5
- package/dist/labels/CustomTickerCanvasElementTestLabel.cjs +51 -5
- package/dist/labels/CustomTickerCanvasElementTestLabel.js +6 -5
- package/dist/labels/ImagesAnimationsTestLabel.cjs +51 -5
- package/dist/labels/ImagesAnimationsTestLabel.js +6 -5
- package/dist/labels/InputTestLabel.cjs +51 -5
- package/dist/labels/InputTestLabel.js +6 -5
- package/dist/labels/MarkdownTest.cjs +51 -5
- package/dist/labels/MarkdownTest.js +6 -5
- package/dist/labels/SoundTestLabel.cjs +51 -5
- package/dist/labels/SoundTestLabel.js +6 -5
- package/dist/labels/StartLabel.cjs +51 -5
- package/dist/labels/StartLabel.js +6 -5
- package/dist/labels/StepLabelTest.cjs +51 -5
- package/dist/labels/StepLabelTest.js +6 -5
- package/dist/labels/VideoTestLabel.cjs +51 -5
- package/dist/labels/VideoTestLabel.js +6 -5
- package/dist/labels/index.cjs +51 -5
- package/dist/labels/index.js +6 -5
- package/dist/managers/CanvasManager.cjs +49 -5
- package/dist/managers/CanvasManager.js +6 -5
- package/dist/managers/NarrationManager.cjs +49 -5
- package/dist/managers/NarrationManager.js +6 -5
- package/dist/managers/NarrationManagerStatic.cjs +49 -5
- package/dist/managers/NarrationManagerStatic.js +6 -5
- package/dist/managers/SoundManager.cjs +49 -5
- package/dist/managers/SoundManager.js +6 -5
- package/dist/managers/StorageManager.cjs +49 -5
- package/dist/managers/StorageManager.js +6 -5
- package/dist/managers/index.cjs +49 -5
- package/dist/managers/index.js +6 -5
- package/package.json +1 -1
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
aliasToRemoveAfter
|
|
3
3
|
} from "./chunk-OMPJ74CO.js";
|
|
4
|
+
import {
|
|
5
|
+
analizePositionsExtensionProps
|
|
6
|
+
} from "./chunk-SCOZ46ME.js";
|
|
7
|
+
import {
|
|
8
|
+
Close
|
|
9
|
+
} from "./chunk-I6TNJEE3.js";
|
|
4
10
|
import {
|
|
5
11
|
StorageManagerStatic
|
|
6
12
|
} from "./chunk-DPUSONJ3.js";
|
|
@@ -10,9 +16,6 @@ import {
|
|
|
10
16
|
import {
|
|
11
17
|
SoundManagerStatic
|
|
12
18
|
} from "./chunk-6FAGAUDR.js";
|
|
13
|
-
import {
|
|
14
|
-
Close
|
|
15
|
-
} from "./chunk-I6TNJEE3.js";
|
|
16
19
|
import {
|
|
17
20
|
bunnyImage,
|
|
18
21
|
bunnyName,
|
|
@@ -69,7 +72,7 @@ import {
|
|
|
69
72
|
filters,
|
|
70
73
|
version,
|
|
71
74
|
videoFormats
|
|
72
|
-
} from "./chunk-
|
|
75
|
+
} from "./chunk-AQPVWC55.js";
|
|
73
76
|
import {
|
|
74
77
|
Sound,
|
|
75
78
|
SoundLibrary,
|
|
@@ -772,6 +775,7 @@ async function setMemoryContainer(element, memory, opstions) {
|
|
|
772
775
|
var ImageContainer = class extends Container2 {
|
|
773
776
|
constructor(options, textureAliases = []) {
|
|
774
777
|
super(options);
|
|
778
|
+
options = analizePositionsExtensionProps(options);
|
|
775
779
|
if (textureAliases) {
|
|
776
780
|
textureAliases.forEach((textureAlias) => {
|
|
777
781
|
this.addChild(new ImageSprite(void 0, textureAlias));
|
|
@@ -888,13 +892,17 @@ var ImageContainer = class extends Container2 {
|
|
|
888
892
|
this.reloadPosition();
|
|
889
893
|
}
|
|
890
894
|
set xAlign(value) {
|
|
891
|
-
this._percentagePosition
|
|
895
|
+
if (this._percentagePosition) {
|
|
896
|
+
this._percentagePosition.x = void 0;
|
|
897
|
+
}
|
|
892
898
|
this._align === void 0 && (this._align = {});
|
|
893
899
|
this._align.x = value;
|
|
894
900
|
this.reloadPosition();
|
|
895
901
|
}
|
|
896
902
|
set yAlign(value) {
|
|
897
|
-
this._percentagePosition
|
|
903
|
+
if (this._percentagePosition) {
|
|
904
|
+
this._percentagePosition.y = void 0;
|
|
905
|
+
}
|
|
898
906
|
this._align === void 0 && (this._align = {});
|
|
899
907
|
this._align.y = value;
|
|
900
908
|
this.reloadPosition();
|
|
@@ -913,13 +921,17 @@ var ImageContainer = class extends Container2 {
|
|
|
913
921
|
this.reloadPosition();
|
|
914
922
|
}
|
|
915
923
|
set xPercentagePosition(_value) {
|
|
916
|
-
this._align
|
|
924
|
+
if (this._align) {
|
|
925
|
+
this._align.x = void 0;
|
|
926
|
+
}
|
|
917
927
|
this._percentagePosition === void 0 && (this._percentagePosition = {});
|
|
918
928
|
this._percentagePosition.x = _value;
|
|
919
929
|
this.reloadPosition();
|
|
920
930
|
}
|
|
921
931
|
set yPercentagePosition(_value) {
|
|
922
|
-
this._align
|
|
932
|
+
if (this._align) {
|
|
933
|
+
this._align.y = void 0;
|
|
934
|
+
}
|
|
923
935
|
this._percentagePosition === void 0 && (this._percentagePosition = {});
|
|
924
936
|
this._percentagePosition.y = _value;
|
|
925
937
|
this.reloadPosition();
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Container
|
|
3
|
+
} from "./chunk-PP3SBC3C.js";
|
|
4
|
+
|
|
5
|
+
// src/classes/canvas/AdditionalPositions.ts
|
|
6
|
+
var AdditionalPositionsExtension = class extends Container {
|
|
7
|
+
/**
|
|
8
|
+
* is a way to set the position of the element in the canvas. compared to position, align, it is a percentage used to determine the proximity from the edges of the canvas.
|
|
9
|
+
* For example:
|
|
10
|
+
* - if you set align to 0.5, the element will be in the center of the canvas.
|
|
11
|
+
* - if you set align to 0, the left end and a top end of the element will be in the left end and top end of the canvas.
|
|
12
|
+
* - if you set align to 1, the right end and a bottom end of the element will be in the right end and bottom end of the canvas.
|
|
13
|
+
*
|
|
14
|
+
* **Important:** The {@link PixiContainer.pivot} field does not affect the alignment.
|
|
15
|
+
*/
|
|
16
|
+
set align(_value) {
|
|
17
|
+
throw new Error("Method not implemented.");
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* is a way to set the position of the element in the canvas. compared to position, align, it is a percentage used to determine the proximity from the edges of the canvas.
|
|
21
|
+
* For example:
|
|
22
|
+
* - if you set align to 0.5, the element will be in the center of the canvas.
|
|
23
|
+
* - if you set align to 0, the left end and a top end of the element will be in the left end and top end of the canvas.
|
|
24
|
+
* - if you set align to 1, the right end and a bottom end of the element will be in the right end and bottom end of the canvas.
|
|
25
|
+
*
|
|
26
|
+
* **Important:** The {@link PixiContainer.pivot} field does not affect the alignment.
|
|
27
|
+
*/
|
|
28
|
+
set xAlign(_value) {
|
|
29
|
+
throw new Error("Method not implemented.");
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* is a way to set the position of the element in the canvas. compared to position, align, it is a percentage used to determine the proximity from the edges of the canvas.
|
|
33
|
+
* For example:
|
|
34
|
+
* - if you set align to 0.5, the element will be in the center of the canvas.
|
|
35
|
+
* - if you set align to 0, the left end and a top end of the element will be in the left end and top end of the canvas.
|
|
36
|
+
* - if you set align to 1, the right end and a bottom end of the element will be in the right end and bottom end of the canvas.
|
|
37
|
+
*
|
|
38
|
+
* **Important:** The {@link PixiContainer.pivot} field does not affect the alignment.
|
|
39
|
+
*/
|
|
40
|
+
set yAlign(_value) {
|
|
41
|
+
throw new Error("Method not implemented.");
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* is a way to set the position of the element in the canvas calculated in percentage.
|
|
45
|
+
* For example, if you set the {@link PixiContainer.pivot} to 0.5, and:
|
|
46
|
+
* - if you set percentagePosition to 0.5, the element will be in the center of the canvas.
|
|
47
|
+
* - If you set percentagePosition to 0, the center of the element will be in the left end and top end of the canvas.
|
|
48
|
+
* - If you set percentagePosition to 1, the center of the element will be in the right end and bottom end of the canvas.
|
|
49
|
+
*
|
|
50
|
+
* **Important:** The {@link PixiContainer.pivot} field does affect the percentagePosition.
|
|
51
|
+
*/
|
|
52
|
+
set percentagePosition(_value) {
|
|
53
|
+
throw new Error("Method not implemented.");
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* is a way to set the position of the element in the canvas calculated in percentage.
|
|
57
|
+
* For example, if you set the {@link PixiContainer.pivot} to 0.5, and:
|
|
58
|
+
* - if you set percentagePosition to 0.5, the element will be in the center of the canvas.
|
|
59
|
+
* - If you set percentagePosition to 0, the center of the element will be in the left end and top end of the canvas.
|
|
60
|
+
* - If you set percentagePosition to 1, the center of the element will be in the right end and bottom end of the canvas.
|
|
61
|
+
*
|
|
62
|
+
* **Important:** The {@link PixiContainer.pivot} field does affect the percentagePosition.
|
|
63
|
+
*/
|
|
64
|
+
set xPercentagePosition(_value) {
|
|
65
|
+
throw new Error("Method not implemented.");
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* is a way to set the position of the element in the canvas calculated in percentage.
|
|
69
|
+
* For example, if you set the {@link PixiContainer.pivot} to 0.5, and:
|
|
70
|
+
* - if you set percentagePosition to 0.5, the element will be in the center of the canvas.
|
|
71
|
+
* - If you set percentagePosition to 0, the center of the element will be in the left end and top end of the canvas.
|
|
72
|
+
* - If you set percentagePosition to 1, the center of the element will be in the right end and bottom end of the canvas.
|
|
73
|
+
*
|
|
74
|
+
* **Important:** The {@link PixiContainer.pivot} field does affect the percentagePosition.
|
|
75
|
+
*/
|
|
76
|
+
set yPercentagePosition(_value) {
|
|
77
|
+
throw new Error("Method not implemented.");
|
|
78
|
+
}
|
|
79
|
+
};
|
|
80
|
+
function analizePositionsExtensionProps(props) {
|
|
81
|
+
if (!props) {
|
|
82
|
+
return props;
|
|
83
|
+
}
|
|
84
|
+
if (props.align != void 0) {
|
|
85
|
+
if (typeof props.align === "number") {
|
|
86
|
+
props.xAlign = props.align;
|
|
87
|
+
props.yAlign = props.align;
|
|
88
|
+
} else {
|
|
89
|
+
if (props.align.x != void 0) {
|
|
90
|
+
props.xAlign = props.align.x;
|
|
91
|
+
}
|
|
92
|
+
if (props.align.y != void 0) {
|
|
93
|
+
props.yAlign = props.align.y;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
if (props.percentagePosition != void 0) {
|
|
98
|
+
if (typeof props.percentagePosition === "number") {
|
|
99
|
+
props.xPercentagePosition = props.percentagePosition;
|
|
100
|
+
props.yPercentagePosition = props.percentagePosition;
|
|
101
|
+
} else {
|
|
102
|
+
if (props.percentagePosition.x != void 0) {
|
|
103
|
+
props.xPercentagePosition = props.percentagePosition.x;
|
|
104
|
+
}
|
|
105
|
+
if (props.percentagePosition.y != void 0) {
|
|
106
|
+
props.yPercentagePosition = props.percentagePosition.y;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
return props;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
export {
|
|
114
|
+
AdditionalPositionsExtension,
|
|
115
|
+
analizePositionsExtensionProps
|
|
116
|
+
};
|
|
@@ -57723,7 +57723,7 @@ extensions.add(soundAsset);
|
|
|
57723
57723
|
var sound = setInstance(new SoundLibrary());
|
|
57724
57724
|
|
|
57725
57725
|
// package.json
|
|
57726
|
-
var version = "0.9.
|
|
57726
|
+
var version = "0.9.6";
|
|
57727
57727
|
|
|
57728
57728
|
// src/constants.ts
|
|
57729
57729
|
var Repeat = "repeat";
|
|
@@ -58618,6 +58618,41 @@ async function shakeEffect(alias, props = {}, priority) {
|
|
|
58618
58618
|
// src/classes/canvas/ImageContainer.ts
|
|
58619
58619
|
init_lib();
|
|
58620
58620
|
|
|
58621
|
+
// src/classes/canvas/AdditionalPositions.ts
|
|
58622
|
+
init_lib();
|
|
58623
|
+
function analizePositionsExtensionProps(props) {
|
|
58624
|
+
if (!props) {
|
|
58625
|
+
return props;
|
|
58626
|
+
}
|
|
58627
|
+
if (props.align != void 0) {
|
|
58628
|
+
if (typeof props.align === "number") {
|
|
58629
|
+
props.xAlign = props.align;
|
|
58630
|
+
props.yAlign = props.align;
|
|
58631
|
+
} else {
|
|
58632
|
+
if (props.align.x != void 0) {
|
|
58633
|
+
props.xAlign = props.align.x;
|
|
58634
|
+
}
|
|
58635
|
+
if (props.align.y != void 0) {
|
|
58636
|
+
props.yAlign = props.align.y;
|
|
58637
|
+
}
|
|
58638
|
+
}
|
|
58639
|
+
}
|
|
58640
|
+
if (props.percentagePosition != void 0) {
|
|
58641
|
+
if (typeof props.percentagePosition === "number") {
|
|
58642
|
+
props.xPercentagePosition = props.percentagePosition;
|
|
58643
|
+
props.yPercentagePosition = props.percentagePosition;
|
|
58644
|
+
} else {
|
|
58645
|
+
if (props.percentagePosition.x != void 0) {
|
|
58646
|
+
props.xPercentagePosition = props.percentagePosition.x;
|
|
58647
|
+
}
|
|
58648
|
+
if (props.percentagePosition.y != void 0) {
|
|
58649
|
+
props.yPercentagePosition = props.percentagePosition.y;
|
|
58650
|
+
}
|
|
58651
|
+
}
|
|
58652
|
+
}
|
|
58653
|
+
return props;
|
|
58654
|
+
}
|
|
58655
|
+
|
|
58621
58656
|
// src/classes/canvas/Container.ts
|
|
58622
58657
|
init_lib();
|
|
58623
58658
|
|
|
@@ -58741,6 +58776,7 @@ async function setMemoryContainer(element, memory, opstions) {
|
|
|
58741
58776
|
var ImageContainer = class extends Container2 {
|
|
58742
58777
|
constructor(options, textureAliases = []) {
|
|
58743
58778
|
super(options);
|
|
58779
|
+
options = analizePositionsExtensionProps(options);
|
|
58744
58780
|
if (textureAliases) {
|
|
58745
58781
|
textureAliases.forEach((textureAlias) => {
|
|
58746
58782
|
this.addChild(new ImageSprite(void 0, textureAlias));
|
|
@@ -58857,13 +58893,17 @@ var ImageContainer = class extends Container2 {
|
|
|
58857
58893
|
this.reloadPosition();
|
|
58858
58894
|
}
|
|
58859
58895
|
set xAlign(value) {
|
|
58860
|
-
this._percentagePosition
|
|
58896
|
+
if (this._percentagePosition) {
|
|
58897
|
+
this._percentagePosition.x = void 0;
|
|
58898
|
+
}
|
|
58861
58899
|
this._align === void 0 && (this._align = {});
|
|
58862
58900
|
this._align.x = value;
|
|
58863
58901
|
this.reloadPosition();
|
|
58864
58902
|
}
|
|
58865
58903
|
set yAlign(value) {
|
|
58866
|
-
this._percentagePosition
|
|
58904
|
+
if (this._percentagePosition) {
|
|
58905
|
+
this._percentagePosition.y = void 0;
|
|
58906
|
+
}
|
|
58867
58907
|
this._align === void 0 && (this._align = {});
|
|
58868
58908
|
this._align.y = value;
|
|
58869
58909
|
this.reloadPosition();
|
|
@@ -58882,13 +58922,17 @@ var ImageContainer = class extends Container2 {
|
|
|
58882
58922
|
this.reloadPosition();
|
|
58883
58923
|
}
|
|
58884
58924
|
set xPercentagePosition(_value) {
|
|
58885
|
-
this._align
|
|
58925
|
+
if (this._align) {
|
|
58926
|
+
this._align.x = void 0;
|
|
58927
|
+
}
|
|
58886
58928
|
this._percentagePosition === void 0 && (this._percentagePosition = {});
|
|
58887
58929
|
this._percentagePosition.x = _value;
|
|
58888
58930
|
this.reloadPosition();
|
|
58889
58931
|
}
|
|
58890
58932
|
set yPercentagePosition(_value) {
|
|
58891
|
-
this._align
|
|
58933
|
+
if (this._align) {
|
|
58934
|
+
this._align.y = void 0;
|
|
58935
|
+
}
|
|
58892
58936
|
this._percentagePosition === void 0 && (this._percentagePosition = {});
|
|
58893
58937
|
this._percentagePosition.y = _value;
|
|
58894
58938
|
this.reloadPosition();
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CharacterBaseModel
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-JMXJKUTS.js";
|
|
4
4
|
import "../chunk-OMPJ74CO.js";
|
|
5
5
|
import "../chunk-2JGQWY5I.js";
|
|
6
|
-
import "../chunk-DPUSONJ3.js";
|
|
7
|
-
import "../chunk-6GJXIPNB.js";
|
|
8
6
|
import "../chunk-2BUPSB7O.js";
|
|
7
|
+
import "../chunk-SCOZ46ME.js";
|
|
8
|
+
import "../chunk-6GJXIPNB.js";
|
|
9
|
+
import "../chunk-I6TNJEE3.js";
|
|
10
|
+
import "../chunk-DPUSONJ3.js";
|
|
9
11
|
import "../chunk-WNOARCWH.js";
|
|
10
12
|
import "../chunk-6FAGAUDR.js";
|
|
11
|
-
import "../chunk-I6TNJEE3.js";
|
|
12
13
|
import "../chunk-RI37WOHP.js";
|
|
13
14
|
import "../chunk-ETZISN54.js";
|
|
14
15
|
import "../chunk-VXCA724Z.js";
|
|
@@ -20,7 +21,7 @@ import "../chunk-ZBUW3MBH.js";
|
|
|
20
21
|
import "../chunk-PIYIZHZL.js";
|
|
21
22
|
import "../chunk-B7XQM2BB.js";
|
|
22
23
|
import "../chunk-LEMOIFSV.js";
|
|
23
|
-
import "../chunk-
|
|
24
|
+
import "../chunk-AQPVWC55.js";
|
|
24
25
|
import "../chunk-WS3FY4Q6.js";
|
|
25
26
|
import "../chunk-Z3NBKYVU.js";
|
|
26
27
|
import "../chunk-SAUNZQHZ.js";
|
|
@@ -57723,7 +57723,7 @@ extensions.add(soundAsset);
|
|
|
57723
57723
|
var sound = setInstance(new SoundLibrary());
|
|
57724
57724
|
|
|
57725
57725
|
// package.json
|
|
57726
|
-
var version = "0.9.
|
|
57726
|
+
var version = "0.9.6";
|
|
57727
57727
|
|
|
57728
57728
|
// src/constants.ts
|
|
57729
57729
|
var Repeat = "repeat";
|
|
@@ -58618,6 +58618,41 @@ async function shakeEffect(alias, props = {}, priority) {
|
|
|
58618
58618
|
// src/classes/canvas/ImageContainer.ts
|
|
58619
58619
|
init_lib();
|
|
58620
58620
|
|
|
58621
|
+
// src/classes/canvas/AdditionalPositions.ts
|
|
58622
|
+
init_lib();
|
|
58623
|
+
function analizePositionsExtensionProps(props) {
|
|
58624
|
+
if (!props) {
|
|
58625
|
+
return props;
|
|
58626
|
+
}
|
|
58627
|
+
if (props.align != void 0) {
|
|
58628
|
+
if (typeof props.align === "number") {
|
|
58629
|
+
props.xAlign = props.align;
|
|
58630
|
+
props.yAlign = props.align;
|
|
58631
|
+
} else {
|
|
58632
|
+
if (props.align.x != void 0) {
|
|
58633
|
+
props.xAlign = props.align.x;
|
|
58634
|
+
}
|
|
58635
|
+
if (props.align.y != void 0) {
|
|
58636
|
+
props.yAlign = props.align.y;
|
|
58637
|
+
}
|
|
58638
|
+
}
|
|
58639
|
+
}
|
|
58640
|
+
if (props.percentagePosition != void 0) {
|
|
58641
|
+
if (typeof props.percentagePosition === "number") {
|
|
58642
|
+
props.xPercentagePosition = props.percentagePosition;
|
|
58643
|
+
props.yPercentagePosition = props.percentagePosition;
|
|
58644
|
+
} else {
|
|
58645
|
+
if (props.percentagePosition.x != void 0) {
|
|
58646
|
+
props.xPercentagePosition = props.percentagePosition.x;
|
|
58647
|
+
}
|
|
58648
|
+
if (props.percentagePosition.y != void 0) {
|
|
58649
|
+
props.yPercentagePosition = props.percentagePosition.y;
|
|
58650
|
+
}
|
|
58651
|
+
}
|
|
58652
|
+
}
|
|
58653
|
+
return props;
|
|
58654
|
+
}
|
|
58655
|
+
|
|
58621
58656
|
// src/classes/canvas/Container.ts
|
|
58622
58657
|
init_lib();
|
|
58623
58658
|
|
|
@@ -58741,6 +58776,7 @@ async function setMemoryContainer(element, memory, opstions) {
|
|
|
58741
58776
|
var ImageContainer = class extends Container2 {
|
|
58742
58777
|
constructor(options, textureAliases = []) {
|
|
58743
58778
|
super(options);
|
|
58779
|
+
options = analizePositionsExtensionProps(options);
|
|
58744
58780
|
if (textureAliases) {
|
|
58745
58781
|
textureAliases.forEach((textureAlias) => {
|
|
58746
58782
|
this.addChild(new ImageSprite(void 0, textureAlias));
|
|
@@ -58857,13 +58893,17 @@ var ImageContainer = class extends Container2 {
|
|
|
58857
58893
|
this.reloadPosition();
|
|
58858
58894
|
}
|
|
58859
58895
|
set xAlign(value) {
|
|
58860
|
-
this._percentagePosition
|
|
58896
|
+
if (this._percentagePosition) {
|
|
58897
|
+
this._percentagePosition.x = void 0;
|
|
58898
|
+
}
|
|
58861
58899
|
this._align === void 0 && (this._align = {});
|
|
58862
58900
|
this._align.x = value;
|
|
58863
58901
|
this.reloadPosition();
|
|
58864
58902
|
}
|
|
58865
58903
|
set yAlign(value) {
|
|
58866
|
-
this._percentagePosition
|
|
58904
|
+
if (this._percentagePosition) {
|
|
58905
|
+
this._percentagePosition.y = void 0;
|
|
58906
|
+
}
|
|
58867
58907
|
this._align === void 0 && (this._align = {});
|
|
58868
58908
|
this._align.y = value;
|
|
58869
58909
|
this.reloadPosition();
|
|
@@ -58882,13 +58922,17 @@ var ImageContainer = class extends Container2 {
|
|
|
58882
58922
|
this.reloadPosition();
|
|
58883
58923
|
}
|
|
58884
58924
|
set xPercentagePosition(_value) {
|
|
58885
|
-
this._align
|
|
58925
|
+
if (this._align) {
|
|
58926
|
+
this._align.x = void 0;
|
|
58927
|
+
}
|
|
58886
58928
|
this._percentagePosition === void 0 && (this._percentagePosition = {});
|
|
58887
58929
|
this._percentagePosition.x = _value;
|
|
58888
58930
|
this.reloadPosition();
|
|
58889
58931
|
}
|
|
58890
58932
|
set yPercentagePosition(_value) {
|
|
58891
|
-
this._align
|
|
58933
|
+
if (this._align) {
|
|
58934
|
+
this._align.y = void 0;
|
|
58935
|
+
}
|
|
58892
58936
|
this._percentagePosition === void 0 && (this._percentagePosition = {});
|
|
58893
58937
|
this._percentagePosition.y = _value;
|
|
58894
58938
|
this.reloadPosition();
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CharacterStoredClass
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-JMXJKUTS.js";
|
|
4
4
|
import "../chunk-OMPJ74CO.js";
|
|
5
5
|
import "../chunk-2JGQWY5I.js";
|
|
6
|
-
import "../chunk-DPUSONJ3.js";
|
|
7
|
-
import "../chunk-6GJXIPNB.js";
|
|
8
6
|
import "../chunk-2BUPSB7O.js";
|
|
7
|
+
import "../chunk-SCOZ46ME.js";
|
|
8
|
+
import "../chunk-6GJXIPNB.js";
|
|
9
|
+
import "../chunk-I6TNJEE3.js";
|
|
10
|
+
import "../chunk-DPUSONJ3.js";
|
|
9
11
|
import "../chunk-WNOARCWH.js";
|
|
10
12
|
import "../chunk-6FAGAUDR.js";
|
|
11
|
-
import "../chunk-I6TNJEE3.js";
|
|
12
13
|
import "../chunk-RI37WOHP.js";
|
|
13
14
|
import "../chunk-ETZISN54.js";
|
|
14
15
|
import "../chunk-VXCA724Z.js";
|
|
@@ -20,7 +21,7 @@ import "../chunk-ZBUW3MBH.js";
|
|
|
20
21
|
import "../chunk-PIYIZHZL.js";
|
|
21
22
|
import "../chunk-B7XQM2BB.js";
|
|
22
23
|
import "../chunk-LEMOIFSV.js";
|
|
23
|
-
import "../chunk-
|
|
24
|
+
import "../chunk-AQPVWC55.js";
|
|
24
25
|
import "../chunk-WS3FY4Q6.js";
|
|
25
26
|
import "../chunk-Z3NBKYVU.js";
|
|
26
27
|
import "../chunk-SAUNZQHZ.js";
|
|
@@ -57721,7 +57721,7 @@ extensions.add(soundAsset);
|
|
|
57721
57721
|
var sound = setInstance(new SoundLibrary());
|
|
57722
57722
|
|
|
57723
57723
|
// package.json
|
|
57724
|
-
var version = "0.9.
|
|
57724
|
+
var version = "0.9.6";
|
|
57725
57725
|
|
|
57726
57726
|
// src/constants.ts
|
|
57727
57727
|
var Repeat = "repeat";
|
|
@@ -58053,9 +58053,47 @@ async function setMemoryContainer(element, memory, opstions) {
|
|
|
58053
58053
|
|
|
58054
58054
|
// src/classes/canvas/ImageContainer.ts
|
|
58055
58055
|
init_lib();
|
|
58056
|
+
|
|
58057
|
+
// src/classes/canvas/AdditionalPositions.ts
|
|
58058
|
+
init_lib();
|
|
58059
|
+
function analizePositionsExtensionProps(props) {
|
|
58060
|
+
if (!props) {
|
|
58061
|
+
return props;
|
|
58062
|
+
}
|
|
58063
|
+
if (props.align != void 0) {
|
|
58064
|
+
if (typeof props.align === "number") {
|
|
58065
|
+
props.xAlign = props.align;
|
|
58066
|
+
props.yAlign = props.align;
|
|
58067
|
+
} else {
|
|
58068
|
+
if (props.align.x != void 0) {
|
|
58069
|
+
props.xAlign = props.align.x;
|
|
58070
|
+
}
|
|
58071
|
+
if (props.align.y != void 0) {
|
|
58072
|
+
props.yAlign = props.align.y;
|
|
58073
|
+
}
|
|
58074
|
+
}
|
|
58075
|
+
}
|
|
58076
|
+
if (props.percentagePosition != void 0) {
|
|
58077
|
+
if (typeof props.percentagePosition === "number") {
|
|
58078
|
+
props.xPercentagePosition = props.percentagePosition;
|
|
58079
|
+
props.yPercentagePosition = props.percentagePosition;
|
|
58080
|
+
} else {
|
|
58081
|
+
if (props.percentagePosition.x != void 0) {
|
|
58082
|
+
props.xPercentagePosition = props.percentagePosition.x;
|
|
58083
|
+
}
|
|
58084
|
+
if (props.percentagePosition.y != void 0) {
|
|
58085
|
+
props.yPercentagePosition = props.percentagePosition.y;
|
|
58086
|
+
}
|
|
58087
|
+
}
|
|
58088
|
+
}
|
|
58089
|
+
return props;
|
|
58090
|
+
}
|
|
58091
|
+
|
|
58092
|
+
// src/classes/canvas/ImageContainer.ts
|
|
58056
58093
|
var ImageContainer = class extends Container3 {
|
|
58057
58094
|
constructor(options, textureAliases = []) {
|
|
58058
58095
|
super(options);
|
|
58096
|
+
options = analizePositionsExtensionProps(options);
|
|
58059
58097
|
if (textureAliases) {
|
|
58060
58098
|
textureAliases.forEach((textureAlias) => {
|
|
58061
58099
|
this.addChild(new ImageSprite(void 0, textureAlias));
|
|
@@ -58172,13 +58210,17 @@ var ImageContainer = class extends Container3 {
|
|
|
58172
58210
|
this.reloadPosition();
|
|
58173
58211
|
}
|
|
58174
58212
|
set xAlign(value) {
|
|
58175
|
-
this._percentagePosition
|
|
58213
|
+
if (this._percentagePosition) {
|
|
58214
|
+
this._percentagePosition.x = void 0;
|
|
58215
|
+
}
|
|
58176
58216
|
this._align === void 0 && (this._align = {});
|
|
58177
58217
|
this._align.x = value;
|
|
58178
58218
|
this.reloadPosition();
|
|
58179
58219
|
}
|
|
58180
58220
|
set yAlign(value) {
|
|
58181
|
-
this._percentagePosition
|
|
58221
|
+
if (this._percentagePosition) {
|
|
58222
|
+
this._percentagePosition.y = void 0;
|
|
58223
|
+
}
|
|
58182
58224
|
this._align === void 0 && (this._align = {});
|
|
58183
58225
|
this._align.y = value;
|
|
58184
58226
|
this.reloadPosition();
|
|
@@ -58197,13 +58239,17 @@ var ImageContainer = class extends Container3 {
|
|
|
58197
58239
|
this.reloadPosition();
|
|
58198
58240
|
}
|
|
58199
58241
|
set xPercentagePosition(_value) {
|
|
58200
|
-
this._align
|
|
58242
|
+
if (this._align) {
|
|
58243
|
+
this._align.x = void 0;
|
|
58244
|
+
}
|
|
58201
58245
|
this._percentagePosition === void 0 && (this._percentagePosition = {});
|
|
58202
58246
|
this._percentagePosition.x = _value;
|
|
58203
58247
|
this.reloadPosition();
|
|
58204
58248
|
}
|
|
58205
58249
|
set yPercentagePosition(_value) {
|
|
58206
|
-
this._align
|
|
58250
|
+
if (this._align) {
|
|
58251
|
+
this._align.y = void 0;
|
|
58252
|
+
}
|
|
58207
58253
|
this._percentagePosition === void 0 && (this._percentagePosition = {});
|
|
58208
58254
|
this._percentagePosition.y = _value;
|
|
58209
58255
|
this.reloadPosition();
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ChoiceMenuOption,
|
|
3
3
|
ChoiceMenuOptionClose
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-JMXJKUTS.js";
|
|
5
5
|
import "../chunk-OMPJ74CO.js";
|
|
6
6
|
import "../chunk-2JGQWY5I.js";
|
|
7
|
-
import "../chunk-DPUSONJ3.js";
|
|
8
|
-
import "../chunk-6GJXIPNB.js";
|
|
9
7
|
import "../chunk-2BUPSB7O.js";
|
|
8
|
+
import "../chunk-SCOZ46ME.js";
|
|
9
|
+
import "../chunk-6GJXIPNB.js";
|
|
10
|
+
import "../chunk-I6TNJEE3.js";
|
|
11
|
+
import "../chunk-DPUSONJ3.js";
|
|
10
12
|
import "../chunk-WNOARCWH.js";
|
|
11
13
|
import "../chunk-6FAGAUDR.js";
|
|
12
|
-
import "../chunk-I6TNJEE3.js";
|
|
13
14
|
import "../chunk-RI37WOHP.js";
|
|
14
15
|
import "../chunk-ETZISN54.js";
|
|
15
16
|
import "../chunk-VXCA724Z.js";
|
|
@@ -21,7 +22,7 @@ import "../chunk-ZBUW3MBH.js";
|
|
|
21
22
|
import "../chunk-PIYIZHZL.js";
|
|
22
23
|
import "../chunk-B7XQM2BB.js";
|
|
23
24
|
import "../chunk-LEMOIFSV.js";
|
|
24
|
-
import "../chunk-
|
|
25
|
+
import "../chunk-AQPVWC55.js";
|
|
25
26
|
import "../chunk-WS3FY4Q6.js";
|
|
26
27
|
import "../chunk-Z3NBKYVU.js";
|
|
27
28
|
import "../chunk-SAUNZQHZ.js";
|
package/dist/classes/Sound.cjs
CHANGED
|
@@ -57723,7 +57723,7 @@ init_lib();
|
|
|
57723
57723
|
init_lib();
|
|
57724
57724
|
|
|
57725
57725
|
// package.json
|
|
57726
|
-
var version = "0.9.
|
|
57726
|
+
var version = "0.9.6";
|
|
57727
57727
|
|
|
57728
57728
|
// src/constants.ts
|
|
57729
57729
|
var Repeat = "repeat";
|
|
@@ -58618,6 +58618,41 @@ async function shakeEffect(alias, props = {}, priority) {
|
|
|
58618
58618
|
// src/classes/canvas/ImageContainer.ts
|
|
58619
58619
|
init_lib();
|
|
58620
58620
|
|
|
58621
|
+
// src/classes/canvas/AdditionalPositions.ts
|
|
58622
|
+
init_lib();
|
|
58623
|
+
function analizePositionsExtensionProps(props) {
|
|
58624
|
+
if (!props) {
|
|
58625
|
+
return props;
|
|
58626
|
+
}
|
|
58627
|
+
if (props.align != void 0) {
|
|
58628
|
+
if (typeof props.align === "number") {
|
|
58629
|
+
props.xAlign = props.align;
|
|
58630
|
+
props.yAlign = props.align;
|
|
58631
|
+
} else {
|
|
58632
|
+
if (props.align.x != void 0) {
|
|
58633
|
+
props.xAlign = props.align.x;
|
|
58634
|
+
}
|
|
58635
|
+
if (props.align.y != void 0) {
|
|
58636
|
+
props.yAlign = props.align.y;
|
|
58637
|
+
}
|
|
58638
|
+
}
|
|
58639
|
+
}
|
|
58640
|
+
if (props.percentagePosition != void 0) {
|
|
58641
|
+
if (typeof props.percentagePosition === "number") {
|
|
58642
|
+
props.xPercentagePosition = props.percentagePosition;
|
|
58643
|
+
props.yPercentagePosition = props.percentagePosition;
|
|
58644
|
+
} else {
|
|
58645
|
+
if (props.percentagePosition.x != void 0) {
|
|
58646
|
+
props.xPercentagePosition = props.percentagePosition.x;
|
|
58647
|
+
}
|
|
58648
|
+
if (props.percentagePosition.y != void 0) {
|
|
58649
|
+
props.yPercentagePosition = props.percentagePosition.y;
|
|
58650
|
+
}
|
|
58651
|
+
}
|
|
58652
|
+
}
|
|
58653
|
+
return props;
|
|
58654
|
+
}
|
|
58655
|
+
|
|
58621
58656
|
// src/classes/canvas/Container.ts
|
|
58622
58657
|
init_lib();
|
|
58623
58658
|
|
|
@@ -58741,6 +58776,7 @@ async function setMemoryContainer(element, memory, opstions) {
|
|
|
58741
58776
|
var ImageContainer = class extends Container2 {
|
|
58742
58777
|
constructor(options, textureAliases = []) {
|
|
58743
58778
|
super(options);
|
|
58779
|
+
options = analizePositionsExtensionProps(options);
|
|
58744
58780
|
if (textureAliases) {
|
|
58745
58781
|
textureAliases.forEach((textureAlias) => {
|
|
58746
58782
|
this.addChild(new ImageSprite(void 0, textureAlias));
|
|
@@ -58857,13 +58893,17 @@ var ImageContainer = class extends Container2 {
|
|
|
58857
58893
|
this.reloadPosition();
|
|
58858
58894
|
}
|
|
58859
58895
|
set xAlign(value) {
|
|
58860
|
-
this._percentagePosition
|
|
58896
|
+
if (this._percentagePosition) {
|
|
58897
|
+
this._percentagePosition.x = void 0;
|
|
58898
|
+
}
|
|
58861
58899
|
this._align === void 0 && (this._align = {});
|
|
58862
58900
|
this._align.x = value;
|
|
58863
58901
|
this.reloadPosition();
|
|
58864
58902
|
}
|
|
58865
58903
|
set yAlign(value) {
|
|
58866
|
-
this._percentagePosition
|
|
58904
|
+
if (this._percentagePosition) {
|
|
58905
|
+
this._percentagePosition.y = void 0;
|
|
58906
|
+
}
|
|
58867
58907
|
this._align === void 0 && (this._align = {});
|
|
58868
58908
|
this._align.y = value;
|
|
58869
58909
|
this.reloadPosition();
|
|
@@ -58882,13 +58922,17 @@ var ImageContainer = class extends Container2 {
|
|
|
58882
58922
|
this.reloadPosition();
|
|
58883
58923
|
}
|
|
58884
58924
|
set xPercentagePosition(_value) {
|
|
58885
|
-
this._align
|
|
58925
|
+
if (this._align) {
|
|
58926
|
+
this._align.x = void 0;
|
|
58927
|
+
}
|
|
58886
58928
|
this._percentagePosition === void 0 && (this._percentagePosition = {});
|
|
58887
58929
|
this._percentagePosition.x = _value;
|
|
58888
58930
|
this.reloadPosition();
|
|
58889
58931
|
}
|
|
58890
58932
|
set yPercentagePosition(_value) {
|
|
58891
|
-
this._align
|
|
58933
|
+
if (this._align) {
|
|
58934
|
+
this._align.y = void 0;
|
|
58935
|
+
}
|
|
58892
58936
|
this._percentagePosition === void 0 && (this._percentagePosition = {});
|
|
58893
58937
|
this._percentagePosition.y = _value;
|
|
58894
58938
|
this.reloadPosition();
|