@safe-engine/cocos 2.6.4 → 2.6.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.
Files changed (82) hide show
  1. package/dist/dragonbones/DragonBonesSystem.js +3 -3
  2. package/dist/dragonbones/PixiDragonBonesSprite.d.ts +18 -8
  3. package/dist/dragonbones/PixiDragonBonesSprite.d.ts.map +1 -1
  4. package/dist/dragonbones/PixiDragonBonesSprite.js +41 -48
  5. package/dist/dragonbones/db-cocos/CocosFactory.d.ts.map +1 -1
  6. package/dist/dragonbones/db-cocos/CocosFactory.js +2 -1
  7. package/dist/dragonbones/db-cocos/SimpleMeshNode.d.ts +1 -1
  8. package/dist/dragonbones/db-cocos/SimpleMeshNode.d.ts.map +1 -1
  9. package/dist/dragonbones/db-cocos/SimpleMeshNode.js +1 -1
  10. package/dist/gui/GUISystem.js +1 -1
  11. package/dist/gworld/components/AnimationComponent.d.ts +65 -0
  12. package/dist/gworld/components/AnimationComponent.d.ts.map +1 -0
  13. package/dist/gworld/components/AnimationComponent.js +141 -0
  14. package/dist/gworld/components/CollideComponent.d.ts +64 -0
  15. package/dist/gworld/components/CollideComponent.d.ts.map +1 -0
  16. package/dist/gworld/components/CollideComponent.js +269 -0
  17. package/dist/gworld/components/EnhancedComponent.d.ts +22 -0
  18. package/dist/gworld/components/EnhancedComponent.d.ts.map +1 -0
  19. package/dist/gworld/components/EnhancedComponent.js +51 -0
  20. package/dist/gworld/components/GUIComponent.d.ts +67 -0
  21. package/dist/gworld/components/GUIComponent.d.ts.map +1 -0
  22. package/dist/gworld/components/GUIComponent.js +166 -0
  23. package/dist/gworld/components/NoRenderComponent.d.ts +38 -0
  24. package/dist/gworld/components/NoRenderComponent.d.ts.map +1 -0
  25. package/dist/gworld/components/NoRenderComponent.js +81 -0
  26. package/dist/gworld/components/NodeComp.d.ts +152 -0
  27. package/dist/gworld/components/NodeComp.d.ts.map +1 -0
  28. package/dist/gworld/components/NodeComp.js +405 -0
  29. package/dist/gworld/components/RenderComponent.d.ts +58 -0
  30. package/dist/gworld/components/RenderComponent.d.ts.map +1 -0
  31. package/dist/gworld/components/RenderComponent.js +166 -0
  32. package/dist/gworld/core/NodePool.d.ts +9 -0
  33. package/dist/gworld/core/NodePool.d.ts.map +1 -0
  34. package/dist/gworld/core/NodePool.js +30 -0
  35. package/dist/gworld/core/Scene.d.ts +5 -0
  36. package/dist/gworld/core/Scene.d.ts.map +1 -0
  37. package/dist/gworld/core/Scene.js +38 -0
  38. package/dist/gworld/core/decorator.d.ts +9 -0
  39. package/dist/gworld/core/decorator.d.ts.map +1 -0
  40. package/dist/gworld/core/decorator.js +43 -0
  41. package/dist/gworld/index.d.ts +8 -0
  42. package/dist/gworld/index.d.ts.map +1 -0
  43. package/dist/gworld/index.js +43 -0
  44. package/dist/gworld/systems/AnimationSystem.d.ts +6 -0
  45. package/dist/gworld/systems/AnimationSystem.d.ts.map +1 -0
  46. package/dist/gworld/systems/AnimationSystem.js +30 -0
  47. package/dist/gworld/systems/CollideSystem.d.ts +20 -0
  48. package/dist/gworld/systems/CollideSystem.d.ts.map +1 -0
  49. package/dist/gworld/systems/CollideSystem.js +171 -0
  50. package/dist/gworld/systems/GUISystem.d.ts +15 -0
  51. package/dist/gworld/systems/GUISystem.d.ts.map +1 -0
  52. package/dist/gworld/systems/GUISystem.js +123 -0
  53. package/dist/gworld/systems/NoRenderSystem.d.ts +16 -0
  54. package/dist/gworld/systems/NoRenderSystem.d.ts.map +1 -0
  55. package/dist/gworld/systems/NoRenderSystem.js +85 -0
  56. package/dist/gworld/systems/RenderSystem.d.ts +22 -0
  57. package/dist/gworld/systems/RenderSystem.d.ts.map +1 -0
  58. package/dist/gworld/systems/RenderSystem.js +104 -0
  59. package/dist/helper/NodePool.d.ts +9 -0
  60. package/dist/helper/NodePool.d.ts.map +1 -0
  61. package/dist/helper/NodePool.js +29 -0
  62. package/dist/helper/html-text-parser.d.ts +30 -0
  63. package/dist/helper/html-text-parser.d.ts.map +1 -0
  64. package/dist/helper/html-text-parser.js +354 -0
  65. package/dist/spine/CCSkeleton.d.ts +1 -188
  66. package/dist/spine/CCSkeleton.d.ts.map +1 -1
  67. package/dist/spine/CCSkeleton.js +127 -103
  68. package/dist/spine/CCSkeletonAnimation.d.ts +6 -136
  69. package/dist/spine/CCSkeletonAnimation.d.ts.map +1 -1
  70. package/dist/spine/CCSkeletonAnimation.js +101 -95
  71. package/dist/spine/CCSkeletonCanvasRenderCmd.d.ts.map +1 -1
  72. package/dist/spine/CCSkeletonCanvasRenderCmd.js +3 -6
  73. package/dist/spine/CCSkeletonTexture.d.ts +1 -24
  74. package/dist/spine/CCSkeletonTexture.d.ts.map +1 -1
  75. package/dist/spine/CCSkeletonTexture.js +6 -4
  76. package/dist/spine/CCSkeletonWebGLRenderCmd.d.ts +1 -27
  77. package/dist/spine/CCSkeletonWebGLRenderCmd.d.ts.map +1 -1
  78. package/dist/spine/CCSkeletonWebGLRenderCmd.js +247 -243
  79. package/dist/spine/PixiSpineSprite.d.ts +19 -0
  80. package/dist/spine/PixiSpineSprite.d.ts.map +1 -0
  81. package/dist/spine/PixiSpineSprite.js +72 -0
  82. package/package.json +1 -1
@@ -26,6 +26,7 @@ import { SkeletonTexture } from './CCSkeletonTexture';
26
26
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
27
27
  THE SOFTWARE.
28
28
  ****************************************************************************/
29
+ var gworld = gworld || {};
29
30
  export const _atlasLoader = {
30
31
  spAtlasFile: null,
31
32
  setAtlasFile: function (spAtlasFile) {
@@ -38,14 +39,14 @@ export const _atlasLoader = {
38
39
  tex.setRealTexture(texture);
39
40
  return tex;
40
41
  },
41
- unload: function () { },
42
+ unload: function (obj) { },
42
43
  };
43
44
  /**
44
45
  * The event type of spine skeleton animation. It contains event types: START(0), END(1), COMPLETE(2), EVENT(3).
45
46
  * @constant
46
47
  * @type {{START: number, END: number, COMPLETE: number, EVENT: number}}
47
48
  */
48
- const ANIMATION_EVENT_TYPE = {
49
+ gworld.ANIMATION_EVENT_TYPE = {
49
50
  START: 0,
50
51
  INTERRUPT: 1,
51
52
  END: 2,
@@ -53,7 +54,7 @@ const ANIMATION_EVENT_TYPE = {
53
54
  COMPLETE: 4,
54
55
  EVENT: 5,
55
56
  };
56
- const TrackEntryListeners = function (startListener, endListener, completeListener, eventListener, interruptListener, disposeListener) {
57
+ gworld.TrackEntryListeners = function (startListener, endListener, completeListener, eventListener, interruptListener, disposeListener) {
57
58
  this.startListener = startListener || null;
58
59
  this.endListener = endListener || null;
59
60
  this.completeListener = completeListener || null;
@@ -64,13 +65,13 @@ const TrackEntryListeners = function (startListener, endListener, completeListen
64
65
  this.callbackTarget = null;
65
66
  this.skeletonNode = null;
66
67
  };
67
- const proto = TrackEntryListeners.prototype;
68
+ const proto = gworld.TrackEntryListeners.prototype;
68
69
  proto.start = function (trackEntry) {
69
70
  if (this.startListener) {
70
71
  this.startListener(trackEntry);
71
72
  }
72
73
  if (this.callback) {
73
- this.callback.call(this.callbackTarget, this.skeletonNode, trackEntry, ANIMATION_EVENT_TYPE.START, null, 0);
74
+ this.callback.call(this.callbackTarget, this.skeletonNode, trackEntry, gworld.ANIMATION_EVENT_TYPE.START, null, 0);
74
75
  }
75
76
  };
76
77
  proto.interrupt = function (trackEntry) {
@@ -78,7 +79,7 @@ proto.interrupt = function (trackEntry) {
78
79
  this.interruptListener(trackEntry);
79
80
  }
80
81
  if (this.callback) {
81
- this.callback.call(this.callbackTarget, this.skeletonNode, trackEntry, ANIMATION_EVENT_TYPE.INTERRUPT, null, 0);
82
+ this.callback.call(this.callbackTarget, this.skeletonNode, trackEntry, gworld.ANIMATION_EVENT_TYPE.INTERRUPT, null, 0);
82
83
  }
83
84
  };
84
85
  proto.end = function (trackEntry) {
@@ -86,7 +87,7 @@ proto.end = function (trackEntry) {
86
87
  this.endListener(trackEntry);
87
88
  }
88
89
  if (this.callback) {
89
- this.callback.call(this.callbackTarget, this.skeletonNode, trackEntry, ANIMATION_EVENT_TYPE.END, null, 0);
90
+ this.callback.call(this.callbackTarget, this.skeletonNode, trackEntry, gworld.ANIMATION_EVENT_TYPE.END, null, 0);
90
91
  }
91
92
  };
92
93
  proto.dispose = function (trackEntry) {
@@ -94,7 +95,7 @@ proto.dispose = function (trackEntry) {
94
95
  this.disposeListener(trackEntry);
95
96
  }
96
97
  if (this.callback) {
97
- this.callback.call(this.callbackTarget, this.skeletonNode, trackEntry, ANIMATION_EVENT_TYPE.DISPOSE, null, 0);
98
+ this.callback.call(this.callbackTarget, this.skeletonNode, trackEntry, gworld.ANIMATION_EVENT_TYPE.DISPOSE, null, 0);
98
99
  }
99
100
  };
100
101
  proto.complete = function (trackEntry) {
@@ -103,7 +104,7 @@ proto.complete = function (trackEntry) {
103
104
  this.completeListener(trackEntry, loopCount);
104
105
  }
105
106
  if (this.callback) {
106
- this.callback.call(this.callbackTarget, this.skeletonNode, trackEntry, ANIMATION_EVENT_TYPE.COMPLETE, null, loopCount);
107
+ this.callback.call(this.callbackTarget, this.skeletonNode, trackEntry, gworld.ANIMATION_EVENT_TYPE.COMPLETE, null, loopCount);
107
108
  }
108
109
  };
109
110
  proto.event = function (trackEntry, event) {
@@ -111,82 +112,90 @@ proto.event = function (trackEntry, event) {
111
112
  this.eventListener(trackEntry, event);
112
113
  }
113
114
  if (this.callback) {
114
- this.callback.call(this.callbackTarget, this.skeletonNode, trackEntry, ANIMATION_EVENT_TYPE.EVENT, event, 0);
115
+ this.callback.call(this.callbackTarget, this.skeletonNode, trackEntry, gworld.ANIMATION_EVENT_TYPE.EVENT, event, 0);
115
116
  }
116
117
  };
117
- TrackEntryListeners.getListeners = function (entry) {
118
+ gworld.TrackEntryListeners.getListeners = function (entry) {
118
119
  if (!entry.listener) {
119
- entry.listener = new TrackEntryListeners();
120
+ entry.listener = new gworld.TrackEntryListeners();
120
121
  }
121
122
  return entry.listener;
122
123
  };
123
124
  /**
124
125
  * The skeleton animation of spine. It updates animation's state and skeleton's world transform.
125
126
  * @class
126
- * @extends Skeleton
127
+ * @extends gworld.Skeleton
128
+ * @example
129
+ * var spineBoy = new SkeletonAnimation('res/skeletons/spineboy.json', 'res/skeletons/spineboy.atlas');
130
+ * this.addChild(spineBoy, 4);
127
131
  */
128
- export class SkeletonAnimation extends Skeleton {
129
- _state = null;
130
- _ownsAnimationStateData = false;
131
- _listener = null;
132
- constructor(skeletonDataFile, atlasFile, scale) {
133
- super(skeletonDataFile, atlasFile, scale);
132
+ export const SkeletonAnimation = Skeleton.extend({
133
+ _state: null,
134
+ _ownsAnimationStateData: false,
135
+ _listener: null,
136
+ /**
137
+ * Initializes a SkeletonAnimation. please do not call this function by yourself, you should pass the parameters to constructor to initialize it.
138
+ * @override
139
+ */
140
+ init: function () {
141
+ Skeleton.prototype.init.call(this);
134
142
  this._ownsAnimationStateData = true;
135
143
  this.setAnimationStateData(new spine.AnimationStateData(this._skeleton.data));
136
- }
144
+ },
137
145
  /**
138
146
  * Sets animation state data to SkeletonAnimation.
139
- * @param {spine.AnimationStateData} stateData
147
+ * @param {gworld.spine.AnimationStateData} stateData
140
148
  */
141
- setAnimationStateData(stateData) {
149
+ setAnimationStateData: function (stateData) {
142
150
  const state = new spine.AnimationState(stateData);
143
- this._listener = new TrackEntryListeners();
151
+ this._listener = new gworld.TrackEntryListeners();
152
+ // state.rendererObject = this;
144
153
  state.addListener(this._listener);
145
154
  this._state = state;
146
- }
155
+ },
147
156
  /**
148
- * Mix applies all keyframe values, interpolated for the specified time and mixed with the current values.
157
+ * Mix applies all keyframe values, interpolated for the specified time and mixed with the current values. <br/>
149
158
  * @param {String} fromAnimation
150
159
  * @param {String} toAnimation
151
160
  * @param {Number} duration
152
161
  */
153
- setMix(fromAnimation, toAnimation, duration) {
162
+ setMix: function (fromAnimation, toAnimation, duration) {
154
163
  this._state.data.setMixWith(fromAnimation, toAnimation, duration);
155
- }
164
+ },
156
165
  /**
157
166
  * Sets event listener of SkeletonAnimation.
158
167
  * @param {Object} target
159
168
  * @param {Function} callback
160
169
  */
161
- setAnimationListener(target, callback) {
170
+ setAnimationListener: function (target, callback) {
162
171
  this._listener.callbackTarget = target;
163
172
  this._listener.callback = callback;
164
173
  this._listener.skeletonNode = this;
165
- }
174
+ },
166
175
  /**
167
176
  * Set the current animation. Any queued animations are cleared.
168
177
  * @param {Number} trackIndex
169
178
  * @param {String} name
170
179
  * @param {Boolean} loop
171
- * @returns {spine.TrackEntry|null}
180
+ * @returns {gworld.spine.TrackEntry|null}
172
181
  */
173
- setAnimation(trackIndex, name, loop) {
182
+ setAnimation: function (trackIndex, name, loop) {
174
183
  const animation = this._skeleton.data.findAnimation(name);
175
184
  if (!animation) {
176
185
  cc.log(`Spine: Animation not found: ${name}`);
177
186
  return null;
178
187
  }
179
188
  return this._state.setAnimationWith(trackIndex, animation, loop);
180
- }
189
+ },
181
190
  /**
182
191
  * Adds an animation to be played delay seconds after the current or last queued animation.
183
192
  * @param {Number} trackIndex
184
193
  * @param {String} name
185
194
  * @param {Boolean} loop
186
195
  * @param {Number} [delay=0]
187
- * @returns {spine.TrackEntry|null}
196
+ * @returns {gworld.spine.TrackEntry|null}
188
197
  */
189
- addAnimation(trackIndex, name, loop, delay) {
198
+ addAnimation: function (trackIndex, name, loop, delay) {
190
199
  delay = delay == null ? 0 : delay;
191
200
  const animation = this._skeleton.data.findAnimation(name);
192
201
  if (!animation) {
@@ -194,118 +203,115 @@ export class SkeletonAnimation extends Skeleton {
194
203
  return null;
195
204
  }
196
205
  return this._state.addAnimationWith(trackIndex, animation, loop, delay);
197
- }
206
+ },
198
207
  /**
199
208
  * Find animation with specified name
200
209
  * @param {String} name
201
- * @returns {spine.Animation|null}
210
+ * @returns {gworld.spine.Animation|null}
202
211
  */
203
- findAnimation(name) {
212
+ findAnimation: function (name) {
204
213
  return this._skeleton.data.findAnimation(name);
205
- }
214
+ },
206
215
  /**
207
216
  * Returns track entry by trackIndex.
208
217
  * @param trackIndex
209
- * @returns {spine.TrackEntry|null}
218
+ * @returns {gworld.spine.TrackEntry|null}
210
219
  */
211
- getCurrent(trackIndex) {
220
+ getCurrent: function (trackIndex) {
212
221
  return this._state.getCurrent(trackIndex);
213
- }
222
+ },
214
223
  /**
215
224
  * Clears all tracks of animation state.
216
225
  */
217
- clearTracks() {
226
+ clearTracks: function () {
218
227
  this._state.clearTracks();
219
- }
228
+ },
220
229
  /**
221
230
  * Clears track of animation state by trackIndex.
222
231
  * @param {Number} trackIndex
223
232
  */
224
- clearTrack(trackIndex) {
233
+ clearTrack: function (trackIndex) {
225
234
  this._state.clearTrack(trackIndex);
226
- }
235
+ },
227
236
  /**
228
237
  * Update will be called automatically every frame if "scheduleUpdate" is called when the node is "live".
229
238
  * It updates animation's state and skeleton's world transform.
230
239
  * @param {Number} dt Delta time since last update
231
240
  * @override
232
241
  */
233
- update(dt) {
234
- super.update(dt);
242
+ update: function (dt) {
243
+ this._super(dt);
235
244
  dt *= this._timeScale;
236
245
  this._renderCmd.setDirtyFlag(cc.Node._dirtyFlags.contentDirty);
237
246
  this._state.update(dt);
238
247
  this._state.apply(this._skeleton);
239
248
  this._skeleton.updateWorldTransform(true);
240
249
  this._renderCmd._updateChild();
241
- }
250
+ },
242
251
  /**
243
252
  * Set the start event listener.
244
253
  * @param {function} listener
245
254
  */
246
- setStartListener(listener) {
255
+ setStartListener: function (listener) {
247
256
  this._listener.startListener = listener;
248
- }
257
+ },
249
258
  /**
250
259
  * Set the interrupt listener
251
260
  * @param {function} listener
252
261
  */
253
- setInterruptListener(listener) {
262
+ setInterruptListener: function (listener) {
254
263
  this._listener.interruptListener = listener;
255
- }
264
+ },
256
265
  /**
257
266
  * Set the end event listener.
258
267
  * @param {function} listener
259
268
  */
260
- setEndListener(listener) {
269
+ setEndListener: function (listener) {
261
270
  this._listener.endListener = listener;
262
- }
271
+ },
263
272
  /**
264
273
  * Set the dispose listener
265
274
  * @param {function} listener
266
275
  */
267
- setDisposeListener(listener) {
276
+ setDisposeListener: function (listener) {
268
277
  this._listener.disposeListener = listener;
269
- }
270
- setCompleteListener(listener) {
278
+ },
279
+ setCompleteListener: function (listener) {
271
280
  this._listener.completeListener = listener;
272
- }
273
- setEventListener(listener) {
281
+ },
282
+ setEventListener: function (listener) {
274
283
  this._listener.eventListener = listener;
275
- }
276
- setTrackStartListener(entry, listener) {
277
- TrackEntryListeners.getListeners(entry).startListener = listener;
278
- }
279
- setTrackInterruptListener(entry, listener) {
280
- TrackEntryListeners.getListeners(entry).interruptListener = listener;
281
- }
282
- setTrackEndListener(entry, listener) {
283
- TrackEntryListeners.getListeners(entry).endListener = listener;
284
- }
285
- setTrackDisposeListener(entry, listener) {
286
- TrackEntryListeners.getListeners(entry).disposeListener = listener;
287
- }
288
- setTrackCompleteListener(entry, listener) {
289
- TrackEntryListeners.getListeners(entry).completeListener = listener;
290
- }
291
- setTrackEventListener(entry, listener) {
292
- TrackEntryListeners.getListeners(entry).eventListener = listener;
293
- }
294
- getState() {
284
+ },
285
+ setTrackStartListener: function (entry, listener) {
286
+ gworld.TrackEntryListeners.getListeners(entry).startListener = listener;
287
+ },
288
+ setTrackInterruptListener: function (entry, listener) {
289
+ gworld.TrackEntryListeners.getListeners(entry).interruptListener = listener;
290
+ },
291
+ setTrackEndListener: function (entry, listener) {
292
+ gworld.TrackEntryListeners.getListeners(entry).endListener = listener;
293
+ },
294
+ setTrackDisposeListener: function (entry, listener) {
295
+ gworld.TrackEntryListeners.getListeners(entry).disposeListener = listener;
296
+ },
297
+ setTrackCompleteListener: function (entry, listener) {
298
+ gworld.TrackEntryListeners.getListeners(entry).completeListener = listener;
299
+ },
300
+ setTrackEventListener: function (entry, listener) {
301
+ gworld.TrackEntryListeners.getListeners(entry).eventListener = listener;
302
+ },
303
+ getState: function () {
295
304
  return this._state;
296
- }
297
- /**
298
- * Creates a skeleton animation object.
299
- * @deprecated since v3.0, please use new SkeletonAnimation(skeletonDataFile, atlasFile, scale) instead.
300
- * @param {spine.SkeletonData|String} skeletonDataFile
301
- * @param {String|spine.Atlas|spine.SkeletonData} atlasFile atlas filename or atlas data or owns SkeletonData
302
- * @param {Number} [scale]
303
- * @returns {SkeletonAnimation}
304
- */
305
- static createWithJsonFile(skeletonDataFile, atlasFile, scale) {
306
- return new SkeletonAnimation(skeletonDataFile, atlasFile, scale);
307
- }
308
- static create(skeletonDataFile, atlasFile, scale) {
309
- return new SkeletonAnimation(skeletonDataFile, atlasFile, scale);
310
- }
311
- }
305
+ },
306
+ });
307
+ /**
308
+ * Creates a skeleton animation object.
309
+ * @deprecated since v3.0, please use new SkeletonAnimation(skeletonDataFile, atlasFile, scale) instead.
310
+ * @param {spine.SkeletonData|String} skeletonDataFile
311
+ * @param {String|spine.Atlas|spine.SkeletonData} atlasFile atlas filename or atlas data or owns SkeletonData
312
+ * @param {Number} [scale] scale can be specified on the JSON or binary loader which will scale the bone positions, image sizes, and animation translations.
313
+ * @returns {gworld.Skeleton}
314
+ */
315
+ SkeletonAnimation.createWithJsonFile = SkeletonAnimation.create = function (skeletonDataFile, atlasFile /* or atlas*/, scale) {
316
+ return new SkeletonAnimation(skeletonDataFile, atlasFile, scale);
317
+ };
@@ -1 +1 @@
1
- {"version":3,"file":"CCSkeletonCanvasRenderCmd.d.ts","sourceRoot":"","sources":["../../src/spine/CCSkeletonCanvasRenderCmd.ts"],"names":[],"mappings":"AA2PA,eAAO,MAAM,eAAe,KAAyB,CAAA"}
1
+ {"version":3,"file":"CCSkeletonCanvasRenderCmd.d.ts","sourceRoot":"","sources":["../../src/spine/CCSkeletonCanvasRenderCmd.ts"],"names":[],"mappings":"AA+PA,eAAO,MAAM,eAAe,KAAyB,CAAA"}
@@ -31,8 +31,7 @@ var gworld = gworld || {};
31
31
  const proto = (gworld.CanvasRenderCmd.prototype = Object.create(cc.Node.CanvasRenderCmd.prototype));
32
32
  proto.constructor = gworld.CanvasRenderCmd;
33
33
  proto.rendering = function (wrapper, scaleX, scaleY) {
34
- const node = this._node;
35
- let i, n, slot, slotNode;
34
+ let node = this._node, i, n, slot, slotNode;
36
35
  wrapper = wrapper || cc._renderContext;
37
36
  const locSkeleton = node._skeleton, drawOrder = locSkeleton.drawOrder;
38
37
  for (i = 0, n = drawOrder.length; i < n; i++) {
@@ -48,8 +47,7 @@ var gworld = gworld || {};
48
47
  return;
49
48
  wrapper.setTransform(this._worldTransform, scaleX, scaleY);
50
49
  wrapper.setGlobalAlpha(1);
51
- let attachment;
52
- const drawingUtil = cc._drawingUtil;
50
+ let attachment, drawingUtil = cc._drawingUtil;
53
51
  if (node._debugSlots) {
54
52
  // Slots.
55
53
  drawingUtil.setDrawColor(0, 0, 255, 255);
@@ -109,8 +107,7 @@ var gworld = gworld || {};
109
107
  };
110
108
  proto._createChildFormSkeletonData = function () {
111
109
  const node = this._node;
112
- const locSkeleton = node._skeleton;
113
- let spriteName, sprite;
110
+ let locSkeleton = node._skeleton, spriteName, sprite;
114
111
  for (let i = 0, n = locSkeleton.slots.length; i < n; i++) {
115
112
  const slot = locSkeleton.slots[i], attachment = slot.attachment;
116
113
  const slotNode = new cc.Node();
@@ -1,25 +1,2 @@
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
- export declare const SkeletonTexture: (image: any) => void;
1
+ export declare const SkeletonTexture: any;
25
2
  //# sourceMappingURL=CCSkeletonTexture.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"CCSkeletonTexture.d.ts","sourceRoot":"","sources":["../../src/spine/CCSkeletonTexture.ts"],"names":[],"mappings":"AACA;;;;;;;;;;;;;;;;;;;;;;8EAsB8E;AAE9E,eAAO,MAAM,eAAe,GAAa,UAAK,SAE7C,CAAA"}
1
+ {"version":3,"file":"CCSkeletonTexture.d.ts","sourceRoot":"","sources":["../../src/spine/CCSkeletonTexture.ts"],"names":[],"mappings":"AAoEA,eAAO,MAAM,eAAe,KAAyB,CAAA"}
@@ -22,11 +22,12 @@ import * as spine from '@esotericsoftware/spine-core';
22
22
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
23
23
  THE SOFTWARE.
24
24
  ****************************************************************************/
25
- export const SkeletonTexture = function (image) {
26
- // spine.Texture.call(this, image)
25
+ var gworld = gworld || {};
26
+ gworld.SkeletonTexture = function (image) {
27
+ // spine.Texture.call(this, image);
27
28
  };
28
- cc.inherits(SkeletonTexture, spine.Texture);
29
- cc.extend(SkeletonTexture.prototype, {
29
+ cc.inherits(gworld.SkeletonTexture, spine.Texture);
30
+ cc.extend(gworld.SkeletonTexture.prototype, {
30
31
  name: 'gworld.SkeletonTexture',
31
32
  _texture: null,
32
33
  setRealTexture: function (tex) {
@@ -58,3 +59,4 @@ cc.extend(SkeletonTexture.prototype, {
58
59
  }
59
60
  },
60
61
  });
62
+ export const SkeletonTexture = gworld.SkeletonTexture;
@@ -1,28 +1,2 @@
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
- };
1
+ export declare const WebGLRenderCmd: any;
28
2
  //# sourceMappingURL=CCSkeletonWebGLRenderCmd.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"CCSkeletonWebGLRenderCmd.d.ts","sourceRoot":"","sources":["../../src/spine/CCSkeletonWebGLRenderCmd.ts"],"names":[],"mappings":"AACA;;;;;;;;;;;;;;;;;;;;;;8EAsB8E;AAE9E,eAAO,MAAM,cAAc;;;CAS1B,CAAA"}
1
+ {"version":3,"file":"CCSkeletonWebGLRenderCmd.d.ts","sourceRoot":"","sources":["../../src/spine/CCSkeletonWebGLRenderCmd.ts"],"names":[],"mappings":"AAyWA,eAAO,MAAM,cAAc,KAAwB,CAAA"}