@safe-engine/cocos 1.5.2 → 1.5.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 (97) hide show
  1. package/dist/animation/AnimationComponent.d.ts +63 -0
  2. package/dist/animation/AnimationComponent.d.ts.map +1 -0
  3. package/dist/animation/AnimationComponent.js +119 -0
  4. package/dist/animation/AnimationSystem.d.ts +6 -0
  5. package/dist/animation/AnimationSystem.d.ts.map +1 -0
  6. package/dist/animation/AnimationSystem.js +22 -0
  7. package/dist/animation/index.d.ts +2 -0
  8. package/dist/animation/index.d.ts.map +1 -0
  9. package/dist/animation/index.js +7 -0
  10. package/dist/app.d.ts.map +1 -1
  11. package/dist/app.js +40 -65
  12. package/dist/box2d-wasm/ContactListener.d.ts +12 -0
  13. package/dist/box2d-wasm/ContactListener.d.ts.map +1 -0
  14. package/dist/box2d-wasm/ContactListener.js +64 -0
  15. package/dist/box2d-wasm/PhysicsComponent.d.ts +50 -0
  16. package/dist/box2d-wasm/PhysicsComponent.d.ts.map +1 -0
  17. package/dist/box2d-wasm/PhysicsComponent.js +16 -0
  18. package/dist/box2d-wasm/PhysicsSprite.d.ts +12 -0
  19. package/dist/box2d-wasm/PhysicsSprite.d.ts.map +1 -0
  20. package/dist/box2d-wasm/PhysicsSprite.js +51 -0
  21. package/dist/box2d-wasm/PhysicsSystem.d.ts +15 -0
  22. package/dist/box2d-wasm/PhysicsSystem.d.ts.map +1 -0
  23. package/dist/box2d-wasm/PhysicsSystem.js +139 -0
  24. package/dist/box2d-wasm/debugDraw.d.ts +66 -0
  25. package/dist/box2d-wasm/debugDraw.d.ts.map +1 -0
  26. package/dist/box2d-wasm/debugDraw.js +210 -0
  27. package/dist/box2d-wasm/index.d.ts +6 -0
  28. package/dist/box2d-wasm/index.d.ts.map +1 -0
  29. package/dist/box2d-wasm/index.js +10 -0
  30. package/dist/collider/CollideComponent.js +98 -159
  31. package/dist/collider/CollideSystem.js +63 -79
  32. package/dist/collider/index.d.ts +1 -1
  33. package/dist/collider/index.d.ts.map +1 -1
  34. package/dist/collider/index.js +11 -9
  35. package/dist/dragonbones/PixiDragonBonesSprite.js +15 -19
  36. package/dist/dragonbones/index.js +38 -68
  37. package/dist/gworld/components/AnimationComponent.d.ts +2 -2
  38. package/dist/gworld/components/CollideComponent.d.ts +3 -3
  39. package/dist/gworld/components/EnhancedComponent.js +29 -36
  40. package/dist/gworld/components/GUIComponent.js +50 -118
  41. package/dist/gworld/components/NoRenderComponent.js +25 -65
  42. package/dist/gworld/components/NodeComp.d.ts.map +1 -1
  43. package/dist/gworld/components/NodeComp.js +237 -317
  44. package/dist/gworld/components/RenderComponent.js +46 -104
  45. package/dist/gworld/core/NodePool.js +13 -20
  46. package/dist/gworld/core/Scene.js +11 -35
  47. package/dist/gworld/core/decorator.js +12 -42
  48. package/dist/gworld/index.js +13 -42
  49. package/dist/gworld/systems/CollideSystem.d.ts +1 -2
  50. package/dist/gworld/systems/CollideSystem.d.ts.map +1 -1
  51. package/dist/gworld/systems/CollideSystem.js +2 -12
  52. package/dist/gworld/systems/GUISystem.js +105 -120
  53. package/dist/gworld/systems/NoRenderSystem.d.ts.map +1 -1
  54. package/dist/gworld/systems/NoRenderSystem.js +70 -80
  55. package/dist/gworld/systems/RenderSystem.js +64 -78
  56. package/dist/helper/Intersection.js +33 -40
  57. package/dist/helper/action.js +8 -21
  58. package/dist/helper/director.js +2 -6
  59. package/dist/helper/math.js +9 -15
  60. package/dist/helper/utils.js +28 -37
  61. package/dist/index.d.ts +5 -0
  62. package/dist/index.d.ts.map +1 -1
  63. package/dist/index.js +20 -31
  64. package/dist/polyfills.js +69 -97
  65. package/dist/richtext/RichTextComp.js +27 -55
  66. package/dist/richtext/RichTextSystem.js +17 -25
  67. package/dist/richtext/html-text-parser.js +36 -40
  68. package/dist/richtext/index.js +5 -8
  69. package/dist/safex.js +1 -2
  70. package/dist/spine/CCSkeleton.d.ts.map +1 -1
  71. package/dist/spine/CCSkeleton.js +25 -61
  72. package/dist/spine/CCSkeletonAnimation.js +18 -54
  73. package/dist/spine/CCSkeletonCanvasRenderCmd.d.ts +1 -1
  74. package/dist/spine/CCSkeletonCanvasRenderCmd.d.ts.map +1 -1
  75. package/dist/spine/CCSkeletonCanvasRenderCmd.js +39 -43
  76. package/dist/spine/CCSkeletonTexture.js +4 -40
  77. package/dist/spine/CCSkeletonWebGLRenderCmd.js +56 -92
  78. package/dist/spine/index.js +37 -63
  79. package/package.json +4 -1
  80. package/dist/dragonbones/cocos/CocosArmatureDisplay.d.ts +0 -77
  81. package/dist/dragonbones/cocos/CocosArmatureDisplay.d.ts.map +0 -1
  82. package/dist/dragonbones/cocos/CocosArmatureDisplay.js +0 -227
  83. package/dist/dragonbones/cocos/CocosFactory.d.ts +0 -128
  84. package/dist/dragonbones/cocos/CocosFactory.d.ts.map +0 -1
  85. package/dist/dragonbones/cocos/CocosFactory.js +0 -231
  86. package/dist/dragonbones/cocos/CocosSlot.d.ts +0 -49
  87. package/dist/dragonbones/cocos/CocosSlot.d.ts.map +0 -1
  88. package/dist/dragonbones/cocos/CocosSlot.js +0 -385
  89. package/dist/dragonbones/cocos/CocosTextureAtlasData.d.ts +0 -53
  90. package/dist/dragonbones/cocos/CocosTextureAtlasData.d.ts.map +0 -1
  91. package/dist/dragonbones/cocos/CocosTextureAtlasData.js +0 -158
  92. package/dist/dragonbones/dragonBones.d.ts +0 -3
  93. package/dist/dragonbones/dragonBones.d.ts.map +0 -1
  94. package/dist/dragonbones/dragonBones.js +0 -4788
  95. package/dist/helper/NodePool.d.ts +0 -9
  96. package/dist/helper/NodePool.d.ts.map +0 -1
  97. package/dist/helper/NodePool.js +0 -29
@@ -1,123 +1,93 @@
1
- "use strict";
2
- var __extends = (this && this.__extends) || (function () {
3
- var extendStatics = function (d, b) {
4
- extendStatics = Object.setPrototypeOf ||
5
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
- return extendStatics(d, b);
8
- };
9
- return function (d, b) {
10
- if (typeof b !== "function" && b !== null)
11
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
- extendStatics(d, b);
13
- function __() { this.constructor = d; }
14
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
- };
16
- })();
17
- Object.defineProperty(exports, "__esModule", { value: true });
18
- exports.DragonBonesSystem = exports.DragonBonesComp = void 0;
19
- exports.setupDragonBones = setupDragonBones;
20
- var entityx_ts_1 = require("entityx-ts");
21
- var NodeComp_1 = require("../gworld/components/NodeComp");
22
- var decorator_1 = require("../gworld/core/decorator");
23
- var PixiDragonBonesSprite_1 = require("./PixiDragonBonesSprite");
24
- var DragonBonesComp = /** @class */ (function (_super) {
25
- __extends(DragonBonesComp, _super);
26
- function DragonBonesComp() {
27
- return _super !== null && _super.apply(this, arguments) || this;
28
- }
29
- DragonBonesComp.prototype.setAnimation = function (name, playTimes) {
30
- if (playTimes === void 0) { playTimes = 0; }
1
+ import { EventTypes } from 'entityx-ts';
2
+ import { NodeComp } from '../gworld/components/NodeComp';
3
+ import { ComponentX } from '../gworld/core/decorator';
4
+ import { PixiDragonBonesSprite } from './PixiDragonBonesSprite';
5
+ export class DragonBonesComp extends ComponentX {
6
+ armature;
7
+ dragon;
8
+ setAnimation(name, playTimes = 0) {
31
9
  if (this.armature) {
32
10
  if (this.armature.animation.lastAnimationName === name)
33
11
  return;
34
12
  this.armature.animation.gotoAndPlayByTime(name, 0, playTimes);
35
13
  }
36
- };
37
- DragonBonesComp.prototype.getAnimationName = function () {
14
+ }
15
+ getAnimationName() {
38
16
  return this.armature.animation.lastAnimationName;
39
- };
17
+ }
40
18
  // setSkeletonData(data: string) {
41
19
  // const skel = this.node.instance as CocosArmatureDisplay;
42
20
  // const atlas = data.replace('.json', '.atlas');
43
21
  // skel.armature.armatureData(data, atlas, this.node.scale);
44
22
  // }
45
- DragonBonesComp.prototype.setFLipX = function (isFlipX) {
23
+ setFLipX(isFlipX) {
46
24
  this.armature._armature.flipX = isFlipX;
47
- };
48
- DragonBonesComp.prototype.setTimeScale = function (timeScale) {
25
+ }
26
+ setTimeScale(timeScale) {
49
27
  this.armature.animation.timeScale = timeScale;
50
- };
51
- return DragonBonesComp;
52
- }(decorator_1.ComponentX));
53
- exports.DragonBonesComp = DragonBonesComp;
54
- var DragonBonesSystem = /** @class */ (function () {
55
- function DragonBonesSystem() {
56
28
  }
57
- DragonBonesSystem.prototype.configure = function (event_manager) {
58
- event_manager.subscribe(entityx_ts_1.EventTypes.ComponentAdded, DragonBonesComp, function (_a) {
59
- var entity = _a.entity;
60
- var dbComp = entity.getComponent(DragonBonesComp);
61
- var _b = dbComp.props, data = _b.data, animation = _b.animation, _c = _b.playTimes, playTimes = _c === void 0 ? 0 : _c, _d = _b.timeScale, timeScale = _d === void 0 ? 1 : _d;
62
- var atlas = data.atlas, skeleton = data.skeleton, texture = data.texture;
63
- var dragon = new PixiDragonBonesSprite_1.PixiDragonBonesSprite({
29
+ }
30
+ export class DragonBonesSystem {
31
+ configure(event_manager) {
32
+ event_manager.subscribe(EventTypes.ComponentAdded, DragonBonesComp, ({ entity }) => {
33
+ const dbComp = entity.getComponent(DragonBonesComp);
34
+ const { data, animation, playTimes = 0, timeScale = 1 } = dbComp.props;
35
+ const { atlas, skeleton, texture } = data;
36
+ const dragon = new PixiDragonBonesSprite({
64
37
  ske: skeleton,
65
38
  texJson: atlas,
66
39
  texPng: texture,
67
40
  animationName: animation,
68
- playTimes: playTimes,
41
+ playTimes,
69
42
  // width: dataSkel.armature[0].aabb.width,
70
43
  // height: dataSkel.armature[0].aabb.height,
71
44
  });
72
45
  dbComp.dragon = dragon;
73
46
  dbComp.armature = dragon._armatureDisplay;
74
- var node = new cc.Node();
47
+ const node = new cc.Node();
75
48
  node.addChild(dragon);
76
49
  // console.log('armature', dbComp.armature)
77
50
  dbComp.armature.animation.timeScale = timeScale;
78
51
  // if (skin) {
79
52
  // node.setSkin(skin)
80
53
  // }
81
- dbComp.node = entity.assign(new NodeComp_1.NodeComp(node, entity));
54
+ dbComp.node = entity.assign(new NodeComp(node, entity));
82
55
  if (dbComp.props.onAnimationStart)
83
- dbComp.armature.addDBEventListener(dragonBones.EventObject.START, function () {
56
+ dbComp.armature.addDBEventListener(dragonBones.EventObject.START, () => {
84
57
  if (dbComp.node.active && dbComp.enabled)
85
58
  dbComp.props.onAnimationStart();
86
59
  }, dbComp);
87
60
  if (dbComp.props.onAnimationEnd)
88
- dbComp.armature.addDBEventListener(dragonBones.EventObject.COMPLETE, function () {
61
+ dbComp.armature.addDBEventListener(dragonBones.EventObject.COMPLETE, () => {
89
62
  if (dbComp.node.active && dbComp.enabled)
90
63
  dbComp.props.onAnimationEnd();
91
64
  }, dbComp);
92
65
  if (dbComp.props.onAnimationComplete)
93
- dbComp.armature.addDBEventListener(dragonBones.EventObject.LOOP_COMPLETE, function () {
66
+ dbComp.armature.addDBEventListener(dragonBones.EventObject.LOOP_COMPLETE, () => {
94
67
  if (dbComp.node.active && dbComp.enabled)
95
68
  dbComp.props.onAnimationComplete();
96
69
  }, dbComp);
97
70
  });
98
- event_manager.subscribe(entityx_ts_1.EventTypes.ComponentRemoved, DragonBonesComp, function (_a) {
99
- var component = _a.component;
100
- var dbComp = component;
71
+ event_manager.subscribe(EventTypes.ComponentRemoved, DragonBonesComp, ({ component }) => {
72
+ const dbComp = component;
101
73
  dbComp.armature.removeDBEventListener();
102
74
  dbComp.node.removeAllChildren();
103
75
  });
104
- };
76
+ }
105
77
  // update(entities: EntityManager, events: EventManager, dt: number)
106
- DragonBonesSystem.prototype.update = function (entities) {
78
+ update(entities) {
107
79
  // console.log('update', dt)
108
- var animations = entities.entities_with_components(DragonBonesComp);
80
+ const animations = entities.entities_with_components(DragonBonesComp);
109
81
  // cc.log(animations);
110
- animations.forEach(function (ett) {
111
- var dbComp = ett.getComponent(DragonBonesComp);
82
+ animations.forEach((ett) => {
83
+ const dbComp = ett.getComponent(DragonBonesComp);
112
84
  if (dbComp.node && dbComp.node.active) {
113
85
  dbComp.dragon.updateTexture();
114
86
  }
115
87
  });
116
- };
117
- return DragonBonesSystem;
118
- }());
119
- exports.DragonBonesSystem = DragonBonesSystem;
120
- function setupDragonBones(world) {
88
+ }
89
+ }
90
+ export function setupDragonBones(world) {
121
91
  world.systems.add(DragonBonesSystem);
122
92
  world.listUpdate.push(DragonBonesSystem);
123
93
  world.systems.configureOnce(DragonBonesSystem);
@@ -1,4 +1,4 @@
1
- import { EnhancedComponent } from './EnhancedComponent';
1
+ import { EnhancedComponent } from '../gworld/components/EnhancedComponent';
2
2
  export declare namespace AnimationClip {
3
3
  interface IEvent {
4
4
  frame: number;
@@ -61,5 +61,5 @@ export declare class AnimationComp extends EnhancedComponent {
61
61
  resume(): void;
62
62
  stop(name?: string): void;
63
63
  }
64
- export {};
64
+ export { };
65
65
  //# sourceMappingURL=AnimationComponent.d.ts.map
@@ -1,5 +1,5 @@
1
- import { NoRenderComponentX } from '../gworld/core/decorator';
2
- import { Vec2 } from '../polyfills';
1
+ import { Vec2 } from '../../polyfills';
2
+ import { NoRenderComponentX } from '../core/decorator';
3
3
  interface ColliderProps {
4
4
  offset?: Vec2;
5
5
  tag?: number;
@@ -60,5 +60,5 @@ export declare class Contract {
60
60
  updateState(): CollisionType;
61
61
  test(): any;
62
62
  }
63
- export { };
63
+ export {};
64
64
  //# sourceMappingURL=CollideComponent.d.ts.map
@@ -1,51 +1,44 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.EnhancedComponent = void 0;
4
- var EnhancedComponent = /** @class */ (function () {
5
- function EnhancedComponent(data) {
6
- this.props = {};
7
- this.enabled = true;
1
+ export class EnhancedComponent {
2
+ static hasRender = true;
3
+ props = {};
4
+ node;
5
+ enabled = true;
6
+ constructor(data) {
8
7
  this.init(data);
9
8
  }
10
- EnhancedComponent.prototype.init = function (data) {
11
- var _this = this;
9
+ init(data) {
12
10
  if (data) {
13
11
  // console.log('constructor', this.constructor.name, data)
14
- Object.keys(data).forEach(function (key) {
15
- _this.props[key] = data[key];
12
+ Object.keys(data).forEach((key) => {
13
+ this.props[key] = data[key];
16
14
  });
17
15
  }
18
- };
19
- EnhancedComponent.prototype.addComponent = function (instance) {
16
+ }
17
+ addComponent(instance) {
20
18
  return this.node.addComponent(instance);
21
- };
22
- EnhancedComponent.prototype.getComponent = function (component) {
19
+ }
20
+ getComponent(component) {
23
21
  return this.node.getComponent(component);
24
- };
25
- EnhancedComponent.prototype.schedule = function (callback, interval, repeat, delay) {
26
- if (repeat === void 0) { repeat = cc.macro.REPEAT_FOREVER; }
27
- if (delay === void 0) { delay = 0; }
22
+ }
23
+ schedule(callback, interval, repeat = cc.macro.REPEAT_FOREVER, delay = 0) {
28
24
  this.node.instance.schedule(callback.bind(this), interval, repeat, delay);
29
- };
30
- EnhancedComponent.prototype.unschedule = function (callback) {
25
+ }
26
+ unschedule(callback) {
31
27
  this.node.instance.unschedule(callback.bind(this));
32
- };
33
- EnhancedComponent.prototype.unscheduleAllCallbacks = function () {
28
+ }
29
+ unscheduleAllCallbacks() {
34
30
  this.node.instance.unscheduleAllCallbacks();
35
- };
36
- EnhancedComponent.prototype.scheduleOnce = function (callback, delay, key) {
31
+ }
32
+ scheduleOnce(callback, delay, key) {
37
33
  this.node.instance.scheduleOnce(callback, delay, key);
38
- };
39
- EnhancedComponent.prototype.getComponentsInChildren = function (component) {
34
+ }
35
+ getComponentsInChildren(component) {
40
36
  return this.node.getComponentsInChildren(component);
41
- };
42
- EnhancedComponent.prototype.getComponentInChildren = function (component) {
37
+ }
38
+ getComponentInChildren(component) {
43
39
  return this.node.getComponentInChildren(component);
44
- };
45
- EnhancedComponent.prototype.isEqual = function (other) {
40
+ }
41
+ isEqual(other) {
46
42
  return this.node.entity.id === other.node.entity.id;
47
- };
48
- EnhancedComponent.hasRender = true;
49
- return EnhancedComponent;
50
- }());
51
- exports.EnhancedComponent = EnhancedComponent;
43
+ }
44
+ }
@@ -1,145 +1,77 @@
1
- "use strict";
2
- var __extends = (this && this.__extends) || (function () {
3
- var extendStatics = function (d, b) {
4
- extendStatics = Object.setPrototypeOf ||
5
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
- return extendStatics(d, b);
8
- };
9
- return function (d, b) {
10
- if (typeof b !== "function" && b !== null)
11
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
- extendStatics(d, b);
13
- function __() { this.constructor = d; }
14
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
- };
16
- })();
17
- Object.defineProperty(exports, "__esModule", { value: true });
18
- exports.BlockInputEventsComp = exports.InputComp = exports.ScrollViewComp = exports.ScrollViewDirection = exports.LabelShadowComp = exports.LabelOutlineComp = exports.LabelComp = exports.ProgressTimerComp = exports.ButtonComp = exports.FillType = void 0;
19
- var polyfills_1 = require("../../polyfills");
20
- var decorator_1 = require("../core/decorator");
21
- exports.FillType = {
1
+ import { Vec2 } from '../../polyfills';
2
+ import { ComponentX, NoRenderComponentX } from '../core/decorator';
3
+ export const FillType = {
22
4
  HORIZONTAL: 0,
23
5
  VERTICAL: 1,
24
6
  RADIAL: 2,
25
7
  };
26
- var ButtonComp = /** @class */ (function (_super) {
27
- __extends(ButtonComp, _super);
28
- function ButtonComp() {
29
- var _this = _super !== null && _super.apply(this, arguments) || this;
30
- // texType: ccui.Widget.TextureType
31
- _this.clickEvents = [];
32
- return _this;
33
- // setTouchEnabled(val) {
34
- // this.node.setTouchEnabled(val)
35
- // }
36
- }
37
- ButtonComp.prototype.setOnPress = function (cb) {
8
+ export class ButtonComp extends NoRenderComponentX {
9
+ // texType: ccui.Widget.TextureType
10
+ clickEvents = [];
11
+ setOnPress(cb) {
38
12
  this.props.onPress = cb;
39
- };
40
- return ButtonComp;
41
- }(decorator_1.NoRenderComponentX));
42
- exports.ButtonComp = ButtonComp;
43
- var ProgressTimerComp = /** @class */ (function (_super) {
44
- __extends(ProgressTimerComp, _super);
45
- function ProgressTimerComp() {
46
- return _super !== null && _super.apply(this, arguments) || this;
47
13
  }
48
- ProgressTimerComp.prototype.getFillRange = function () {
14
+ }
15
+ export class ProgressTimerComp extends ComponentX {
16
+ spriteFrame;
17
+ fillType;
18
+ fillRange;
19
+ fillCenter;
20
+ isReverse;
21
+ getFillRange() {
49
22
  if (this.node.instance instanceof cc.ProgressTimer) {
50
23
  return this.node.instance.getPercentage() * 0.01;
51
24
  }
52
- };
53
- ProgressTimerComp.prototype.setFillStart = function (val) {
25
+ }
26
+ setFillStart(val) {
54
27
  if (this.node.instance instanceof cc.ProgressTimer) {
55
- this.node.instance.setMidpoint((0, polyfills_1.Vec2)(val, val));
28
+ this.node.instance.setMidpoint(Vec2(val, val));
56
29
  }
57
- };
58
- ProgressTimerComp.prototype.setFillRange = function (val) {
30
+ }
31
+ setFillRange(val) {
59
32
  if (this.node.instance instanceof cc.ProgressTimer) {
60
33
  this.node.instance.setPercentage(val * 100);
61
34
  }
62
- };
63
- return ProgressTimerComp;
64
- }(decorator_1.ComponentX));
65
- exports.ProgressTimerComp = ProgressTimerComp;
66
- var LabelComp = /** @class */ (function (_super) {
67
- __extends(LabelComp, _super);
68
- function LabelComp() {
69
- return _super !== null && _super.apply(this, arguments) || this;
70
35
  }
71
- Object.defineProperty(LabelComp.prototype, "string", {
72
- get: function () {
73
- return this.props.string;
74
- },
75
- set: function (val) {
76
- this.props.string = val;
77
- if (this.node.instance instanceof ccui.Text) {
78
- this.node.instance.setString(val);
79
- }
80
- },
81
- enumerable: false,
82
- configurable: true
83
- });
84
- return LabelComp;
85
- }(decorator_1.ComponentX));
86
- exports.LabelComp = LabelComp;
87
- var LabelOutlineComp = /** @class */ (function (_super) {
88
- __extends(LabelOutlineComp, _super);
89
- function LabelOutlineComp() {
90
- return _super !== null && _super.apply(this, arguments) || this;
36
+ }
37
+ export class LabelComp extends ComponentX {
38
+ get string() {
39
+ return this.props.string;
91
40
  }
92
- return LabelOutlineComp;
93
- }(decorator_1.NoRenderComponentX));
94
- exports.LabelOutlineComp = LabelOutlineComp;
95
- var LabelShadowComp = /** @class */ (function (_super) {
96
- __extends(LabelShadowComp, _super);
97
- function LabelShadowComp() {
98
- return _super !== null && _super.apply(this, arguments) || this;
41
+ set string(val) {
42
+ this.props.string = val;
43
+ if (this.node.instance instanceof ccui.Text) {
44
+ this.node.instance.setString(val);
45
+ }
99
46
  }
100
- return LabelShadowComp;
101
- }(decorator_1.NoRenderComponentX));
102
- exports.LabelShadowComp = LabelShadowComp;
103
- var ScrollViewDirection;
47
+ }
48
+ export class LabelOutlineComp extends NoRenderComponentX {
49
+ color;
50
+ width;
51
+ }
52
+ export class LabelShadowComp extends NoRenderComponentX {
53
+ color;
54
+ blur;
55
+ offset;
56
+ }
57
+ export var ScrollViewDirection;
104
58
  (function (ScrollViewDirection) {
105
59
  ScrollViewDirection[ScrollViewDirection["NONE"] = cc.SCROLLVIEW_DIRECTION_NONE] = "NONE";
106
60
  ScrollViewDirection[ScrollViewDirection["HORIZONTAL"] = cc.SCROLLVIEW_DIRECTION_HORIZONTAL] = "HORIZONTAL";
107
61
  ScrollViewDirection[ScrollViewDirection["VERTICAL"] = cc.SCROLLVIEW_DIRECTION_VERTICAL] = "VERTICAL";
108
62
  ScrollViewDirection[ScrollViewDirection["BOTH"] = cc.SCROLLVIEW_DIRECTION_BOTH] = "BOTH";
109
- })(ScrollViewDirection || (exports.ScrollViewDirection = ScrollViewDirection = {}));
110
- var ScrollViewComp = /** @class */ (function (_super) {
111
- __extends(ScrollViewComp, _super);
112
- function ScrollViewComp() {
113
- return _super !== null && _super.apply(this, arguments) || this;
114
- }
115
- ScrollViewComp.prototype.zoom = function (scale) {
63
+ })(ScrollViewDirection || (ScrollViewDirection = {}));
64
+ export class ScrollViewComp extends ComponentX {
65
+ zoom(scale) {
116
66
  if (this.node.instance instanceof cc.ScrollView) {
117
67
  this.node.instance.getContainer().setScale(scale);
118
68
  }
119
- };
120
- return ScrollViewComp;
121
- }(decorator_1.ComponentX));
122
- exports.ScrollViewComp = ScrollViewComp;
123
- var InputComp = /** @class */ (function (_super) {
124
- __extends(InputComp, _super);
125
- function InputComp() {
126
- return _super !== null && _super.apply(this, arguments) || this;
127
69
  }
128
- Object.defineProperty(InputComp.prototype, "string", {
129
- get: function () {
130
- return this.node.instance.getString();
131
- },
132
- enumerable: false,
133
- configurable: true
134
- });
135
- return InputComp;
136
- }(decorator_1.ComponentX));
137
- exports.InputComp = InputComp;
138
- var BlockInputEventsComp = /** @class */ (function (_super) {
139
- __extends(BlockInputEventsComp, _super);
140
- function BlockInputEventsComp() {
141
- return _super !== null && _super.apply(this, arguments) || this;
70
+ }
71
+ export class InputComp extends ComponentX {
72
+ get string() {
73
+ return this.node.instance.getString();
142
74
  }
143
- return BlockInputEventsComp;
144
- }(decorator_1.NoRenderComponentX));
145
- exports.BlockInputEventsComp = BlockInputEventsComp;
75
+ }
76
+ export class BlockInputEventsComp extends NoRenderComponentX {
77
+ }
@@ -1,81 +1,41 @@
1
- "use strict";
2
- var __extends = (this && this.__extends) || (function () {
3
- var extendStatics = function (d, b) {
4
- extendStatics = Object.setPrototypeOf ||
5
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
- return extendStatics(d, b);
8
- };
9
- return function (d, b) {
10
- if (typeof b !== "function" && b !== null)
11
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
- extendStatics(d, b);
13
- function __() { this.constructor = d; }
14
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
- };
16
- })();
17
- Object.defineProperty(exports, "__esModule", { value: true });
18
- exports.ExtraDataComp = exports.TouchEventRegister = exports.EventRegister = void 0;
19
- var decorator_1 = require("../core/decorator");
20
- var EventRegister = /** @class */ (function (_super) {
21
- __extends(EventRegister, _super);
22
- function EventRegister() {
23
- var _this = _super !== null && _super.apply(this, arguments) || this;
24
- _this.events = {};
25
- return _this;
26
- }
27
- EventRegister.prototype.on = function (name, callback, target) {
28
- var bound = target ? callback.bind(target) : callback;
1
+ import { NoRenderComponentX } from '../core/decorator';
2
+ export class EventRegister extends NoRenderComponentX {
3
+ events = {};
4
+ on(name, callback, target) {
5
+ const bound = target ? callback.bind(target) : callback;
29
6
  if (this.events[name]) {
30
7
  this.events[name].push(bound);
31
8
  }
32
9
  else {
33
10
  this.events[name] = [bound];
34
11
  }
35
- };
36
- EventRegister.prototype.off = function (name) {
12
+ }
13
+ off(name) {
37
14
  this.events[name] = undefined;
38
- };
39
- EventRegister.prototype.emit = function (name) {
40
- var params = [];
41
- for (var _i = 1; _i < arguments.length; _i++) {
42
- params[_i - 1] = arguments[_i];
43
- }
15
+ }
16
+ emit(name, ...params) {
44
17
  // if (!this.node || !this.node.active || !this.enabled) return
45
18
  if (this.events[name]) {
46
- this.events[name].forEach(function (fc) { return fc.apply(void 0, params); });
19
+ this.events[name].forEach((fc) => fc(...params));
47
20
  }
48
- };
49
- return EventRegister;
50
- }(decorator_1.NoRenderComponentX));
51
- exports.EventRegister = EventRegister;
52
- var TouchEventRegister = /** @class */ (function (_super) {
53
- __extends(TouchEventRegister, _super);
54
- function TouchEventRegister() {
55
- return _super !== null && _super.apply(this, arguments) || this;
56
21
  }
57
- TouchEventRegister.prototype.setEnabled = function (enabled) {
22
+ }
23
+ export class TouchEventRegister extends NoRenderComponentX {
24
+ listener;
25
+ touch;
26
+ setEnabled(enabled) {
58
27
  this.listener.setEnabled(enabled);
59
- };
60
- return TouchEventRegister;
61
- }(decorator_1.NoRenderComponentX));
62
- exports.TouchEventRegister = TouchEventRegister;
63
- var ExtraDataComp = /** @class */ (function (_super) {
64
- __extends(ExtraDataComp, _super);
65
- function ExtraDataComp() {
66
- var _this = _super !== null && _super.apply(this, arguments) || this;
67
- _this.data = {};
68
- return _this;
69
28
  }
70
- ExtraDataComp.prototype.getData = function (key) {
29
+ }
30
+ export class ExtraDataComp extends NoRenderComponentX {
31
+ data = {};
32
+ getData(key) {
71
33
  return this.data[key];
72
- };
73
- ExtraDataComp.prototype.setData = function (key, val) {
34
+ }
35
+ setData(key, val) {
74
36
  this.data[key] = val;
75
- };
76
- ExtraDataComp.prototype.removeData = function (key) {
37
+ }
38
+ removeData(key) {
77
39
  delete this.data[key];
78
- };
79
- return ExtraDataComp;
80
- }(decorator_1.NoRenderComponentX));
81
- exports.ExtraDataComp = ExtraDataComp;
40
+ }
41
+ }
@@ -1 +1 @@
1
- {"version":3,"file":"NodeComp.d.ts","sourceRoot":"","sources":["../../../src/gworld/components/NodeComp.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,YAAY,CAAA;AAGhD,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAA;AACtC,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AAGtE,MAAM,MAAM,iBAAiB,GAAG,CAAC,GAAG,IAAI,OAAA,KAAK,IAAI,CAAA;AACjD,qBAAa,QAAQ,CAAC,CAAC,SAAS,EAAE,CAAC,IAAI,GAAG,EAAE,CAAC,IAAI;IAC/C,MAAM,EAAE,MAAM,CAAA;IACd,QAAQ,EAAE,CAAC,CAAA;IACX,MAAM,EAAE,QAAQ,CAAA;IAChB,QAAQ,EAAE,QAAQ,EAAE,CAAK;IACzB,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,CAAC,MAAM,CAAA;IACd,OAAO,CAAC,OAAO,CAAO;gBAEV,QAAQ,EAAE,CAAC,EAAE,MAAM,EAAE,MAAM;IAKvC,IAAI,IAAI,WAEP;IAED,IAAI,QAAQ,IAAI,QAAQ,CAAC,IAAI,CAAC,CAE7B;IAED,IAAI,QAAQ,CAAC,GAAG,EAAE,IAAI,EAErB;IAED,IAAI,EAAE,CAAC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