@safe-engine/pixi 8.7.3 → 8.7.4

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.
@@ -31,7 +31,7 @@ export function initBox2d(wasmUrl) {
31
31
  box2D = yield Box2DFactory({
32
32
  locateFile: () => {
33
33
  return wasmUrl;
34
- }
34
+ },
35
35
  });
36
36
  return;
37
37
  }
@@ -1 +1 @@
1
- {"version":3,"file":"LoadingBar.d.ts","sourceRoot":"","sources":["../../src/core/LoadingBar.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,EAAW,MAAM,SAAS,CAAA;AAErE,oBAAY,cAAc;IACxB,GAAG,IAAA;IACH,MAAM,IAAA;CACP;AAED,qBAAa,UAAW,SAAQ,QAAQ;IACtC,UAAU,EAAE,MAAM,CAAA;IAClB,IAAI,EAAE,cAAc,CAAA;IACpB,UAAU,QAAsB;gBACpB,IAAI,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM;IAUpD,IAAI,QAAQ,CAAC,GAAG,EAAE,MAAM,EAUvB;CACF;AAED,qBAAa,aAAc,SAAQ,SAAS;IAC1C,QAAQ,EAAE,QAAQ,CAAA;IAClB,UAAU,EAAE,MAAM,CAAA;IAClB,IAAI,EAAE,cAAc,CAAA;IACpB,UAAU,QAAsB;gBACpB,IAAI,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM;IAerD,IAAI,QAAQ,CAAC,GAAG,EAAE,MAAM,EAOvB;CACF"}
1
+ {"version":3,"file":"LoadingBar.d.ts","sourceRoot":"","sources":["../../src/core/LoadingBar.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,EAAW,MAAM,SAAS,CAAA;AAErE,oBAAY,cAAc;IACxB,GAAG,IAAA;IACH,MAAM,IAAA;CACP;AAED,qBAAa,UAAW,SAAQ,QAAQ;IACtC,UAAU,EAAE,MAAM,CAAA;IAClB,IAAI,EAAE,cAAc,CAAA;IACpB,UAAU,QAAsB;gBACpB,IAAI,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM;IAUpD,IAAI,QAAQ,CAAC,GAAG,EAAE,MAAM,EAUvB;CACF;AAED,qBAAa,aAAc,SAAQ,SAAS;IAC1C,QAAQ,EAAE,QAAQ,CAAA;IAClB,UAAU,EAAE,MAAM,CAAA;IAClB,IAAI,EAAE,cAAc,CAAA;IACpB,UAAU,QAAsB;gBACpB,IAAI,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM;IAgBrD,IAAI,QAAQ,CAAC,GAAG,EAAE,MAAM,EAOvB;CACF"}
@@ -33,6 +33,7 @@ export class ProgressTimer extends Container {
33
33
  this.fillCenter = new Point(0.5, 0.5);
34
34
  const texture = Texture.from(spriteFrame);
35
35
  this.spriteComp = Sprite.from(texture);
36
+ this.spriteComp.anchor = this.fillCenter;
36
37
  this.graphics = new Graphics();
37
38
  this.mode = mode || LoadingBarMode.BAR;
38
39
  this.graphics.fill(0xffffff);
@@ -40,8 +41,8 @@ export class ProgressTimer extends Container {
40
41
  this.spriteComp.mask = this.graphics;
41
42
  this.addChild(this.graphics);
42
43
  this.addChild(this.spriteComp);
43
- // this.graphics.x = -this.spriteComp.width * this.fillCenter.x
44
- // this.graphics.y = -this.spriteComp.height * this.fillCenter.y
44
+ this.graphics.x = -this.spriteComp.width * this.fillCenter.x;
45
+ this.graphics.y = -this.spriteComp.height * this.fillCenter.y;
45
46
  }
46
47
  set progress(val) {
47
48
  this.graphics.clear();
package/dist/index.d.ts CHANGED
@@ -6,7 +6,6 @@ export * from './components/BaseComponent';
6
6
  export * from './components/NodeComp';
7
7
  export * from './components/Scene';
8
8
  export * from './core';
9
- export * from './gui';
10
9
  export * from './helper/utils';
11
10
  export * from './norender';
12
11
  export * from './render/RenderComponent';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAA;AAChC,cAAc,SAAS,CAAA;AACvB,cAAc,OAAO,CAAA;AACrB,cAAc,QAAQ,CAAA;AACtB,cAAc,4BAA4B,CAAA;AAC1C,cAAc,uBAAuB,CAAA;AACrC,cAAc,oBAAoB,CAAA;AAClC,cAAc,QAAQ,CAAA;AACtB,cAAc,OAAO,CAAA;AACrB,cAAc,gBAAgB,CAAA;AAC9B,cAAc,YAAY,CAAA;AAC1B,cAAc,0BAA0B,CAAA;AACxC,cAAc,uBAAuB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAA;AAChC,cAAc,SAAS,CAAA;AACvB,cAAc,OAAO,CAAA;AACrB,cAAc,QAAQ,CAAA;AACtB,cAAc,4BAA4B,CAAA;AAC1C,cAAc,uBAAuB,CAAA;AACrC,cAAc,oBAAoB,CAAA;AAClC,cAAc,QAAQ,CAAA;AACtB,cAAc,gBAAgB,CAAA;AAC9B,cAAc,YAAY,CAAA;AAC1B,cAAc,0BAA0B,CAAA;AACxC,cAAc,uBAAuB,CAAA"}
package/dist/index.js CHANGED
@@ -6,7 +6,6 @@ export * from './components/BaseComponent';
6
6
  export * from './components/NodeComp';
7
7
  export * from './components/Scene';
8
8
  export * from './core';
9
- export * from './gui';
10
9
  export * from './helper/utils';
11
10
  export * from './norender';
12
11
  export * from './render/RenderComponent';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@safe-engine/pixi",
3
- "version": "8.7.3",
3
+ "version": "8.7.4",
4
4
  "description": "safex pixi plugin",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",