Skip to content

Commit f0856f3

Browse files
authored
feat: 1.1.0 (#92)
* feat: 1.1.0 feat: roundRect support feat: createConicGradient fixes: #86 fixes: #83 fixes: #82 improved performance on android * fix: build * chore: switch to ndk crates * fix: use lower ndk * chore: performance updates * fix: create imagebitmap from imagedata * updates * feat: canvas snapshot to image * fix: snapsot * fix: clip & snapshot * feat: flip option for snapshot * fix: rgb texture loading * fix: duplicate property * fix: bindVertexArray * fix(polyfill): set correct buffer size * chore: bump * fix: gl asset drawing & polyfill http data
1 parent cee733e commit f0856f3

File tree

311 files changed

+467614
-17278
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

311 files changed

+467614
-17278
lines changed

apps/demo/package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
"babylonjs-materials": "file:../../node_modules/babylonjs-materials",
1919
"chart.js": "file:../../node_modules/chart.js",
2020
"d3": "file:../../node_modules/d3",
21-
"leaflet": "file:../../node_modules/leaflet",
2221
"matter-js": "file:../../node_modules/matter-js",
2322
"phaser": "file:../../node_modules/phaser",
2423
"phaser-ce": "file:../../node_modules/phaser-ce",
@@ -28,7 +27,7 @@
2827
"zen-3d": "file:../../node_modules/zen-3d"
2928
},
3029
"devDependencies": {
31-
"@nativescript/android": "~8.2.0",
32-
"@nativescript/ios": "~8.2.0"
30+
"@nativescript/android": "8.4.0-alpha.8",
31+
"@nativescript/ios": "8.4.0-alpha.3"
3332
}
3433
}

apps/demo/src/app.ts

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,24 @@
11
require('@nativescript/canvas-polyfill');
2-
import { Application } from '@nativescript/core';
2+
import { Application, Utils } from '@nativescript/core';
3+
declare const jp, GDPerformanceMonitor, org;
4+
let monitor;
5+
// uncomment for fps monitor
6+
/*
7+
Application.on('launch', (args) => {
8+
if (global.isAndroid) {
9+
jp.wasabeef.takt.Takt.stock(Utils.android.getApplicationContext()).seat(jp.wasabeef.takt.Seat.TOP_CENTER).color(-65536);
10+
} else {
11+
monitor = GDPerformanceMonitor.new();
12+
13+
monitor.startMonitoringWithConfiguration((label) => {
14+
label.backgroundColor = UIColor.blackColor;
15+
label.textColor = UIColor.whiteColor;
16+
label.layer.borderColor = UIColor.redColor;
17+
});
18+
19+
monitor.appVersionHidden = true;
20+
monitor.deviceVersionHidden = true;
21+
}
22+
});
23+
*/
324
Application.run({ moduleName: 'app-root' });

package.json

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
},
2323
"private": true,
2424
"devDependencies": {
25+
"@angular-devkit/build-angular": "^14.0.0",
2526
"@angular/animations": "^14.0.0",
2627
"@angular/common": "^14.0.0",
2728
"@angular/compiler": "^14.0.0",
@@ -32,9 +33,9 @@
3233
"@angular/platform-browser-dynamic": "^14.0.0",
3334
"@angular/router": "^14.0.0",
3435
"@nativescript/angular": "^14.0.0",
35-
"@nativescript/core": "~8.2.0",
36+
"@nativescript/core": "~8.3.0",
3637
"@nativescript/plugin-tools": "4.0.0",
37-
"@nativescript/types": "~8.2.0",
38+
"@nativescript/types": "~8.3.0",
3839
"@nativescript/webpack": "~5.0.5",
3940
"@ngtools/webpack": "^14.0.0",
4041
"babylonjs": "^4.1.0",
@@ -46,7 +47,6 @@
4647
"eslint": "~7.4.0",
4748
"eslint-config-prettier": "~6.11.0",
4849
"husky": "^8.0.0",
49-
"leaflet": "^1.7.1",
5050
"matter-js": "^0.14.2",
5151
"nativescript-permissions": "1.3.11",
5252
"nativescript-theme-core": "~1.0.4",
@@ -66,8 +66,7 @@
6666
"vexflow": "^3.0.9",
6767
"xmldom": "~0.6.0",
6868
"zen-3d": "0.0.3",
69-
"zone.js": "~0.11.1",
70-
"@angular-devkit/build-angular": "^14.0.0"
69+
"zone.js": "~0.11.1"
7170
},
7271
"lint-staged": {
7372
"**/*.{js,ts,scss,json,html}": [

packages/canvas-babylon/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@nativescript/canvas-babylon",
3-
"version": "1.0.0",
3+
"version": "1.1.0-alpha.12",
44
"description": "",
55
"main": "index",
66
"typings": "index.d.ts",
@@ -33,9 +33,9 @@
3333
"readmeFilename": "README.md",
3434
"bootstrapper": "@nativescript/plugin-seed",
3535
"dependencies": {
36-
"@nativescript/canvas-polyfill": "*"
36+
"@nativescript/canvas-polyfill": "alpha"
3737
},
3838
"peerDependencies": {
3939
"babylonjs": "^4.1.0"
4040
}
41-
}
41+
}

packages/canvas-media/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@nativescript/canvas-media",
3-
"version": "1.0.0",
3+
"version": "1.1.0-alpha.12",
44
"description": "Canvas media",
55
"main": "index",
66
"typings": "index.d.ts",
@@ -32,4 +32,4 @@
3232
"homepage": "https://github.com/NativeScript/plugins",
3333
"readmeFilename": "README.md",
3434
"bootstrapper": "@nativescript/plugin-seed"
35-
}
35+
}
Binary file not shown.

packages/canvas-phaser-ce/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@nativescript/canvas-phaser-ce",
3-
"version": "1.0.0",
3+
"version": "1.1.0-alpha.12",
44
"description": "Tools for using Phaser-ce to build native 2D games in NativeScript 👾",
55
"main": "index",
66
"typings": "index.d.ts",
@@ -33,9 +33,9 @@
3333
"readmeFilename": "README.md",
3434
"bootstrapper": "@nativescript/plugin-seed",
3535
"dependencies": {
36-
"@nativescript/canvas-polyfill": "*"
36+
"@nativescript/canvas-polyfill": "alpha"
3737
},
3838
"peerDependencies": {
3939
"phaser-ce": "2.15.0"
4040
}
41-
}
41+
}

packages/canvas-phaser/game.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export const Game = (options) => {
4545
width,
4646
height,
4747
//canvas,
48-
context,
48+
context,
4949
title,
5050
type,
5151
scene,

packages/canvas-phaser/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@nativescript/canvas-phaser",
3-
"version": "1.0.0",
3+
"version": "1.1.0-alpha.12",
44
"description": "Build awesome 2D games with Phaser.js and NativeScript",
55
"main": "index",
66
"typings": "index.d.ts",
@@ -33,9 +33,9 @@
3333
"readmeFilename": "README.md",
3434
"bootstrapper": "@nativescript/plugin-seed",
3535
"dependencies": {
36-
"@nativescript/canvas-polyfill": "*"
36+
"@nativescript/canvas-polyfill": "alpha"
3737
},
3838
"peerDependencies": {
3939
"phaser": "^3.24.1"
4040
}
41-
}
41+
}

packages/canvas-pixi/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@nativescript/canvas-pixi",
3-
"version": "1.0.0",
3+
"version": "1.1.0-alpha.12",
44
"description": "Plugin for using pixi.js in NativeScript",
55
"main": "index",
66
"typings": "index.d.ts",
@@ -33,9 +33,9 @@
3333
"readmeFilename": "README.md",
3434
"bootstrapper": "nativescript-plugin-seed",
3535
"dependencies": {
36-
"@nativescript/canvas-polyfill": "*"
36+
"@nativescript/canvas-polyfill": "alpha"
3737
},
3838
"peerDependencies": {
3939
"pixi.js": "^5.3.3"
4040
}
41-
}
41+
}

0 commit comments

Comments
 (0)