@roost2d/core 0.1.0-rc.0 → 0.1.0-rc.2
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/LICENSE +201 -201
- package/dist/index.d.ts +32 -6
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +70 -20
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
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 [yyyy] [name of copyright owner]
|
|
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 [yyyy] [name of copyright owner]
|
|
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/dist/index.d.ts
CHANGED
|
@@ -67,20 +67,32 @@ export declare class SeededRandom implements RandomSource {
|
|
|
67
67
|
integer(minInclusive: number, maxExclusive: number): number;
|
|
68
68
|
pick<T>(items: readonly T[]): T;
|
|
69
69
|
}
|
|
70
|
+
export interface ObjectPoolOptions<T> {
|
|
71
|
+
reset?: (value: T) => void;
|
|
72
|
+
destroy?: (value: T) => void;
|
|
73
|
+
maximumRetained?: number;
|
|
74
|
+
prewarm?: number;
|
|
75
|
+
}
|
|
70
76
|
export declare class ObjectPool<T> {
|
|
71
77
|
private readonly create;
|
|
78
|
+
private readonly available;
|
|
79
|
+
private readonly active;
|
|
72
80
|
private readonly reset;
|
|
73
81
|
private readonly destroy;
|
|
74
82
|
private readonly maximumRetained;
|
|
75
|
-
|
|
76
|
-
private readonly active;
|
|
77
|
-
constructor(create: () => T, reset?: (value: T) => void, destroy?: (value: T) => void, maximumRetained?: number);
|
|
83
|
+
constructor(create: () => T, resetOrOptions?: ((value: T) => void) | ObjectPoolOptions<T>, destroy?: (value: T) => void, maximumRetained?: number);
|
|
78
84
|
acquire(): T;
|
|
79
85
|
release(value: T): boolean;
|
|
80
86
|
releaseAll(): void;
|
|
87
|
+
prewarm(count: number): void;
|
|
88
|
+
/** Stable snapshot so callers may safely release entries while iterating. */
|
|
89
|
+
activeValues(): readonly T[];
|
|
90
|
+
retainedValues(): readonly T[];
|
|
91
|
+
trim(maximumRetained?: number): number;
|
|
81
92
|
dispose(): void;
|
|
82
93
|
get activeCount(): number;
|
|
83
94
|
get retainedCount(): number;
|
|
95
|
+
get totalCount(): number;
|
|
84
96
|
}
|
|
85
97
|
/** Fixed-update scheduler. It advances only when the owning runtime advances. */
|
|
86
98
|
export declare class Scheduler {
|
|
@@ -99,7 +111,19 @@ export interface SceneContext {
|
|
|
99
111
|
readonly scheduler: Scheduler;
|
|
100
112
|
readonly random: RandomSource;
|
|
101
113
|
readonly runtime: GameRuntime;
|
|
114
|
+
/** Present only while a scene lifecycle callback is running. */
|
|
115
|
+
readonly transition?: SceneTransitionContext;
|
|
116
|
+
}
|
|
117
|
+
export interface SceneTransitionContext<TData = unknown> {
|
|
118
|
+
readonly fromId?: string;
|
|
119
|
+
readonly toId: string;
|
|
120
|
+
readonly data?: TData;
|
|
121
|
+
}
|
|
122
|
+
export type SceneLifetime = 'cached' | 'transient';
|
|
123
|
+
export interface SceneRegistrationOptions {
|
|
124
|
+
lifetime?: SceneLifetime;
|
|
102
125
|
}
|
|
126
|
+
export type SceneFactory = (transition: SceneTransitionContext, context: SceneContext) => Scene | Promise<Scene>;
|
|
103
127
|
export interface Scene {
|
|
104
128
|
readonly id: string;
|
|
105
129
|
load?(context: SceneContext): void | Promise<void>;
|
|
@@ -128,7 +152,8 @@ export interface RuntimeEvents extends Record<string, unknown> {
|
|
|
128
152
|
'runtime:paused': {
|
|
129
153
|
paused: boolean;
|
|
130
154
|
};
|
|
131
|
-
'scene:
|
|
155
|
+
'scene:changing': SceneTransitionContext;
|
|
156
|
+
'scene:changed': SceneTransitionContext & {
|
|
132
157
|
previousId?: string;
|
|
133
158
|
currentId: string;
|
|
134
159
|
};
|
|
@@ -160,10 +185,10 @@ export declare class GameRuntime implements Disposable {
|
|
|
160
185
|
private disposing;
|
|
161
186
|
paused: boolean;
|
|
162
187
|
constructor(options?: GameRuntimeOptions);
|
|
163
|
-
registerScene(id: string, factory:
|
|
188
|
+
registerScene(id: string, factory: SceneFactory, options?: SceneRegistrationOptions): this;
|
|
164
189
|
addSystem(system: System): this;
|
|
165
190
|
addPlugin(plugin: Plugin): Promise<this>;
|
|
166
|
-
switchScene(id: string): Promise<Scene>;
|
|
191
|
+
switchScene<TData = unknown>(id: string, data?: TData): Promise<Scene>;
|
|
167
192
|
setPaused(paused: boolean): void;
|
|
168
193
|
pause(): void;
|
|
169
194
|
resume(): void;
|
|
@@ -171,6 +196,7 @@ export declare class GameRuntime implements Disposable {
|
|
|
171
196
|
start(driver?: FrameDriver): void;
|
|
172
197
|
stop(): void;
|
|
173
198
|
private render;
|
|
199
|
+
private contextFor;
|
|
174
200
|
dispose(): Promise<void>;
|
|
175
201
|
}
|
|
176
202
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,WAAW,GAAG,MAAM,IAAI,CAAC;AAErC,MAAM,WAAW,IAAI;IAAG,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,CAAC;CAAE;AAC/C,MAAM,WAAW,IAAI;IAAG,CAAC,EAAE,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AiC,GAAG,IAAI;IAkBtD,IAAI,IAAI,IAAI;IAMZ,OAAO,CAAC,MAAM;IAKd,OAAO,CAAC,UAAU;IAIZ,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;CAc/B"}
|
package/dist/index.js
CHANGED
|
@@ -126,16 +126,22 @@ export class SeededRandom {
|
|
|
126
126
|
}
|
|
127
127
|
export class ObjectPool {
|
|
128
128
|
create;
|
|
129
|
+
available = [];
|
|
130
|
+
active = new Set();
|
|
129
131
|
reset;
|
|
130
132
|
destroy;
|
|
131
133
|
maximumRetained;
|
|
132
|
-
|
|
133
|
-
active = new Set();
|
|
134
|
-
constructor(create, reset = () => undefined, destroy = () => undefined, maximumRetained = 256) {
|
|
134
|
+
constructor(create, resetOrOptions = () => undefined, destroy = () => undefined, maximumRetained = 256) {
|
|
135
135
|
this.create = create;
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
136
|
+
const options = typeof resetOrOptions === 'function'
|
|
137
|
+
? { reset: resetOrOptions, destroy, maximumRetained }
|
|
138
|
+
: resetOrOptions;
|
|
139
|
+
this.reset = options.reset ?? (() => undefined);
|
|
140
|
+
this.destroy = options.destroy ?? (() => undefined);
|
|
141
|
+
this.maximumRetained = options.maximumRetained ?? 256;
|
|
142
|
+
if (!Number.isInteger(this.maximumRetained) || this.maximumRetained < 0)
|
|
143
|
+
throw new Error('ObjectPool maximumRetained must be a non-negative integer');
|
|
144
|
+
this.prewarm(options.prewarm ?? 0);
|
|
139
145
|
}
|
|
140
146
|
acquire() {
|
|
141
147
|
const value = this.available.pop() ?? this.create();
|
|
@@ -154,6 +160,25 @@ export class ObjectPool {
|
|
|
154
160
|
}
|
|
155
161
|
releaseAll() { for (const value of [...this.active])
|
|
156
162
|
this.release(value); }
|
|
163
|
+
prewarm(count) {
|
|
164
|
+
if (!Number.isInteger(count) || count < 0)
|
|
165
|
+
throw new Error('ObjectPool prewarm count must be a non-negative integer');
|
|
166
|
+
while (this.available.length < Math.min(count, this.maximumRetained))
|
|
167
|
+
this.available.push(this.create());
|
|
168
|
+
}
|
|
169
|
+
/** Stable snapshot so callers may safely release entries while iterating. */
|
|
170
|
+
activeValues() { return [...this.active]; }
|
|
171
|
+
retainedValues() { return [...this.available]; }
|
|
172
|
+
trim(maximumRetained = 0) {
|
|
173
|
+
if (!Number.isInteger(maximumRetained) || maximumRetained < 0)
|
|
174
|
+
throw new Error('ObjectPool trim limit must be a non-negative integer');
|
|
175
|
+
let removed = 0;
|
|
176
|
+
while (this.available.length > maximumRetained) {
|
|
177
|
+
this.destroy(this.available.pop());
|
|
178
|
+
removed += 1;
|
|
179
|
+
}
|
|
180
|
+
return removed;
|
|
181
|
+
}
|
|
157
182
|
dispose() {
|
|
158
183
|
for (const value of [...this.active, ...this.available])
|
|
159
184
|
this.destroy(value);
|
|
@@ -162,6 +187,7 @@ export class ObjectPool {
|
|
|
162
187
|
}
|
|
163
188
|
get activeCount() { return this.active.size; }
|
|
164
189
|
get retainedCount() { return this.available.length; }
|
|
190
|
+
get totalCount() { return this.active.size + this.available.length; }
|
|
165
191
|
}
|
|
166
192
|
/** Fixed-update scheduler. It advances only when the owning runtime advances. */
|
|
167
193
|
export class Scheduler {
|
|
@@ -223,10 +249,13 @@ export class GameRuntime {
|
|
|
223
249
|
this.random = new SeededRandom(options.seed);
|
|
224
250
|
this.context = { services: this.services, events: this.events, scheduler: this.scheduler, random: this.random, runtime: this };
|
|
225
251
|
}
|
|
226
|
-
registerScene(id, factory) {
|
|
252
|
+
registerScene(id, factory, options = {}) {
|
|
227
253
|
if (!id || this.sceneFactories.has(id))
|
|
228
254
|
throw new Error(`Duplicate or empty scene id: ${id}`);
|
|
229
|
-
|
|
255
|
+
const lifetime = options.lifetime ?? 'cached';
|
|
256
|
+
if (lifetime !== 'cached' && lifetime !== 'transient')
|
|
257
|
+
throw new Error(`Unknown scene lifetime: ${String(lifetime)}`);
|
|
258
|
+
this.sceneFactories.set(id, { factory, lifetime });
|
|
230
259
|
return this;
|
|
231
260
|
}
|
|
232
261
|
addSystem(system) {
|
|
@@ -242,27 +271,44 @@ export class GameRuntime {
|
|
|
242
271
|
this.plugins.set(plugin.id, plugin);
|
|
243
272
|
return this;
|
|
244
273
|
}
|
|
245
|
-
switchScene(id) {
|
|
274
|
+
switchScene(id, data) {
|
|
246
275
|
const operation = this.switching.then(async () => {
|
|
247
276
|
if (this.disposing)
|
|
248
277
|
throw new Error('GameRuntime is disposed');
|
|
249
|
-
const
|
|
250
|
-
if (!
|
|
278
|
+
const registration = this.sceneFactories.get(id);
|
|
279
|
+
if (!registration)
|
|
251
280
|
throw new Error(`Unknown scene: ${id}`);
|
|
252
281
|
const previous = this.current;
|
|
253
282
|
if (previous?.id === id)
|
|
254
283
|
return previous;
|
|
255
|
-
const
|
|
284
|
+
const transition = { fromId: previous?.id, toId: id, ...(data === undefined ? {} : { data }) };
|
|
285
|
+
const context = this.contextFor(transition);
|
|
286
|
+
const cached = registration.lifetime === 'cached' ? this.loadedScenes.get(id) : undefined;
|
|
287
|
+
const next = cached ?? await registration.factory(transition, context);
|
|
256
288
|
if (next.id !== id)
|
|
257
289
|
throw new Error(`Scene factory for ${id} returned ${next.id}`);
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
290
|
+
// Preparation completes before the active scene is disturbed. A failed factory/load leaves it active.
|
|
291
|
+
if (!cached) {
|
|
292
|
+
await next.load?.(context);
|
|
293
|
+
if (registration.lifetime === 'cached')
|
|
294
|
+
this.loadedScenes.set(id, next);
|
|
295
|
+
}
|
|
296
|
+
this.events.emit('scene:changing', transition);
|
|
297
|
+
await previous?.exit?.(context);
|
|
298
|
+
try {
|
|
299
|
+
this.current = next;
|
|
300
|
+
await next.enter?.(context);
|
|
261
301
|
}
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
302
|
+
catch (error) {
|
|
303
|
+
this.current = previous;
|
|
304
|
+
await previous?.enter?.(this.contextFor({ fromId: id, toId: previous?.id ?? '' }));
|
|
305
|
+
if (registration.lifetime === 'transient')
|
|
306
|
+
await next.dispose?.();
|
|
307
|
+
throw error;
|
|
308
|
+
}
|
|
309
|
+
if (previous && this.sceneFactories.get(previous.id)?.lifetime === 'transient')
|
|
310
|
+
await previous.dispose?.();
|
|
311
|
+
this.events.emit('scene:changed', { ...transition, previousId: previous?.id, currentId: id });
|
|
266
312
|
return next;
|
|
267
313
|
});
|
|
268
314
|
this.switching = operation.then(() => undefined, () => undefined);
|
|
@@ -326,6 +372,9 @@ export class GameRuntime {
|
|
|
326
372
|
system.render?.(deltaMs, this.clock.alpha, this.context);
|
|
327
373
|
this.current?.render?.(deltaMs, this.clock.alpha, this.context);
|
|
328
374
|
}
|
|
375
|
+
contextFor(transition) {
|
|
376
|
+
return { ...this.context, transition };
|
|
377
|
+
}
|
|
329
378
|
async dispose() {
|
|
330
379
|
if (this.disposing)
|
|
331
380
|
return;
|
|
@@ -334,7 +383,8 @@ export class GameRuntime {
|
|
|
334
383
|
// Settle any in-flight switchScene first, or it repopulates loadedScenes after teardown.
|
|
335
384
|
await this.switching;
|
|
336
385
|
await this.current?.exit?.(this.context);
|
|
337
|
-
|
|
386
|
+
const scenes = new Set([...this.loadedScenes.values(), ...(this.current ? [this.current] : [])]);
|
|
387
|
+
for (const scene of [...scenes].reverse())
|
|
338
388
|
await scene.dispose?.();
|
|
339
389
|
for (const system of [...this.systems.values()].reverse())
|
|
340
390
|
await system.dispose?.();
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAMA,MAAM,OAAO,QAAQ;IACF,SAAS,GAAG,IAAI,GAAG,EAA4D,CAAC;IAEjG,EAAE,CAA2B,IAAS,EAAE,QAAsC;QAC5E,MAAM,SAAS,GAAG,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,IAAI,GAAG,EAAE,CAAC;QACxD,SAAS,CAAC,GAAG,CAAC,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CAAC,MAAM,EAAE,EAAE,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;QACxG,KAAK,MAAM,KAAK,IAAI,CAAC,GAAG,MAAM,CAAC,CAAC,OAAO,EAAE;YAAE,MAAM,KAAK,CAAC,OAAO,EAAE,EAAE,CAAC;QACnE,KAAK,MAAM,MAAM,IAAI,CAAC,GAAG,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC,OAAO,EAAE;YAAE,MAAM,MAAM,CAAC,OAAO,EAAE,EAAE,CAAC;QACpF,KAAK,MAAM,MAAM,IAAI,CAAC,GAAG,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC,OAAO,EAAE;YAAE,MAAM,MAAM,CAAC,OAAO,EAAE,EAAE,CAAC;QACpF,IAAI,CAAC,YAAY,CAAC,KAAK,EAAE,CAAC;QAAC,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC;QAAC,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC;QAAC,IAAI,CAAC,cAAc,CAAC,KAAK,EAAE,CAAC;QACnG,IAAI,CAAC,SAAS,CAAC,KAAK,EAAE,CAAC;QAAC,IAAI,CAAC,QAAQ,CAAC,KAAK,EAAE,CAAC;QAAC,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC;QAAC,IAAI,CAAC,OAAO,GAAG,SAAS,CAAC;IAC/F,CAAC;CACF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@roost2d/core",
|
|
3
|
-
"version": "0.1.0-rc.
|
|
3
|
+
"version": "0.1.0-rc.2",
|
|
4
4
|
"description": "Runtime-neutral lifecycle, events, and frame scheduling primitives for Roost2D.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": { "type": "git", "url": "git+https://github.com/Roost2D/roost2d.git", "directory": "packages/core" },
|