@safe-engine/cocos 2.2.8 → 2.3.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/@types/index.d.ts +0 -59
- package/dist/app.d.ts +1 -1
- package/dist/app.d.ts.map +1 -1
- package/dist/app.js +25 -23
- package/dist/box2d-wasm/PhysicsComponent.d.ts.map +1 -1
- package/dist/box2d-wasm/PhysicsComponent.js +3 -0
- package/dist/box2d-wasm/PhysicsSprite.d.ts.map +1 -1
- package/dist/box2d-wasm/PhysicsSprite.js +2 -1
- package/dist/box2d-wasm/PhysicsSystem.d.ts +1 -0
- package/dist/box2d-wasm/PhysicsSystem.d.ts.map +1 -1
- package/dist/box2d-wasm/PhysicsSystem.js +20 -16
- package/dist/box2d-wasm/debugDraw.d.ts +0 -15
- package/dist/box2d-wasm/debugDraw.d.ts.map +1 -1
- package/dist/box2d-wasm/debugDraw.js +8 -20
- package/dist/box2d-wasm/index.d.ts +19 -1
- package/dist/box2d-wasm/index.d.ts.map +1 -1
- package/dist/box2d-wasm/index.js +2 -2
- package/dist/collider/CollideComponent.d.ts +21 -3
- package/dist/collider/CollideComponent.d.ts.map +1 -1
- package/dist/core/NodeComp.d.ts +1 -1
- package/dist/core/NodeComp.d.ts.map +1 -1
- package/dist/dragonbones/DragonBonesComp.d.ts +4 -6
- package/dist/dragonbones/DragonBonesComp.d.ts.map +1 -1
- package/dist/dragonbones/DragonBonesComp.js +15 -13
- package/dist/dragonbones/DragonBonesSystem.d.ts +1 -1
- package/dist/dragonbones/DragonBonesSystem.d.ts.map +1 -1
- package/dist/dragonbones/DragonBonesSystem.js +42 -35
- package/dist/dragonbones/db-cocos/CocosArmatureDisplay.d.ts +87 -0
- package/dist/dragonbones/db-cocos/CocosArmatureDisplay.d.ts.map +1 -0
- package/dist/dragonbones/db-cocos/CocosArmatureDisplay.js +240 -0
- package/dist/dragonbones/db-cocos/CocosFactory.d.ts +127 -0
- package/dist/dragonbones/db-cocos/CocosFactory.d.ts.map +1 -0
- package/dist/dragonbones/db-cocos/CocosFactory.js +186 -0
- package/dist/dragonbones/db-cocos/CocosSlot.d.ts +52 -0
- package/dist/dragonbones/db-cocos/CocosSlot.d.ts.map +1 -0
- package/dist/dragonbones/db-cocos/CocosSlot.js +365 -0
- package/dist/dragonbones/db-cocos/CocosTextureAtlasData.d.ts +53 -0
- package/dist/dragonbones/db-cocos/CocosTextureAtlasData.d.ts.map +1 -0
- package/dist/dragonbones/db-cocos/CocosTextureAtlasData.js +121 -0
- package/dist/dragonbones/db-cocos/SimpleMeshNode.d.ts +36 -0
- package/dist/dragonbones/db-cocos/SimpleMeshNode.d.ts.map +1 -0
- package/dist/dragonbones/db-cocos/SimpleMeshNode.js +354 -0
- package/dist/dragonbones/index.d.ts +0 -1
- package/dist/dragonbones/index.d.ts.map +1 -1
- package/dist/dragonbones/index.js +0 -1
- package/dist/polyfills.d.ts +1 -1
- package/dist/polyfills.d.ts.map +1 -1
- package/dist/polyfills.js +1 -2
- package/dist/render/RenderComponent.d.ts.map +1 -1
- package/dist/render/RenderComponent.js +1 -0
- package/dist/render/RenderSystem.d.ts.map +1 -1
- package/dist/render/RenderSystem.js +34 -2
- package/dist/richtext/RichTextComp.js +1 -1
- package/dist/spine/SpineSkeleton.d.ts +5 -3
- package/dist/spine/SpineSkeleton.d.ts.map +1 -1
- package/dist/spine/SpineSkeleton.js +12 -5
- package/dist/spine/SpineSystem.d.ts +1 -2
- package/dist/spine/SpineSystem.d.ts.map +1 -1
- package/dist/spine/SpineSystem.js +22 -24
- package/dist/spine/index.d.ts +0 -1
- package/dist/spine/index.d.ts.map +1 -1
- package/dist/spine/index.js +14 -2
- package/dist/spine/spine-cocos/CCSkeleton.d.ts +86 -0
- package/dist/spine/spine-cocos/CCSkeleton.d.ts.map +1 -0
- package/dist/spine/spine-cocos/CCSkeleton.js +231 -0
- package/dist/spine/spine-cocos/CCSkeletonAnimation.d.ts +88 -0
- package/dist/spine/spine-cocos/CCSkeletonAnimation.d.ts.map +1 -0
- package/dist/spine/spine-cocos/CCSkeletonAnimation.js +251 -0
- package/dist/spine/spine-cocos/CCSkeletonCanvasRenderCmd.d.ts +28 -0
- package/dist/spine/spine-cocos/CCSkeletonCanvasRenderCmd.d.ts.map +1 -0
- package/dist/spine/spine-cocos/CCSkeletonCanvasRenderCmd.js +224 -0
- package/dist/spine/spine-cocos/CCSkeletonTexture.d.ts +36 -0
- package/dist/spine/spine-cocos/CCSkeletonTexture.d.ts.map +1 -0
- package/dist/spine/spine-cocos/CCSkeletonTexture.js +59 -0
- package/dist/spine/spine-cocos/CCSkeletonWebGLRenderCmd.d.ts +28 -0
- package/dist/spine/spine-cocos/CCSkeletonWebGLRenderCmd.d.ts.map +1 -0
- package/dist/spine/spine-cocos/CCSkeletonWebGLRenderCmd.js +277 -0
- package/package.json +6 -7
|
@@ -0,0 +1,251 @@
|
|
|
1
|
+
/* eslint-disable @typescript-eslint/no-unsafe-function-type */
|
|
2
|
+
import { AnimationState, AnimationStateData, AtlasAttachmentLoader, Physics, SkeletonBinary, TextureAtlas, } from '@esotericsoftware/spine-core';
|
|
3
|
+
import { CCSkeleton } from './CCSkeleton';
|
|
4
|
+
import { SkeletonTexture } from './CCSkeletonTexture';
|
|
5
|
+
/****************************************************************************
|
|
6
|
+
Copyright (c) 2011-2012 cocos2d-x.org
|
|
7
|
+
Copyright (c) 2013-2014 Chukong Technologies Inc.
|
|
8
|
+
Copyright (c) 2014 Shengxiang Chen (Nero Chan)
|
|
9
|
+
|
|
10
|
+
http://www.cocos2d-x.org
|
|
11
|
+
|
|
12
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
13
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
14
|
+
in the Software without restriction, including without limitation the rights
|
|
15
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
16
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
17
|
+
furnished to do so, subject to the following conditions:
|
|
18
|
+
|
|
19
|
+
The above copyright notice and this permission notice shall be included in
|
|
20
|
+
all copies or substantial portions of the Software.
|
|
21
|
+
|
|
22
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
23
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
24
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
25
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
26
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
27
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
28
|
+
THE SOFTWARE.
|
|
29
|
+
****************************************************************************/
|
|
30
|
+
export const _atlasLoader = {
|
|
31
|
+
spAtlasFile: null,
|
|
32
|
+
setAtlasFile: function (spAtlasFile) {
|
|
33
|
+
this.spAtlasFile = spAtlasFile;
|
|
34
|
+
},
|
|
35
|
+
load: function (line) {
|
|
36
|
+
const texturePath = cc.path.join(cc.path.dirname(this.spAtlasFile), line);
|
|
37
|
+
const texture = cc.textureCache.addImage(texturePath);
|
|
38
|
+
const tex = new SkeletonTexture({ width: texture.getPixelsWide(), height: texture.getPixelsHigh() });
|
|
39
|
+
tex.setRealTexture(texture);
|
|
40
|
+
return tex;
|
|
41
|
+
},
|
|
42
|
+
unload: function () { },
|
|
43
|
+
};
|
|
44
|
+
/**
|
|
45
|
+
* The event type of spine skeleton animation. It contains event types: START(0), END(1), COMPLETE(2), EVENT(3).
|
|
46
|
+
* @constant
|
|
47
|
+
* @type {{START: number, END: number, COMPLETE: number, EVENT: number}}
|
|
48
|
+
*/
|
|
49
|
+
export const ANIMATION_EVENT_TYPE = {
|
|
50
|
+
START: 0,
|
|
51
|
+
INTERRUPT: 1,
|
|
52
|
+
END: 2,
|
|
53
|
+
DISPOSE: 3,
|
|
54
|
+
COMPLETE: 4,
|
|
55
|
+
EVENT: 5,
|
|
56
|
+
};
|
|
57
|
+
export const TrackEntryListeners = function (startListener, endListener, completeListener, eventListener, interruptListener, disposeListener) {
|
|
58
|
+
this.startListener = startListener || null;
|
|
59
|
+
this.endListener = endListener || null;
|
|
60
|
+
this.completeListener = completeListener || null;
|
|
61
|
+
this.eventListener = eventListener || null;
|
|
62
|
+
this.interruptListener = interruptListener || null;
|
|
63
|
+
this.disposeListener = disposeListener || null;
|
|
64
|
+
this.callback = null;
|
|
65
|
+
this.callbackTarget = null;
|
|
66
|
+
this.skeletonNode = null;
|
|
67
|
+
};
|
|
68
|
+
const proto = TrackEntryListeners.prototype;
|
|
69
|
+
proto.start = function (trackEntry) {
|
|
70
|
+
if (this.startListener) {
|
|
71
|
+
this.startListener(trackEntry);
|
|
72
|
+
}
|
|
73
|
+
if (this.callback) {
|
|
74
|
+
this.callback.call(this.callbackTarget, this.skeletonNode, trackEntry, ANIMATION_EVENT_TYPE.START, null, 0);
|
|
75
|
+
}
|
|
76
|
+
};
|
|
77
|
+
proto.interrupt = function (trackEntry) {
|
|
78
|
+
if (this.interruptListener) {
|
|
79
|
+
this.interruptListener(trackEntry);
|
|
80
|
+
}
|
|
81
|
+
if (this.callback) {
|
|
82
|
+
this.callback.call(this.callbackTarget, this.skeletonNode, trackEntry, ANIMATION_EVENT_TYPE.INTERRUPT, null, 0);
|
|
83
|
+
}
|
|
84
|
+
};
|
|
85
|
+
proto.end = function (trackEntry) {
|
|
86
|
+
if (this.endListener) {
|
|
87
|
+
this.endListener(trackEntry);
|
|
88
|
+
}
|
|
89
|
+
if (this.callback) {
|
|
90
|
+
this.callback.call(this.callbackTarget, this.skeletonNode, trackEntry, ANIMATION_EVENT_TYPE.END, null, 0);
|
|
91
|
+
}
|
|
92
|
+
};
|
|
93
|
+
proto.dispose = function (trackEntry) {
|
|
94
|
+
if (this.disposeListener) {
|
|
95
|
+
this.disposeListener(trackEntry);
|
|
96
|
+
}
|
|
97
|
+
if (this.callback) {
|
|
98
|
+
this.callback.call(this.callbackTarget, this.skeletonNode, trackEntry, ANIMATION_EVENT_TYPE.DISPOSE, null, 0);
|
|
99
|
+
}
|
|
100
|
+
};
|
|
101
|
+
proto.complete = function (trackEntry) {
|
|
102
|
+
const loopCount = Math.floor(trackEntry.trackTime / trackEntry.animationEnd);
|
|
103
|
+
if (this.completeListener) {
|
|
104
|
+
this.completeListener(trackEntry, loopCount);
|
|
105
|
+
}
|
|
106
|
+
if (this.callback) {
|
|
107
|
+
this.callback.call(this.callbackTarget, this.skeletonNode, trackEntry, ANIMATION_EVENT_TYPE.COMPLETE, null, loopCount);
|
|
108
|
+
}
|
|
109
|
+
};
|
|
110
|
+
proto.event = function (trackEntry, event) {
|
|
111
|
+
if (this.eventListener) {
|
|
112
|
+
this.eventListener(trackEntry, event);
|
|
113
|
+
}
|
|
114
|
+
if (this.callback) {
|
|
115
|
+
this.callback.call(this.callbackTarget, this.skeletonNode, trackEntry, ANIMATION_EVENT_TYPE.EVENT, event, 0);
|
|
116
|
+
}
|
|
117
|
+
};
|
|
118
|
+
TrackEntryListeners.getListeners = function (entry) {
|
|
119
|
+
if (!entry.listener) {
|
|
120
|
+
entry.listener = new TrackEntryListeners();
|
|
121
|
+
}
|
|
122
|
+
return entry.listener;
|
|
123
|
+
};
|
|
124
|
+
/**
|
|
125
|
+
* The skeleton animation of It updates animation's state and skeleton's world transform.
|
|
126
|
+
* @class
|
|
127
|
+
* @extends Skeleton
|
|
128
|
+
* @example
|
|
129
|
+
* var spineBoy = new SkeletonAnimation('res/skeletons/spineboy.json', 'res/skeletons/spineboy.atlas');
|
|
130
|
+
* this.addChild(spineBoy, 4);
|
|
131
|
+
*/
|
|
132
|
+
export class SkeletonAnimation extends CCSkeleton {
|
|
133
|
+
init() {
|
|
134
|
+
super.init();
|
|
135
|
+
this._ownsAnimationStateData = true;
|
|
136
|
+
this.setAnimationStateData(new AnimationStateData(this._skeleton.data));
|
|
137
|
+
return true;
|
|
138
|
+
}
|
|
139
|
+
setAnimationStateData(stateData) {
|
|
140
|
+
const state = new AnimationState(stateData);
|
|
141
|
+
this._listener = new TrackEntryListeners();
|
|
142
|
+
state.addListener(this._listener);
|
|
143
|
+
this._state = state;
|
|
144
|
+
}
|
|
145
|
+
setMix(fromAnimation, toAnimation, duration) {
|
|
146
|
+
this._state.data.setMixWith(fromAnimation, toAnimation, duration);
|
|
147
|
+
}
|
|
148
|
+
setAnimationListener(target, callback) {
|
|
149
|
+
this._listener.callbackTarget = target;
|
|
150
|
+
this._listener.callback = callback;
|
|
151
|
+
this._listener.skeletonNode = this;
|
|
152
|
+
}
|
|
153
|
+
setAnimation(trackIndex, name, loop) {
|
|
154
|
+
const animation = this._skeleton.data.findAnimation(name);
|
|
155
|
+
if (!animation) {
|
|
156
|
+
cc.log(`Spine: Animation not found: ${name}/${this._skeleton.data.animations.map((a) => a.name)} `);
|
|
157
|
+
return null;
|
|
158
|
+
}
|
|
159
|
+
return this._state.setAnimationWith(trackIndex, animation, loop);
|
|
160
|
+
}
|
|
161
|
+
addAnimation(trackIndex, name, loop, delay) {
|
|
162
|
+
delay = delay == null ? 0 : delay;
|
|
163
|
+
const animation = this._skeleton.data.findAnimation(name);
|
|
164
|
+
if (!animation) {
|
|
165
|
+
cc.log(`Spine: Animation not found:${name}`);
|
|
166
|
+
return null;
|
|
167
|
+
}
|
|
168
|
+
return this._state.addAnimationWith(trackIndex, animation, loop, delay);
|
|
169
|
+
}
|
|
170
|
+
findAnimation(name) {
|
|
171
|
+
return this._skeleton.data.findAnimation(name);
|
|
172
|
+
}
|
|
173
|
+
getCurrent(trackIndex) {
|
|
174
|
+
return this._state.getCurrent(trackIndex);
|
|
175
|
+
}
|
|
176
|
+
clearTracks() {
|
|
177
|
+
this._state.clearTracks();
|
|
178
|
+
}
|
|
179
|
+
clearTrack(trackIndex) {
|
|
180
|
+
this._state.clearTrack(trackIndex);
|
|
181
|
+
}
|
|
182
|
+
update(dt) {
|
|
183
|
+
super.update(dt);
|
|
184
|
+
dt *= this._timeScale;
|
|
185
|
+
if (this._renderCmd && typeof this._renderCmd.setDirtyFlag === 'function') {
|
|
186
|
+
this._renderCmd.setDirtyFlag(cc.Node._dirtyFlags.contentDirty);
|
|
187
|
+
}
|
|
188
|
+
this._state.update(dt);
|
|
189
|
+
this._state.apply(this._skeleton);
|
|
190
|
+
this._skeleton.updateWorldTransform(Physics.pose);
|
|
191
|
+
if (this._renderCmd && typeof this._renderCmd._updateChild === 'function') {
|
|
192
|
+
this._renderCmd._updateChild();
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
setStartListener(listener) {
|
|
196
|
+
this._listener.startListener = listener;
|
|
197
|
+
}
|
|
198
|
+
setInterruptListener(listener) {
|
|
199
|
+
this._listener.interruptListener = listener;
|
|
200
|
+
}
|
|
201
|
+
setEndListener(listener) {
|
|
202
|
+
this._listener.endListener = listener;
|
|
203
|
+
}
|
|
204
|
+
setDisposeListener(listener) {
|
|
205
|
+
this._listener.disposeListener = listener;
|
|
206
|
+
}
|
|
207
|
+
setCompleteListener(listener) {
|
|
208
|
+
this._listener.completeListener = listener;
|
|
209
|
+
}
|
|
210
|
+
setEventListener(listener) {
|
|
211
|
+
this._listener.eventListener = listener;
|
|
212
|
+
}
|
|
213
|
+
setTrackStartListener(entry, listener) {
|
|
214
|
+
TrackEntryListeners.getListeners(entry).startListener = listener;
|
|
215
|
+
}
|
|
216
|
+
setTrackInterruptListener(entry, listener) {
|
|
217
|
+
TrackEntryListeners.getListeners(entry).interruptListener = listener;
|
|
218
|
+
}
|
|
219
|
+
setTrackEndListener(entry, listener) {
|
|
220
|
+
TrackEntryListeners.getListeners(entry).endListener = listener;
|
|
221
|
+
}
|
|
222
|
+
setTrackDisposeListener(entry, listener) {
|
|
223
|
+
TrackEntryListeners.getListeners(entry).disposeListener = listener;
|
|
224
|
+
}
|
|
225
|
+
setTrackCompleteListener(entry, listener) {
|
|
226
|
+
TrackEntryListeners.getListeners(entry).completeListener = listener;
|
|
227
|
+
}
|
|
228
|
+
setTrackEventListener(entry, listener) {
|
|
229
|
+
TrackEntryListeners.getListeners(entry).eventListener = listener;
|
|
230
|
+
}
|
|
231
|
+
getState() {
|
|
232
|
+
return this._state;
|
|
233
|
+
}
|
|
234
|
+
static createWithJsonFile(skeletonDataFile, atlasFile, scale) {
|
|
235
|
+
return new SkeletonAnimation(skeletonDataFile, atlasFile, scale);
|
|
236
|
+
}
|
|
237
|
+
static createWithBinaryFile(skeletonDataFile, atlasFile, scale) {
|
|
238
|
+
const dataTex = cc.loader.getRes(atlasFile);
|
|
239
|
+
_atlasLoader.setAtlasFile(atlasFile);
|
|
240
|
+
const atlas = new TextureAtlas(dataTex);
|
|
241
|
+
for (const page of atlas.pages) {
|
|
242
|
+
const texture = _atlasLoader.load(page.name);
|
|
243
|
+
page.setTexture(texture);
|
|
244
|
+
}
|
|
245
|
+
const attachmentLoader = new AtlasAttachmentLoader(atlas);
|
|
246
|
+
const skeletonBinaryReader = new SkeletonBinary(attachmentLoader);
|
|
247
|
+
const skeletonBinary = cc.loader.getRes(skeletonDataFile);
|
|
248
|
+
const skeletonData = skeletonBinaryReader.readSkeletonData(skeletonBinary);
|
|
249
|
+
return new SkeletonAnimation(skeletonData, true, scale);
|
|
250
|
+
}
|
|
251
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/****************************************************************************
|
|
2
|
+
Copyright (c) 2013-2014 Chukong Technologies Inc.
|
|
3
|
+
|
|
4
|
+
http://www.cocos2d-x.org
|
|
5
|
+
|
|
6
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
7
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
8
|
+
in the Software without restriction, including without limitation the rights
|
|
9
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
10
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
11
|
+
furnished to do so, subject to the following conditions:
|
|
12
|
+
|
|
13
|
+
The above copyright notice and this permission notice shall be included in
|
|
14
|
+
all copies or substantial portions of the Software.
|
|
15
|
+
|
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
17
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
18
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
19
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
20
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
21
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
22
|
+
THE SOFTWARE.
|
|
23
|
+
****************************************************************************/
|
|
24
|
+
export declare const CanvasRenderCmd: {
|
|
25
|
+
(renderableObject: any): void;
|
|
26
|
+
prototype: any;
|
|
27
|
+
};
|
|
28
|
+
//# sourceMappingURL=CCSkeletonCanvasRenderCmd.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CCSkeletonCanvasRenderCmd.d.ts","sourceRoot":"","sources":["../../../src/spine/spine-cocos/CCSkeletonCanvasRenderCmd.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;8EAsB8E;AAI9E,eAAO,MAAM,eAAe;;;CAG3B,CAAA"}
|
|
@@ -0,0 +1,224 @@
|
|
|
1
|
+
/****************************************************************************
|
|
2
|
+
Copyright (c) 2013-2014 Chukong Technologies Inc.
|
|
3
|
+
|
|
4
|
+
http://www.cocos2d-x.org
|
|
5
|
+
|
|
6
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
7
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
8
|
+
in the Software without restriction, including without limitation the rights
|
|
9
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
10
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
11
|
+
furnished to do so, subject to the following conditions:
|
|
12
|
+
|
|
13
|
+
The above copyright notice and this permission notice shall be included in
|
|
14
|
+
all copies or substantial portions of the Software.
|
|
15
|
+
|
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
17
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
18
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
19
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
20
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
21
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
22
|
+
THE SOFTWARE.
|
|
23
|
+
****************************************************************************/
|
|
24
|
+
import { MeshAttachment, RegionAttachment, Utils } from '@esotericsoftware/spine-core';
|
|
25
|
+
export const CanvasRenderCmd = function (renderableObject) {
|
|
26
|
+
this._rootCtor(renderableObject);
|
|
27
|
+
this._needDraw = true;
|
|
28
|
+
};
|
|
29
|
+
const proto = (CanvasRenderCmd.prototype = Object.create(cc.Node.CanvasRenderCmd.prototype));
|
|
30
|
+
proto.constructor = CanvasRenderCmd;
|
|
31
|
+
proto.rendering = function (wrapper, scaleX, scaleY) {
|
|
32
|
+
const node = this._node;
|
|
33
|
+
let i, n, slot, slotNode;
|
|
34
|
+
wrapper = wrapper || cc._renderContext;
|
|
35
|
+
const locSkeleton = node._skeleton, drawOrder = locSkeleton.drawOrder;
|
|
36
|
+
for (i = 0, n = drawOrder.length; i < n; i++) {
|
|
37
|
+
slot = drawOrder[i];
|
|
38
|
+
slotNode = slot._slotNode;
|
|
39
|
+
if (slotNode._visible && slotNode._renderCmd && slot.currentSprite) {
|
|
40
|
+
slotNode._renderCmd.transform(this, true);
|
|
41
|
+
slot.currentSprite._renderCmd.rendering(wrapper, scaleX, scaleY);
|
|
42
|
+
slotNode._renderCmd._dirtyFlag = slot.currentSprite._renderCmd._dirtyFlag = 0;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
if (!node._debugSlots && !node._debugBones)
|
|
46
|
+
return;
|
|
47
|
+
wrapper.setTransform(this._worldTransform, scaleX, scaleY);
|
|
48
|
+
wrapper.setGlobalAlpha(1);
|
|
49
|
+
let attachment;
|
|
50
|
+
const drawingUtil = cc._drawingUtil;
|
|
51
|
+
if (node._debugSlots) {
|
|
52
|
+
// Slots.
|
|
53
|
+
drawingUtil.setDrawColor(0, 0, 255, 255);
|
|
54
|
+
drawingUtil.setLineWidth(1);
|
|
55
|
+
const points = [];
|
|
56
|
+
for (i = 0, n = locSkeleton.slots.length; i < n; i++) {
|
|
57
|
+
slot = locSkeleton.drawOrder[i];
|
|
58
|
+
if (!slot.attachment || !(slot.attachment instanceof RegionAttachment))
|
|
59
|
+
continue;
|
|
60
|
+
attachment = slot.attachment;
|
|
61
|
+
this._updateRegionAttachmentSlot(attachment, slot, points);
|
|
62
|
+
drawingUtil.drawPoly(points, 4, true);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
if (node._debugBones) {
|
|
66
|
+
// Bone lengths.
|
|
67
|
+
let bone;
|
|
68
|
+
drawingUtil.setLineWidth(2);
|
|
69
|
+
drawingUtil.setDrawColor(255, 0, 0, 255);
|
|
70
|
+
for (i = 0, n = locSkeleton.bones.length; i < n; i++) {
|
|
71
|
+
bone = locSkeleton.bones[i];
|
|
72
|
+
const x = bone.data.length * bone.a + bone.worldX;
|
|
73
|
+
const y = bone.data.length * bone.c + bone.worldY;
|
|
74
|
+
drawingUtil.drawLine({ x: bone.worldX, y: bone.worldY }, { x: x, y: y });
|
|
75
|
+
}
|
|
76
|
+
// Bone origins.
|
|
77
|
+
const pointSize = 4;
|
|
78
|
+
drawingUtil.setDrawColor(0, 0, 255, 255); // Root bone is blue.
|
|
79
|
+
for (i = 0, n = locSkeleton.bones.length; i < n; i++) {
|
|
80
|
+
bone = locSkeleton.bones[i];
|
|
81
|
+
drawingUtil.drawPoint({ x: bone.worldX, y: bone.worldY }, pointSize);
|
|
82
|
+
if (i === 0)
|
|
83
|
+
drawingUtil.setDrawColor(0, 255, 0, 255);
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
};
|
|
87
|
+
proto.updateStatus = function () {
|
|
88
|
+
this.originUpdateStatus();
|
|
89
|
+
this._updateCurrentRegions();
|
|
90
|
+
this._regionFlag = cc.Node.CanvasRenderCmd.RegionStatus.DirtyDouble;
|
|
91
|
+
this._dirtyFlag &= ~cc.Node._dirtyFlags.contentDirty;
|
|
92
|
+
};
|
|
93
|
+
proto.getLocalBB = function () {
|
|
94
|
+
return this._node.getBoundingBox();
|
|
95
|
+
};
|
|
96
|
+
proto._updateRegionAttachmentSlot = function (attachment, slot, points) {
|
|
97
|
+
if (!points)
|
|
98
|
+
return;
|
|
99
|
+
const vertices = Utils.setArraySize([], 8, 0);
|
|
100
|
+
attachment.computeWorldVertices(slot, vertices, 0, 2);
|
|
101
|
+
const VERTEX = RegionAttachment;
|
|
102
|
+
points.length = 0;
|
|
103
|
+
points.push(cc.p(vertices[VERTEX.X1], vertices[VERTEX.Y1]));
|
|
104
|
+
points.push(cc.p(vertices[VERTEX.X4], vertices[VERTEX.Y4]));
|
|
105
|
+
points.push(cc.p(vertices[VERTEX.X3], vertices[VERTEX.Y3]));
|
|
106
|
+
points.push(cc.p(vertices[VERTEX.X2], vertices[VERTEX.Y2]));
|
|
107
|
+
};
|
|
108
|
+
proto._createChildFormSkeletonData = function () {
|
|
109
|
+
const node = this._node;
|
|
110
|
+
const locSkeleton = node._skeleton;
|
|
111
|
+
let spriteName, sprite;
|
|
112
|
+
for (let i = 0, n = locSkeleton.slots.length; i < n; i++) {
|
|
113
|
+
const slot = locSkeleton.slots[i], attachment = slot.attachment;
|
|
114
|
+
const slotNode = new cc.Node();
|
|
115
|
+
slot._slotNode = slotNode;
|
|
116
|
+
if (attachment instanceof RegionAttachment) {
|
|
117
|
+
spriteName = attachment.name;
|
|
118
|
+
sprite = this._createSprite(slot, attachment);
|
|
119
|
+
slot.currentSprite = sprite;
|
|
120
|
+
slot.currentSpriteName = spriteName;
|
|
121
|
+
slotNode.addChild(sprite);
|
|
122
|
+
}
|
|
123
|
+
else if (attachment instanceof MeshAttachment) {
|
|
124
|
+
//todo for mesh
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
};
|
|
128
|
+
const loaded = function (sprite, texture, attachment) {
|
|
129
|
+
const rendererObject = attachment.region;
|
|
130
|
+
const rect = new cc.Rect(rendererObject.x, rendererObject.y, rendererObject.width, rendererObject.height);
|
|
131
|
+
sprite.initWithTexture(texture, rect, rendererObject.rotate, false);
|
|
132
|
+
sprite._rect.width = attachment.width;
|
|
133
|
+
sprite._rect.height = attachment.height;
|
|
134
|
+
sprite.setContentSize(attachment.width, attachment.height);
|
|
135
|
+
sprite.setRotation(-attachment.rotation);
|
|
136
|
+
sprite.setScale((rendererObject.width / rendererObject.originalWidth) * attachment.scaleX, (rendererObject.height / rendererObject.originalHeight) * attachment.scaleY);
|
|
137
|
+
};
|
|
138
|
+
proto._createSprite = function (slot, attachment) {
|
|
139
|
+
const rendererObject = attachment.region;
|
|
140
|
+
const texture = rendererObject.texture.getRealTexture();
|
|
141
|
+
const sprite = new cc.Sprite();
|
|
142
|
+
if (texture.isLoaded()) {
|
|
143
|
+
loaded(sprite, texture, attachment);
|
|
144
|
+
}
|
|
145
|
+
else {
|
|
146
|
+
texture.addEventListener('load', function () {
|
|
147
|
+
loaded(sprite, texture, attachment);
|
|
148
|
+
}, this);
|
|
149
|
+
}
|
|
150
|
+
slot.sprites = slot.sprites || {};
|
|
151
|
+
slot.sprites[rendererObject.name] = sprite;
|
|
152
|
+
return sprite;
|
|
153
|
+
};
|
|
154
|
+
proto._updateChild = function () {
|
|
155
|
+
const locSkeleton = this._node._skeleton, slots = locSkeleton.slots;
|
|
156
|
+
const color = this._displayedColor, opacity = this._displayedOpacity;
|
|
157
|
+
let i, n, selSprite, ax, ay;
|
|
158
|
+
let slot, attachment, slotNode;
|
|
159
|
+
for (i = 0, n = slots.length; i < n; i++) {
|
|
160
|
+
slot = slots[i];
|
|
161
|
+
attachment = slot.attachment;
|
|
162
|
+
slotNode = slot._slotNode;
|
|
163
|
+
if (!attachment) {
|
|
164
|
+
slotNode.setVisible(false);
|
|
165
|
+
continue;
|
|
166
|
+
}
|
|
167
|
+
if (attachment instanceof RegionAttachment) {
|
|
168
|
+
if (attachment.region) {
|
|
169
|
+
if (!slot.currentSpriteName || slot.currentSpriteName !== attachment.name) {
|
|
170
|
+
const spriteName = attachment.name;
|
|
171
|
+
if (slot.currentSprite !== undefined)
|
|
172
|
+
slot.currentSprite.setVisible(false);
|
|
173
|
+
slot.sprites = slot.sprites || {};
|
|
174
|
+
if (slot.sprites[spriteName] !== undefined)
|
|
175
|
+
slot.sprites[spriteName].setVisible(true);
|
|
176
|
+
else {
|
|
177
|
+
const sprite = this._createSprite(slot, attachment);
|
|
178
|
+
slotNode.addChild(sprite);
|
|
179
|
+
}
|
|
180
|
+
slot.currentSprite = slot.sprites[spriteName];
|
|
181
|
+
slot.currentSpriteName = spriteName;
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
const bone = slot.bone;
|
|
185
|
+
if (attachment.region.offsetX === 0 && attachment.region.offsetY === 0) {
|
|
186
|
+
ax = attachment.x;
|
|
187
|
+
ay = attachment.y;
|
|
188
|
+
}
|
|
189
|
+
else {
|
|
190
|
+
//var regionScaleX = attachment.width / attachment.regionOriginalWidth * attachment.scaleX;
|
|
191
|
+
//ax = attachment.x + attachment.regionOffsetX * regionScaleX - (attachment.width * attachment.scaleX - attachment.regionWidth * regionScaleX) / 2;
|
|
192
|
+
ax = (attachment.offset[0] + attachment.offset[4]) * 0.5;
|
|
193
|
+
ay = (attachment.offset[1] + attachment.offset[5]) * 0.5;
|
|
194
|
+
}
|
|
195
|
+
slotNode.setPosition(bone.worldX + ax * bone.a + ay * bone.b, bone.worldY + ax * bone.c + ay * bone.d);
|
|
196
|
+
slotNode.setScale(bone.getWorldScaleX(), bone.getWorldScaleY());
|
|
197
|
+
//set the color and opacity
|
|
198
|
+
selSprite = slot.currentSprite;
|
|
199
|
+
selSprite._flippedX = bone.skeleton.flipX;
|
|
200
|
+
selSprite._flippedY = bone.skeleton.flipY;
|
|
201
|
+
if (selSprite._flippedY || selSprite._flippedX) {
|
|
202
|
+
slotNode.setRotation(bone.getWorldRotationX());
|
|
203
|
+
selSprite.setRotation(attachment.rotation);
|
|
204
|
+
}
|
|
205
|
+
else {
|
|
206
|
+
slotNode.setRotation(-bone.getWorldRotationX());
|
|
207
|
+
selSprite.setRotation(-attachment.rotation);
|
|
208
|
+
}
|
|
209
|
+
//hack for sprite
|
|
210
|
+
selSprite._renderCmd._displayedOpacity = 0 | (opacity * slot.color.a);
|
|
211
|
+
const r = 0 | (color.r * slot.color.r), g = 0 | (color.g * slot.color.g), b = 0 | (color.b * slot.color.b);
|
|
212
|
+
selSprite.setColor(cc.color(r, g, b));
|
|
213
|
+
selSprite._renderCmd._updateColor();
|
|
214
|
+
}
|
|
215
|
+
else if (attachment instanceof MeshAttachment) {
|
|
216
|
+
// Can not render mesh
|
|
217
|
+
}
|
|
218
|
+
else {
|
|
219
|
+
slotNode.setVisible(false);
|
|
220
|
+
continue;
|
|
221
|
+
}
|
|
222
|
+
slotNode.setVisible(true);
|
|
223
|
+
}
|
|
224
|
+
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/****************************************************************************
|
|
2
|
+
Copyright (c) 2017 Chukong Technologies Inc.
|
|
3
|
+
|
|
4
|
+
http://www.cocos2d-x.org
|
|
5
|
+
|
|
6
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
7
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
8
|
+
in the Software without restriction, including without limitation the rights
|
|
9
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
10
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
11
|
+
furnished to do so, subject to the following conditions:
|
|
12
|
+
|
|
13
|
+
The above copyright notice and this permission notice shall be included in
|
|
14
|
+
all copies or substantial portions of the Software.
|
|
15
|
+
|
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
17
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
18
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
19
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
20
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
21
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
22
|
+
THE SOFTWARE.
|
|
23
|
+
****************************************************************************/
|
|
24
|
+
import { Texture } from '@esotericsoftware/spine-core';
|
|
25
|
+
export declare class SkeletonTexture extends Texture {
|
|
26
|
+
constructor(image: any);
|
|
27
|
+
name: string;
|
|
28
|
+
_texture: any;
|
|
29
|
+
setRealTexture(tex: any): void;
|
|
30
|
+
getRealTexture(): any;
|
|
31
|
+
setFilters(minFilter: any, magFilter: any): void;
|
|
32
|
+
setWraps(uWrap: any, vWrap: any): void;
|
|
33
|
+
dispose(): void;
|
|
34
|
+
bind(): void;
|
|
35
|
+
}
|
|
36
|
+
//# sourceMappingURL=CCSkeletonTexture.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CCSkeletonTexture.d.ts","sourceRoot":"","sources":["../../../src/spine/spine-cocos/CCSkeletonTexture.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;8EAsB8E;AAE9E,OAAO,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAA;AAEtD,qBAAa,eAAgB,SAAQ,OAAO;gBAC9B,KAAK,KAAA;IAGjB,IAAI,SAAoB;IACxB,QAAQ,MAAO;IAEf,cAAc,CAAC,GAAG,KAAA;IAIlB,cAAc;IAId,UAAU,CAAC,SAAS,KAAA,EAAE,SAAS,KAAA;IAS/B,QAAQ,CAAC,KAAK,KAAA,EAAE,KAAK,KAAA;IASrB,OAAO;IAEP,IAAI;CAKL"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/****************************************************************************
|
|
2
|
+
Copyright (c) 2017 Chukong Technologies Inc.
|
|
3
|
+
|
|
4
|
+
http://www.cocos2d-x.org
|
|
5
|
+
|
|
6
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
7
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
8
|
+
in the Software without restriction, including without limitation the rights
|
|
9
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
10
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
11
|
+
furnished to do so, subject to the following conditions:
|
|
12
|
+
|
|
13
|
+
The above copyright notice and this permission notice shall be included in
|
|
14
|
+
all copies or substantial portions of the Software.
|
|
15
|
+
|
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
17
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
18
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
19
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
20
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
21
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
22
|
+
THE SOFTWARE.
|
|
23
|
+
****************************************************************************/
|
|
24
|
+
import { Texture } from '@esotericsoftware/spine-core';
|
|
25
|
+
export class SkeletonTexture extends Texture {
|
|
26
|
+
constructor(image) {
|
|
27
|
+
super(image);
|
|
28
|
+
}
|
|
29
|
+
name = 'SkeletonTexture';
|
|
30
|
+
_texture = null;
|
|
31
|
+
setRealTexture(tex) {
|
|
32
|
+
this._texture = tex;
|
|
33
|
+
}
|
|
34
|
+
getRealTexture() {
|
|
35
|
+
return this._texture;
|
|
36
|
+
}
|
|
37
|
+
setFilters(minFilter, magFilter) {
|
|
38
|
+
if (cc._renderType === cc.game.RENDER_TYPE_WEBGL) {
|
|
39
|
+
const gl = cc._renderContext;
|
|
40
|
+
this.bind();
|
|
41
|
+
gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MIN_FILTER, minFilter);
|
|
42
|
+
gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MAG_FILTER, magFilter);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
setWraps(uWrap, vWrap) {
|
|
46
|
+
if (cc._renderType === cc.game.RENDER_TYPE_WEBGL) {
|
|
47
|
+
const gl = cc._renderContext;
|
|
48
|
+
this.bind();
|
|
49
|
+
gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_S, uWrap);
|
|
50
|
+
gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_T, vWrap);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
dispose() { }
|
|
54
|
+
bind() {
|
|
55
|
+
if (cc._renderType === cc.game.RENDER_TYPE_WEBGL) {
|
|
56
|
+
cc.glBindTexture2D(this._texture);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/****************************************************************************
|
|
2
|
+
Copyright (c) 2013-2014 Chukong Technologies Inc.
|
|
3
|
+
|
|
4
|
+
http://www.cocos2d-x.org
|
|
5
|
+
|
|
6
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
7
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
8
|
+
in the Software without restriction, including without limitation the rights
|
|
9
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
10
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
11
|
+
furnished to do so, subject to the following conditions:
|
|
12
|
+
|
|
13
|
+
The above copyright notice and this permission notice shall be included in
|
|
14
|
+
all copies or substantial portions of the Software.
|
|
15
|
+
|
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
17
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
18
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
19
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
20
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
21
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
22
|
+
THE SOFTWARE.
|
|
23
|
+
****************************************************************************/
|
|
24
|
+
export declare const WebGLRenderCmd: {
|
|
25
|
+
(renderableObject: any): void;
|
|
26
|
+
prototype: any;
|
|
27
|
+
};
|
|
28
|
+
//# sourceMappingURL=CCSkeletonWebGLRenderCmd.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CCSkeletonWebGLRenderCmd.d.ts","sourceRoot":"","sources":["../../../src/spine/spine-cocos/CCSkeletonWebGLRenderCmd.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;8EAsB8E;AAI9E,eAAO,MAAM,cAAc;;;CAS1B,CAAA"}
|