@nativescript/canvas 2.0.0-rc.2 → 2.0.0-rc.20
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.d.ts +13 -6
- package/Canvas/common.js +257 -206
- package/Canvas/common.js.map +1 -1
- package/Canvas/index.android.d.ts +2 -0
- package/Canvas/index.android.js +23 -4
- package/Canvas/index.android.js.map +1 -1
- package/Canvas/index.d.ts +3 -0
- package/Canvas/index.ios.d.ts +2 -0
- package/Canvas/index.ios.js +16 -3
- package/Canvas/index.ios.js.map +1 -1
- package/Canvas/utils.js +2 -1
- package/Canvas/utils.js.map +1 -1
- package/Canvas2D/CanvasRenderingContext2D/index.d.ts +1 -0
- package/Canvas2D/CanvasRenderingContext2D/index.js +158 -6
- package/Canvas2D/CanvasRenderingContext2D/index.js.map +1 -1
- package/Canvas2D/DOMMatrix/index.js +280 -2
- package/Canvas2D/DOMMatrix/index.js.map +1 -1
- package/Canvas2D/Path2D/index.js.map +1 -1
- package/Fonts/FontFace.android.js +7 -3
- package/Fonts/FontFace.android.js.map +1 -1
- package/Fonts/FontFace.ios.d.ts +1 -0
- package/Fonts/FontFace.ios.js +10 -3
- package/Fonts/FontFace.ios.js.map +1 -1
- package/TextDecoder/index.d.ts +1 -0
- package/TextDecoder/index.js +17 -0
- package/TextDecoder/index.js.map +1 -1
- package/WebGL/WebGLRenderingContext/index.js +0 -1
- package/WebGL/WebGLRenderingContext/index.js.map +1 -1
- package/WebGPU/GPUCanvasContext.d.ts +0 -1
- package/WebGPU/GPUCanvasContext.js +6 -18
- package/WebGPU/GPUCanvasContext.js.map +1 -1
- package/WebGPU/GPUCommandEncoder.d.ts +1 -1
- package/WebGPU/GPUCommandEncoder.js +1 -1
- package/WebGPU/GPUCommandEncoder.js.map +1 -1
- package/WebGPU/GPUCompilationInfo.d.ts +10 -0
- package/WebGPU/GPUCompilationInfo.js +20 -0
- package/WebGPU/GPUCompilationInfo.js.map +1 -0
- package/WebGPU/GPUCompilationMessage.d.ts +11 -0
- package/WebGPU/GPUCompilationMessage.js +30 -0
- package/WebGPU/GPUCompilationMessage.js.map +1 -0
- package/WebGPU/GPUDevice.d.ts +2 -2
- package/WebGPU/GPUDevice.js.map +1 -1
- package/WebGPU/GPUQueue.js +1 -4
- package/WebGPU/GPUQueue.js.map +1 -1
- package/WebGPU/GPURenderPassEncoder.d.ts +1 -1
- package/WebGPU/GPURenderPassEncoder.js +2 -2
- package/WebGPU/GPURenderPassEncoder.js.map +1 -1
- package/WebGPU/GPUShaderModule.d.ts +2 -0
- package/WebGPU/GPUShaderModule.js +10 -0
- package/WebGPU/GPUShaderModule.js.map +1 -1
- package/WebGPU/Interfaces.d.ts +1 -0
- package/WebGPU/Types.d.ts +3 -3
- package/WebGPU/Utils.d.ts +1 -1
- package/WebGPU/Utils.js +67 -93
- package/WebGPU/Utils.js.map +1 -1
- package/WebGPU/index.d.ts +2 -0
- package/WebGPU/index.js +2 -0
- package/WebGPU/index.js.map +1 -1
- package/angular/fesm2022/nativescript-canvas-angular.mjs +5 -5
- package/angular/package.json +0 -2
- package/helpers.d.ts +3 -0
- package/helpers.js +9 -0
- package/helpers.js.map +1 -1
- package/index.js +6 -1
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/platforms/android/canvas-release.aar +0 -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 +10 -5
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Headers/canvas_native.h +294 -47
- 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 +11317 -11881
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios.private.swiftinterface +55 -49
- 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 +55 -49
- 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 +954 -994
- 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 +20 -10
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Headers/canvas_native.h +294 -47
- 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 +11317 -11881
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +55 -49
- 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 +55 -49
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/x86_64-apple-ios-simulator.abi.json +11317 -11881
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +55 -49
- 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 +55 -49
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/_CodeSignature/CodeResources +29 -29
- 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 +955 -993
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/dSYMs/CanvasNative.framework.dSYM/Contents/Resources/Relocations/x86_64/CanvasNative.yml +824 -1037
- package/platforms/ios/src/cpp/Caches.h +6 -0
- package/platforms/ios/src/cpp/CanvasJSIModule.cpp +1172 -1011
- package/platforms/ios/src/cpp/CanvasJSIModule.h +6 -0
- package/platforms/ios/src/cpp/Helpers.h +23 -2
- package/platforms/ios/src/cpp/NativeType.h +3 -1
- package/platforms/ios/src/cpp/OnRafCallback.cpp +15 -10
- package/platforms/ios/src/cpp/OnRafCallback.h +1 -0
- package/platforms/ios/src/cpp/PromiseCallback.h +42 -20
- package/platforms/ios/src/cpp/TextDecoderImpl.cpp +142 -0
- package/platforms/ios/src/cpp/TextDecoderImpl.h +2 -0
- package/platforms/ios/src/cpp/canvas2d/CanvasRenderingContext2DImpl.cpp +59 -15
- package/platforms/ios/src/cpp/canvas2d/Path2D.cpp +1 -1
- package/platforms/ios/src/cpp/webgpu/GPUAdapterImpl.cpp +4 -8
- package/platforms/ios/src/cpp/webgpu/GPUCanvasContextImpl.cpp +431 -326
- package/platforms/ios/src/cpp/webgpu/GPUCanvasContextImpl.h +98 -42
- package/platforms/ios/src/cpp/webgpu/GPUCommandEncoderImpl.cpp +1150 -1144
- package/platforms/ios/src/cpp/webgpu/GPUCompilationInfoImpl.cpp +88 -0
- package/platforms/ios/src/cpp/webgpu/GPUCompilationInfoImpl.h +49 -0
- package/platforms/ios/src/cpp/webgpu/GPUCompilationMessageImpl.cpp +193 -0
- package/platforms/ios/src/cpp/webgpu/GPUCompilationMessageImpl.h +64 -0
- package/platforms/ios/src/cpp/webgpu/GPUDeviceImpl.cpp +69 -34
- package/platforms/ios/src/cpp/webgpu/GPUQueueImpl.cpp +45 -18
- package/platforms/ios/src/cpp/webgpu/GPURenderPassEncoderImpl.cpp +22 -19
- package/platforms/ios/src/cpp/webgpu/GPUShaderModuleImpl.cpp +23 -0
- package/platforms/ios/src/cpp/webgpu/GPUShaderModuleImpl.h +2 -0
- package/platforms/ios/src/cpp/webgpu/GPUTextureImpl.cpp +11 -0
- package/platforms/ios/src/cpp/webgpu/GPUUtils.h +25 -15
- package/angular/esm2022/index.mjs +0 -17
- package/angular/esm2022/nativescript-canvas-angular.mjs +0 -5
|
Binary file
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#if 0
|
|
2
2
|
#elif defined(__arm64__) && __arm64__
|
|
3
|
-
// Generated by Apple Swift version 5.10 (swiftlang-
|
|
3
|
+
// Generated by Apple Swift version 6.0.2 effective-5.10 (swiftlang-6.0.2.1.2 clang-1600.0.26.4)
|
|
4
4
|
#ifndef CANVASNATIVE_SWIFT_H
|
|
5
5
|
#define CANVASNATIVE_SWIFT_H
|
|
6
6
|
#pragma clang diagnostic push
|
|
@@ -42,6 +42,8 @@
|
|
|
42
42
|
#include <string.h>
|
|
43
43
|
#endif
|
|
44
44
|
#if defined(__cplusplus)
|
|
45
|
+
#pragma clang diagnostic push
|
|
46
|
+
#pragma clang diagnostic ignored "-Wnon-modular-include-in-framework-module"
|
|
45
47
|
#if defined(__arm64e__) && __has_include(<ptrauth.h>)
|
|
46
48
|
# include <ptrauth.h>
|
|
47
49
|
#else
|
|
@@ -55,6 +57,7 @@
|
|
|
55
57
|
# endif
|
|
56
58
|
#pragma clang diagnostic pop
|
|
57
59
|
#endif
|
|
60
|
+
#pragma clang diagnostic pop
|
|
58
61
|
#endif
|
|
59
62
|
|
|
60
63
|
#if !defined(SWIFT_TYPEDEFS)
|
|
@@ -297,6 +300,7 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
|
|
|
297
300
|
#pragma clang diagnostic ignored "-Wunknown-pragmas"
|
|
298
301
|
#pragma clang diagnostic ignored "-Wnullability"
|
|
299
302
|
#pragma clang diagnostic ignored "-Wdollar-in-identifier-extension"
|
|
303
|
+
#pragma clang diagnostic ignored "-Wunsafe-buffer-usage"
|
|
300
304
|
|
|
301
305
|
#if __has_attribute(external_source_symbol)
|
|
302
306
|
# pragma push_macro("any")
|
|
@@ -306,15 +310,16 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
|
|
|
306
310
|
#endif
|
|
307
311
|
|
|
308
312
|
#if defined(__OBJC__)
|
|
313
|
+
@class NSMutableData;
|
|
309
314
|
@class NSCoder;
|
|
310
315
|
|
|
311
316
|
SWIFT_CLASS_NAMED("CanvasCPUView")
|
|
312
317
|
@interface CanvasCPUView : UIView
|
|
313
318
|
@property (nonatomic) BOOL ignorePixelScaling;
|
|
319
|
+
@property (nonatomic, readonly, strong) NSMutableData * _Nullable data;
|
|
314
320
|
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
|
|
315
321
|
- (nonnull instancetype)initWithFrame:(CGRect)frame OBJC_DESIGNATED_INITIALIZER;
|
|
316
322
|
- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE;
|
|
317
|
-
- (void)drawRect:(CGRect)rect;
|
|
318
323
|
@end
|
|
319
324
|
|
|
320
325
|
@class NSCCanvas;
|
|
@@ -333,7 +338,6 @@ SWIFT_CLASS_NAMED("CanvasGLKView")
|
|
|
333
338
|
@end
|
|
334
339
|
|
|
335
340
|
@class UIImage;
|
|
336
|
-
@class NSMutableData;
|
|
337
341
|
@class NSString;
|
|
338
342
|
@class NSData;
|
|
339
343
|
@class NSError;
|
|
@@ -395,14 +399,15 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) NSMutableDic
|
|
|
395
399
|
@property (nonatomic) BOOL autoScale;
|
|
396
400
|
@property (nonatomic, readonly) int64_t nativeContext;
|
|
397
401
|
@property (nonatomic, readonly) BOOL is2D;
|
|
402
|
+
@property (nonatomic, readonly) BOOL willReadFrequently;
|
|
398
403
|
@property (nonatomic, readonly) CGFloat drawingBufferWidth;
|
|
399
404
|
@property (nonatomic, readonly) CGFloat drawingBufferHeight;
|
|
400
405
|
@property (nonatomic, readonly) float width;
|
|
401
406
|
@property (nonatomic, readonly) float height;
|
|
402
407
|
- (NSString * _Nonnull)toDataURL:(NSString * _Nonnull)format :(float)quality SWIFT_WARN_UNUSED_RESULT;
|
|
403
|
-
- (void)initContext:(NSString * _Nonnull)type :(BOOL)alpha :(BOOL)antialias :(BOOL)depth :(BOOL)failIfMajorPerformanceCaveat :(int32_t)powerPreference :(BOOL)premultipliedAlpha :(BOOL)preserveDrawingBuffer :(BOOL)stencil :(BOOL)desynchronized :(BOOL)xrCompatible SWIFT_METHOD_FAMILY(none);
|
|
408
|
+
- (void)initContext:(NSString * _Nonnull)type :(BOOL)alpha :(BOOL)antialias :(BOOL)depth :(BOOL)failIfMajorPerformanceCaveat :(int32_t)powerPreference :(BOOL)premultipliedAlpha :(BOOL)preserveDrawingBuffer :(BOOL)stencil :(BOOL)desynchronized :(BOOL)xrCompatible :(BOOL)willReadFrequently SWIFT_METHOD_FAMILY(none);
|
|
404
409
|
- (void)initWebGPUContext:(int64_t)instance SWIFT_METHOD_FAMILY(none);
|
|
405
|
-
- (int64_t)create2DContext:(BOOL)alpha :(BOOL)antialias :(BOOL)depth :(BOOL)failIfMajorPerformanceCaveat :(int32_t)powerPreference :(BOOL)premultipliedAlpha :(BOOL)preserveDrawingBuffer :(BOOL)stencil :(BOOL)desynchronized :(BOOL)xrCompatible :(int32_t)fontColor SWIFT_WARN_UNUSED_RESULT;
|
|
410
|
+
- (int64_t)create2DContext:(BOOL)alpha :(BOOL)antialias :(BOOL)depth :(BOOL)failIfMajorPerformanceCaveat :(int32_t)powerPreference :(BOOL)premultipliedAlpha :(BOOL)preserveDrawingBuffer :(BOOL)stencil :(BOOL)desynchronized :(BOOL)xrCompatible :(int32_t)fontColor :(BOOL)willReadFrequently SWIFT_WARN_UNUSED_RESULT;
|
|
406
411
|
- (UIImage * _Nullable)snapshot:(BOOL)flip SWIFT_WARN_UNUSED_RESULT;
|
|
407
412
|
- (BOOL)render;
|
|
408
413
|
@property (nonatomic, copy) void (^ _Nullable touchEventListener)(NSString * _Nonnull, UIGestureRecognizer * _Nonnull);
|
|
@@ -623,7 +628,7 @@ SWIFT_CLASS_NAMED("NSCWebGLRenderingContext")
|
|
|
623
628
|
#endif
|
|
624
629
|
|
|
625
630
|
#elif defined(__x86_64__) && __x86_64__
|
|
626
|
-
// Generated by Apple Swift version 5.10 (swiftlang-
|
|
631
|
+
// Generated by Apple Swift version 6.0.2 effective-5.10 (swiftlang-6.0.2.1.2 clang-1600.0.26.4)
|
|
627
632
|
#ifndef CANVASNATIVE_SWIFT_H
|
|
628
633
|
#define CANVASNATIVE_SWIFT_H
|
|
629
634
|
#pragma clang diagnostic push
|
|
@@ -665,6 +670,8 @@ SWIFT_CLASS_NAMED("NSCWebGLRenderingContext")
|
|
|
665
670
|
#include <string.h>
|
|
666
671
|
#endif
|
|
667
672
|
#if defined(__cplusplus)
|
|
673
|
+
#pragma clang diagnostic push
|
|
674
|
+
#pragma clang diagnostic ignored "-Wnon-modular-include-in-framework-module"
|
|
668
675
|
#if defined(__arm64e__) && __has_include(<ptrauth.h>)
|
|
669
676
|
# include <ptrauth.h>
|
|
670
677
|
#else
|
|
@@ -678,6 +685,7 @@ SWIFT_CLASS_NAMED("NSCWebGLRenderingContext")
|
|
|
678
685
|
# endif
|
|
679
686
|
#pragma clang diagnostic pop
|
|
680
687
|
#endif
|
|
688
|
+
#pragma clang diagnostic pop
|
|
681
689
|
#endif
|
|
682
690
|
|
|
683
691
|
#if !defined(SWIFT_TYPEDEFS)
|
|
@@ -920,6 +928,7 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
|
|
|
920
928
|
#pragma clang diagnostic ignored "-Wunknown-pragmas"
|
|
921
929
|
#pragma clang diagnostic ignored "-Wnullability"
|
|
922
930
|
#pragma clang diagnostic ignored "-Wdollar-in-identifier-extension"
|
|
931
|
+
#pragma clang diagnostic ignored "-Wunsafe-buffer-usage"
|
|
923
932
|
|
|
924
933
|
#if __has_attribute(external_source_symbol)
|
|
925
934
|
# pragma push_macro("any")
|
|
@@ -929,15 +938,16 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
|
|
|
929
938
|
#endif
|
|
930
939
|
|
|
931
940
|
#if defined(__OBJC__)
|
|
941
|
+
@class NSMutableData;
|
|
932
942
|
@class NSCoder;
|
|
933
943
|
|
|
934
944
|
SWIFT_CLASS_NAMED("CanvasCPUView")
|
|
935
945
|
@interface CanvasCPUView : UIView
|
|
936
946
|
@property (nonatomic) BOOL ignorePixelScaling;
|
|
947
|
+
@property (nonatomic, readonly, strong) NSMutableData * _Nullable data;
|
|
937
948
|
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
|
|
938
949
|
- (nonnull instancetype)initWithFrame:(CGRect)frame OBJC_DESIGNATED_INITIALIZER;
|
|
939
950
|
- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE;
|
|
940
|
-
- (void)drawRect:(CGRect)rect;
|
|
941
951
|
@end
|
|
942
952
|
|
|
943
953
|
@class NSCCanvas;
|
|
@@ -956,7 +966,6 @@ SWIFT_CLASS_NAMED("CanvasGLKView")
|
|
|
956
966
|
@end
|
|
957
967
|
|
|
958
968
|
@class UIImage;
|
|
959
|
-
@class NSMutableData;
|
|
960
969
|
@class NSString;
|
|
961
970
|
@class NSData;
|
|
962
971
|
@class NSError;
|
|
@@ -1018,14 +1027,15 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) NSMutableDic
|
|
|
1018
1027
|
@property (nonatomic) BOOL autoScale;
|
|
1019
1028
|
@property (nonatomic, readonly) int64_t nativeContext;
|
|
1020
1029
|
@property (nonatomic, readonly) BOOL is2D;
|
|
1030
|
+
@property (nonatomic, readonly) BOOL willReadFrequently;
|
|
1021
1031
|
@property (nonatomic, readonly) CGFloat drawingBufferWidth;
|
|
1022
1032
|
@property (nonatomic, readonly) CGFloat drawingBufferHeight;
|
|
1023
1033
|
@property (nonatomic, readonly) float width;
|
|
1024
1034
|
@property (nonatomic, readonly) float height;
|
|
1025
1035
|
- (NSString * _Nonnull)toDataURL:(NSString * _Nonnull)format :(float)quality SWIFT_WARN_UNUSED_RESULT;
|
|
1026
|
-
- (void)initContext:(NSString * _Nonnull)type :(BOOL)alpha :(BOOL)antialias :(BOOL)depth :(BOOL)failIfMajorPerformanceCaveat :(int32_t)powerPreference :(BOOL)premultipliedAlpha :(BOOL)preserveDrawingBuffer :(BOOL)stencil :(BOOL)desynchronized :(BOOL)xrCompatible SWIFT_METHOD_FAMILY(none);
|
|
1036
|
+
- (void)initContext:(NSString * _Nonnull)type :(BOOL)alpha :(BOOL)antialias :(BOOL)depth :(BOOL)failIfMajorPerformanceCaveat :(int32_t)powerPreference :(BOOL)premultipliedAlpha :(BOOL)preserveDrawingBuffer :(BOOL)stencil :(BOOL)desynchronized :(BOOL)xrCompatible :(BOOL)willReadFrequently SWIFT_METHOD_FAMILY(none);
|
|
1027
1037
|
- (void)initWebGPUContext:(int64_t)instance SWIFT_METHOD_FAMILY(none);
|
|
1028
|
-
- (int64_t)create2DContext:(BOOL)alpha :(BOOL)antialias :(BOOL)depth :(BOOL)failIfMajorPerformanceCaveat :(int32_t)powerPreference :(BOOL)premultipliedAlpha :(BOOL)preserveDrawingBuffer :(BOOL)stencil :(BOOL)desynchronized :(BOOL)xrCompatible :(int32_t)fontColor SWIFT_WARN_UNUSED_RESULT;
|
|
1038
|
+
- (int64_t)create2DContext:(BOOL)alpha :(BOOL)antialias :(BOOL)depth :(BOOL)failIfMajorPerformanceCaveat :(int32_t)powerPreference :(BOOL)premultipliedAlpha :(BOOL)preserveDrawingBuffer :(BOOL)stencil :(BOOL)desynchronized :(BOOL)xrCompatible :(int32_t)fontColor :(BOOL)willReadFrequently SWIFT_WARN_UNUSED_RESULT;
|
|
1029
1039
|
- (UIImage * _Nullable)snapshot:(BOOL)flip SWIFT_WARN_UNUSED_RESULT;
|
|
1030
1040
|
- (BOOL)render;
|
|
1031
1041
|
@property (nonatomic, copy) void (^ _Nullable touchEventListener)(NSString * _Nonnull, UIGestureRecognizer * _Nonnull);
|