@nativescript/canvas 2.0.0-beta.2 → 2.0.0-beta.4
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/Canvas/index.android.d.ts +1 -0
- package/Canvas/index.android.js +8 -2
- package/Canvas/index.android.js.map +1 -1
- package/Canvas/index.d.ts +2 -0
- package/Canvas/index.ios.d.ts +2 -0
- package/Canvas/index.ios.js +10 -1
- package/Canvas/index.ios.js.map +1 -1
- package/Canvas2D/CanvasRenderingContext2D/index.js +23 -8
- package/Canvas2D/CanvasRenderingContext2D/index.js.map +1 -1
- package/Dom/Dom.d.ts +18 -1
- package/Dom/Dom.js +73 -10
- package/Dom/Dom.js.map +1 -1
- package/Dom/Group.js +1 -0
- package/Dom/Group.js.map +1 -1
- package/Dom/Image.d.ts +1 -0
- package/Dom/Image.js +20 -0
- package/Dom/Image.js.map +1 -1
- package/Dom/Paint.d.ts +1 -0
- package/Dom/Paint.js +6 -0
- package/Dom/Paint.js.map +1 -1
- package/Dom/Shadow.js +9 -0
- package/Dom/Shadow.js.map +1 -1
- package/Dom/Text.js +9 -0
- package/Dom/Text.js.map +1 -1
- package/Dom/index.d.ts +1 -0
- package/Dom/index.js +1 -0
- package/Dom/index.js.map +1 -1
- package/Dom/shaders/Gradients.d.ts +3 -0
- package/Dom/shaders/Gradients.js +4 -0
- package/Dom/shaders/Gradients.js.map +1 -0
- package/Dom/shaders/LinearGradient.d.ts +14 -0
- package/Dom/shaders/LinearGradient.js +44 -0
- package/Dom/shaders/LinearGradient.js.map +1 -0
- package/Dom/shaders/TwoPointConicalGradient.d.ts +16 -0
- package/Dom/shaders/TwoPointConicalGradient.js +60 -0
- package/Dom/shaders/TwoPointConicalGradient.js.map +1 -0
- package/Dom/shaders/index.d.ts +2 -0
- package/Dom/shaders/index.js +3 -0
- package/Dom/shaders/index.js.map +1 -0
- package/Dom/shapes/Circle.js +10 -0
- package/Dom/shapes/Circle.js.map +1 -1
- package/Dom/shapes/Line.d.ts +16 -4
- package/Dom/shapes/Line.js +12 -8
- package/Dom/shapes/Line.js.map +1 -1
- package/Dom/shapes/Path.js +3 -0
- package/Dom/shapes/Path.js.map +1 -1
- package/Dom/shapes/Points.js +6 -0
- package/Dom/shapes/Points.js.map +1 -1
- package/Dom/shapes/Rect.js +26 -5
- package/Dom/shapes/Rect.js.map +1 -1
- package/Dom/shapes/RoundedRect.d.ts +2 -1
- package/Dom/shapes/RoundedRect.js +11 -1
- package/Dom/shapes/RoundedRect.js.map +1 -1
- package/SVG/SVG.d.ts +2 -1
- package/SVG/SVG.js +15 -1
- package/SVG/SVG.js.map +1 -1
- package/package.json +1 -1
- package/platforms/android/canvas-release.aar +0 -0
- package/platforms/ios/CanvasNative.xcframework/Info.plist +9 -5
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/CanvasNative +0 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Headers/CanvasNative-Swift.h +21 -4
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Headers/canvas_ios.h +19 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Headers/canvas_native.h +2 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Info.plist +0 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/CanvasNative.swiftmodule/Project/arm64-apple-ios.swiftsourceinfo +0 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios.abi.json +227 -45
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios.private.swiftinterface +2 -1
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios.swiftinterface +2 -1
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/module.modulemap +1 -1
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/NSCCanvas.nib +0 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/dSYMs/CanvasNative.framework.dSYM/Contents/Resources/DWARF/CanvasNative +0 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/dSYMs/CanvasNative.framework.dSYM/Contents/Resources/Relocations/aarch64/CanvasNative.yml +666 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/CanvasNative +0 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Headers/CanvasNative-Swift.h +42 -8
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Headers/canvas_ios.h +19 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Headers/canvas_native.h +2 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Info.plist +0 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/Project/arm64-apple-ios-simulator.swiftsourceinfo +0 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/Project/x86_64-apple-ios-simulator.swiftsourceinfo +0 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios-simulator.abi.json +227 -45
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +2 -1
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios-simulator.swiftinterface +2 -1
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/x86_64-apple-ios-simulator.abi.json +227 -45
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +2 -1
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +2 -1
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/module.modulemap +1 -1
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/NSCCanvas.nib +0 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/_CodeSignature/CodeResources +35 -35
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/dSYMs/CanvasNative.framework.dSYM/Contents/Resources/DWARF/CanvasNative +0 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/dSYMs/CanvasNative.framework.dSYM/Contents/Resources/Relocations/aarch64/CanvasNative.yml +668 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/dSYMs/CanvasNative.framework.dSYM/Contents/Resources/Relocations/x86_64/CanvasNative.yml +647 -0
- package/platforms/ios/src/cpp/canvas2d/CanvasRenderingContext2DImpl.cpp +111 -44
- package/platforms/ios/src/cpp/canvas2d/CanvasRenderingContext2DImpl.h +57 -55
- package/platforms/ios/src/cpp/webgl/WebGLRenderingContext.cpp +5 -0
- package/platforms/ios/src/cpp/webgl/WebGLRenderingContextBase.cpp +37 -7
- package/platforms/ios/src/cpp/webgl/WebGLRenderingContextBase.h +10 -0
- package/src-native/ios/NativeScript.podspec +1 -1
|
Binary file
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#if 0
|
|
2
2
|
#elif defined(__arm64__) && __arm64__
|
|
3
|
-
// Generated by Apple Swift version 5.
|
|
3
|
+
// Generated by Apple Swift version 5.9.2 (swiftlang-5.9.2.2.56 clang-1500.1.0.2.5)
|
|
4
4
|
#ifndef CANVASNATIVE_SWIFT_H
|
|
5
5
|
#define CANVASNATIVE_SWIFT_H
|
|
6
6
|
#pragma clang diagnostic push
|
|
@@ -42,12 +42,18 @@
|
|
|
42
42
|
#include <string.h>
|
|
43
43
|
#endif
|
|
44
44
|
#if defined(__cplusplus)
|
|
45
|
-
#if __has_include(<ptrauth.h>)
|
|
45
|
+
#if defined(__arm64e__) && __has_include(<ptrauth.h>)
|
|
46
46
|
# include <ptrauth.h>
|
|
47
47
|
#else
|
|
48
|
+
#pragma clang diagnostic push
|
|
49
|
+
#pragma clang diagnostic ignored "-Wreserved-macro-identifier"
|
|
48
50
|
# ifndef __ptrauth_swift_value_witness_function_pointer
|
|
49
51
|
# define __ptrauth_swift_value_witness_function_pointer(x)
|
|
50
52
|
# endif
|
|
53
|
+
# ifndef __ptrauth_swift_class_method_pointer
|
|
54
|
+
# define __ptrauth_swift_class_method_pointer(x)
|
|
55
|
+
# endif
|
|
56
|
+
#pragma clang diagnostic pop
|
|
51
57
|
#endif
|
|
52
58
|
#endif
|
|
53
59
|
|
|
@@ -246,6 +252,17 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
|
|
|
246
252
|
#else
|
|
247
253
|
# define SWIFT_NOEXCEPT
|
|
248
254
|
#endif
|
|
255
|
+
#if !defined(SWIFT_C_INLINE_THUNK)
|
|
256
|
+
# if __has_attribute(always_inline)
|
|
257
|
+
# if __has_attribute(nodebug)
|
|
258
|
+
# define SWIFT_C_INLINE_THUNK inline __attribute__((always_inline)) __attribute__((nodebug))
|
|
259
|
+
# else
|
|
260
|
+
# define SWIFT_C_INLINE_THUNK inline __attribute__((always_inline))
|
|
261
|
+
# endif
|
|
262
|
+
# else
|
|
263
|
+
# define SWIFT_C_INLINE_THUNK inline
|
|
264
|
+
# endif
|
|
265
|
+
#endif
|
|
249
266
|
#if defined(_WIN32)
|
|
250
267
|
#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL)
|
|
251
268
|
# define SWIFT_IMPORT_STDLIB_SYMBOL __declspec(dllimport)
|
|
@@ -458,17 +475,17 @@ SWIFT_CLASS_NAMED("Utils")
|
|
|
458
475
|
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
|
|
459
476
|
@end
|
|
460
477
|
|
|
461
|
-
#endif
|
|
462
|
-
#if defined(__cplusplus)
|
|
463
478
|
#endif
|
|
464
479
|
#if __has_attribute(external_source_symbol)
|
|
465
480
|
# pragma clang attribute pop
|
|
466
481
|
#endif
|
|
482
|
+
#if defined(__cplusplus)
|
|
483
|
+
#endif
|
|
467
484
|
#pragma clang diagnostic pop
|
|
468
485
|
#endif
|
|
469
486
|
|
|
470
487
|
#elif defined(__x86_64__) && __x86_64__
|
|
471
|
-
// Generated by Apple Swift version 5.
|
|
488
|
+
// Generated by Apple Swift version 5.9.2 (swiftlang-5.9.2.2.56 clang-1500.1.0.2.5)
|
|
472
489
|
#ifndef CANVASNATIVE_SWIFT_H
|
|
473
490
|
#define CANVASNATIVE_SWIFT_H
|
|
474
491
|
#pragma clang diagnostic push
|
|
@@ -510,12 +527,18 @@ SWIFT_CLASS_NAMED("Utils")
|
|
|
510
527
|
#include <string.h>
|
|
511
528
|
#endif
|
|
512
529
|
#if defined(__cplusplus)
|
|
513
|
-
#if __has_include(<ptrauth.h>)
|
|
530
|
+
#if defined(__arm64e__) && __has_include(<ptrauth.h>)
|
|
514
531
|
# include <ptrauth.h>
|
|
515
532
|
#else
|
|
533
|
+
#pragma clang diagnostic push
|
|
534
|
+
#pragma clang diagnostic ignored "-Wreserved-macro-identifier"
|
|
516
535
|
# ifndef __ptrauth_swift_value_witness_function_pointer
|
|
517
536
|
# define __ptrauth_swift_value_witness_function_pointer(x)
|
|
518
537
|
# endif
|
|
538
|
+
# ifndef __ptrauth_swift_class_method_pointer
|
|
539
|
+
# define __ptrauth_swift_class_method_pointer(x)
|
|
540
|
+
# endif
|
|
541
|
+
#pragma clang diagnostic pop
|
|
519
542
|
#endif
|
|
520
543
|
#endif
|
|
521
544
|
|
|
@@ -714,6 +737,17 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
|
|
|
714
737
|
#else
|
|
715
738
|
# define SWIFT_NOEXCEPT
|
|
716
739
|
#endif
|
|
740
|
+
#if !defined(SWIFT_C_INLINE_THUNK)
|
|
741
|
+
# if __has_attribute(always_inline)
|
|
742
|
+
# if __has_attribute(nodebug)
|
|
743
|
+
# define SWIFT_C_INLINE_THUNK inline __attribute__((always_inline)) __attribute__((nodebug))
|
|
744
|
+
# else
|
|
745
|
+
# define SWIFT_C_INLINE_THUNK inline __attribute__((always_inline))
|
|
746
|
+
# endif
|
|
747
|
+
# else
|
|
748
|
+
# define SWIFT_C_INLINE_THUNK inline
|
|
749
|
+
# endif
|
|
750
|
+
#endif
|
|
717
751
|
#if defined(_WIN32)
|
|
718
752
|
#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL)
|
|
719
753
|
# define SWIFT_IMPORT_STDLIB_SYMBOL __declspec(dllimport)
|
|
@@ -926,12 +960,12 @@ SWIFT_CLASS_NAMED("Utils")
|
|
|
926
960
|
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
|
|
927
961
|
@end
|
|
928
962
|
|
|
929
|
-
#endif
|
|
930
|
-
#if defined(__cplusplus)
|
|
931
963
|
#endif
|
|
932
964
|
#if __has_attribute(external_source_symbol)
|
|
933
965
|
# pragma clang attribute pop
|
|
934
966
|
#endif
|
|
967
|
+
#if defined(__cplusplus)
|
|
968
|
+
#endif
|
|
935
969
|
#pragma clang diagnostic pop
|
|
936
970
|
#endif
|
|
937
971
|
|
|
@@ -141,4 +141,23 @@ bool canvas_native_context_draw_image_with_bytes(int64_t context,
|
|
|
141
141
|
float d_width,
|
|
142
142
|
float d_height);
|
|
143
143
|
|
|
144
|
+
void canvas_native_svg_draw_from_string(int64_t context, const char *svg);
|
|
145
|
+
|
|
146
|
+
void canvas_native_svg_draw_from_path(int64_t context, const char *path);
|
|
147
|
+
|
|
148
|
+
void canvas_native_context_custom_with_buffer_flush(int64_t context,
|
|
149
|
+
uint8_t *bytes,
|
|
150
|
+
uintptr_t size,
|
|
151
|
+
float width,
|
|
152
|
+
float height,
|
|
153
|
+
bool alpha);
|
|
154
|
+
|
|
155
|
+
long long canvas_native_context_init_context_with_custom_surface(float width,
|
|
156
|
+
float height,
|
|
157
|
+
float density,
|
|
158
|
+
bool alpha,
|
|
159
|
+
int font_color,
|
|
160
|
+
float ppi,
|
|
161
|
+
int direction);
|
|
162
|
+
|
|
144
163
|
#endif /* CANVAS_IOS_H */
|
|
@@ -1213,6 +1213,8 @@ bool canvas_native_webgl_make_current(struct WebGLState *state);
|
|
|
1213
1213
|
|
|
1214
1214
|
bool canvas_native_webgl_swap_buffers(struct WebGLState *state);
|
|
1215
1215
|
|
|
1216
|
+
bool canvas_native_webgl_make_current_and_swap_buffers(struct WebGLState *state);
|
|
1217
|
+
|
|
1216
1218
|
void canvas_native_webgl_resized(struct WebGLState *_state);
|
|
1217
1219
|
|
|
1218
1220
|
const char *canvas_native_webgl_to_data_url(struct WebGLState *state,
|
|
Binary file
|
|
Binary file
|