-
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
78 changed files
with
767 additions
and
1,598 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,20 @@ | ||
{ | ||
"main": "./src/main.ts", | ||
"dependencies": { | ||
"@nativescript/canvas": "file:../../dist/packages/canvas", | ||
"@nativescript/canvas-babylon": "file:../../dist/packages/canvas-babylon", | ||
"@nativescript/canvas-media": "file:../../dist/packages/canvas-media", | ||
"@nativescript/canvas-phaser": "file:../../dist/packages/canvas-phaser", | ||
"@nativescript/canvas-phaser-ce": "file:../../dist/packages/canvas-phaser-ce", | ||
"@nativescript/canvas-pixi": "file:../../dist/packages/canvas-pixi", | ||
"@nativescript/canvas-polyfill": "file:../../dist/packages/canvas-polyfill", | ||
"@nativescript/canvas-three": "file:../../dist/packages/canvas-three", | ||
"@nativescript/core": "file:../../node_modules/@nativescript/core", | ||
"three": "file:../../node_modules/three" | ||
}, | ||
"devDependencies": { | ||
"@nativescript/android": "~8.5.0", | ||
"@nativescript/ios": "8.5.1-dev.0" | ||
} | ||
"main": "./src/main.ts", | ||
"dependencies": { | ||
"@nativescript/canvas": "file:../../dist/packages/canvas", | ||
"@nativescript/canvas-babylon": "file:../../dist/packages/canvas-babylon", | ||
"@nativescript/canvas-media": "file:../../dist/packages/canvas-media", | ||
"@nativescript/canvas-phaser": "file:../../dist/packages/canvas-phaser", | ||
"@nativescript/canvas-phaser-ce": "file:../../dist/packages/canvas-phaser-ce", | ||
"@nativescript/canvas-pixi": "file:../../dist/packages/canvas-pixi", | ||
"@nativescript/canvas-polyfill": "file:../../dist/packages/canvas-polyfill", | ||
"@nativescript/canvas-three": "file:../../dist/packages/canvas-three", | ||
"@nativescript/core": "file:../../node_modules/@nativescript/core", | ||
"three": "file:../../node_modules/three", | ||
"@nativescript/canvas-chartjs": "file:../../dist/packages/canvas-chartjs" | ||
}, | ||
"devDependencies": { | ||
"@nativescript/android": "~8.5.0", | ||
"@nativescript/ios": "8.5.1-dev.0" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
apps/demo-angular/src/plugin-demos/canvas-chartjs.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<ActionBar title="canvas-chartjs" class="action-bar"> </ActionBar> | ||
<StackLayout class="p-20"> | ||
<ScrollView class="h-full"> | ||
<StackLayout> | ||
<Button text="Test canvas-chartjs" (tap)="demoShared.testIt()" class="btn btn-primary"></Button> | ||
</StackLayout> | ||
</ScrollView> | ||
</StackLayout> |
19 changes: 19 additions & 0 deletions
19
apps/demo-angular/src/plugin-demos/canvas-chartjs.component.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import { Component, NgZone } from '@angular/core'; | ||
import { DemoSharedCanvasChartjs } from '@demo/shared'; | ||
import { } from '@nativescript/canvas-chartjs'; | ||
|
||
@Component({ | ||
selector: 'demo-canvas-chartjs', | ||
templateUrl: 'canvas-chartjs.component.html', | ||
}) | ||
export class CanvasChartjsComponent { | ||
|
||
demoShared: DemoSharedCanvasChartjs; | ||
|
||
constructor(private _ngZone: NgZone) {} | ||
|
||
ngOnInit() { | ||
this.demoShared = new DemoSharedCanvasChartjs(); | ||
} | ||
|
||
} |
10 changes: 10 additions & 0 deletions
10
apps/demo-angular/src/plugin-demos/canvas-chartjs.module.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { NgModule, NO_ERRORS_SCHEMA } from '@angular/core'; | ||
import { NativeScriptCommonModule, NativeScriptRouterModule } from '@nativescript/angular'; | ||
import { CanvasChartjsComponent } from './canvas-chartjs.component'; | ||
|
||
@NgModule({ | ||
imports: [NativeScriptCommonModule, NativeScriptRouterModule.forChild([{ path: '', component: CanvasChartjsComponent }])], | ||
declarations: [CanvasChartjsComponent], | ||
schemas: [ NO_ERRORS_SCHEMA] | ||
}) | ||
export class CanvasChartjsModule {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<template> | ||
<Page> | ||
<ActionBar> | ||
<Label text="canvas-chartjs"/> | ||
</ActionBar> | ||
|
||
<GridLayout> | ||
<Button class="info" :text="message"/> | ||
</GridLayout> | ||
</Page> | ||
</template> | ||
|
||
<script lang="ts"> | ||
import Vue from "nativescript-vue"; | ||
import { DemoSharedCanvasChartjs } from '@demo/shared'; | ||
import { } from '@nativescript/canvas-chartjs'; | ||
export default Vue.extend({ | ||
computed: { | ||
message() { | ||
return "Test canvas-chartjs"; | ||
} | ||
} | ||
}); | ||
</script> | ||
|
||
<style scoped lang="scss"> | ||
.info { | ||
font-size: 20; | ||
horizontal-align: center; | ||
vertical-align: center; | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,20 @@ | ||
{ | ||
"main": "./app/app.ts", | ||
"dependencies": { | ||
"nativescript-vue": "file:../../node_modules/nativescript-vue", | ||
"@nativescript/core": "file:../../node_modules/@nativescript/core", | ||
"@nativescript/canvas-media": "file:../../packages/canvas-media", | ||
"@nativescript/canvas": "file:../../packages/canvas", | ||
"@nativescript/canvas-babylon": "file:../../packages/canvas-babylon", | ||
"@nativescript/canvas-phaser": "file:../../packages/canvas-phaser", | ||
"@nativescript/canvas-phaser-ce": "file:../../packages/canvas-phaser-ce", | ||
"@nativescript/canvas-pixi": "file:../../packages/canvas-pixi", | ||
"@nativescript/canvas-polyfill": "file:../../packages/canvas-polyfill", | ||
"@nativescript/canvas-three": "file:../../packages/canvas-three" | ||
}, | ||
"devDependencies": { | ||
"@nativescript/android": "~8.5.0", | ||
"@nativescript/ios": "8.5.1-dev.0" | ||
} | ||
"main": "./app/app.ts", | ||
"dependencies": { | ||
"nativescript-vue": "file:../../node_modules/nativescript-vue", | ||
"@nativescript/core": "file:../../node_modules/@nativescript/core", | ||
"@nativescript/canvas-media": "file:../../packages/canvas-media", | ||
"@nativescript/canvas": "file:../../packages/canvas", | ||
"@nativescript/canvas-babylon": "file:../../packages/canvas-babylon", | ||
"@nativescript/canvas-phaser": "file:../../packages/canvas-phaser", | ||
"@nativescript/canvas-phaser-ce": "file:../../packages/canvas-phaser-ce", | ||
"@nativescript/canvas-pixi": "file:../../packages/canvas-pixi", | ||
"@nativescript/canvas-polyfill": "file:../../packages/canvas-polyfill", | ||
"@nativescript/canvas-three": "file:../../packages/canvas-three", | ||
"@nativescript/canvas-chartjs": "file:../../packages/canvas-chartjs" | ||
}, | ||
"devDependencies": { | ||
"@nativescript/android": "~8.5.0", | ||
"@nativescript/ios": "8.5.1-dev.0" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,33 @@ | ||
{ | ||
"main": "./src/app.ts", | ||
"description": "NativeScript Application", | ||
"license": "SEE LICENSE IN <your-license-filename>", | ||
"repository": "<fill-your-repository-here>", | ||
"dependencies": { | ||
"@nativescript/canvas": "file:../../packages/canvas", | ||
"@nativescript/canvas-babylon": "file:../../packages/canvas-babylon", | ||
"@nativescript/canvas-media": "file:../../packages/canvas-media", | ||
"@nativescript/canvas-phaser": "file:../../packages/canvas-phaser", | ||
"@nativescript/canvas-phaser-ce": "file:../../packages/canvas-phaser-ce", | ||
"@nativescript/canvas-pixi": "file:../../packages/canvas-pixi", | ||
"@nativescript/canvas-polyfill": "file:../../packages/canvas-polyfill", | ||
"@nativescript/canvas-three": "file:../../packages/canvas-three", | ||
"@nativescript/core": "file:../../node_modules/@nativescript/core", | ||
"babylonjs": "file:../../node_modules/babylonjs", | ||
"babylonjs-materials": "file:../../node_modules/babylonjs-materials", | ||
"chart.js": "file:../../node_modules/chart.js", | ||
"d3": "file:../../node_modules/d3", | ||
"matter-js": "file:../../node_modules/matter-js", | ||
"phaser": "file:../../node_modules/phaser", | ||
"phaser-ce": "file:../../node_modules/phaser-ce", | ||
"pixi.js": "file:../../node_modules/pixi.js", | ||
"three": "file:../../node_modules/three", | ||
"vexflow": "file:../../node_modules/vexflow", | ||
"zen-3d": "file:../../node_modules/zen-3d" | ||
}, | ||
"devDependencies": { | ||
"@nativescript/android": "8.5.4", | ||
"@nativescript/ios": "8.5.2" | ||
} | ||
"main": "./src/app.ts", | ||
"description": "NativeScript Application", | ||
"license": "SEE LICENSE IN <your-license-filename>", | ||
"repository": "<fill-your-repository-here>", | ||
"dependencies": { | ||
"@nativescript/canvas": "file:../../packages/canvas", | ||
"@nativescript/canvas-babylon": "file:../../packages/canvas-babylon", | ||
"@nativescript/canvas-media": "file:../../packages/canvas-media", | ||
"@nativescript/canvas-phaser": "file:../../packages/canvas-phaser", | ||
"@nativescript/canvas-phaser-ce": "file:../../packages/canvas-phaser-ce", | ||
"@nativescript/canvas-pixi": "file:../../packages/canvas-pixi", | ||
"@nativescript/canvas-polyfill": "file:../../packages/canvas-polyfill", | ||
"@nativescript/canvas-three": "file:../../packages/canvas-three", | ||
"@nativescript/core": "file:../../node_modules/@nativescript/core", | ||
"babylonjs": "file:../../node_modules/babylonjs", | ||
"babylonjs-materials": "file:../../node_modules/babylonjs-materials", | ||
"chart.js": "file:../../node_modules/chart.js", | ||
"d3": "file:../../node_modules/d3", | ||
"matter-js": "file:../../node_modules/matter-js", | ||
"phaser": "file:../../node_modules/phaser", | ||
"phaser-ce": "file:../../node_modules/phaser-ce", | ||
"pixi.js": "file:../../node_modules/pixi.js", | ||
"three": "file:../../node_modules/three", | ||
"vexflow": "file:../../node_modules/vexflow", | ||
"zen-3d": "file:../../node_modules/zen-3d", | ||
"@nativescript/canvas-chartjs": "file:../../packages/canvas-chartjs" | ||
}, | ||
"devDependencies": { | ||
"@nativescript/android": "8.6.2", | ||
"@nativescript/ios": "8.6.1" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { Observable, EventData, Page } from '@nativescript/core'; | ||
import { DemoSharedCanvasChartjs } from '@demo/shared'; | ||
import { } from '@nativescript/canvas-chartjs'; | ||
|
||
export function navigatingTo(args: EventData) { | ||
const page = <Page>args.object; | ||
page.bindingContext = new DemoModel(); | ||
} | ||
|
||
export class DemoModel extends DemoSharedCanvasChartjs { | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<Page xmlns="http://schemas.nativescript.org/tns.xsd" navigatingTo="navigatingTo" class="page"> | ||
<Page.actionBar> | ||
<ActionBar title="canvas-chartjs" icon="" class="action-bar"> | ||
</ActionBar> | ||
</Page.actionBar> | ||
<StackLayout class="p-20"> | ||
<ScrollView class="h-full"> | ||
<StackLayout> | ||
<Button text="Test canvas-chartjs" tap="{{ testIt }}" class="btn btn-primary"/> | ||
|
||
</StackLayout> | ||
</ScrollView> | ||
</StackLayout> | ||
</Page> |
Oops, something went wrong.