@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 +0 -1
- package/index.js +18 -14
- package/index.js.map +1 -1
- package/package.json +9 -9
package/index.d.ts
CHANGED
package/index.js
CHANGED
|
@@ -1,17 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
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
|
-
|
|
12
|
-
return _this;
|
|
18
|
+
super(Object.assign({ view: canvas, width: canvas.width || undefined, height: canvas.height || undefined }, props));
|
|
13
19
|
}
|
|
14
|
-
|
|
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":"
|
|
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
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"description": "Plugin for using pixi.js in NativeScript",
|
|
5
|
-
"main": "index
|
|
5
|
+
"main": "index",
|
|
6
6
|
"typings": "index.d.ts",
|
|
7
7
|
"nativescript": {
|
|
8
8
|
"platforms": {
|
|
9
|
-
"ios": "
|
|
10
|
-
"android": "
|
|
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
|
+
}
|