@flashist/appframework 0.0.48 → 0.0.49

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flashist/appframework",
3
- "version": "0.0.48",
3
+ "version": "0.0.49",
4
4
  "scripts": {
5
5
  "build": "gulp",
6
6
  "publish:patch": "npm version patch && npm run build && cd ./dist && npm publish",
@@ -0,0 +1,5 @@
1
+ import { Rectangle } from "pixi.js";
2
+ import { IViewWithSizeArea } from "../views/IViewWithSizeArea";
3
+ export declare class ViewWithSizeAreaTools {
4
+ static getSizeAreaBounds(view: IViewWithSizeArea, result?: Rectangle): Rectangle;
5
+ }
@@ -0,0 +1,24 @@
1
+ import { Rectangle } from "pixi.js";
2
+ var ViewWithSizeAreaTools = /** @class */ (function () {
3
+ function ViewWithSizeAreaTools() {
4
+ }
5
+ ViewWithSizeAreaTools.getSizeAreaBounds = function (view, result) {
6
+ if (!result) {
7
+ result = new Rectangle();
8
+ }
9
+ if (view.sizeArea) {
10
+ result.x = view.x + view.sizeArea.x * view.scale.x;
11
+ result.y = view.y + view.sizeArea.y * view.scale.y;
12
+ //
13
+ result.width = view.sizeArea.width * view.scale.x;
14
+ result.height = view.sizeArea.height * view.scale.y;
15
+ }
16
+ else {
17
+ view.getBounds(false, result);
18
+ }
19
+ return result;
20
+ };
21
+ return ViewWithSizeAreaTools;
22
+ }());
23
+ export { ViewWithSizeAreaTools };
24
+ //# sourceMappingURL=ViewWithSizeAreaTools.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ViewWithSizeAreaTools.js","sourceRoot":"","sources":["../../../src/size/tools/ViewWithSizeAreaTools.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAGpC;IAAA;IAoBA,CAAC;IAnBU,uCAAiB,GAAxB,UAAyB,IAAuB,EAAE,MAAkB;QAEhE,IAAI,CAAC,MAAM,EAAE;YACT,MAAM,GAAG,IAAI,SAAS,EAAE,CAAC;SAC5B;QAED,IAAI,IAAI,CAAC,QAAQ,EAAE;YACf,MAAM,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,QAAQ,CAAC,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;YACnD,MAAM,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,QAAQ,CAAC,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;YACnD,EAAE;YACF,MAAM,CAAC,KAAK,GAAG,IAAI,CAAC,QAAQ,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;YAClD,MAAM,CAAC,MAAM,GAAG,IAAI,CAAC,QAAQ,CAAC,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;SAEvD;aAAM;YACH,IAAI,CAAC,SAAS,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;SACjC;QAED,OAAO,MAAM,CAAC;IAClB,CAAC;IACL,4BAAC;AAAD,CAAC,AApBD,IAoBC"}
@@ -1,5 +0,0 @@
1
- import { Rectangle } from "pixi.js";
2
- import { IViewWithSizeArea } from "../views/IViewWithSizeArea";
3
- export declare class ViewWithSizeTools {
4
- static getSizeRect(view: IViewWithSizeArea, result?: Rectangle): Rectangle;
5
- }
@@ -1,24 +0,0 @@
1
- import { Rectangle } from "pixi.js";
2
- var ViewWithSizeTools = /** @class */ (function () {
3
- function ViewWithSizeTools() {
4
- }
5
- ViewWithSizeTools.getSizeRect = function (view, result) {
6
- if (!result) {
7
- result = new Rectangle();
8
- }
9
- if (view.sizeArea) {
10
- result.x = view.sizeArea.x * view.scale.x;
11
- result.y = view.sizeArea.y * view.scale.y;
12
- //
13
- result.width = view.sizeArea.width * view.scale.x;
14
- result.height = view.sizeArea.height * view.scale.y;
15
- }
16
- else {
17
- view.getBounds(false, result);
18
- }
19
- return result;
20
- };
21
- return ViewWithSizeTools;
22
- }());
23
- export { ViewWithSizeTools };
24
- //# sourceMappingURL=ViewWithSizeTools.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ViewWithSizeTools.js","sourceRoot":"","sources":["../../../src/size/tools/ViewWithSizeTools.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAGpC;IAAA;IAoBA,CAAC;IAnBU,6BAAW,GAAlB,UAAmB,IAAuB,EAAE,MAAkB;QAE1D,IAAI,CAAC,MAAM,EAAE;YACT,MAAM,GAAG,IAAI,SAAS,EAAE,CAAC;SAC5B;QAED,IAAI,IAAI,CAAC,QAAQ,EAAE;YACf,MAAM,CAAC,CAAC,GAAG,IAAI,CAAC,QAAQ,CAAC,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;YAC1C,MAAM,CAAC,CAAC,GAAG,IAAI,CAAC,QAAQ,CAAC,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;YAC1C,EAAE;YACF,MAAM,CAAC,KAAK,GAAG,IAAI,CAAC,QAAQ,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;YAClD,MAAM,CAAC,MAAM,GAAG,IAAI,CAAC,QAAQ,CAAC,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;SAEvD;aAAM;YACH,IAAI,CAAC,SAAS,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;SACjC;QAED,OAAO,MAAM,CAAC;IAClB,CAAC;IACL,wBAAC;AAAD,CAAC,AApBD,IAoBC"}