vue-phaserjs 2.11.0 → 2.12.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.
Files changed (32) hide show
  1. package/LICENSE +201 -201
  2. package/README.md +43 -43
  3. package/dist/components/Circle.vue.d.ts +8 -8
  4. package/dist/components/Container.vue.d.ts +2 -2
  5. package/dist/components/Image.vue.d.ts +8 -8
  6. package/dist/components/Nineslice.vue.d.ts +8 -8
  7. package/dist/components/PathFollower.vue.d.ts +8 -8
  8. package/dist/components/Rectangle.vue.d.ts +8 -8
  9. package/dist/components/Sprite.vue.d.ts +8 -8
  10. package/dist/components/Text.vue.d.ts +8 -8
  11. package/dist/index.d.ts +3 -6
  12. package/dist/index.js +4 -8
  13. package/dist/models/configuration/ImageConfiguration.d.ts +2 -2
  14. package/dist/models/configuration/NineSliceConfiguration.d.ts +2 -2
  15. package/dist/models/configuration/PathFollowerConfiguration.d.ts +2 -2
  16. package/dist/models/configuration/SpriteConfiguration.d.ts +2 -2
  17. package/dist/models/configuration/TextConfiguration.d.ts +2 -2
  18. package/dist/models/configuration/TileSpriteConfiguration.d.ts +2 -2
  19. package/dist/models/configuration/components/RenderNodesConfiguration.d.ts +4 -0
  20. package/dist/models/configuration/shared/ShapeConfiguration.d.ts +2 -2
  21. package/dist/models/emit/components/RenderNodesEventEmitsOptions.d.ts +6 -0
  22. package/dist/util/setterMap/components/MaskSetterMap.d.ts +1 -1
  23. package/dist/util/setterMap/components/RenderNodesSetterMap.d.ts +1 -0
  24. package/dist/util/setterMap/shared/AnimationSetterMap.d.ts +1 -1
  25. package/dist/util/setterMap/shared/ShapeSetterMap.d.ts +1 -2
  26. package/package.json +7 -7
  27. package/dist/models/configuration/components/FXConfiguration.d.ts +0 -4
  28. package/dist/models/configuration/components/PipelineConfiguration.d.ts +0 -4
  29. package/dist/models/emit/components/FXEventEmitsOptions.d.ts +0 -6
  30. package/dist/models/emit/components/PipelineEventEmitsOptions.d.ts +0 -6
  31. package/dist/util/setterMap/components/FXSetterMap.d.ts +0 -4
  32. package/dist/util/setterMap/components/PipelineSetterMap.d.ts +0 -4
package/LICENSE CHANGED
@@ -1,201 +1,201 @@
1
- Apache License
2
- Version 2.0, January 2004
3
- http://www.apache.org/licenses/
4
-
5
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
-
7
- 1. Definitions.
8
-
9
- "License" shall mean the terms and conditions for use, reproduction,
10
- and distribution as defined by Sections 1 through 9 of this document.
11
-
12
- "Licensor" shall mean the copyright owner or entity authorized by
13
- the copyright owner that is granting the License.
14
-
15
- "Legal Entity" shall mean the union of the acting entity and all
16
- other entities that control, are controlled by, or are under common
17
- control with that entity. For the purposes of this definition,
18
- "control" means (i) the power, direct or indirect, to cause the
19
- direction or management of such entity, whether by contract or
20
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
- outstanding shares, or (iii) beneficial ownership of such entity.
22
-
23
- "You" (or "Your") shall mean an individual or Legal Entity
24
- exercising permissions granted by this License.
25
-
26
- "Source" form shall mean the preferred form for making modifications,
27
- including but not limited to software source code, documentation
28
- source, and configuration files.
29
-
30
- "Object" form shall mean any form resulting from mechanical
31
- transformation or translation of a Source form, including but
32
- not limited to compiled object code, generated documentation,
33
- and conversions to other media types.
34
-
35
- "Work" shall mean the work of authorship, whether in Source or
36
- Object form, made available under the License, as indicated by a
37
- copyright notice that is included in or attached to the work
38
- (an example is provided in the Appendix below).
39
-
40
- "Derivative Works" shall mean any work, whether in Source or Object
41
- form, that is based on (or derived from) the Work and for which the
42
- editorial revisions, annotations, elaborations, or other modifications
43
- represent, as a whole, an original work of authorship. For the purposes
44
- of this License, Derivative Works shall not include works that remain
45
- separable from, or merely link (or bind by name) to the interfaces of,
46
- the Work and Derivative Works thereof.
47
-
48
- "Contribution" shall mean any work of authorship, including
49
- the original version of the Work and any modifications or additions
50
- to that Work or Derivative Works thereof, that is intentionally
51
- submitted to Licensor for inclusion in the Work by the copyright owner
52
- or by an individual or Legal Entity authorized to submit on behalf of
53
- the copyright owner. For the purposes of this definition, "submitted"
54
- means any form of electronic, verbal, or written communication sent
55
- to the Licensor or its representatives, including but not limited to
56
- communication on electronic mailing lists, source code control systems,
57
- and issue tracking systems that are managed by, or on behalf of, the
58
- Licensor for the purpose of discussing and improving the Work, but
59
- excluding communication that is conspicuously marked or otherwise
60
- designated in writing by the copyright owner as "Not a Contribution."
61
-
62
- "Contributor" shall mean Licensor and any individual or Legal Entity
63
- on behalf of whom a Contribution has been received by Licensor and
64
- subsequently incorporated within the Work.
65
-
66
- 2. Grant of Copyright License. Subject to the terms and conditions of
67
- this License, each Contributor hereby grants to You a perpetual,
68
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
- copyright license to reproduce, prepare Derivative Works of,
70
- publicly display, publicly perform, sublicense, and distribute the
71
- Work and such Derivative Works in Source or Object form.
72
-
73
- 3. Grant of Patent License. Subject to the terms and conditions of
74
- this License, each Contributor hereby grants to You a perpetual,
75
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
- (except as stated in this section) patent license to make, have made,
77
- use, offer to sell, sell, import, and otherwise transfer the Work,
78
- where such license applies only to those patent claims licensable
79
- by such Contributor that are necessarily infringed by their
80
- Contribution(s) alone or by combination of their Contribution(s)
81
- with the Work to which such Contribution(s) was submitted. If You
82
- institute patent litigation against any entity (including a
83
- cross-claim or counterclaim in a lawsuit) alleging that the Work
84
- or a Contribution incorporated within the Work constitutes direct
85
- or contributory patent infringement, then any patent licenses
86
- granted to You under this License for that Work shall terminate
87
- as of the date such litigation is filed.
88
-
89
- 4. Redistribution. You may reproduce and distribute copies of the
90
- Work or Derivative Works thereof in any medium, with or without
91
- modifications, and in Source or Object form, provided that You
92
- meet the following conditions:
93
-
94
- (a) You must give any other recipients of the Work or
95
- Derivative Works a copy of this License; and
96
-
97
- (b) You must cause any modified files to carry prominent notices
98
- stating that You changed the files; and
99
-
100
- (c) You must retain, in the Source form of any Derivative Works
101
- that You distribute, all copyright, patent, trademark, and
102
- attribution notices from the Source form of the Work,
103
- excluding those notices that do not pertain to any part of
104
- the Derivative Works; and
105
-
106
- (d) If the Work includes a "NOTICE" text file as part of its
107
- distribution, then any Derivative Works that You distribute must
108
- include a readable copy of the attribution notices contained
109
- within such NOTICE file, excluding those notices that do not
110
- pertain to any part of the Derivative Works, in at least one
111
- of the following places: within a NOTICE text file distributed
112
- as part of the Derivative Works; within the Source form or
113
- documentation, if provided along with the Derivative Works; or,
114
- within a display generated by the Derivative Works, if and
115
- wherever such third-party notices normally appear. The contents
116
- of the NOTICE file are for informational purposes only and
117
- do not modify the License. You may add Your own attribution
118
- notices within Derivative Works that You distribute, alongside
119
- or as an addendum to the NOTICE text from the Work, provided
120
- that such additional attribution notices cannot be construed
121
- as modifying the License.
122
-
123
- You may add Your own copyright statement to Your modifications and
124
- may provide additional or different license terms and conditions
125
- for use, reproduction, or distribution of Your modifications, or
126
- for any such Derivative Works as a whole, provided Your use,
127
- reproduction, and distribution of the Work otherwise complies with
128
- the conditions stated in this License.
129
-
130
- 5. Submission of Contributions. Unless You explicitly state otherwise,
131
- any Contribution intentionally submitted for inclusion in the Work
132
- by You to the Licensor shall be under the terms and conditions of
133
- this License, without any additional terms or conditions.
134
- Notwithstanding the above, nothing herein shall supersede or modify
135
- the terms of any separate license agreement you may have executed
136
- with Licensor regarding such Contributions.
137
-
138
- 6. Trademarks. This License does not grant permission to use the trade
139
- names, trademarks, service marks, or product names of the Licensor,
140
- except as required for reasonable and customary use in describing the
141
- origin of the Work and reproducing the content of the NOTICE file.
142
-
143
- 7. Disclaimer of Warranty. Unless required by applicable law or
144
- agreed to in writing, Licensor provides the Work (and each
145
- Contributor provides its Contributions) on an "AS IS" BASIS,
146
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
- implied, including, without limitation, any warranties or conditions
148
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
- PARTICULAR PURPOSE. You are solely responsible for determining the
150
- appropriateness of using or redistributing the Work and assume any
151
- risks associated with Your exercise of permissions under this License.
152
-
153
- 8. Limitation of Liability. In no event and under no legal theory,
154
- whether in tort (including negligence), contract, or otherwise,
155
- unless required by applicable law (such as deliberate and grossly
156
- negligent acts) or agreed to in writing, shall any Contributor be
157
- liable to You for damages, including any direct, indirect, special,
158
- incidental, or consequential damages of any character arising as a
159
- result of this License or out of the use or inability to use the
160
- Work (including but not limited to damages for loss of goodwill,
161
- work stoppage, computer failure or malfunction, or any and all
162
- other commercial damages or losses), even if such Contributor
163
- has been advised of the possibility of such damages.
164
-
165
- 9. Accepting Warranty or Additional Liability. While redistributing
166
- the Work or Derivative Works thereof, You may choose to offer,
167
- and charge a fee for, acceptance of support, warranty, indemnity,
168
- or other liability obligations and/or rights consistent with this
169
- License. However, in accepting such obligations, You may act only
170
- on Your own behalf and on Your sole responsibility, not on behalf
171
- of any other Contributor, and only if You agree to indemnify,
172
- defend, and hold each Contributor harmless for any liability
173
- incurred by, or claims asserted against, such Contributor by reason
174
- of your accepting any such warranty or additional liability.
175
-
176
- END OF TERMS AND CONDITIONS
177
-
178
- APPENDIX: How to apply the Apache License to your work.
179
-
180
- To apply the Apache License to your work, attach the following
181
- boilerplate notice, with the fields enclosed by brackets "[]"
182
- replaced with your own identifying information. (Don't include
183
- the brackets!) The text should be enclosed in the appropriate
184
- comment syntax for the file format. We also recommend that a
185
- file or class name and description of purpose be included on the
186
- same "printed page" as the copyright notice for easier
187
- identification within third-party archives.
188
-
189
- Copyright 2020-present Jimmy Chen
190
-
191
- Licensed under the Apache License, Version 2.0 (the "License");
192
- you may not use this file except in compliance with the License.
193
- You may obtain a copy of the License at
194
-
195
- http://www.apache.org/licenses/LICENSE-2.0
196
-
197
- Unless required by applicable law or agreed to in writing, software
198
- distributed under the License is distributed on an "AS IS" BASIS,
199
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
- See the License for the specific language governing permissions and
201
- limitations under the License.
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright 2020-present Jimmy Chen
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
package/README.md CHANGED
@@ -1,43 +1,43 @@
1
- # vue-phaserjs
2
-
3
- [![Apache-2.0 licensed][badge-license]][url-license]
4
- [![NPM version][badge-npm-version]][url-npm]
5
- [![NPM downloads][badge-npm-downloads]][url-npm]
6
- [![NPM Unpacked Size (with version)][badge-npm-unpacked-size]][url-npm]
7
-
8
- Inspired by [phavuer](https://github.com/laineus/phavuer).
9
-
10
- ### Table of Contents
11
-
12
- - 🚀 [Getting Started](#getting-started)
13
- - 📖 [Documentation](#documentation)
14
- - ⚖️ [License](#license)
15
-
16
- ---
17
-
18
- ## <a name="getting-started">🚀 Getting Started</a>
19
-
20
- ```bash
21
- pnpm i vue-phaserjs vue phaser phaser3-rex-plugins pinia
22
- ```
23
-
24
- Add [phaser.d.ts](https://github.com/Esposter/Esposter/blob/main/packages/app/shared/types/phaser.d.ts) and [vue-phaserjs.d.ts](https://github.com/Esposter/Esposter/blob/main/packages/app/shared/types/vue-phaser.d.ts) so `vue-phaserjs` can narrow down your scene key types + provide intellisense for custom plugins.
25
-
26
- ## <a name="documentation">📖 Documentation</a>
27
-
28
- We highly recommend you take a look at the [documentation](https://esposter.com/docs/modules/vue_phaserjs.html) to level up.
29
-
30
- ### Usage
31
-
32
- An example [implementation](https://github.com/Esposter/Esposter/blob/main/packages/app/app/pages/dungeons.vue).
33
-
34
- ## <a name="license">⚖️ License</a>
35
-
36
- This project is licensed under the [Apache-2.0 license](https://github.com/Esposter/Esposter/blob/main/LICENSE).
37
-
38
- [badge-license]: https://img.shields.io/github/license/Esposter/Esposter.svg?color=blue
39
- [url-license]: https://github.com/Esposter/Esposter/blob/main/LICENSE
40
- [badge-npm-version]: https://img.shields.io/npm/v/vue-phaserjs/latest?color=brightgreen
41
- [url-npm]: https://www.npmjs.com/package/vue-phaserjs/v/latest
42
- [badge-npm-unpacked-size]: https://img.shields.io/npm/unpacked-size/vue-phaserjs/latest?label=npm
43
- [badge-npm-downloads]: https://img.shields.io/npm/dm/vue-phaserjs.svg
1
+ # vue-phaserjs
2
+
3
+ [![Apache-2.0 licensed][badge-license]][url-license]
4
+ [![NPM version][badge-npm-version]][url-npm]
5
+ [![NPM downloads][badge-npm-downloads]][url-npm]
6
+ [![NPM Unpacked Size (with version)][badge-npm-unpacked-size]][url-npm]
7
+
8
+ Inspired by [phavuer](https://github.com/laineus/phavuer).
9
+
10
+ ### Table of Contents
11
+
12
+ - 🚀 [Getting Started](#getting-started)
13
+ - 📖 [Documentation](#documentation)
14
+ - ⚖️ [License](#license)
15
+
16
+ ---
17
+
18
+ ## <a name="getting-started">🚀 Getting Started</a>
19
+
20
+ ```bash
21
+ pnpm i vue-phaserjs vue phaser phaser3-rex-plugins pinia
22
+ ```
23
+
24
+ Add [phaser.d.ts](https://github.com/Esposter/Esposter/blob/main/packages/app/shared/types/phaser.d.ts) and [vue-phaserjs.d.ts](https://github.com/Esposter/Esposter/blob/main/packages/app/shared/types/vue-phaser.d.ts) so `vue-phaserjs` can narrow down your scene key types + provide intellisense for custom plugins.
25
+
26
+ ## <a name="documentation">📖 Documentation</a>
27
+
28
+ We highly recommend you take a look at the [documentation](https://esposter.com/docs/modules/vue-phaserjs.html) to level up.
29
+
30
+ ### Usage
31
+
32
+ An example [implementation](https://github.com/Esposter/Esposter/blob/main/packages/app/app/pages/dungeons.vue).
33
+
34
+ ## <a name="license">⚖️ License</a>
35
+
36
+ This project is licensed under the [Apache-2.0 license](https://github.com/Esposter/Esposter/blob/main/LICENSE).
37
+
38
+ [badge-license]: https://img.shields.io/github/license/Esposter/Esposter.svg?color=blue
39
+ [url-license]: https://github.com/Esposter/Esposter/blob/main/LICENSE
40
+ [badge-npm-version]: https://img.shields.io/npm/v/vue-phaserjs/latest?color=brightgreen
41
+ [url-npm]: https://www.npmjs.com/package/vue-phaserjs/v/latest
42
+ [badge-npm-unpacked-size]: https://img.shields.io/npm/unpacked-size/vue-phaserjs/latest?label=npm
43
+ [badge-npm-downloads]: https://img.shields.io/npm/dm/vue-phaserjs.svg
@@ -128,10 +128,10 @@ declare const _default: import('vue').DefineComponent<CircleProps, void, {}, {},
128
128
  }[] | undefined) => any;
129
129
  "update:alpha": (args_0?: number | undefined) => any;
130
130
  "update:blendMode": (args_0?: string | number | Phaser.BlendModes | undefined) => any;
131
- "update:mask": (args_0?: Phaser.Display.Masks.BitmapMask | Phaser.Display.Masks.GeometryMask | undefined) => any;
132
- "update:defaultPipeline": (args_0?: Phaser.Renderer.WebGL.WebGLPipeline | undefined) => any;
133
- "update:pipeline": (args_0?: Phaser.Renderer.WebGL.WebGLPipeline | undefined) => any;
134
- "update:pipelineData": (args_0?: object | undefined) => any;
131
+ "update:mask": (args_0?: Phaser.Display.Masks.GeometryMask | undefined) => any;
132
+ "update:customRenderNodes": (args_0?: object | undefined) => any;
133
+ "update:defaultRenderNodes": (args_0?: object | undefined) => any;
134
+ "update:renderNodeData": (args_0?: object | undefined) => any;
135
135
  "update:fillAlpha": (args_0?: number | undefined) => any;
136
136
  "update:fillColor": (args_0?: number | undefined) => any;
137
137
  "update:strokeStyle": (args_0?: [lineWidth?: number | undefined, color?: number | undefined, alpha?: number | undefined] | undefined) => any;
@@ -265,10 +265,10 @@ declare const _default: import('vue').DefineComponent<CircleProps, void, {}, {},
265
265
  }[] | undefined) => any) | undefined;
266
266
  "onUpdate:alpha"?: ((args_0?: number | undefined) => any) | undefined;
267
267
  "onUpdate:blendMode"?: ((args_0?: string | number | Phaser.BlendModes | undefined) => any) | undefined;
268
- "onUpdate:mask"?: ((args_0?: Phaser.Display.Masks.BitmapMask | Phaser.Display.Masks.GeometryMask | undefined) => any) | undefined;
269
- "onUpdate:defaultPipeline"?: ((args_0?: Phaser.Renderer.WebGL.WebGLPipeline | undefined) => any) | undefined;
270
- "onUpdate:pipeline"?: ((args_0?: Phaser.Renderer.WebGL.WebGLPipeline | undefined) => any) | undefined;
271
- "onUpdate:pipelineData"?: ((args_0?: object | undefined) => any) | undefined;
268
+ "onUpdate:mask"?: ((args_0?: Phaser.Display.Masks.GeometryMask | undefined) => any) | undefined;
269
+ "onUpdate:customRenderNodes"?: ((args_0?: object | undefined) => any) | undefined;
270
+ "onUpdate:defaultRenderNodes"?: ((args_0?: object | undefined) => any) | undefined;
271
+ "onUpdate:renderNodeData"?: ((args_0?: object | undefined) => any) | undefined;
272
272
  "onUpdate:fillAlpha"?: ((args_0?: number | undefined) => any) | undefined;
273
273
  "onUpdate:fillColor"?: ((args_0?: number | undefined) => any) | undefined;
274
274
  "onUpdate:strokeStyle"?: ((args_0?: [lineWidth?: number | undefined, color?: number | undefined, alpha?: number | undefined] | undefined) => any) | undefined;
@@ -126,7 +126,7 @@ declare const __VLS_component: import('vue').DefineComponent<ContainerProps, voi
126
126
  }[] | undefined) => any;
127
127
  "update:alpha": (args_0?: number | undefined) => any;
128
128
  "update:blendMode": (args_0?: string | number | Phaser.BlendModes | undefined) => any;
129
- "update:mask": (args_0?: Phaser.Display.Masks.BitmapMask | Phaser.Display.Masks.GeometryMask | undefined) => any;
129
+ "update:mask": (args_0?: Phaser.Display.Masks.GeometryMask | undefined) => any;
130
130
  "update:children": (args_0?: GameObjects.GameObject[] | undefined) => any;
131
131
  }, string, import('vue').PublicProps, Readonly<ContainerProps> & Readonly<{
132
132
  onClickoutside?: ((...args: Phaser.Types.Input.EventData[]) => any) | undefined;
@@ -248,7 +248,7 @@ declare const __VLS_component: import('vue').DefineComponent<ContainerProps, voi
248
248
  }[] | undefined) => any) | undefined;
249
249
  "onUpdate:alpha"?: ((args_0?: number | undefined) => any) | undefined;
250
250
  "onUpdate:blendMode"?: ((args_0?: string | number | Phaser.BlendModes | undefined) => any) | undefined;
251
- "onUpdate:mask"?: ((args_0?: Phaser.Display.Masks.BitmapMask | Phaser.Display.Masks.GeometryMask | undefined) => any) | undefined;
251
+ "onUpdate:mask"?: ((args_0?: Phaser.Display.Masks.GeometryMask | undefined) => any) | undefined;
252
252
  "onUpdate:children"?: ((args_0?: GameObjects.GameObject[] | undefined) => any) | undefined;
253
253
  }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
254
254
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
@@ -141,10 +141,10 @@ declare const _default: import('vue').DefineComponent<ImageProps, void, {}, {},
141
141
  "update:alphaTopRight": (args_0?: number | undefined) => any;
142
142
  "update:alphaBottomLeft": (args_0?: number | undefined) => any;
143
143
  "update:alphaBottomRight": (args_0?: number | undefined) => any;
144
- "update:mask": (args_0?: Phaser.Display.Masks.BitmapMask | Phaser.Display.Masks.GeometryMask | undefined) => any;
145
- "update:defaultPipeline": (args_0?: Phaser.Renderer.WebGL.WebGLPipeline | undefined) => any;
146
- "update:pipeline": (args_0?: Phaser.Renderer.WebGL.WebGLPipeline | undefined) => any;
147
- "update:pipelineData": (args_0?: object | undefined) => any;
144
+ "update:mask": (args_0?: Phaser.Display.Masks.GeometryMask | undefined) => any;
145
+ "update:customRenderNodes": (args_0?: object | undefined) => any;
146
+ "update:defaultRenderNodes": (args_0?: object | undefined) => any;
147
+ "update:renderNodeData": (args_0?: object | undefined) => any;
148
148
  "update:frame": (args_0?: string | number | undefined) => any;
149
149
  "update:texture": (args_0?: string | undefined) => any;
150
150
  "update:tintTopLeft": (args_0?: number | undefined) => any;
@@ -292,10 +292,10 @@ declare const _default: import('vue').DefineComponent<ImageProps, void, {}, {},
292
292
  "onUpdate:alphaTopRight"?: ((args_0?: number | undefined) => any) | undefined;
293
293
  "onUpdate:alphaBottomLeft"?: ((args_0?: number | undefined) => any) | undefined;
294
294
  "onUpdate:alphaBottomRight"?: ((args_0?: number | undefined) => any) | undefined;
295
- "onUpdate:mask"?: ((args_0?: Phaser.Display.Masks.BitmapMask | Phaser.Display.Masks.GeometryMask | undefined) => any) | undefined;
296
- "onUpdate:defaultPipeline"?: ((args_0?: Phaser.Renderer.WebGL.WebGLPipeline | undefined) => any) | undefined;
297
- "onUpdate:pipeline"?: ((args_0?: Phaser.Renderer.WebGL.WebGLPipeline | undefined) => any) | undefined;
298
- "onUpdate:pipelineData"?: ((args_0?: object | undefined) => any) | undefined;
295
+ "onUpdate:mask"?: ((args_0?: Phaser.Display.Masks.GeometryMask | undefined) => any) | undefined;
296
+ "onUpdate:customRenderNodes"?: ((args_0?: object | undefined) => any) | undefined;
297
+ "onUpdate:defaultRenderNodes"?: ((args_0?: object | undefined) => any) | undefined;
298
+ "onUpdate:renderNodeData"?: ((args_0?: object | undefined) => any) | undefined;
299
299
  "onUpdate:frame"?: ((args_0?: string | number | undefined) => any) | undefined;
300
300
  "onUpdate:texture"?: ((args_0?: string | undefined) => any) | undefined;
301
301
  "onUpdate:tintTopLeft"?: ((args_0?: number | undefined) => any) | undefined;
@@ -130,10 +130,10 @@ declare const _default: import('vue').DefineComponent<NineSliceProps, void, {},
130
130
  "update:alpha": (args_0?: number | undefined) => any;
131
131
  "update:blendMode": (args_0?: string | number | Phaser.BlendModes | undefined) => any;
132
132
  "update:key": (args_0?: string | Phaser.Textures.Texture | undefined) => any;
133
- "update:mask": (args_0?: Phaser.Display.Masks.BitmapMask | Phaser.Display.Masks.GeometryMask | undefined) => any;
134
- "update:defaultPipeline": (args_0?: Phaser.Renderer.WebGL.WebGLPipeline | undefined) => any;
135
- "update:pipeline": (args_0?: Phaser.Renderer.WebGL.WebGLPipeline | undefined) => any;
136
- "update:pipelineData": (args_0?: object | undefined) => any;
133
+ "update:mask": (args_0?: Phaser.Display.Masks.GeometryMask | undefined) => any;
134
+ "update:customRenderNodes": (args_0?: object | undefined) => any;
135
+ "update:defaultRenderNodes": (args_0?: object | undefined) => any;
136
+ "update:renderNodeData": (args_0?: object | undefined) => any;
137
137
  "update:frame": (args_0?: string | number | undefined) => any;
138
138
  "update:texture": (args_0?: string | undefined) => any;
139
139
  "update:leftWidth": (args_0?: number | undefined) => any;
@@ -267,10 +267,10 @@ declare const _default: import('vue').DefineComponent<NineSliceProps, void, {},
267
267
  "onUpdate:alpha"?: ((args_0?: number | undefined) => any) | undefined;
268
268
  "onUpdate:blendMode"?: ((args_0?: string | number | Phaser.BlendModes | undefined) => any) | undefined;
269
269
  "onUpdate:key"?: ((args_0?: string | Phaser.Textures.Texture | undefined) => any) | undefined;
270
- "onUpdate:mask"?: ((args_0?: Phaser.Display.Masks.BitmapMask | Phaser.Display.Masks.GeometryMask | undefined) => any) | undefined;
271
- "onUpdate:defaultPipeline"?: ((args_0?: Phaser.Renderer.WebGL.WebGLPipeline | undefined) => any) | undefined;
272
- "onUpdate:pipeline"?: ((args_0?: Phaser.Renderer.WebGL.WebGLPipeline | undefined) => any) | undefined;
273
- "onUpdate:pipelineData"?: ((args_0?: object | undefined) => any) | undefined;
270
+ "onUpdate:mask"?: ((args_0?: Phaser.Display.Masks.GeometryMask | undefined) => any) | undefined;
271
+ "onUpdate:customRenderNodes"?: ((args_0?: object | undefined) => any) | undefined;
272
+ "onUpdate:defaultRenderNodes"?: ((args_0?: object | undefined) => any) | undefined;
273
+ "onUpdate:renderNodeData"?: ((args_0?: object | undefined) => any) | undefined;
274
274
  "onUpdate:frame"?: ((args_0?: string | number | undefined) => any) | undefined;
275
275
  "onUpdate:texture"?: ((args_0?: string | undefined) => any) | undefined;
276
276
  "onUpdate:leftWidth"?: ((args_0?: number | undefined) => any) | undefined;
@@ -140,10 +140,10 @@ declare const _default: import('vue').DefineComponent<PathFollowerProps, void, {
140
140
  "update:alphaTopRight": (args_0?: number | undefined) => any;
141
141
  "update:alphaBottomLeft": (args_0?: number | undefined) => any;
142
142
  "update:alphaBottomRight": (args_0?: number | undefined) => any;
143
- "update:mask": (args_0?: Phaser.Display.Masks.BitmapMask | Phaser.Display.Masks.GeometryMask | undefined) => any;
144
- "update:defaultPipeline": (args_0?: Phaser.Renderer.WebGL.WebGLPipeline | undefined) => any;
145
- "update:pipeline": (args_0?: Phaser.Renderer.WebGL.WebGLPipeline | undefined) => any;
146
- "update:pipelineData": (args_0?: object | undefined) => any;
143
+ "update:mask": (args_0?: Phaser.Display.Masks.GeometryMask | undefined) => any;
144
+ "update:customRenderNodes": (args_0?: object | undefined) => any;
145
+ "update:defaultRenderNodes": (args_0?: object | undefined) => any;
146
+ "update:renderNodeData": (args_0?: object | undefined) => any;
147
147
  "update:frame": (args_0?: string | number | undefined) => any;
148
148
  "update:texture": (args_0?: string | undefined) => any;
149
149
  "update:tintTopLeft": (args_0?: number | undefined) => any;
@@ -295,10 +295,10 @@ declare const _default: import('vue').DefineComponent<PathFollowerProps, void, {
295
295
  "onUpdate:alphaTopRight"?: ((args_0?: number | undefined) => any) | undefined;
296
296
  "onUpdate:alphaBottomLeft"?: ((args_0?: number | undefined) => any) | undefined;
297
297
  "onUpdate:alphaBottomRight"?: ((args_0?: number | undefined) => any) | undefined;
298
- "onUpdate:mask"?: ((args_0?: Phaser.Display.Masks.BitmapMask | Phaser.Display.Masks.GeometryMask | undefined) => any) | undefined;
299
- "onUpdate:defaultPipeline"?: ((args_0?: Phaser.Renderer.WebGL.WebGLPipeline | undefined) => any) | undefined;
300
- "onUpdate:pipeline"?: ((args_0?: Phaser.Renderer.WebGL.WebGLPipeline | undefined) => any) | undefined;
301
- "onUpdate:pipelineData"?: ((args_0?: object | undefined) => any) | undefined;
298
+ "onUpdate:mask"?: ((args_0?: Phaser.Display.Masks.GeometryMask | undefined) => any) | undefined;
299
+ "onUpdate:customRenderNodes"?: ((args_0?: object | undefined) => any) | undefined;
300
+ "onUpdate:defaultRenderNodes"?: ((args_0?: object | undefined) => any) | undefined;
301
+ "onUpdate:renderNodeData"?: ((args_0?: object | undefined) => any) | undefined;
302
302
  "onUpdate:frame"?: ((args_0?: string | number | undefined) => any) | undefined;
303
303
  "onUpdate:texture"?: ((args_0?: string | undefined) => any) | undefined;
304
304
  "onUpdate:tintTopLeft"?: ((args_0?: number | undefined) => any) | undefined;
@@ -134,10 +134,10 @@ declare const _default: import('vue').DefineComponent<RectangleProps, void, {},
134
134
  }[] | undefined) => any;
135
135
  "update:alpha": (args_0?: number | undefined) => any;
136
136
  "update:blendMode": (args_0?: string | number | Phaser.BlendModes | undefined) => any;
137
- "update:mask": (args_0?: Phaser.Display.Masks.BitmapMask | Phaser.Display.Masks.GeometryMask | undefined) => any;
138
- "update:defaultPipeline": (args_0?: Phaser.Renderer.WebGL.WebGLPipeline | undefined) => any;
139
- "update:pipeline": (args_0?: Phaser.Renderer.WebGL.WebGLPipeline | undefined) => any;
140
- "update:pipelineData": (args_0?: object | undefined) => any;
137
+ "update:mask": (args_0?: Phaser.Display.Masks.GeometryMask | undefined) => any;
138
+ "update:customRenderNodes": (args_0?: object | undefined) => any;
139
+ "update:defaultRenderNodes": (args_0?: object | undefined) => any;
140
+ "update:renderNodeData": (args_0?: object | undefined) => any;
141
141
  "update:fillAlpha": (args_0?: number | undefined) => any;
142
142
  "update:fillColor": (args_0?: number | undefined) => any;
143
143
  "update:strokeStyle": (args_0?: [lineWidth?: number | undefined, color?: number | undefined, alpha?: number | undefined] | undefined) => any;
@@ -269,10 +269,10 @@ declare const _default: import('vue').DefineComponent<RectangleProps, void, {},
269
269
  }[] | undefined) => any) | undefined;
270
270
  "onUpdate:alpha"?: ((args_0?: number | undefined) => any) | undefined;
271
271
  "onUpdate:blendMode"?: ((args_0?: string | number | Phaser.BlendModes | undefined) => any) | undefined;
272
- "onUpdate:mask"?: ((args_0?: Phaser.Display.Masks.BitmapMask | Phaser.Display.Masks.GeometryMask | undefined) => any) | undefined;
273
- "onUpdate:defaultPipeline"?: ((args_0?: Phaser.Renderer.WebGL.WebGLPipeline | undefined) => any) | undefined;
274
- "onUpdate:pipeline"?: ((args_0?: Phaser.Renderer.WebGL.WebGLPipeline | undefined) => any) | undefined;
275
- "onUpdate:pipelineData"?: ((args_0?: object | undefined) => any) | undefined;
272
+ "onUpdate:mask"?: ((args_0?: Phaser.Display.Masks.GeometryMask | undefined) => any) | undefined;
273
+ "onUpdate:customRenderNodes"?: ((args_0?: object | undefined) => any) | undefined;
274
+ "onUpdate:defaultRenderNodes"?: ((args_0?: object | undefined) => any) | undefined;
275
+ "onUpdate:renderNodeData"?: ((args_0?: object | undefined) => any) | undefined;
276
276
  "onUpdate:fillAlpha"?: ((args_0?: number | undefined) => any) | undefined;
277
277
  "onUpdate:fillColor"?: ((args_0?: number | undefined) => any) | undefined;
278
278
  "onUpdate:strokeStyle"?: ((args_0?: [lineWidth?: number | undefined, color?: number | undefined, alpha?: number | undefined] | undefined) => any) | undefined;
@@ -142,10 +142,10 @@ declare const _default: import('vue').DefineComponent<SpriteProps, void, {}, {},
142
142
  "update:alphaTopRight": (args_0?: number | undefined) => any;
143
143
  "update:alphaBottomLeft": (args_0?: number | undefined) => any;
144
144
  "update:alphaBottomRight": (args_0?: number | undefined) => any;
145
- "update:mask": (args_0?: Phaser.Display.Masks.BitmapMask | Phaser.Display.Masks.GeometryMask | undefined) => any;
146
- "update:defaultPipeline": (args_0?: Phaser.Renderer.WebGL.WebGLPipeline | undefined) => any;
147
- "update:pipeline": (args_0?: Phaser.Renderer.WebGL.WebGLPipeline | undefined) => any;
148
- "update:pipelineData": (args_0?: object | undefined) => any;
145
+ "update:mask": (args_0?: Phaser.Display.Masks.GeometryMask | undefined) => any;
146
+ "update:customRenderNodes": (args_0?: object | undefined) => any;
147
+ "update:defaultRenderNodes": (args_0?: object | undefined) => any;
148
+ "update:renderNodeData": (args_0?: object | undefined) => any;
149
149
  "update:frame": (args_0?: string | number | undefined) => any;
150
150
  "update:texture": (args_0?: string | undefined) => any;
151
151
  "update:tintTopLeft": (args_0?: number | undefined) => any;
@@ -293,10 +293,10 @@ declare const _default: import('vue').DefineComponent<SpriteProps, void, {}, {},
293
293
  "onUpdate:alphaTopRight"?: ((args_0?: number | undefined) => any) | undefined;
294
294
  "onUpdate:alphaBottomLeft"?: ((args_0?: number | undefined) => any) | undefined;
295
295
  "onUpdate:alphaBottomRight"?: ((args_0?: number | undefined) => any) | undefined;
296
- "onUpdate:mask"?: ((args_0?: Phaser.Display.Masks.BitmapMask | Phaser.Display.Masks.GeometryMask | undefined) => any) | undefined;
297
- "onUpdate:defaultPipeline"?: ((args_0?: Phaser.Renderer.WebGL.WebGLPipeline | undefined) => any) | undefined;
298
- "onUpdate:pipeline"?: ((args_0?: Phaser.Renderer.WebGL.WebGLPipeline | undefined) => any) | undefined;
299
- "onUpdate:pipelineData"?: ((args_0?: object | undefined) => any) | undefined;
296
+ "onUpdate:mask"?: ((args_0?: Phaser.Display.Masks.GeometryMask | undefined) => any) | undefined;
297
+ "onUpdate:customRenderNodes"?: ((args_0?: object | undefined) => any) | undefined;
298
+ "onUpdate:defaultRenderNodes"?: ((args_0?: object | undefined) => any) | undefined;
299
+ "onUpdate:renderNodeData"?: ((args_0?: object | undefined) => any) | undefined;
300
300
  "onUpdate:frame"?: ((args_0?: string | number | undefined) => any) | undefined;
301
301
  "onUpdate:texture"?: ((args_0?: string | undefined) => any) | undefined;
302
302
  "onUpdate:tintTopLeft"?: ((args_0?: number | undefined) => any) | undefined;
@@ -133,10 +133,10 @@ declare const _default: import('vue').DefineComponent<TextProps, void, {}, {}, {
133
133
  "update:alphaTopRight": (args_0?: number | undefined) => any;
134
134
  "update:alphaBottomLeft": (args_0?: number | undefined) => any;
135
135
  "update:alphaBottomRight": (args_0?: number | undefined) => any;
136
- "update:mask": (args_0?: Phaser.Display.Masks.BitmapMask | Phaser.Display.Masks.GeometryMask | undefined) => any;
137
- "update:defaultPipeline": (args_0?: Phaser.Renderer.WebGL.WebGLPipeline | undefined) => any;
138
- "update:pipeline": (args_0?: Phaser.Renderer.WebGL.WebGLPipeline | undefined) => any;
139
- "update:pipelineData": (args_0?: object | undefined) => any;
136
+ "update:mask": (args_0?: Phaser.Display.Masks.GeometryMask | undefined) => any;
137
+ "update:customRenderNodes": (args_0?: object | undefined) => any;
138
+ "update:defaultRenderNodes": (args_0?: object | undefined) => any;
139
+ "update:renderNodeData": (args_0?: object | undefined) => any;
140
140
  "update:tintTopLeft": (args_0?: number | undefined) => any;
141
141
  "update:tintTopRight": (args_0?: number | undefined) => any;
142
142
  "update:tintBottomLeft": (args_0?: number | undefined) => any;
@@ -281,10 +281,10 @@ declare const _default: import('vue').DefineComponent<TextProps, void, {}, {}, {
281
281
  "onUpdate:alphaTopRight"?: ((args_0?: number | undefined) => any) | undefined;
282
282
  "onUpdate:alphaBottomLeft"?: ((args_0?: number | undefined) => any) | undefined;
283
283
  "onUpdate:alphaBottomRight"?: ((args_0?: number | undefined) => any) | undefined;
284
- "onUpdate:mask"?: ((args_0?: Phaser.Display.Masks.BitmapMask | Phaser.Display.Masks.GeometryMask | undefined) => any) | undefined;
285
- "onUpdate:defaultPipeline"?: ((args_0?: Phaser.Renderer.WebGL.WebGLPipeline | undefined) => any) | undefined;
286
- "onUpdate:pipeline"?: ((args_0?: Phaser.Renderer.WebGL.WebGLPipeline | undefined) => any) | undefined;
287
- "onUpdate:pipelineData"?: ((args_0?: object | undefined) => any) | undefined;
284
+ "onUpdate:mask"?: ((args_0?: Phaser.Display.Masks.GeometryMask | undefined) => any) | undefined;
285
+ "onUpdate:customRenderNodes"?: ((args_0?: object | undefined) => any) | undefined;
286
+ "onUpdate:defaultRenderNodes"?: ((args_0?: object | undefined) => any) | undefined;
287
+ "onUpdate:renderNodeData"?: ((args_0?: object | undefined) => any) | undefined;
288
288
  "onUpdate:tintTopLeft"?: ((args_0?: number | undefined) => any) | undefined;
289
289
  "onUpdate:tintTopRight"?: ((args_0?: number | undefined) => any) | undefined;
290
290
  "onUpdate:tintBottomLeft"?: ((args_0?: number | undefined) => any) | undefined;
package/dist/index.d.ts CHANGED
@@ -82,11 +82,10 @@ export * from './models/configuration/components/BlendModeConfiguration';
82
82
  export * from './models/configuration/components/ComputedSizeConfiguration';
83
83
  export * from './models/configuration/components/DepthConfiguration';
84
84
  export * from './models/configuration/components/FlipConfiguration';
85
- export * from './models/configuration/components/FXConfiguration';
86
85
  export * from './models/configuration/components/MaskConfiguration';
87
86
  export * from './models/configuration/components/OriginConfiguration';
88
87
  export * from './models/configuration/components/PathFollowerComponentConfiguration';
89
- export * from './models/configuration/components/PipelineConfiguration';
88
+ export * from './models/configuration/components/RenderNodesConfiguration';
90
89
  export * from './models/configuration/components/ScrollFactorConfiguration';
91
90
  export * from './models/configuration/components/SizeConfiguration';
92
91
  export * from './models/configuration/components/TextureConfiguration';
@@ -107,11 +106,10 @@ export * from './models/emit/components/BlendModeEventEmitsOptions';
107
106
  export * from './models/emit/components/ComputedSizeEventEmitsOptions';
108
107
  export * from './models/emit/components/DepthEventEmitsOptions';
109
108
  export * from './models/emit/components/FlipEventEmitsOptions';
110
- export * from './models/emit/components/FXEventEmitsOptions';
111
109
  export * from './models/emit/components/MaskEventEmitsOptions';
112
110
  export * from './models/emit/components/OriginEventEmitsOptions';
113
111
  export * from './models/emit/components/PathFollowerComponentEventEmitsOptions';
114
- export * from './models/emit/components/PipelineEventEmitsOptions';
112
+ export * from './models/emit/components/RenderNodesEventEmitsOptions';
115
113
  export * from './models/emit/components/ScrollFactorEventEmitsOptions';
116
114
  export * from './models/emit/components/SizeEventEmitsOptions';
117
115
  export * from './models/emit/components/TextureCropEventEmitsOptions';
@@ -131,11 +129,10 @@ export * from './util/setterMap/components/BlendModeSetterMap';
131
129
  export * from './util/setterMap/components/ComputedSizeSetterMap';
132
130
  export * from './util/setterMap/components/DepthSetterMap';
133
131
  export * from './util/setterMap/components/FlipSetterMap';
134
- export * from './util/setterMap/components/FXSetterMap';
135
132
  export * from './util/setterMap/components/MaskSetterMap';
136
133
  export * from './util/setterMap/components/OriginSetterMap';
137
134
  export * from './util/setterMap/components/PathFollowerComponentSetterMap';
138
- export * from './util/setterMap/components/PipelineSetterMap';
135
+ export * from './util/setterMap/components/RenderNodesSetterMap';
139
136
  export * from './util/setterMap/components/ScrollFactorSetterMap';
140
137
  export * from './util/setterMap/components/SizeSetterMap';
141
138
  export * from './util/setterMap/components/TextureCropSetterMap';
package/dist/index.js CHANGED
@@ -237,7 +237,7 @@ const De = {
237
237
  };
238
238
  var Oe = Ee, ke = Oe;
239
239
  const Ae = () => {
240
- let e = o(), t = new Set(Object.keys(e?.attrs ?? {}).filter(F).map(P)), n = Object.keys(N).filter(t.has), r = [], i = (e, t, i) => {
240
+ let e = o(), t = new Set(Object.keys(e?.attrs ?? {}).filter(F).map(P)), n = Object.keys(N).filter((e) => t.has(e)), r = [], i = (e, t, i) => {
241
241
  if (n.length !== 0) {
242
242
  e.input || e.setInteractive(), n.some((e) => "drag" in N[e]) && i.input.setDraggable(e);
243
243
  for (let i of n) {
@@ -510,9 +510,7 @@ const st = {
510
510
  }
511
511
  }, dt = { mask: (e) => (t) => {
512
512
  t && e.setMask(t);
513
- } }, ft = { pipeline: (e) => (t) => {
514
- t && e.setPipeline(t);
515
- } }, pt = {
513
+ } }, ft = {}, pt = {
516
514
  frame: (e) => (t) => {
517
515
  t !== void 0 && e.setFrame(t);
518
516
  },
@@ -894,7 +892,6 @@ var Xt = /* @__PURE__ */ a({
894
892
  }), Zt = Xt;
895
893
  const Qt = w.FileTypes.XMLFile;
896
894
  var $t = class extends Qt {
897
- tilesetIndex;
898
895
  constructor(e, ...t) {
899
896
  super(...t), this.tilesetIndex = e;
900
897
  }
@@ -56851,7 +56848,7 @@ var mr, hr, gr, _r, vr, yr, br, xr, Sr, Cr, wr, Tr, Er, Dr, Or, kr, Ar, jr, Mr,
56851
56848
  body: d
56852
56849
  };
56853
56850
  };
56854
- }) }), ai = /* @__PURE__ */ dn(ii());
56851
+ }) }), ai = /* @__PURE__ */ dn(ii(), 1);
56855
56852
  const oi = (e) => {
56856
56853
  let t = (0, ai.default)(e) ?? e;
56857
56854
  return Qn(t, {
@@ -57020,5 +57017,4 @@ const Si = (...e) => {
57020
57017
  n();
57021
57018
  })), ki = w.FileTypes.JSONFile;
57022
57019
  var Ai = class extends ki {};
57023
- const ji = { padding: (e) => (t) => e.setPadding(t) };
57024
- export { st as AlphaSetterMap, It as AlphaSingleSetterMap, Et as AnimationSetterMap, yi as ArcSetterMap, pt as BaseTextureSetterMap, ct as BlendModeSetterMap, xi as Circle, lt as ComputedSizeSetterMap, vi as Container, gi as ContainerSetterMap, Xe as DepthSetterMap, ze as ExternalSceneStore, ji as FXSetterMap, ut as FlipSetterMap, hi as Game, N as GameObjectEventMap, tt as GameObjectSetterMap, rt as GlobalSetterMap, Zt as Image, Yt as ImageSetterMap, je as InjectionKeyMap, Q as Lifecycle, dt as MaskSetterMap, Gt as NineSliceSetterMap, qt as Nineslice, Ze as OriginSetterMap, Wt as PathFollower, Vt as PathFollowerComponentSetterMap, Ht as PathFollowerSetterMap, ft as PipelineSetterMap, Bt as Rectangle, Rt as RectangleSetterMap, Ft as Scene, Qe as ScrollFactorSetterMap, Lt as ShapeSetterMap, Tt as SizeSetterMap, kt as Sprite, Dt as SpriteSetterMap, di as TILEMAP_TILED_JSON_EXTERNAL_KEY, wt as Text, St as TextSetterMap, Jt as TextureCropSetterMap, mt as TextureSetterMap, vt as TileSprite, gt as TileSpriteSetterMap, ui as TiledJSONExternalFile, bt as Tilemap, Ai as TilemapFile, $t as TilesetFile, ht as TintSetterMap, $e as TransformSetterMap, nt as TweenSetterMap, et as VisibleSetterMap, ot as Zone, it as ZoneSetterMap, P as getEventName, Je as getInitializeGameObjectLifecycleHook, Ke as getScene, He as getUpdateEvent, F as isEvent, qe as onCreate, Ti as onInit, Ve as onNextTick, Ei as onPreload, Si as onShutdown, Di as onUpdate, M as pushGameObject, Be as pushListener, pi as registerTiledJSONExternalLoader, Mt as resetLifecycleListeners, Nt as runLifecycleListeners, Oi as sleep, Ci as useAnimations, jt as useCameraStore, Ge as useGame, Ye as useInitializeGameObject, Ae as useInitializeGameObjectEvents, Ue as useInitializeGameObjectSetters, Re as useInjectSceneKey, At as useInputStore, We as usePhaserStore, xt as useTextStore, wi as useTween };
57020
+ export { st as AlphaSetterMap, It as AlphaSingleSetterMap, Et as AnimationSetterMap, yi as ArcSetterMap, pt as BaseTextureSetterMap, ct as BlendModeSetterMap, xi as Circle, lt as ComputedSizeSetterMap, vi as Container, gi as ContainerSetterMap, Xe as DepthSetterMap, ze as ExternalSceneStore, ut as FlipSetterMap, hi as Game, N as GameObjectEventMap, tt as GameObjectSetterMap, rt as GlobalSetterMap, Zt as Image, Yt as ImageSetterMap, je as InjectionKeyMap, Q as Lifecycle, dt as MaskSetterMap, Gt as NineSliceSetterMap, qt as Nineslice, Ze as OriginSetterMap, Wt as PathFollower, Vt as PathFollowerComponentSetterMap, Ht as PathFollowerSetterMap, Bt as Rectangle, Rt as RectangleSetterMap, ft as RenderNodesSetterMap, Ft as Scene, Qe as ScrollFactorSetterMap, Lt as ShapeSetterMap, Tt as SizeSetterMap, kt as Sprite, Dt as SpriteSetterMap, di as TILEMAP_TILED_JSON_EXTERNAL_KEY, wt as Text, St as TextSetterMap, Jt as TextureCropSetterMap, mt as TextureSetterMap, vt as TileSprite, gt as TileSpriteSetterMap, ui as TiledJSONExternalFile, bt as Tilemap, Ai as TilemapFile, $t as TilesetFile, ht as TintSetterMap, $e as TransformSetterMap, nt as TweenSetterMap, et as VisibleSetterMap, ot as Zone, it as ZoneSetterMap, P as getEventName, Je as getInitializeGameObjectLifecycleHook, Ke as getScene, He as getUpdateEvent, F as isEvent, qe as onCreate, Ti as onInit, Ve as onNextTick, Ei as onPreload, Si as onShutdown, Di as onUpdate, M as pushGameObject, Be as pushListener, pi as registerTiledJSONExternalLoader, Mt as resetLifecycleListeners, Nt as runLifecycleListeners, Oi as sleep, Ci as useAnimations, jt as useCameraStore, Ge as useGame, Ye as useInitializeGameObject, Ae as useInitializeGameObjectEvents, Ue as useInitializeGameObjectSetters, Re as useInjectSceneKey, At as useInputStore, We as usePhaserStore, xt as useTextStore, wi as useTween };
@@ -4,7 +4,7 @@ import { DepthConfiguration } from './components/DepthConfiguration';
4
4
  import { FlipConfiguration } from './components/FlipConfiguration';
5
5
  import { MaskConfiguration } from './components/MaskConfiguration';
6
6
  import { OriginConfiguration } from './components/OriginConfiguration';
7
- import { PipelineConfiguration } from './components/PipelineConfiguration';
7
+ import { RenderNodesConfiguration } from './components/RenderNodesConfiguration';
8
8
  import { ScrollFactorConfiguration } from './components/ScrollFactorConfiguration';
9
9
  import { SizeConfiguration } from './components/SizeConfiguration';
10
10
  import { TextureCropConfiguration } from './components/TextureCropConfiguration';
@@ -14,5 +14,5 @@ import { VisibleConfiguration } from './components/VisibleConfiguration';
14
14
  import { GlobalConfiguration } from './global/GlobalConfiguration';
15
15
  import { Types } from 'phaser';
16
16
  import { Except } from 'type-fest';
17
- export interface ImageConfiguration extends AlphaConfiguration, BlendModeConfiguration, DepthConfiguration, Except<Types.GameObjects.Sprite.SpriteConfig, "frame" | keyof Types.GameObjects.GameObjectConfig>, FlipConfiguration, GlobalConfiguration, MaskConfiguration, OriginConfiguration, PipelineConfiguration, ScrollFactorConfiguration, SizeConfiguration, TextureCropConfiguration, TintConfiguration, TransformConfiguration, VisibleConfiguration {
17
+ export interface ImageConfiguration extends AlphaConfiguration, BlendModeConfiguration, DepthConfiguration, Except<Types.GameObjects.Sprite.SpriteConfig, "frame" | keyof Types.GameObjects.GameObjectConfig>, FlipConfiguration, GlobalConfiguration, MaskConfiguration, OriginConfiguration, RenderNodesConfiguration, ScrollFactorConfiguration, SizeConfiguration, TextureCropConfiguration, TintConfiguration, TransformConfiguration, VisibleConfiguration {
18
18
  }
@@ -3,7 +3,7 @@ import { BlendModeConfiguration } from './components/BlendModeConfiguration';
3
3
  import { DepthConfiguration } from './components/DepthConfiguration';
4
4
  import { MaskConfiguration } from './components/MaskConfiguration';
5
5
  import { OriginConfiguration } from './components/OriginConfiguration';
6
- import { PipelineConfiguration } from './components/PipelineConfiguration';
6
+ import { RenderNodesConfiguration } from './components/RenderNodesConfiguration';
7
7
  import { ScrollFactorConfiguration } from './components/ScrollFactorConfiguration';
8
8
  import { TextureConfiguration } from './components/TextureConfiguration';
9
9
  import { TransformConfiguration } from './components/TransformConfiguration';
@@ -11,5 +11,5 @@ import { VisibleConfiguration } from './components/VisibleConfiguration';
11
11
  import { GlobalConfiguration } from './global/GlobalConfiguration';
12
12
  import { Types } from 'phaser';
13
13
  import { Except } from 'type-fest';
14
- export interface NineSliceConfiguration extends AlphaSingleConfiguration, BlendModeConfiguration, DepthConfiguration, Except<Types.GameObjects.NineSlice.NineSliceConfig, "frame" | keyof Types.GameObjects.GameObjectConfig>, GlobalConfiguration, MaskConfiguration, OriginConfiguration, PipelineConfiguration, ScrollFactorConfiguration, TextureConfiguration, TransformConfiguration, VisibleConfiguration {
14
+ export interface NineSliceConfiguration extends AlphaSingleConfiguration, BlendModeConfiguration, DepthConfiguration, Except<Types.GameObjects.NineSlice.NineSliceConfig, "frame" | keyof Types.GameObjects.GameObjectConfig>, GlobalConfiguration, MaskConfiguration, OriginConfiguration, RenderNodesConfiguration, ScrollFactorConfiguration, TextureConfiguration, TransformConfiguration, VisibleConfiguration {
15
15
  }
@@ -5,7 +5,7 @@ import { FlipConfiguration } from './components/FlipConfiguration';
5
5
  import { MaskConfiguration } from './components/MaskConfiguration';
6
6
  import { OriginConfiguration } from './components/OriginConfiguration';
7
7
  import { PathFollowerComponentConfiguration } from './components/PathFollowerComponentConfiguration';
8
- import { PipelineConfiguration } from './components/PipelineConfiguration';
8
+ import { RenderNodesConfiguration } from './components/RenderNodesConfiguration';
9
9
  import { ScrollFactorConfiguration } from './components/ScrollFactorConfiguration';
10
10
  import { SizeConfiguration } from './components/SizeConfiguration';
11
11
  import { TextureConfiguration } from './components/TextureConfiguration';
@@ -15,5 +15,5 @@ import { VisibleConfiguration } from './components/VisibleConfiguration';
15
15
  import { GlobalConfiguration } from './global/GlobalConfiguration';
16
16
  import { Types } from 'phaser';
17
17
  import { Except } from 'type-fest';
18
- export interface PathFollowerConfiguration extends AlphaConfiguration, BlendModeConfiguration, DepthConfiguration, Except<Types.GameObjects.PathFollower.PathConfig, "rotateToPath">, FlipConfiguration, GlobalConfiguration, MaskConfiguration, OriginConfiguration, PathFollowerComponentConfiguration, PipelineConfiguration, ScrollFactorConfiguration, SizeConfiguration, TextureConfiguration, TintConfiguration, TransformConfiguration, VisibleConfiguration {
18
+ export interface PathFollowerConfiguration extends AlphaConfiguration, BlendModeConfiguration, DepthConfiguration, Except<Types.GameObjects.PathFollower.PathConfig, "rotateToPath">, FlipConfiguration, GlobalConfiguration, MaskConfiguration, OriginConfiguration, PathFollowerComponentConfiguration, RenderNodesConfiguration, ScrollFactorConfiguration, SizeConfiguration, TextureConfiguration, TintConfiguration, TransformConfiguration, VisibleConfiguration {
19
19
  }
@@ -4,7 +4,7 @@ import { DepthConfiguration } from './components/DepthConfiguration';
4
4
  import { FlipConfiguration } from './components/FlipConfiguration';
5
5
  import { MaskConfiguration } from './components/MaskConfiguration';
6
6
  import { OriginConfiguration } from './components/OriginConfiguration';
7
- import { PipelineConfiguration } from './components/PipelineConfiguration';
7
+ import { RenderNodesConfiguration } from './components/RenderNodesConfiguration';
8
8
  import { ScrollFactorConfiguration } from './components/ScrollFactorConfiguration';
9
9
  import { SizeConfiguration } from './components/SizeConfiguration';
10
10
  import { TextureConfiguration } from './components/TextureConfiguration';
@@ -15,5 +15,5 @@ import { GlobalConfiguration } from './global/GlobalConfiguration';
15
15
  import { AnimationConfiguration } from './shared/AnimationConfiguration';
16
16
  import { Types } from 'phaser';
17
17
  import { Except } from 'type-fest';
18
- export interface SpriteConfiguration extends AlphaConfiguration, AnimationConfiguration, BlendModeConfiguration, DepthConfiguration, Except<Types.GameObjects.Sprite.SpriteConfig, "anims" | "frame" | keyof Types.GameObjects.GameObjectConfig>, FlipConfiguration, GlobalConfiguration, MaskConfiguration, OriginConfiguration, PipelineConfiguration, ScrollFactorConfiguration, SizeConfiguration, TextureConfiguration, TintConfiguration, TransformConfiguration, VisibleConfiguration {
18
+ export interface SpriteConfiguration extends AlphaConfiguration, AnimationConfiguration, BlendModeConfiguration, DepthConfiguration, Except<Types.GameObjects.Sprite.SpriteConfig, "anims" | "frame" | keyof Types.GameObjects.GameObjectConfig>, FlipConfiguration, GlobalConfiguration, MaskConfiguration, OriginConfiguration, RenderNodesConfiguration, ScrollFactorConfiguration, SizeConfiguration, TextureConfiguration, TintConfiguration, TransformConfiguration, VisibleConfiguration {
19
19
  }
@@ -5,7 +5,7 @@ import { DepthConfiguration } from './components/DepthConfiguration';
5
5
  import { FlipConfiguration } from './components/FlipConfiguration';
6
6
  import { MaskConfiguration } from './components/MaskConfiguration';
7
7
  import { OriginConfiguration } from './components/OriginConfiguration';
8
- import { PipelineConfiguration } from './components/PipelineConfiguration';
8
+ import { RenderNodesConfiguration } from './components/RenderNodesConfiguration';
9
9
  import { ScrollFactorConfiguration } from './components/ScrollFactorConfiguration';
10
10
  import { TintConfiguration } from './components/TintConfiguration';
11
11
  import { TransformConfiguration } from './components/TransformConfiguration';
@@ -13,6 +13,6 @@ import { VisibleConfiguration } from './components/VisibleConfiguration';
13
13
  import { GlobalConfiguration } from './global/GlobalConfiguration';
14
14
  import { Types } from 'phaser';
15
15
  import { Except } from 'type-fest';
16
- export interface TextConfiguration extends AlphaConfiguration, BlendModeConfiguration, ComputedSizeConfiguration, DepthConfiguration, Except<Types.GameObjects.Text.TextConfig, keyof Types.GameObjects.GameObjectConfig>, FlipConfiguration, GlobalConfiguration, MaskConfiguration, OriginConfiguration, PipelineConfiguration, ScrollFactorConfiguration, TintConfiguration, TransformConfiguration, VisibleConfiguration {
16
+ export interface TextConfiguration extends AlphaConfiguration, BlendModeConfiguration, ComputedSizeConfiguration, DepthConfiguration, Except<Types.GameObjects.Text.TextConfig, keyof Types.GameObjects.GameObjectConfig>, FlipConfiguration, GlobalConfiguration, MaskConfiguration, OriginConfiguration, RenderNodesConfiguration, ScrollFactorConfiguration, TintConfiguration, TransformConfiguration, VisibleConfiguration {
17
17
  text: string;
18
18
  }
@@ -5,7 +5,7 @@ import { DepthConfiguration } from './components/DepthConfiguration';
5
5
  import { FlipConfiguration } from './components/FlipConfiguration';
6
6
  import { MaskConfiguration } from './components/MaskConfiguration';
7
7
  import { OriginConfiguration } from './components/OriginConfiguration';
8
- import { PipelineConfiguration } from './components/PipelineConfiguration';
8
+ import { RenderNodesConfiguration } from './components/RenderNodesConfiguration';
9
9
  import { ScrollFactorConfiguration } from './components/ScrollFactorConfiguration';
10
10
  import { TextureConfiguration } from './components/TextureConfiguration';
11
11
  import { TintConfiguration } from './components/TintConfiguration';
@@ -14,5 +14,5 @@ import { VisibleConfiguration } from './components/VisibleConfiguration';
14
14
  import { GlobalConfiguration } from './global/GlobalConfiguration';
15
15
  import { Types } from 'phaser';
16
16
  import { Except } from 'type-fest';
17
- export interface TileSpriteConfiguration extends AlphaConfiguration, BlendModeConfiguration, ComputedSizeConfiguration, DepthConfiguration, Except<Types.GameObjects.TileSprite.TileSpriteConfig, "frame" | "height" | "width" | keyof Types.GameObjects.GameObjectConfig>, FlipConfiguration, GlobalConfiguration, MaskConfiguration, OriginConfiguration, PipelineConfiguration, ScrollFactorConfiguration, TextureConfiguration, TintConfiguration, TransformConfiguration, VisibleConfiguration {
17
+ export interface TileSpriteConfiguration extends AlphaConfiguration, BlendModeConfiguration, ComputedSizeConfiguration, DepthConfiguration, Except<Types.GameObjects.TileSprite.TileSpriteConfig, "frame" | "height" | "width" | keyof Types.GameObjects.GameObjectConfig>, FlipConfiguration, GlobalConfiguration, MaskConfiguration, OriginConfiguration, RenderNodesConfiguration, ScrollFactorConfiguration, TextureConfiguration, TintConfiguration, TransformConfiguration, VisibleConfiguration {
18
18
  }
@@ -0,0 +1,4 @@
1
+ import { ExcludeFunctionProperties } from '@esposter/shared';
2
+ import { GameObjects } from 'phaser';
3
+ export interface RenderNodesConfiguration extends ExcludeFunctionProperties<GameObjects.Components.RenderNodes> {
4
+ }
@@ -3,13 +3,13 @@ import { BlendModeConfiguration } from '../components/BlendModeConfiguration';
3
3
  import { DepthConfiguration } from '../components/DepthConfiguration';
4
4
  import { MaskConfiguration } from '../components/MaskConfiguration';
5
5
  import { OriginConfiguration } from '../components/OriginConfiguration';
6
- import { PipelineConfiguration } from '../components/PipelineConfiguration';
6
+ import { RenderNodesConfiguration } from '../components/RenderNodesConfiguration';
7
7
  import { ScrollFactorConfiguration } from '../components/ScrollFactorConfiguration';
8
8
  import { TransformConfiguration } from '../components/TransformConfiguration';
9
9
  import { VisibleConfiguration } from '../components/VisibleConfiguration';
10
10
  import { GlobalConfiguration } from '../global/GlobalConfiguration';
11
11
  import { GameObjects } from 'phaser';
12
- export type ShapeConfiguration = AlphaSingleConfiguration & BlendModeConfiguration & DepthConfiguration & GlobalConfiguration & MaskConfiguration & OriginConfiguration & PipelineConfiguration & ScrollFactorConfiguration & TransformConfiguration & VisibleConfiguration & {
12
+ export type ShapeConfiguration = AlphaSingleConfiguration & BlendModeConfiguration & DepthConfiguration & GlobalConfiguration & MaskConfiguration & OriginConfiguration & RenderNodesConfiguration & ScrollFactorConfiguration & TransformConfiguration & VisibleConfiguration & {
13
13
  active: GameObjects.Shape["active"];
14
14
  displayHeight: GameObjects.Shape["displayHeight"];
15
15
  displayWidth: GameObjects.Shape["displayWidth"];
@@ -0,0 +1,6 @@
1
+ import { RenderNodesConfiguration } from '../../configuration/components/RenderNodesConfiguration';
2
+ import { ExtractUpdateEvent } from '../../../util/types/ExtractUpdateEvent';
3
+ import { UpdateEvent } from '../../../util/types/UpdateEvent';
4
+ export type RenderNodesEventEmitsOptions = {
5
+ [P in UpdateEvent<keyof RenderNodesConfiguration>]: [RenderNodesConfiguration[ExtractUpdateEvent<P>]?];
6
+ };
@@ -1,4 +1,4 @@
1
1
  import { GameObjects } from 'phaser';
2
2
  export declare const MaskSetterMap: {
3
- readonly mask: (gameObject: GameObjects.Components.Mask) => (value: Phaser.Display.Masks.BitmapMask | Phaser.Display.Masks.GeometryMask | undefined) => void;
3
+ readonly mask: (gameObject: GameObjects.Components.Mask) => (value: Phaser.Display.Masks.GeometryMask | undefined) => void;
4
4
  };
@@ -0,0 +1 @@
1
+ export declare const RenderNodesSetterMap: {};
@@ -84,6 +84,6 @@ export declare const AnimationSetterMap: {
84
84
  onResumeParams?: any[] | undefined;
85
85
  persist?: boolean | undefined;
86
86
  interpolation?: (string | Function) | undefined;
87
- }[] | undefined) => void) & ((event: "update:flipX", args_0?: boolean | undefined) => void) & ((event: "update:flipY", args_0?: boolean | undefined) => void) & ((event: "update:alpha", args_0?: number | undefined) => void) & ((event: "update:blendMode", args_0?: string | number | Phaser.BlendModes | undefined) => void) & ((event: "update:key", args_0?: string | Phaser.Textures.Texture | undefined) => void) & ((event: "update:alphaTopLeft", args_0?: number | undefined) => void) & ((event: "update:alphaTopRight", args_0?: number | undefined) => void) & ((event: "update:alphaBottomLeft", args_0?: number | undefined) => void) & ((event: "update:alphaBottomRight", args_0?: number | undefined) => void) & ((event: "update:mask", args_0?: Phaser.Display.Masks.BitmapMask | Phaser.Display.Masks.GeometryMask | undefined) => void) & ((event: "update:defaultPipeline", args_0?: Phaser.Renderer.WebGL.WebGLPipeline | undefined) => void) & ((event: "update:pipeline", args_0?: Phaser.Renderer.WebGL.WebGLPipeline | undefined) => void) & ((event: "update:pipelineData", args_0?: object | undefined) => void) & ((event: "update:frame", args_0?: string | number | undefined) => void) & ((event: "update:texture", args_0?: string | undefined) => void) & ((event: "update:tintTopLeft", args_0?: number | undefined) => void) & ((event: "update:tintTopRight", args_0?: number | undefined) => void) & ((event: "update:tintBottomLeft", args_0?: number | undefined) => void) & ((event: "update:tintBottomRight", args_0?: number | undefined) => void) & ((event: "update:tintFill", args_0?: boolean | undefined) => void) & ((event: "update:tint", args_0?: number | undefined) => void) & ((event: "update:isTinted", args_0?: boolean | undefined) => void) & ((event: "update:useSpriteSheet", args_0?: boolean | undefined) => void) & ((event: "update:animations", args_0?: Phaser.Types.Animations.Animation[] | undefined) => void) & ((event: "update:playAnimationKey", args_0?: string | undefined) => void)) => (configurations: Phaser.Types.Animations.Animation[] | undefined) => void;
87
+ }[] | undefined) => void) & ((event: "update:flipX", args_0?: boolean | undefined) => void) & ((event: "update:flipY", args_0?: boolean | undefined) => void) & ((event: "update:alpha", args_0?: number | undefined) => void) & ((event: "update:blendMode", args_0?: string | number | Phaser.BlendModes | undefined) => void) & ((event: "update:key", args_0?: string | Phaser.Textures.Texture | undefined) => void) & ((event: "update:alphaTopLeft", args_0?: number | undefined) => void) & ((event: "update:alphaTopRight", args_0?: number | undefined) => void) & ((event: "update:alphaBottomLeft", args_0?: number | undefined) => void) & ((event: "update:alphaBottomRight", args_0?: number | undefined) => void) & ((event: "update:mask", args_0?: Phaser.Display.Masks.GeometryMask | undefined) => void) & ((event: "update:customRenderNodes", args_0?: object | undefined) => void) & ((event: "update:defaultRenderNodes", args_0?: object | undefined) => void) & ((event: "update:renderNodeData", args_0?: object | undefined) => void) & ((event: "update:frame", args_0?: string | number | undefined) => void) & ((event: "update:texture", args_0?: string | undefined) => void) & ((event: "update:tintTopLeft", args_0?: number | undefined) => void) & ((event: "update:tintTopRight", args_0?: number | undefined) => void) & ((event: "update:tintBottomLeft", args_0?: number | undefined) => void) & ((event: "update:tintBottomRight", args_0?: number | undefined) => void) & ((event: "update:tintFill", args_0?: boolean | undefined) => void) & ((event: "update:tint", args_0?: number | undefined) => void) & ((event: "update:isTinted", args_0?: boolean | undefined) => void) & ((event: "update:useSpriteSheet", args_0?: boolean | undefined) => void) & ((event: "update:animations", args_0?: Phaser.Types.Animations.Animation[] | undefined) => void) & ((event: "update:playAnimationKey", args_0?: string | undefined) => void)) => (configurations: Phaser.Types.Animations.Animation[] | undefined) => void;
88
88
  readonly playAnimationKey: (gameObject: GameObjects.Sprite) => (value: string | undefined) => void;
89
89
  };
@@ -19,13 +19,12 @@ export declare const ShapeSetterMap: {
19
19
  readonly scrollFactor: (gameObject: GameObjects.Components.ScrollFactor) => (value: number | undefined) => void;
20
20
  readonly scrollFactorX: (gameObject: GameObjects.Components.ScrollFactor) => (value: number | undefined) => void;
21
21
  readonly scrollFactorY: (gameObject: GameObjects.Components.ScrollFactor) => (value: number | undefined) => void;
22
- readonly pipeline: (gameObject: GameObjects.Components.Pipeline) => (value: Phaser.Renderer.WebGL.WebGLPipeline | undefined) => void;
23
22
  readonly displayOriginX: (gameObject: GameObjects.Components.Origin) => (value: number | undefined) => GameObjects.Components.Origin;
24
23
  readonly displayOriginY: (gameObject: GameObjects.Components.Origin) => (value: number | undefined) => GameObjects.Components.Origin;
25
24
  readonly origin: (gameObject: GameObjects.Components.Origin) => (value: number | undefined) => GameObjects.Components.Origin;
26
25
  readonly originX: (gameObject: GameObjects.Components.Origin) => (value: number | undefined) => GameObjects.Components.Origin;
27
26
  readonly originY: (gameObject: GameObjects.Components.Origin) => (value: number | undefined) => GameObjects.Components.Origin;
28
- readonly mask: (gameObject: GameObjects.Components.Mask) => (value: Phaser.Display.Masks.BitmapMask | Phaser.Display.Masks.GeometryMask | undefined) => void;
27
+ readonly mask: (gameObject: GameObjects.Components.Mask) => (value: Phaser.Display.Masks.GeometryMask | undefined) => void;
29
28
  readonly depth: (gameObject: GameObjects.Components.Depth & GameObjects.GameObject) => (value: number | undefined) => void;
30
29
  readonly blendMode: (gameObject: GameObjects.Components.BlendMode) => (value: string | number | Phaser.BlendModes | undefined) => void;
31
30
  readonly alpha: (gameObject: GameObjects.Components.AlphaSingle) => (value: number | undefined) => GameObjects.Components.AlphaSingle;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue-phaserjs",
3
- "version": "2.11.0",
3
+ "version": "2.12.0",
4
4
  "description": "A component library to integrate Phaser Framework with Vue.",
5
5
  "type": "module",
6
6
  "homepage": "https://github.com/Esposter/Esposter/blob/main/packages/vue-phaserjs#readme",
@@ -33,13 +33,13 @@
33
33
  "export:gen": "ctix build --config ../configuration/.ctirc-vue && ctix build --config ../configuration/.ctirc-ts"
34
34
  },
35
35
  "dependencies": {
36
- "parse-tmx": "2.11.0"
36
+ "parse-tmx": "2.12.0"
37
37
  },
38
38
  "peerDependencies": {
39
- "phaser": "^3.90.0",
40
- "phaser3-rex-plugins": "^1.80.16",
41
- "pinia": "^3.0.3",
42
- "vue": "^3.5.18"
39
+ "phaser": "catalog:",
40
+ "phaser3-rex-plugins": "catalog:",
41
+ "pinia": "catalog:",
42
+ "vue": "catalog:"
43
43
  },
44
- "gitHead": "e3d27b0dd40f23eebc5236a975406d0ada8e66c4"
44
+ "gitHead": "ccf9bc935af49a874d558380d086f7ecdb090e36"
45
45
  }
@@ -1,4 +0,0 @@
1
- import { ExcludeFunctionProperties } from '@esposter/shared';
2
- import { GameObjects } from 'phaser';
3
- export interface FXConfiguration extends ExcludeFunctionProperties<GameObjects.Components.FX> {
4
- }
@@ -1,4 +0,0 @@
1
- import { ExcludeFunctionProperties } from '@esposter/shared';
2
- import { GameObjects } from 'phaser';
3
- export interface PipelineConfiguration extends ExcludeFunctionProperties<GameObjects.Components.Pipeline> {
4
- }
@@ -1,6 +0,0 @@
1
- import { FXConfiguration } from '../../configuration/components/FXConfiguration';
2
- import { ExtractUpdateEvent } from '../../../util/types/ExtractUpdateEvent';
3
- import { UpdateEvent } from '../../../util/types/UpdateEvent';
4
- export type FXEventEmitsOptions = {
5
- [P in UpdateEvent<keyof FXConfiguration>]: [FXConfiguration[ExtractUpdateEvent<P>]?];
6
- };
@@ -1,6 +0,0 @@
1
- import { PipelineConfiguration } from '../../configuration/components/PipelineConfiguration';
2
- import { ExtractUpdateEvent } from '../../../util/types/ExtractUpdateEvent';
3
- import { UpdateEvent } from '../../../util/types/UpdateEvent';
4
- export type PipelineEventEmitsOptions = {
5
- [P in UpdateEvent<keyof PipelineConfiguration>]: [PipelineConfiguration[ExtractUpdateEvent<P>]?];
6
- };
@@ -1,4 +0,0 @@
1
- import { GameObjects } from 'phaser';
2
- export declare const FXSetterMap: {
3
- readonly padding: (gameObject: GameObjects.Components.FX) => (value: number | undefined) => GameObjects.Components.FX;
4
- };
@@ -1,4 +0,0 @@
1
- import { GameObjects } from 'phaser';
2
- export declare const PipelineSetterMap: {
3
- readonly pipeline: (gameObject: GameObjects.Components.Pipeline) => (value: Phaser.Renderer.WebGL.WebGLPipeline | undefined) => void;
4
- };