@safe-engine/cocos 1.6.2 → 1.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 (36) hide show
  1. package/dist/box2d-wasm/PhysicsComponent.d.ts +4 -0
  2. package/dist/box2d-wasm/PhysicsComponent.d.ts.map +1 -1
  3. package/dist/box2d-wasm/PhysicsComponent.js +28 -0
  4. package/dist/box2d-wasm/PhysicsSystem.d.ts +2 -1
  5. package/dist/box2d-wasm/PhysicsSystem.d.ts.map +1 -1
  6. package/dist/box2d-wasm/PhysicsSystem.js +33 -33
  7. package/dist/box2d-wasm/index.d.ts +2 -2
  8. package/dist/box2d-wasm/index.d.ts.map +1 -1
  9. package/dist/box2d-wasm/index.js +4 -1
  10. package/dist/dragonbones/cocos/CocosArmatureDisplay.d.ts +77 -0
  11. package/dist/dragonbones/cocos/CocosArmatureDisplay.d.ts.map +1 -0
  12. package/dist/dragonbones/cocos/CocosArmatureDisplay.js +227 -0
  13. package/dist/dragonbones/cocos/CocosFactory.d.ts +128 -0
  14. package/dist/dragonbones/cocos/CocosFactory.d.ts.map +1 -0
  15. package/dist/dragonbones/cocos/CocosFactory.js +231 -0
  16. package/dist/dragonbones/cocos/CocosSlot.d.ts +49 -0
  17. package/dist/dragonbones/cocos/CocosSlot.d.ts.map +1 -0
  18. package/dist/dragonbones/cocos/CocosSlot.js +385 -0
  19. package/dist/dragonbones/cocos/CocosTextureAtlasData.d.ts +53 -0
  20. package/dist/dragonbones/cocos/CocosTextureAtlasData.d.ts.map +1 -0
  21. package/dist/dragonbones/cocos/CocosTextureAtlasData.js +158 -0
  22. package/dist/dragonbones/dragonBones.d.ts +3 -0
  23. package/dist/dragonbones/dragonBones.d.ts.map +1 -0
  24. package/dist/dragonbones/dragonBones.js +4788 -0
  25. package/dist/gworld/components/AnimationComponent.d.ts +2 -2
  26. package/dist/gworld/components/CollideComponent.d.ts +3 -3
  27. package/dist/gworld/systems/CollideSystem.d.ts +2 -1
  28. package/dist/gworld/systems/CollideSystem.d.ts.map +1 -1
  29. package/dist/gworld/systems/CollideSystem.js +12 -2
  30. package/dist/helper/NodePool.d.ts +9 -0
  31. package/dist/helper/NodePool.d.ts.map +1 -0
  32. package/dist/helper/NodePool.js +29 -0
  33. package/dist/index.d.ts +0 -1
  34. package/dist/index.d.ts.map +1 -1
  35. package/dist/index.js +0 -1
  36. package/package.json +1 -1
@@ -18,6 +18,10 @@ interface RigidBodyProps {
18
18
  export declare class RigidBody extends NoRenderComponentX<RigidBodyProps> {
19
19
  body: Box2D.b2Body;
20
20
  physicSprite: PhysicsSprite;
21
+ set linearVelocity(vel: Vec2);
22
+ get linearVelocity(): Vec2;
23
+ set position(pos: Vec2);
24
+ get position(): Vec2;
21
25
  }
22
26
  interface BoxColliderPhysicsProps {
23
27
  width: number;
@@ -1 +1 @@
1
- {"version":3,"file":"PhysicsComponent.d.ts","sourceRoot":"","sources":["../../src/box2d-wasm/PhysicsComponent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAA;AAC7D,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAA;AACnC,OAAO,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAA;AAC7C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAE/C,UAAU,cAAc;IACtB,IAAI,CAAC,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAA;IAChB,OAAO,CAAC,EAAE,KAAK,CAAA;IACf,WAAW,CAAC,EAAE,KAAK,CAAA;IACnB,QAAQ,CAAC,EAAE,KAAK,CAAA;IAChB,YAAY,CAAC,EAAE,KAAK,CAAA;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,cAAc,CAAC,EAAE,CAAC,KAAK,EAAE,SAAS,KAAK,IAAI,CAAA;IAC3C,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE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AQ,kBAAkB,CAAC,uBAAuB,GAAG,kBAAkB,CAAC,kBAAkB,CAAC,CAAC;CAS3H;AACD,UAAU,0BAA0B;IAClC,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CAC1B;AACD,qBAAa,qBAAsB,SAAQ,kBAAkB,CAAC,0BAA0B,GAAG,kBAAkB,CAAC,qBAAqB,CAAC,CAAC;CAAG;AACxI,UAAU,2BAA2B;IACnC,MAAM,EAAE,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,CAAA;IACxC,MAAM,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CAC1B;AACD,qBAAa,sBAAuB,SAAQ,kBAAkB,CAAC,2BAA2B,GAAG,kBAAkB,CAAC,sBAAsB,CAAC,CAAC;CAAG"}
@@ -1,7 +1,35 @@
1
1
  import { NoRenderComponentX } from '../gworld/core/decorator';
2
+ import { Vec2 } from '../polyfills';
3
+ import { box2D } from './PhysicsSystem';
2
4
  export class RigidBody extends NoRenderComponentX {
3
5
  body;
4
6
  physicSprite;
7
+ set linearVelocity(vel) {
8
+ if (!this.node) {
9
+ return;
10
+ }
11
+ this.physicSprite.getBody().SetLinearVelocity(new box2D.b2Vec2(vel.x, vel.y));
12
+ }
13
+ get linearVelocity() {
14
+ if (!this.node) {
15
+ return Vec2.ZERO;
16
+ }
17
+ const vel = this.physicSprite.getBody().GetLinearVelocity();
18
+ return Vec2(vel);
19
+ }
20
+ set position(pos) {
21
+ this.physicSprite.node.setPosition(pos.x, pos.y);
22
+ const physicsPos = new box2D.b2Vec2(pos.x, pos.y);
23
+ // console.log('SetTransform', pos, physicsPos)
24
+ const body = this.physicSprite.getBody();
25
+ body.SetLinearVelocity(new box2D.b2Vec2(0, 0));
26
+ body.SetAngularVelocity(0);
27
+ body.SetAwake(true);
28
+ body.SetTransform(physicsPos, this.node.rotation);
29
+ }
30
+ get position() {
31
+ return Vec2(this.physicSprite.getBody().GetPosition());
32
+ }
5
33
  }
6
34
  export class PhysicsBoxCollider extends NoRenderComponentX {
7
35
  }
@@ -1,4 +1,5 @@
1
1
  import { EntityManager, EventManager, System } from 'entityx-ts';
2
+ import { Vec2 } from '..';
2
3
  export declare const DynamicBody = 2;
3
4
  export declare const KinematicBody = 1;
4
5
  export declare const StaticBody = 0;
@@ -14,6 +15,6 @@ export declare class PhysicsSystem implements System {
14
15
  addDebug(): void;
15
16
  configure(event_manager: EventManager): void;
16
17
  update(entities: EntityManager, events: EventManager, dt: number): void;
17
- set enabled(val: any);
18
+ set gravity(val: Vec2);
18
19
  }
19
20
  //# sourceMappingURL=PhysicsSystem.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"PhysicsSystem.d.ts","sourceRoot":"","sources":["../../src/box2d-wasm/PhysicsSystem.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,YAAY,EAAc,MAAM,EAAE,MAAM,YAAY,CAAA;AAQ5E,eAAO,MAAM,WAAW,IAAI,CAAA;AAC5B,eAAO,MAAM,aAAa,IAAI,CAAA;AAC9B,eAAO,MAAM,UAAU,IAAI,CAAA;AAC3B,eAAO,IAAI,KAAK,EAAE,OAAO,KAAK,CAAA;AAE9B,wBAAgB,SAAS,CAAC,EAAE,KAAA,QAK3B;AASD,wBAAgB,iBAAiB,CAAC,cAAc,cAAW,QAG1D;AAOD,qBAAa,aAAc,YAAW,MAAM;IAC1C,KAAK,EAAE,KAAK,CAAC,OAAO,CAAA;IACpB,cAAc,EAAE,KAAK,CAAC,MAAM,EAAE,CAAK;IACnC,eAAe,EAAE,KAAK,CAAC,OAAO,EAAE,CAAK;IACrC,cAAc,cAAW;IACzB,QAAQ,EAAE,EAAE,CAAC,QAAQ,CAAA;IAErB,QAAQ;IAKR,SAAS,CAAC,aAAa,EAAE,YAAY;IA2JrC,MAAM,CAAC,QAAQ,EAAE,aAAa,EAAE,MAAM,EAAE,YAAY,EAAE,EAAE,EAAE,MAAM;IAwBhE,IAAI,OAAO,CAAC,GAAG,KAAA,EAMd;CACF"}
1
+ {"version":3,"file":"PhysicsSystem.d.ts","sourceRoot":"","sources":["../../src/box2d-wasm/PhysicsSystem.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,YAAY,EAAc,MAAM,EAAE,MAAM,YAAY,CAAA;AAE5E,OAAO,EAAoC,IAAI,EAAE,MAAM,IAAI,CAAA;AAM3D,eAAO,MAAM,WAAW,IAAI,CAAA;AAC5B,eAAO,MAAM,aAAa,IAAI,CAAA;AAC9B,eAAO,MAAM,UAAU,IAAI,CAAA;AAC3B,eAAO,IAAI,KAAK,EAAE,OAAO,KAAK,CAAA;AAE9B,wBAAgB,SAAS,CAAC,EAAE,KAAA,QAK3B;AASD,wBAAgB,iBAAiB,CAAC,cAAc,cAAW,QAG1D;AAOD,qBAAa,aAAc,YAAW,MAAM;IAC1C,KAAK,EAAE,KAAK,CAAC,OAAO,CAAA;IACpB,cAAc,EAAE,KAAK,CAAC,MAAM,EAAE,CAAK;IACnC,eAAe,EAAE,KAAK,CAAC,OAAO,EAAE,CAAK;IACrC,cAAc,cAAW;IACzB,QAAQ,EAAE,EAAE,CAAC,QAAQ,CAAA;IAErB,QAAQ;IAKR,SAAS,CAAC,aAAa,EAAE,YAAY;IA4JrC,MAAM,CAAC,QAAQ,EAAE,aAAa,EAAE,MAAM,EAAE,YAAY,EAAE,EAAE,EAAE,MAAM;IAwBhE,IAAI,OAAO,CAAC,GAAG,EAAE,IAAI,EAIpB;CACF"}
@@ -51,47 +51,48 @@ export class PhysicsSystem {
51
51
  const scene = cc.director.getRunningScene();
52
52
  scene.addChild(graphics);
53
53
  event_manager.subscribe(EventTypes.ComponentAdded, PhysicsBoxCollider, ({ entity, component }) => {
54
- console.log('ComponentAddedEvent PhysicsBoxCollider', component);
54
+ // console.log('ComponentAddedEvent PhysicsBoxCollider', component)
55
55
  let rigidBody = entity.getComponent(RigidBody);
56
+ const box = component;
57
+ const { width, height, offset = [] } = box.props;
58
+ const node = entity.getComponent(NodeComp);
59
+ const zero = new b2Vec2(0, 0);
56
60
  if (!rigidBody) {
57
61
  rigidBody = instantiate(RigidBody);
58
62
  entity.assign(rigidBody);
63
+ const { type = StaticBody, gravityScale = 1 } = rigidBody.props;
64
+ const bd = new b2BodyDef();
65
+ bd.set_type(type);
66
+ bd.set_position(zero);
67
+ bd.set_gravityScale(gravityScale);
68
+ const body = this.world.CreateBody(bd);
69
+ rigidBody.body = body;
70
+ const physicsNode = new PhysicsSprite(node.instance, rigidBody.body);
71
+ rigidBody.physicSprite = physicsNode;
72
+ rigidBody.node = node;
59
73
  }
60
- const { type = StaticBody, gravityScale = 1, density = 1, friction = 0.5, restitution = 0.3 } = rigidBody.props;
61
- const box = component;
62
- const node = entity.getComponent(NodeComp);
63
- const { width, height, offset = [] } = box.props;
64
- const [x = 0, y = 0] = offset;
65
- const zero = new b2Vec2(0, 0);
66
- const position = new b2Vec2(node.posX, node.posY);
67
- const bd = new b2BodyDef();
68
- bd.set_type(type);
69
- bd.set_position(zero);
70
- bd.set_gravityScale(gravityScale);
71
- const body = this.world.CreateBody(bd);
72
- rigidBody.body = body;
74
+ const { density = 1, friction = 0.5, restitution = 0.3 } = rigidBody.props;
73
75
  // console.log('body', type, b2_dynamicBody, b2_staticBody, getPointer(body));
74
76
  // body.setMassData({ mass: 1 } as any)
75
- const physicsNode = new PhysicsSprite(node.instance, body);
77
+ const position = new b2Vec2(node.posX, node.posY);
76
78
  const square = new b2PolygonShape();
79
+ const [x = 0, y = 0] = offset;
77
80
  square.SetAsBox(width / 2, height / 2, new b2Vec2(x, y), 0);
78
81
  const fixtureDef = new b2FixtureDef();
79
82
  fixtureDef.set_shape(square);
80
83
  fixtureDef.set_density(density);
81
84
  fixtureDef.set_friction(friction);
82
85
  fixtureDef.set_restitution(restitution);
83
- body.CreateFixture(fixtureDef);
84
- body.SetTransform(position, 0);
85
- body.SetLinearVelocity(zero);
86
- body.SetAwake(true);
87
- body.SetEnabled(true);
88
- metadata[getPointer(body)] = node;
89
- rigidBody.physicSprite = physicsNode;
90
- rigidBody.node = node;
86
+ rigidBody.body.CreateFixture(fixtureDef);
87
+ rigidBody.body.SetTransform(position, 0);
88
+ rigidBody.body.SetLinearVelocity(zero);
89
+ rigidBody.body.SetAwake(true);
90
+ rigidBody.body.SetEnabled(true);
91
+ metadata[getPointer(rigidBody.body)] = node;
91
92
  box.node = node;
92
93
  });
93
94
  event_manager.subscribe(EventTypes.ComponentAdded, PhysicsCircleCollider, ({ entity, component }) => {
94
- console.log('ComponentAddedEvent PhysicsCircleCollider', component);
95
+ // console.log('ComponentAddedEvent PhysicsCircleCollider', component)
95
96
  let rigidBody = entity.getComponent(RigidBody);
96
97
  if (!rigidBody) {
97
98
  rigidBody = instantiate(RigidBody);
@@ -131,7 +132,7 @@ export class PhysicsSystem {
131
132
  component.node = node;
132
133
  });
133
134
  event_manager.subscribe(EventTypes.ComponentAdded, PhysicsPolygonCollider, ({ entity, component }) => {
134
- console.log('ComponentAddedEvent PhysicsPolygonCollider', component);
135
+ // console.log('ComponentAddedEvent PhysicsPolygonCollider', component)
135
136
  let rigidBody = entity.getComponent(RigidBody);
136
137
  if (!rigidBody) {
137
138
  rigidBody = instantiate(RigidBody);
@@ -157,10 +158,11 @@ export class PhysicsSystem {
157
158
  const polygonShape = new b2PolygonShape();
158
159
  const fixedPoints = points.map((p) => {
159
160
  if (p.x)
160
- return Vec2(p.x + x - width * anchorX * scaleX, p.y + y - height * scaleY * anchorY);
161
- return Vec2(p[0] + x - width * anchorX * scaleX, p[1] + y - height * scaleY * anchorY);
161
+ return Vec2(p.x + x - width * anchorX * scaleX, -p.y + y + height * scaleY * anchorY);
162
+ return Vec2(p[0] + x - width * anchorX * scaleX, -p[1] + y + height * scaleY * anchorY);
162
163
  });
163
164
  const [vecArr, destroyVecArr] = pointsToVec2Array(fixedPoints);
165
+ // console.log('vecArr', vecArr, vecArr.Length())
164
166
  polygonShape.Set(vecArr, points.length);
165
167
  destroyVecArr();
166
168
  const fixtureDef = new b2FixtureDef();
@@ -212,11 +214,9 @@ export class PhysicsSystem {
212
214
  // console.log('GetBodyCount', this.world.GetBodyCount())
213
215
  }
214
216
  }
215
- set enabled(val) {
216
- if (val) {
217
- this.world.SetGravity(new Box2D.b2Vec2(0, -9.8));
218
- // this.world.iterations = 60
219
- // this.world.collisionSlop = 0.5
220
- }
217
+ set gravity(val) {
218
+ this.world.SetGravity(new box2D.b2Vec2(val.x, val.y));
219
+ // this.world.iterations = 60
220
+ // this.world.collisionSlop = 0.5
221
221
  }
222
222
  }
@@ -1,6 +1,6 @@
1
- import { GameWorld } from '..';
1
+ import { GameWorld, Vec2 } from '..';
2
2
  export * from './PhysicsComponent';
3
3
  export * from './PhysicsSprite';
4
4
  export * from './PhysicsSystem';
5
- export declare function setupPhysics(world?: GameWorld, isDebugDraw?: any): void;
5
+ export declare function setupPhysics(world?: GameWorld, isDebugDraw?: boolean, gravity?: Vec2): void;
6
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/box2d-wasm/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,IAAI,CAAA;AAG9B,cAAc,oBAAoB,CAAA;AAClC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,iBAAiB,CAAA;AAE/B,wBAAgB,YAAY,CAAC,KAAK,YAAqB,EAAE,WAAW,CAAC,KAAA,QAOpE"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/box2d-wasm/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,IAAI,CAAA;AAGpC,cAAc,oBAAoB,CAAA;AAClC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,iBAAiB,CAAA;AAE/B,wBAAgB,YAAY,CAAC,KAAK,YAAqB,EAAE,WAAW,CAAC,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,IAAI,QAU7F"}
@@ -3,11 +3,14 @@ import { PhysicsSystem } from './PhysicsSystem';
3
3
  export * from './PhysicsComponent';
4
4
  export * from './PhysicsSprite';
5
5
  export * from './PhysicsSystem';
6
- export function setupPhysics(world = GameWorld.Instance, isDebugDraw) {
6
+ export function setupPhysics(world = GameWorld.Instance, isDebugDraw, gravity) {
7
7
  world.systems.add(PhysicsSystem);
8
8
  world.systems.configureOnce(PhysicsSystem);
9
9
  world.listUpdate.push(PhysicsSystem);
10
10
  if (isDebugDraw) {
11
11
  world.systems.get(PhysicsSystem).addDebug();
12
12
  }
13
+ if (gravity) {
14
+ world.systems.get(PhysicsSystem).gravity = gravity;
15
+ }
13
16
  }
@@ -0,0 +1,77 @@
1
+ /**
2
+ * The MIT License (MIT)
3
+ *
4
+ * Copyright (c) 2012-2018 DragonBones team and other contributors
5
+ *
6
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of
7
+ * this software and associated documentation files (the "Software"), to deal in
8
+ * the Software without restriction, including without limitation the rights to
9
+ * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
10
+ * the Software, and to permit persons to whom the Software is furnished to do so,
11
+ * subject to the following conditions:
12
+ *
13
+ * The above copyright notice and this permission notice shall be included in all
14
+ * 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, FITNESS
18
+ * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
19
+ * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
20
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
21
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22
+ */
23
+ import { Armature, EventObject, EventStringType, IArmatureProxy } from '@cocos/dragonbones-js';
24
+ export declare class CocosArmatureDisplay extends cc.Sprite implements IArmatureProxy {
25
+ /**
26
+ * @private
27
+ */
28
+ debugDraw: boolean;
29
+ private _debugDraw;
30
+ private _armature;
31
+ private _debugDrawer;
32
+ /**
33
+ * @inheritDoc
34
+ */
35
+ dbInit(armature: Armature): void;
36
+ /**
37
+ * @inheritDoc
38
+ */
39
+ dbClear(): void;
40
+ /**
41
+ * @inheritDoc
42
+ */
43
+ dbUpdate(): void;
44
+ /**
45
+ * @inheritDoc
46
+ */
47
+ dispose(disposeProxy?: boolean): void;
48
+ /**
49
+ * @inheritDoc
50
+ */
51
+ destroy(): void;
52
+ /**
53
+ * @private
54
+ */
55
+ dispatchDBEvent(type: EventStringType, eventObject: EventObject): void;
56
+ /**
57
+ * @inheritDoc
58
+ */
59
+ hasDBEventListener(type: EventStringType): boolean;
60
+ /**
61
+ * @inheritDoc
62
+ */
63
+ addDBEventListener(type: EventStringType, listener: (event: EventObject) => void, target: any): void;
64
+ /**
65
+ * @inheritDoc
66
+ */
67
+ removeDBEventListener(type: EventStringType, listener: (event: EventObject) => void, target: any): void;
68
+ /**
69
+ * @inheritDoc
70
+ */
71
+ get armature(): Armature;
72
+ /**
73
+ * @inheritDoc
74
+ */
75
+ get animation(): Animation;
76
+ }
77
+ //# sourceMappingURL=CocosArmatureDisplay.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CocosArmatureDisplay.d.ts","sourceRoot":"","sources":["../../../src/dragonbones/cocos/CocosArmatureDisplay.ts"],"names":[],"mappings":"AACA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,OAAO,EAAE,QAAQ,EAAgC,WAAW,EAAE,eAAe,EAAE,cAAc,EAA0B,MAAM,uBAAuB,CAAC;AAErJ,qBAAa,oBAAqB,SAAQ,EAAE,CAAC,MAAO,YAAW,cAAc;IAC3E;;OAEG;IACI,SAAS,UAAS;IACzB,OAAO,CAAC,UAAU,CAAS;IAE3B,OAAO,CAAC,SAAS,CAAyB;IAC1C,OAAO,CAAC,YAAY,CAA0B;IAC9C;;OAEG;IACI,MAAM,CAAC,QAAQ,EAAE,QAAQ,GAAG,IAAI;IAGvC;;OAEG;IACI,OAAO,IAAI,IAAI;IAUtB;;OAEG;IACI,QAAQ,IAAI,IAAI;IAyGvB;;OAEG;IACI,OAAO,CAAC,YAAY,UAAO,GAAG,IAAI;IAQzC;;OAEG;IACI,OAAO,IAAI,IAAI;IAGtB;;OAEG;IACI,eAAe,CAAC,IAAI,EAAE,eAAe,EAAE,WAAW,EAAE,WAAW,GAAG,IAAI;IAG7E;;OAEG;IACI,kBAAkB,CAAC,IAAI,EAAE,eAAe,GAAG,OAAO;IAIzD;;OAEG;IACI,kBAAkB,CAAC,IAAI,EAAE,eAAe,EAAE,QAAQ,EAAE,CAAC,KAAK,EAAE,WAAW,KAAK,IAAI,EAAE,MAAM,EAAE,GAAG,GAAG,IAAI;IAG3G;;OAEG;IACI,qBAAqB,CAAC,IAAI,EAAE,eAAe,EAAE,QAAQ,EAAE,CAAC,KAAK,EAAE,WAAW,KAAK,IAAI,EAAE,MAAM,EAAE,GAAG,GAAG,IAAI;IAG9G;;OAEG;IACH,IAAW,QAAQ,IAAI,QAAQ,CAE9B;IACD;;OAEG;IACH,IAAW,SAAS,IAAI,SAAS,CAEhC;CACF"}
@@ -0,0 +1,227 @@
1
+ "use strict";
2
+ // @ts-nocheck
3
+ /**
4
+ * The MIT License (MIT)
5
+ *
6
+ * Copyright (c) 2012-2018 DragonBones team and other contributors
7
+ *
8
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of
9
+ * this software and associated documentation files (the "Software"), to deal in
10
+ * the Software without restriction, including without limitation the rights to
11
+ * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
12
+ * the Software, and to permit persons to whom the Software is furnished to do so,
13
+ * subject to the following conditions:
14
+ *
15
+ * The above copyright notice and this permission notice shall be included in all
16
+ * copies or substantial portions of the Software.
17
+ *
18
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
20
+ * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
21
+ * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
22
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
23
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
24
+ */
25
+ var __extends = (this && this.__extends) || (function () {
26
+ var extendStatics = function (d, b) {
27
+ extendStatics = Object.setPrototypeOf ||
28
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
29
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
30
+ return extendStatics(d, b);
31
+ };
32
+ return function (d, b) {
33
+ if (typeof b !== "function" && b !== null)
34
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
35
+ extendStatics(d, b);
36
+ function __() { this.constructor = d; }
37
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
38
+ };
39
+ })();
40
+ Object.defineProperty(exports, "__esModule", { value: true });
41
+ exports.CocosArmatureDisplay = void 0;
42
+ var dragonbones_js_1 = require("@cocos/dragonbones-js");
43
+ var CocosArmatureDisplay = /** @class */ (function (_super) {
44
+ __extends(CocosArmatureDisplay, _super);
45
+ function CocosArmatureDisplay() {
46
+ var _this = _super !== null && _super.apply(this, arguments) || this;
47
+ /**
48
+ * @private
49
+ */
50
+ _this.debugDraw = false;
51
+ _this._debugDraw = false;
52
+ // private _disposeProxy: boolean = false;
53
+ _this._armature = null;
54
+ _this._debugDrawer = null;
55
+ return _this;
56
+ }
57
+ /**
58
+ * @inheritDoc
59
+ */
60
+ CocosArmatureDisplay.prototype.dbInit = function (armature) {
61
+ this._armature = armature;
62
+ };
63
+ /**
64
+ * @inheritDoc
65
+ */
66
+ CocosArmatureDisplay.prototype.dbClear = function () {
67
+ if (this._debugDrawer !== null) {
68
+ this._debugDrawer.removeFromParent();
69
+ }
70
+ this._armature = null;
71
+ this._debugDrawer = null;
72
+ _super.prototype.removeFromParent.call(this);
73
+ };
74
+ /**
75
+ * @inheritDoc
76
+ */
77
+ CocosArmatureDisplay.prototype.dbUpdate = function () {
78
+ var drawed = dragonbones_js_1.DragonBones.debugDraw || this.debugDraw;
79
+ if (drawed || this._debugDraw) {
80
+ this._debugDraw = drawed;
81
+ if (this._debugDraw) {
82
+ if (this._debugDrawer === null) {
83
+ this._debugDrawer = new cc.Sprite();
84
+ var boneDrawer_1 = new cc.DrawNode();
85
+ this._debugDrawer.addChild(boneDrawer_1);
86
+ }
87
+ this.addChild(this._debugDrawer);
88
+ var boneDrawer = this._debugDrawer.children[0];
89
+ boneDrawer.clear();
90
+ var bones = this._armature.getBones();
91
+ for (var i = 0, l = bones.length; i < l; ++i) {
92
+ var bone = bones[i];
93
+ var boneLength = bone.boneData.length;
94
+ var startX = bone.globalTransformMatrix.tx;
95
+ var startY = bone.globalTransformMatrix.ty;
96
+ var endX = startX + bone.globalTransformMatrix.a * boneLength;
97
+ var endY = startY + bone.globalTransformMatrix.b * boneLength;
98
+ boneDrawer.setLineWidth(2.0);
99
+ boneDrawer.setColor(cc.color('0x00FFFF'));
100
+ boneDrawer.drawSegment(cc.p(startX, startY), cc.p(endX, endY));
101
+ // boneDrawer.lineStyle(0.0, 0, 0.0);
102
+ // boneDrawer.beginFill(0x00FFFF, 0.7);
103
+ boneDrawer.drawCircle(cc.p(startX, startY), 3.0, Math.PI * 2, 64);
104
+ // boneDrawer.endFill();
105
+ }
106
+ var slots = this._armature.getSlots();
107
+ for (var i = 0, l = slots.length; i < l; ++i) {
108
+ var slot = slots[i];
109
+ var boundingBoxData = slot.boundingBoxData;
110
+ if (boundingBoxData) {
111
+ var child = this._debugDrawer.getChildByName(slot.name);
112
+ if (!child) {
113
+ child = new cc.DrawNode();
114
+ child.name = slot.name;
115
+ this._debugDrawer.addChild(child);
116
+ }
117
+ child.clear();
118
+ child.lineStyle(2.0, 0xFF00FF, 0.7);
119
+ switch (boundingBoxData.type) {
120
+ case dragonbones_js_1.BoundingBoxType.Rectangle:
121
+ child.drawRect(-boundingBoxData.width * 0.5, -boundingBoxData.height * 0.5, boundingBoxData.width, boundingBoxData.height);
122
+ break;
123
+ case dragonbones_js_1.BoundingBoxType.Ellipse:
124
+ child.drawEllipse(-boundingBoxData.width * 0.5, -boundingBoxData.height * 0.5, boundingBoxData.width, boundingBoxData.height);
125
+ break;
126
+ case dragonbones_js_1.BoundingBoxType.Polygon:
127
+ var vertices = boundingBoxData.vertices;
128
+ for (var i_1 = 0, l_1 = vertices.length; i_1 < l_1; i_1 += 2) {
129
+ var x = vertices[i_1];
130
+ var y = vertices[i_1 + 1];
131
+ if (i_1 === 0) {
132
+ child.moveTo(x, y);
133
+ }
134
+ else {
135
+ child.lineTo(x, y);
136
+ }
137
+ }
138
+ child.lineTo(vertices[0], vertices[1]);
139
+ break;
140
+ default:
141
+ break;
142
+ }
143
+ child.endFill();
144
+ slot.updateTransformAndMatrix();
145
+ slot.updateGlobalTransform();
146
+ var transform = slot.global;
147
+ child.setTransform(transform.x, transform.y, transform.scaleX, transform.scaleY, transform.rotation, transform.skew, 0.0, slot._pivotX, slot._pivotY);
148
+ }
149
+ else {
150
+ var child = this._debugDrawer.getChildByName(slot.name);
151
+ if (child) {
152
+ this._debugDrawer.removeChild(child);
153
+ }
154
+ }
155
+ }
156
+ }
157
+ else if (this._debugDrawer !== null && this._debugDrawer.parent === this) {
158
+ this.removeChild(this._debugDrawer);
159
+ }
160
+ }
161
+ };
162
+ /**
163
+ * @inheritDoc
164
+ */
165
+ CocosArmatureDisplay.prototype.dispose = function (disposeProxy) {
166
+ if (disposeProxy === void 0) { disposeProxy = true; }
167
+ // tslint:disable-next-line:no-unused-expression
168
+ disposeProxy;
169
+ if (this._armature !== null) {
170
+ this._armature.dispose();
171
+ this._armature = null;
172
+ }
173
+ };
174
+ /**
175
+ * @inheritDoc
176
+ */
177
+ CocosArmatureDisplay.prototype.destroy = function () {
178
+ this.dispose();
179
+ };
180
+ /**
181
+ * @private
182
+ */
183
+ CocosArmatureDisplay.prototype.dispatchDBEvent = function (type, eventObject) {
184
+ this.emit(type, eventObject);
185
+ };
186
+ /**
187
+ * @inheritDoc
188
+ */
189
+ CocosArmatureDisplay.prototype.hasDBEventListener = function (type) {
190
+ // return this.listenerCount(type) > 0;
191
+ return false;
192
+ };
193
+ /**
194
+ * @inheritDoc
195
+ */
196
+ CocosArmatureDisplay.prototype.addDBEventListener = function (type, listener, target) {
197
+ this.addListener(type, listener, target);
198
+ };
199
+ /**
200
+ * @inheritDoc
201
+ */
202
+ CocosArmatureDisplay.prototype.removeDBEventListener = function (type, listener, target) {
203
+ this.removeListener(type, listener, target);
204
+ };
205
+ Object.defineProperty(CocosArmatureDisplay.prototype, "armature", {
206
+ /**
207
+ * @inheritDoc
208
+ */
209
+ get: function () {
210
+ return this._armature;
211
+ },
212
+ enumerable: false,
213
+ configurable: true
214
+ });
215
+ Object.defineProperty(CocosArmatureDisplay.prototype, "animation", {
216
+ /**
217
+ * @inheritDoc
218
+ */
219
+ get: function () {
220
+ return this._armature.animation;
221
+ },
222
+ enumerable: false,
223
+ configurable: true
224
+ });
225
+ return CocosArmatureDisplay;
226
+ }(cc.Sprite));
227
+ exports.CocosArmatureDisplay = CocosArmatureDisplay;
@@ -0,0 +1,128 @@
1
+ /**
2
+ * The MIT License (MIT)
3
+ *
4
+ * Copyright (c) 2012-2018 DragonBones team and other contributors
5
+ *
6
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of
7
+ * this software and associated documentation files (the "Software"), to deal in
8
+ * the Software without restriction, including without limitation the rights to
9
+ * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
10
+ * the Software, and to permit persons to whom the Software is furnished to do so,
11
+ * subject to the following conditions:
12
+ *
13
+ * The above copyright notice and this permission notice shall be included in all
14
+ * 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, FITNESS
18
+ * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
19
+ * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
20
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
21
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22
+ */
23
+ import { Armature, BaseFactory, BuildArmaturePackage, DataParser, Slot, SlotData } from '@cocos/dragonbones-js';
24
+ import { CocosArmatureDisplay } from './CocosArmatureDisplay';
25
+ import { CocosTextureAtlasData } from './CocosTextureAtlasData';
26
+ /**
27
+ * - The PixiJS factory.
28
+ * @version DragonBones 3.0
29
+ * @language en_US
30
+ */
31
+ /**
32
+ * - PixiJS 工厂。
33
+ * @version DragonBones 3.0
34
+ * @language zh_CN
35
+ */
36
+ export declare class CocosFactory extends BaseFactory {
37
+ private static _dragonBonesInstance;
38
+ private static _factory;
39
+ private static _clockHandler;
40
+ static advanceTime(passedTime: number): void;
41
+ static useSharedTicker: boolean;
42
+ /**
43
+ * - A global factory instance that can be used directly.
44
+ * @version DragonBones 4.7
45
+ * @language en_US
46
+ */
47
+ /**
48
+ * - 一个可以直接使用的全局工厂实例。
49
+ * @version DragonBones 4.7
50
+ * @language zh_CN
51
+ */
52
+ static get factory(): CocosFactory;
53
+ /**
54
+ * - 一个获取全局工厂实例(单例)的方法, 和get factory相比, 优点是可以传参数。
55
+ * @version DragonBones 4.7
56
+ * @language zh_CN
57
+ */
58
+ static newInstance(useSharedTicker?: boolean): CocosFactory;
59
+ /**
60
+ * @inheritDoc
61
+ */
62
+ constructor(dataParser?: DataParser | null, useSharedTicker?: boolean);
63
+ protected _buildTextureAtlasData(textureAtlasData: CocosTextureAtlasData | null, textureAtlas: cc.Texture2D | null): CocosTextureAtlasData;
64
+ protected _buildArmature(dataPackage: BuildArmaturePackage): Armature;
65
+ protected _buildSlot(_dataPackage: BuildArmaturePackage, slotData: SlotData, armature: Armature): Slot;
66
+ /**
67
+ * - Create a armature from cached DragonBonesData instances and TextureAtlasData instances, then use the {@link #clock} to update it.
68
+ * The difference is that the armature created by {@link #buildArmature} is not WorldClock instance update.
69
+ * @param armatureName - The armature data name.
70
+ * @param dragonBonesName - The cached name of the DragonBonesData instance. (If not set, all DragonBonesData instances are retrieved, and when multiple DragonBonesData instances contain a the same name armature data, it may not be possible to accurately create a specific armature)
71
+ * @param skinName - The skin name, you can set a different ArmatureData name to share it's skin data. (If not set, use the default skin data)
72
+ * @returns The armature display container.
73
+ * @see dragonBones.IArmatureProxy
74
+ * @see dragonBones.BaseFactory#buildArmature
75
+ * @version DragonBones 4.5
76
+ * @example
77
+ * <pre>
78
+ * let armatureDisplay = factory.buildArmatureDisplay("armatureName", "dragonBonesName");
79
+ * </pre>
80
+ * @language en_US
81
+ */
82
+ /**
83
+ * - 通过缓存的 DragonBonesData 实例和 TextureAtlasData 实例创建一个骨架,并用 {@link #clock} 更新该骨架。
84
+ * 区别在于由 {@link #buildArmature} 创建的骨架没有 WorldClock 实例驱动。
85
+ * @param armatureName - 骨架数据名称。
86
+ * @param dragonBonesName - DragonBonesData 实例的缓存名称。 (如果未设置,将检索所有的 DragonBonesData 实例,当多个 DragonBonesData 实例中包含同名的骨架数据时,可能无法准确的创建出特定的骨架)
87
+ * @param skinName - 皮肤名称,可以设置一个其他骨架数据名称来共享其皮肤数据。 (如果未设置,则使用默认的皮肤数据)
88
+ * @returns 骨架的显示容器。
89
+ * @see dragonBones.IArmatureProxy
90
+ * @see dragonBones.BaseFactory#buildArmature
91
+ * @version DragonBones 4.5
92
+ * @example
93
+ * <pre>
94
+ * let armatureDisplay = factory.buildArmatureDisplay("armatureName", "dragonBonesName");
95
+ * </pre>
96
+ * @language zh_CN
97
+ */
98
+ buildArmatureDisplay(armatureName: string, dragonBonesName?: string, skinName?: string, textureAtlasName?: string): CocosArmatureDisplay | null;
99
+ /**
100
+ * - Create the display object with the specified texture.
101
+ * @param textureName - The texture data name.
102
+ * @param textureAtlasName - The texture atlas data name (Of not set, all texture atlas data will be searched)
103
+ * @version DragonBones 3.0
104
+ * @language en_US
105
+ */
106
+ /**
107
+ * - 创建带有指定贴图的显示对象。
108
+ * @param textureName - 贴图数据名称。
109
+ * @param textureAtlasName - 贴图集数据名称。 (如果未设置,将检索所有的贴图集数据)
110
+ * @version DragonBones 3.0
111
+ * @language zh_CN
112
+ */
113
+ getTextureDisplay(textureName: string, textureAtlasName?: string | null): cc.Sprite | null;
114
+ /**
115
+ * - A global sound event manager.
116
+ * Sound events can be listened to uniformly from the manager.
117
+ * @version DragonBones 4.5
118
+ * @language en_US
119
+ */
120
+ /**
121
+ * - 全局声音事件管理器。
122
+ * 声音事件可以从该管理器统一侦听。
123
+ * @version DragonBones 4.5
124
+ * @language zh_CN
125
+ */
126
+ get soundEventManager(): CocosArmatureDisplay;
127
+ }
128
+ //# sourceMappingURL=CocosFactory.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CocosFactory.d.ts","sourceRoot":"","sources":["../../../src/dragonbones/cocos/CocosFactory.ts"],"names":[],"mappings":"AACA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAc,oBAAoB,EAAE,UAAU,EAAe,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAEzI,OAAO,EAAE,oBAAoB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