@nativescript/canvas 2.0.0-beta.0 → 2.0.0-beta.10
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/common.js +3 -0
- package/Canvas/common.js.map +1 -1
- 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 +4 -1
- package/Canvas/index.ios.js +14 -6
- package/Canvas/index.ios.js.map +1 -1
- package/Canvas2D/CanvasRenderingContext2D/index.d.ts +16 -0
- package/Canvas2D/CanvasRenderingContext2D/index.js +209 -10
- package/Canvas2D/CanvasRenderingContext2D/index.js.map +1 -1
- package/Canvas2D/DOMMatrix/index.js +5 -3
- package/Canvas2D/DOMMatrix/index.js.map +1 -1
- package/Canvas2D/Path2D/index.d.ts +2 -1
- package/Canvas2D/Path2D/index.js +3 -12
- package/Canvas2D/Path2D/index.js.map +1 -1
- package/Dom/Dom.d.ts +20 -1
- package/Dom/Dom.js +79 -6
- package/Dom/Dom.js.map +1 -1
- package/Dom/Group.d.ts +12 -7
- package/Dom/Group.js +62 -21
- package/Dom/Group.js.map +1 -1
- package/Dom/Image.d.ts +1 -0
- package/Dom/Image.js +22 -3
- package/Dom/Image.js.map +1 -1
- package/Dom/Paint.d.ts +5 -0
- package/Dom/Paint.js +25 -7
- package/Dom/Paint.js.map +1 -1
- package/Dom/Shadow.js +9 -0
- package/Dom/Shadow.js.map +1 -1
- package/Dom/Text.js +14 -5
- 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/Atlas.d.ts +22 -0
- package/Dom/shapes/Atlas.js +60 -0
- package/Dom/shapes/Atlas.js.map +1 -0
- package/Dom/shapes/Circle.js +12 -1
- package/Dom/shapes/Circle.js.map +1 -1
- package/Dom/shapes/Line.d.ts +16 -4
- package/Dom/shapes/Line.js +13 -8
- package/Dom/shapes/Line.js.map +1 -1
- package/Dom/shapes/Oval.d.ts +12 -0
- package/Dom/shapes/Oval.js +87 -0
- package/Dom/shapes/Oval.js.map +1 -0
- package/Dom/shapes/Path.d.ts +19 -2
- package/Dom/shapes/Path.js +68 -3
- package/Dom/shapes/Path.js.map +1 -1
- package/Dom/shapes/Points.js +9 -1
- package/Dom/shapes/Points.js.map +1 -1
- package/Dom/shapes/Rect.js +29 -7
- package/Dom/shapes/Rect.js.map +1 -1
- package/Dom/shapes/RoundedRect.d.ts +2 -1
- package/Dom/shapes/RoundedRect.js +21 -11
- package/Dom/shapes/RoundedRect.js.map +1 -1
- package/Dom/shapes/index.d.ts +17 -0
- package/Dom/shapes/index.js +31 -0
- package/Dom/shapes/index.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/WebGL/WebGLRenderingContext/index.js +37 -1
- package/WebGL/WebGLRenderingContext/index.js.map +1 -1
- package/package.json +1 -1
- package/platforms/android/canvas-release.aar +0 -0
- package/platforms/ios/CanvasNative.xcframework/Info.plist +4 -0
- 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 +25 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Headers/canvas_native.h +50 -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 +306 -208
- 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 +668 -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 +25 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Headers/canvas_native.h +50 -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 +306 -208
- 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 +306 -208
- 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 +667 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/dSYMs/CanvasNative.framework.dSYM/Contents/Resources/Relocations/x86_64/CanvasNative.yml +646 -0
- package/platforms/ios/src/cpp/ImageAssetImpl.cpp +22 -3
- package/platforms/ios/src/cpp/ImageAssetImpl.h +5 -2
- package/platforms/ios/src/cpp/ObjectWrapperImpl.h +8 -6
- package/platforms/ios/src/cpp/canvas2d/CanvasRenderingContext2DImpl.cpp +342 -75
- package/platforms/ios/src/cpp/canvas2d/CanvasRenderingContext2DImpl.h +153 -55
- package/platforms/ios/src/cpp/canvas2d/MatrixImpl.h +1 -1
- package/platforms/ios/src/cpp/canvas2d/Path2D.cpp +19 -48
- package/platforms/ios/src/cpp/canvas2d/Path2D.h +19 -0
- package/platforms/ios/src/cpp/webgl/WebGLRenderingContext.cpp +5 -0
- package/platforms/ios/src/cpp/webgl/WebGLRenderingContext.h +4 -4
- 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,29 @@ 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
|
+
|
|
163
|
+
int64_t canvas_native_context_get_texture_from_2d(int64_t context);
|
|
164
|
+
|
|
165
|
+
uint32_t canvas_native_context_backend_texture_get_id(int64_t texture);
|
|
166
|
+
|
|
167
|
+
void canvas_native_context_backend_texture_destroy(int64_t texture);
|
|
168
|
+
|
|
144
169
|
#endif /* CANVAS_IOS_H */
|
|
@@ -670,6 +670,40 @@ void canvas_native_context_draw_image_context(struct CanvasRenderingContext2D *c
|
|
|
670
670
|
float d_width,
|
|
671
671
|
float d_height);
|
|
672
672
|
|
|
673
|
+
void canvas_native_context_draw_atlas(struct CanvasRenderingContext2D *context,
|
|
674
|
+
const uint8_t *data,
|
|
675
|
+
uintptr_t size,
|
|
676
|
+
float width,
|
|
677
|
+
float height,
|
|
678
|
+
const float *xform,
|
|
679
|
+
uintptr_t xform_size,
|
|
680
|
+
const float *tex,
|
|
681
|
+
uintptr_t tex_size,
|
|
682
|
+
const char *const *colors,
|
|
683
|
+
uintptr_t colors_size,
|
|
684
|
+
int32_t blend_mode);
|
|
685
|
+
|
|
686
|
+
void canvas_native_context_draw_atlas_encoded(struct CanvasRenderingContext2D *context,
|
|
687
|
+
const uint8_t *data,
|
|
688
|
+
uintptr_t size,
|
|
689
|
+
const float *xform,
|
|
690
|
+
uintptr_t xform_size,
|
|
691
|
+
const float *tex,
|
|
692
|
+
uintptr_t tex_size,
|
|
693
|
+
const char *const *colors,
|
|
694
|
+
uintptr_t colors_size,
|
|
695
|
+
int32_t blend_mode);
|
|
696
|
+
|
|
697
|
+
void canvas_native_context_draw_atlas_asset(struct CanvasRenderingContext2D *context,
|
|
698
|
+
struct ImageAsset *asset,
|
|
699
|
+
const float *xform,
|
|
700
|
+
uintptr_t xform_size,
|
|
701
|
+
const float *tex,
|
|
702
|
+
uintptr_t tex_size,
|
|
703
|
+
const char *const *colors,
|
|
704
|
+
uintptr_t colors_size,
|
|
705
|
+
int32_t blend_mode);
|
|
706
|
+
|
|
673
707
|
void canvas_native_context_ellipse(struct CanvasRenderingContext2D *context,
|
|
674
708
|
float x,
|
|
675
709
|
float y,
|
|
@@ -709,6 +743,12 @@ void canvas_native_context_fill_text_width(struct CanvasRenderingContext2D *cont
|
|
|
709
743
|
float y,
|
|
710
744
|
float width);
|
|
711
745
|
|
|
746
|
+
void canvas_native_context_fill_oval(struct CanvasRenderingContext2D *context,
|
|
747
|
+
float x,
|
|
748
|
+
float y,
|
|
749
|
+
float width,
|
|
750
|
+
float height);
|
|
751
|
+
|
|
712
752
|
struct ImageData *canvas_native_context_get_image_data(struct CanvasRenderingContext2D *context,
|
|
713
753
|
float sx,
|
|
714
754
|
float sy,
|
|
@@ -837,6 +877,12 @@ void canvas_native_context_stroke_text_width(struct CanvasRenderingContext2D *co
|
|
|
837
877
|
float y,
|
|
838
878
|
float width);
|
|
839
879
|
|
|
880
|
+
void canvas_native_context_stroke_oval(struct CanvasRenderingContext2D *context,
|
|
881
|
+
float x,
|
|
882
|
+
float y,
|
|
883
|
+
float width,
|
|
884
|
+
float height);
|
|
885
|
+
|
|
840
886
|
void canvas_native_context_transform(struct CanvasRenderingContext2D *context,
|
|
841
887
|
float a,
|
|
842
888
|
float b,
|
|
@@ -921,6 +967,8 @@ bool canvas_native_image_bitmap_create_from_encoded_bytes_src_rect_with_output(c
|
|
|
921
967
|
float resize_height,
|
|
922
968
|
struct ImageAsset *output);
|
|
923
969
|
|
|
970
|
+
void canvas_native_path_trim(struct Path *path, float start, float end);
|
|
971
|
+
|
|
924
972
|
void canvas_native_path_add_path(struct Path *path, const struct Path *path_to_add);
|
|
925
973
|
|
|
926
974
|
struct Path *canvas_native_path_create(void);
|
|
@@ -1213,6 +1261,8 @@ bool canvas_native_webgl_make_current(struct WebGLState *state);
|
|
|
1213
1261
|
|
|
1214
1262
|
bool canvas_native_webgl_swap_buffers(struct WebGLState *state);
|
|
1215
1263
|
|
|
1264
|
+
bool canvas_native_webgl_make_current_and_swap_buffers(struct WebGLState *state);
|
|
1265
|
+
|
|
1216
1266
|
void canvas_native_webgl_resized(struct WebGLState *_state);
|
|
1217
1267
|
|
|
1218
1268
|
const char *canvas_native_webgl_to_data_url(struct WebGLState *state,
|
|
Binary file
|
|
Binary file
|