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