Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
5 changes: 2 additions & 3 deletions apps/demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
"babylonjs-materials": "file:../../node_modules/babylonjs-materials",
"chart.js": "file:../../node_modules/chart.js",
"d3": "file:../../node_modules/d3",
"leaflet": "file:../../node_modules/leaflet",
"matter-js": "file:../../node_modules/matter-js",
"phaser": "file:../../node_modules/phaser",
"phaser-ce": "file:../../node_modules/phaser-ce",
Expand All @@ -28,7 +27,7 @@
"zen-3d": "file:../../node_modules/zen-3d"
},
"devDependencies": {
"@nativescript/android": "~8.2.0",
"@nativescript/ios": "~8.2.0"
"@nativescript/android": "8.4.0-alpha.8",
"@nativescript/ios": "8.4.0-alpha.3"
}
}
23 changes: 22 additions & 1 deletion apps/demo/src/app.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,24 @@
require('@nativescript/canvas-polyfill');
import { Application } from '@nativescript/core';
import { Application, Utils } from '@nativescript/core';
declare const jp, GDPerformanceMonitor, org;
let monitor;
// uncomment for fps monitor
/*
Application.on('launch', (args) => {
if (global.isAndroid) {
jp.wasabeef.takt.Takt.stock(Utils.android.getApplicationContext()).seat(jp.wasabeef.takt.Seat.TOP_CENTER).color(-65536);
} else {
monitor = GDPerformanceMonitor.new();

monitor.startMonitoringWithConfiguration((label) => {
label.backgroundColor = UIColor.blackColor;
label.textColor = UIColor.whiteColor;
label.layer.borderColor = UIColor.redColor;
});

monitor.appVersionHidden = true;
monitor.deviceVersionHidden = true;
}
});
*/
Application.run({ moduleName: 'app-root' });
9 changes: 4 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
},
"private": true,
"devDependencies": {
"@angular-devkit/build-angular": "^14.0.0",
"@angular/animations": "^14.0.0",
"@angular/common": "^14.0.0",
"@angular/compiler": "^14.0.0",
Expand All @@ -32,9 +33,9 @@
"@angular/platform-browser-dynamic": "^14.0.0",
"@angular/router": "^14.0.0",
"@nativescript/angular": "^14.0.0",
"@nativescript/core": "~8.2.0",
"@nativescript/core": "~8.3.0",
"@nativescript/plugin-tools": "4.0.0",
"@nativescript/types": "~8.2.0",
"@nativescript/types": "~8.3.0",
"@nativescript/webpack": "~5.0.5",
"@ngtools/webpack": "^14.0.0",
"babylonjs": "^4.1.0",
Expand All @@ -46,7 +47,6 @@
"eslint": "~7.4.0",
"eslint-config-prettier": "~6.11.0",
"husky": "^8.0.0",
"leaflet": "^1.7.1",
"matter-js": "^0.14.2",
"nativescript-permissions": "1.3.11",
"nativescript-theme-core": "~1.0.4",
Expand All @@ -66,8 +66,7 @@
"vexflow": "^3.0.9",
"xmldom": "~0.6.0",
"zen-3d": "0.0.3",
"zone.js": "~0.11.1",
"@angular-devkit/build-angular": "^14.0.0"
"zone.js": "~0.11.1"
},
"lint-staged": {
"**/*.{js,ts,scss,json,html}": [
Expand Down
6 changes: 3 additions & 3 deletions packages/canvas-babylon/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nativescript/canvas-babylon",
"version": "1.0.0",
"version": "1.1.0-alpha.12",
"description": "",
"main": "index",
"typings": "index.d.ts",
Expand Down Expand Up @@ -33,9 +33,9 @@
"readmeFilename": "README.md",
"bootstrapper": "@nativescript/plugin-seed",
"dependencies": {
"@nativescript/canvas-polyfill": "*"
"@nativescript/canvas-polyfill": "alpha"
},
"peerDependencies": {
"babylonjs": "^4.1.0"
}
}
}
4 changes: 2 additions & 2 deletions packages/canvas-media/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nativescript/canvas-media",
"version": "1.0.0",
"version": "1.1.0-alpha.12",
"description": "Canvas media",
"main": "index",
"typings": "index.d.ts",
Expand Down Expand Up @@ -32,4 +32,4 @@
"homepage": "https://github.com/NativeScript/plugins",
"readmeFilename": "README.md",
"bootstrapper": "@nativescript/plugin-seed"
}
}
Binary file not shown.
6 changes: 3 additions & 3 deletions packages/canvas-phaser-ce/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nativescript/canvas-phaser-ce",
"version": "1.0.0",
"version": "1.1.0-alpha.12",
"description": "Tools for using Phaser-ce to build native 2D games in NativeScript 👾",
"main": "index",
"typings": "index.d.ts",
Expand Down Expand Up @@ -33,9 +33,9 @@
"readmeFilename": "README.md",
"bootstrapper": "@nativescript/plugin-seed",
"dependencies": {
"@nativescript/canvas-polyfill": "*"
"@nativescript/canvas-polyfill": "alpha"
},
"peerDependencies": {
"phaser-ce": "2.15.0"
}
}
}
2 changes: 1 addition & 1 deletion packages/canvas-phaser/game.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export const Game = (options) => {
width,
height,
//canvas,
context,
context,
title,
type,
scene,
Expand Down
6 changes: 3 additions & 3 deletions packages/canvas-phaser/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nativescript/canvas-phaser",
"version": "1.0.0",
"version": "1.1.0-alpha.12",
"description": "Build awesome 2D games with Phaser.js and NativeScript",
"main": "index",
"typings": "index.d.ts",
Expand Down Expand Up @@ -33,9 +33,9 @@
"readmeFilename": "README.md",
"bootstrapper": "@nativescript/plugin-seed",
"dependencies": {
"@nativescript/canvas-polyfill": "*"
"@nativescript/canvas-polyfill": "alpha"
},
"peerDependencies": {
"phaser": "^3.24.1"
}
}
}
6 changes: 3 additions & 3 deletions packages/canvas-pixi/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nativescript/canvas-pixi",
"version": "1.0.0",
"version": "1.1.0-alpha.12",
"description": "Plugin for using pixi.js in NativeScript",
"main": "index",
"typings": "index.d.ts",
Expand Down Expand Up @@ -33,9 +33,9 @@
"readmeFilename": "README.md",
"bootstrapper": "nativescript-plugin-seed",
"dependencies": {
"@nativescript/canvas-polyfill": "*"
"@nativescript/canvas-polyfill": "alpha"
},
"peerDependencies": {
"pixi.js": "^5.3.3"
}
}
}
Loading