@nativescript/canvas-pixi 1.0.0-v6 → 1.0.0

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/index.d.ts CHANGED
@@ -1,4 +1,3 @@
1
- import '@nativescript/canvas-polyfill';
2
1
  import * as Pixii from 'pixi.js';
3
2
  export declare class TNSPIXIApplication extends Pixii.Application {
4
3
  constructor({ canvas, ...props }: {
package/index.js CHANGED
@@ -1,17 +1,21 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- require("@nativescript/canvas-polyfill");
4
- var Pixii = require("pixi.js");
5
- var TNSPIXIApplication = /** @class */ (function (_super) {
6
- __extends(TNSPIXIApplication, _super);
7
- function TNSPIXIApplication(_a) {
8
- var canvas = _a.canvas, props = __rest(_a, ["canvas"]);
9
- var _this = this;
1
+ var __rest = (this && this.__rest) || function (s, e) {
2
+ var t = {};
3
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
4
+ t[p] = s[p];
5
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
6
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
7
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
8
+ t[p[i]] = s[p[i]];
9
+ }
10
+ return t;
11
+ };
12
+ require('@nativescript/canvas-polyfill');
13
+ import * as Pixii from 'pixi.js';
14
+ export class TNSPIXIApplication extends Pixii.Application {
15
+ constructor(_a) {
16
+ var { canvas } = _a, props = __rest(_a, ["canvas"]);
10
17
  global.PIXI = global.window.PIXI = global.PIXI || Pixii;
11
- _this = _super.call(this, __assign({ view: canvas, width: canvas.width || undefined, height: canvas.height || undefined }, props)) || this;
12
- return _this;
18
+ super(Object.assign({ view: canvas, width: canvas.width || undefined, height: canvas.height || undefined }, props));
13
19
  }
14
- return TNSPIXIApplication;
15
- }(Pixii.Application));
16
- exports.TNSPIXIApplication = TNSPIXIApplication;
20
+ }
17
21
  //# sourceMappingURL=index.js.map
package/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../packages/canvas-pixi/index.ts"],"names":[],"mappings":";;AAAA,yCAAuC;AACvC,+BAAiC;AAEjC;IAAwC,sCAAiB;IACxD,4BAAY,EAAoB;QAAlB,IAAA,kBAAM,EAAE,8BAAQ;QAA9B,iBAQC;QAPC,MAAc,CAAC,IAAI,GAAI,MAAc,CAAC,MAAM,CAAC,IAAI,GAAI,MAAc,CAAC,IAAI,IAAI,KAAK,CAAC;QACnF,QAAA,6BACC,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,MAAM,CAAC,KAAK,IAAI,SAAS,EAChC,MAAM,EAAE,MAAM,CAAC,MAAM,IAAI,SAAS,IAC/B,KAAK,EACP,SAAC;;IACJ,CAAC;IACF,yBAAC;AAAD,CAAC,AAVD,CAAwC,KAAK,CAAC,WAAW,GAUxD;AAVY,gDAAkB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../packages/canvas-pixi/index.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,CAAC,+BAA+B,CAAC,CAAC;AACzC,OAAO,KAAK,KAAK,MAAM,SAAS,CAAC;AAEjC,MAAM,OAAO,kBAAmB,SAAQ,KAAK,CAAC,WAAW;IACxD,YAAY,EAAoB;YAApB,EAAE,MAAM,OAAY,EAAP,KAAK,cAAlB,UAAoB,CAAF;QAC5B,MAAc,CAAC,IAAI,GAAI,MAAc,CAAC,MAAM,CAAC,IAAI,GAAI,MAAc,CAAC,IAAI,IAAI,KAAK,CAAC;QACnF,KAAK,iBACJ,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,MAAM,CAAC,KAAK,IAAI,SAAS,EAChC,MAAM,EAAE,MAAM,CAAC,MAAM,IAAI,SAAS,IAC/B,KAAK,EACP,CAAC;IACJ,CAAC;CACD"}
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@nativescript/canvas-pixi",
3
- "version": "1.0.0-v6",
3
+ "version": "1.0.0",
4
4
  "description": "Plugin for using pixi.js in NativeScript",
5
- "main": "index.js",
5
+ "main": "index",
6
6
  "typings": "index.d.ts",
7
7
  "nativescript": {
8
8
  "platforms": {
9
- "ios": "6.5.0",
10
- "android": "6.5.0"
9
+ "ios": "7.0.0",
10
+ "android": "7.0.0"
11
11
  }
12
12
  },
13
13
  "repository": {
@@ -32,11 +32,11 @@
32
32
  "homepage": "https://github.com/NativeScript/canvas",
33
33
  "readmeFilename": "README.md",
34
34
  "bootstrapper": "nativescript-plugin-seed",
35
+ "dependencies": {
36
+ "@nativescript/canvas-polyfill": "*",
37
+ "@nativescript/canvas": "1.0.0"
38
+ },
35
39
  "peerDependencies": {
36
- "@nativescript/canvas": "~0.9.4-v6",
37
40
  "pixi.js": "^5.3.3"
38
- },
39
- "dependencies": {
40
- "@nativescript/canvas-polyfill": "1.0.0-v6"
41
41
  }
42
- }
42
+ }