Skip to content

Commit

Permalink
chore: updates
Browse files Browse the repository at this point in the history
  • Loading branch information
triniwiz committed Oct 23, 2023
1 parent 15edc67 commit 1ea27c0
Show file tree
Hide file tree
Showing 36 changed files with 1,519 additions and 1,517 deletions.
2 changes: 1 addition & 1 deletion packages/canvas-babylon/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nativescript/canvas-babylon",
"version": "2.0.0-alpha.22",
"version": "2.0.0-alpha.23",
"description": "",
"main": "index",
"typings": "index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/canvas-chartjs/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nativescript/canvas-chartjs",
"version": "2.0.0-alpha.22",
"version": "2.0.0-alpha.23",
"description": "ChartJS",
"main": "index",
"typings": "index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/canvas-media/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nativescript/canvas-media",
"version": "2.0.0-alpha.22",
"version": "2.0.0-alpha.23",
"description": "Canvas media",
"main": "index",
"typings": "index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion 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": "2.0.0-alpha.22",
"version": "2.0.0-alpha.23",
"description": "Tools for using Phaser-ce to build native 2D games in NativeScript 👾",
"main": "index",
"typings": "index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/canvas-phaser/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nativescript/canvas-phaser",
"version": "2.0.0-alpha.22",
"version": "2.0.0-alpha.23",
"description": "Build awesome 2D games with Phaser.js and NativeScript",
"main": "index",
"typings": "index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/canvas-pixi/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nativescript/canvas-pixi",
"version": "2.0.0-alpha.22",
"version": "2.0.0-alpha.23",
"description": "Plugin for using pixi.js in NativeScript",
"main": "index",
"typings": "index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/canvas-polyfill/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nativescript/canvas-polyfill",
"version": "2.0.0-alpha.22",
"version": "2.0.0-alpha.23",
"description": "Polyfill for making NativeScript compatible with web libs like pixi.js, three.js, phaser.js, babylon.js, etc....",
"main": "index",
"typings": "index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/canvas-three/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nativescript/canvas-three",
"version": "2.0.0-alpha.22",
"version": "2.0.0-alpha.23",
"description": "Utilities for using THREE.js on NativeScript",
"main": "index",
"typings": "index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/canvas/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nativescript/canvas",
"version": "2.0.0-alpha.22",
"version": "2.0.0-alpha.23",
"description": "DOM Canvas API for NativeScript",
"main": "index",
"typings": "index.d.ts",
Expand Down
Binary file modified packages/canvas/platforms/android/canvas-release.aar
Binary file not shown.
8 changes: 4 additions & 4 deletions packages/canvas/platforms/ios/src/cpp/ImageAssetImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,8 @@ void ImageAssetImpl::Scale(const v8::FunctionCallbackInfo<v8::Value> &args) {
auto context = isolate->GetCurrentContext();

if (args.Length() > 1) {
auto x = (uint32_t) args[0]->NumberValue(context).ToChecked();
auto y = (uint32_t) args[1]->NumberValue(context).ToChecked();
auto x = args[0]->Uint32Value(context).ToChecked();
auto y = args[1]->Uint32Value(context).ToChecked();
if (x > 0 && y > 0) {
canvas_native_image_asset_scale(
ptr->GetImageAsset(), x,
Expand Down Expand Up @@ -663,7 +663,7 @@ void ImageAssetImpl::SaveSync(const v8::FunctionCallbackInfo<v8::Value> &args) {
auto isolate = args.GetIsolate();
auto context = isolate->GetCurrentContext();
auto path = ConvertFromV8String(isolate, args[0]);
auto format = (uint32_t) args[1]->NumberValue(context).ToChecked();
auto format = args[1]->Uint32Value(context).ToChecked();
auto done = canvas_native_image_asset_save_path(ptr->GetImageAsset(), path.c_str(), format);

args.GetReturnValue().Set(done);
Expand All @@ -683,7 +683,7 @@ void ImageAssetImpl::SaveCb(const v8::FunctionCallbackInfo<v8::Value> &args) {

auto path = ConvertFromV8String(isolate, args[0]);

auto format = (uint32_t) args[1]->NumberValue(context).ToChecked();
auto format = args[1]->Uint32Value(context).ToChecked();

auto asset = canvas_native_image_asset_shared_clone(
ptr->GetImageAsset());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ void
WebGLActiveInfoImpl::GetSize(v8::Local<v8::String> name,
const v8::PropertyCallbackInfo<v8::Value> &info) {
auto ptr = GetPointer(info.This());
auto isolate = info.GetIsolate();
if (ptr != nullptr) {
auto size = canvas_native_webgl_active_info_get_size(ptr->GetWebGLActiveInfo());
info.GetReturnValue().Set(size);
Expand All @@ -77,7 +76,6 @@ void
WebGLActiveInfoImpl::GetType(v8::Local<v8::String> name,
const v8::PropertyCallbackInfo<v8::Value> &info) {
auto ptr = GetPointer(info.This());
auto isolate = info.GetIsolate();
if (ptr != nullptr) {
auto type = canvas_native_webgl_active_info_get_type(ptr->GetWebGLActiveInfo());
info.GetReturnValue().Set(type);
Expand Down
Loading

0 comments on commit 1ea27c0

Please sign in to comment.