@nativescript/canvas 2.0.0-webgpu.31 → 2.0.0-webgpu.33
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 +6 -4
- package/Canvas/index.android.js +9 -5
- 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 +11 -13
- package/Canvas/index.ios.js.map +1 -1
- package/Canvas/utils.js +2 -2
- package/Canvas/utils.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 +20 -19
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Headers/CanvasNative.h +1 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Headers/NSCMTLView.h +32 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Headers/canvas_ios.h +143 -182
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Headers/canvas_native.h +28 -10
- 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 -469
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios.private.swiftinterface +19 -20
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios.swiftinterface +19 -20
- 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 +671 -650
- 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 +40 -38
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Headers/CanvasNative.h +1 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Headers/NSCMTLView.h +32 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Headers/canvas_ios.h +143 -182
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Headers/canvas_native.h +28 -10
- 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 -469
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +19 -20
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios-simulator.swiftinterface +19 -20
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/x86_64-apple-ios-simulator.abi.json +306 -469
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +19 -20
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +19 -20
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/_CodeSignature/CodeResources +39 -28
- 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 +673 -652
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/dSYMs/CanvasNative.framework.dSYM/Contents/Resources/Relocations/x86_64/CanvasNative.yml +726 -704
- package/platforms/ios/src/cpp/CanvasJSIModule.cpp +17 -55
- package/platforms/ios/src/cpp/canvas2d/CanvasRenderingContext2DImpl.cpp +6 -10
- package/platforms/ios/src/cpp/webgl/WebGLRenderingContextBase.cpp +5 -5
|
@@ -25,23 +25,20 @@ import _SwiftConcurrencyShims
|
|
|
25
25
|
@objc public static func drawImage(context: Swift.Int64, image: UIKit.UIImage, dx: Swift.Float, dy: Swift.Float) -> Swift.Bool
|
|
26
26
|
@objc public static func drawImage(context: Swift.Int64, image: UIKit.UIImage, dx: Swift.Float, dy: Swift.Float, dw: Swift.Float, dh: Swift.Float) -> Swift.Bool
|
|
27
27
|
@objc public static func drawImage(context: Swift.Int64, image: UIKit.UIImage, sx: Swift.Float, sy: Swift.Float, sw: Swift.Float, sh: Swift.Float, dx: Swift.Float, dy: Swift.Float, dw: Swift.Float, dh: Swift.Float) -> Swift.Bool
|
|
28
|
-
@objc public static func initWebGPUWithViewLayer(_ instance: Swift.Int64, _ view:
|
|
29
|
-
@objc public static func initWebGPUWithView(_ instance: Swift.Int64, _ view:
|
|
30
|
-
@objc public static func resizeWebGPUWithView(_ context: Swift.Int64, _ view:
|
|
31
|
-
@objc public static func
|
|
32
|
-
@objc public static func
|
|
33
|
-
@objc public static func initGLWithWidthAndHeight(_ width: Swift.Int32, _ height: Swift.Int32, _ alpha: Swift.Bool, _ antialias: Swift.Bool, _ depth: Swift.Bool, _ fail_if_major_performance_caveat: Swift.Bool, _ power_preference: Swift.Int32, _ premultiplied_alpha: Swift.Bool, _ preserve_drawing_buffer: Swift.Bool, _ stencil: Swift.Bool, _ desynchronized: Swift.Bool, _ xr_compatible: Swift.Bool, _ version: Swift.Int32, _ is_canvas: Swift.Bool) -> Swift.Int64
|
|
34
|
-
@objc public static func initSharedGLWidthAndHeight(_ width: Swift.Int32, _ height: Swift.Int32, _ alpha: Swift.Bool, _ antialias: Swift.Bool, _ depth: Swift.Bool, _ fail_if_major_performance_caveat: Swift.Bool, _ power_preference: Swift.Int32, _ premultiplied_alpha: Swift.Bool, _ preserve_drawing_buffer: Swift.Bool, _ stencil: Swift.Bool, _ desynchronized: Swift.Bool, _ xr_compatible: Swift.Bool, _ version: Swift.Int32, _ is_canvas: Swift.Bool, _ shared_context: Swift.Int64) -> Swift.Int64
|
|
28
|
+
@objc public static func initWebGPUWithViewLayer(_ instance: Swift.Int64, _ view: CanvasNative.NSCCanvas, _ width: Swift.UInt32, _ height: Swift.UInt32) -> Swift.Int64
|
|
29
|
+
@objc public static func initWebGPUWithView(_ instance: Swift.Int64, _ view: CanvasNative.NSCCanvas, _ width: Swift.UInt32, _ height: Swift.UInt32) -> Swift.Int64
|
|
30
|
+
@objc public static func resizeWebGPUWithView(_ context: Swift.Int64, _ view: CanvasNative.NSCCanvas, _ width: Swift.UInt32, _ height: Swift.UInt32)
|
|
31
|
+
@objc public static func initWebGLWithView(_ view: CanvasNative.NSCCanvas, _ alpha: Swift.Bool, _ antialias: Swift.Bool, _ depth: Swift.Bool, _ fail_if_major_performance_caveat: Swift.Bool, _ power_preference: Swift.Int32, _ premultiplied_alpha: Swift.Bool, _ preserve_drawing_buffer: Swift.Bool, _ stencil: Swift.Bool, _ desynchronized: Swift.Bool, _ xr_compatible: Swift.Bool, _ version: Swift.Int32) -> Swift.Int64
|
|
32
|
+
@objc public static func initWebGLWithWidthAndHeight(_ width: Swift.Int32, _ height: Swift.Int32, _ alpha: Swift.Bool, _ antialias: Swift.Bool, _ depth: Swift.Bool, _ fail_if_major_performance_caveat: Swift.Bool, _ power_preference: Swift.Int32, _ premultiplied_alpha: Swift.Bool, _ preserve_drawing_buffer: Swift.Bool, _ stencil: Swift.Bool, _ desynchronized: Swift.Bool, _ xr_compatible: Swift.Bool, _ version: Swift.Int32) -> Swift.Int64
|
|
35
33
|
@objc public static func resize2DContext(_ context: Swift.Int64, _ width: Swift.Float, _ height: Swift.Float)
|
|
36
34
|
@objc public static func flush2DContext(_ context: Swift.Int64)
|
|
37
|
-
@objc public static func
|
|
38
|
-
@objc public static func
|
|
39
|
-
@objc public static func
|
|
40
|
-
@objc public static func
|
|
41
|
-
@objc public static func create2DContext(_
|
|
42
|
-
@objc public static func
|
|
43
|
-
@objc public static func
|
|
44
|
-
@objc public static func testToDataURL(_ context: Swift.Int64) -> Swift.String
|
|
35
|
+
@objc public static func flush2DContextAndSyncCPU(_ context: Swift.Int64)
|
|
36
|
+
@objc public static func presentDrawable(_ context: Swift.Int64)
|
|
37
|
+
@objc public static func flushWebGL(_ context: Swift.Int64) -> Swift.Bool
|
|
38
|
+
@objc public static func releaseWebGL(_ context: Swift.Int64)
|
|
39
|
+
@objc public static func create2DContext(_ view: CanvasNative.NSCCanvas, _ width: Swift.Int32, _ height: Swift.Int32, _ alpha: Swift.Bool, _ density: Swift.Float, _ fontColor: Swift.Int32, _ ppi: Swift.Float, _ direction: Swift.Int32) -> Swift.Int64
|
|
40
|
+
@objc public static func create2DContextMetal(_ view: CanvasNative.NSCCanvas, _ alpha: Swift.Bool, _ density: Swift.Float, _ fontColor: Swift.Int32, _ ppi: Swift.Float, _ direction: Swift.Int32) -> Swift.Int64
|
|
41
|
+
@objc public static func updateWebGLSurfaceWithView(_ view: Swift.Int64, _ width: Swift.Int32, _ height: Swift.Int32, _ context: Swift.Int64)
|
|
45
42
|
@objc public static func writeFile(_ data: Foundation.NSData, _ path: Swift.String, _ callback: @escaping (Swift.String?, Swift.String?) -> Swift.Void)
|
|
46
43
|
@objc public static func readFile(_ path: Swift.String, _ callback: @escaping (Swift.String?, Foundation.NSData?) -> Swift.Void)
|
|
47
44
|
@objc public static func deleteFile(_ path: Swift.String, _ callback: @escaping (Foundation.NSError?, Swift.Bool) -> Swift.Void)
|
|
@@ -95,6 +92,7 @@ import _SwiftConcurrencyShims
|
|
|
95
92
|
@objc deinit
|
|
96
93
|
}
|
|
97
94
|
@_inheritsConvenienceInitializers @_hasMissingDesignatedInitializers @objcMembers @objc(NSCCanvas) @_Concurrency.MainActor(unsafe) public class NSCCanvas : UIKit.UIView {
|
|
95
|
+
@objc @_Concurrency.MainActor(unsafe) public static var forceGL: Swift.Bool
|
|
98
96
|
@objc(CanvasFit) public enum CanvasFit : Swift.Int, Swift.RawRepresentable {
|
|
99
97
|
public typealias RawValue = Swift.UInt32
|
|
100
98
|
case None
|
|
@@ -113,16 +111,17 @@ import _SwiftConcurrencyShims
|
|
|
113
111
|
}
|
|
114
112
|
@objc @_Concurrency.MainActor(unsafe) public static let store: Foundation.NSMutableDictionary
|
|
115
113
|
@objc @_Concurrency.MainActor(unsafe) public static func getViews() -> Foundation.NSMapTable<Foundation.NSString, CanvasNative.NSCCanvas>
|
|
116
|
-
@objc @_Concurrency.MainActor(unsafe) public func
|
|
114
|
+
@objc @_Concurrency.MainActor(unsafe) public func getGlViewPtr() -> Swift.UnsafeMutableRawPointer
|
|
117
115
|
@objc @_Concurrency.MainActor(unsafe) public func getMtlViewPtr() -> Swift.UnsafeMutableRawPointer
|
|
116
|
+
@objc @_Concurrency.MainActor(unsafe) public func getMtlLayerPtr() -> Swift.UnsafeMutableRawPointer
|
|
118
117
|
@objc @_Concurrency.MainActor(unsafe) public var autoScale: Swift.Bool {
|
|
119
118
|
@objc get
|
|
120
119
|
@objc set
|
|
121
120
|
}
|
|
122
|
-
@objc @_Concurrency.MainActor(unsafe) public var
|
|
121
|
+
@objc @_Concurrency.MainActor(unsafe) public var nativeContext: Swift.Int64 {
|
|
123
122
|
get
|
|
124
123
|
}
|
|
125
|
-
@objc @_Concurrency.MainActor(unsafe) public var
|
|
124
|
+
@objc @_Concurrency.MainActor(unsafe) public var is2D: Swift.Bool {
|
|
126
125
|
get
|
|
127
126
|
}
|
|
128
127
|
@objc @_Concurrency.MainActor(unsafe) public var drawingBufferWidth: CoreFoundation.CGFloat {
|
|
@@ -143,8 +142,6 @@ import _SwiftConcurrencyShims
|
|
|
143
142
|
@objc @_Concurrency.MainActor(unsafe) public func snapshot(_ flip: Swift.Bool) -> UIKit.UIImage?
|
|
144
143
|
@objc @discardableResult
|
|
145
144
|
@_Concurrency.MainActor(unsafe) public func render() -> Swift.Bool
|
|
146
|
-
@objc @_Concurrency.MainActor(unsafe) public func context2DTest(_ context: Swift.Int64)
|
|
147
|
-
@objc @_Concurrency.MainActor(unsafe) public func context2DTestToDataURL(_ context: Swift.Int64) -> Swift.String
|
|
148
145
|
@objc @_Concurrency.MainActor(unsafe) public var touchEventListener: ((Swift.String, UIKit.UIGestureRecognizer) -> Swift.Void)?
|
|
149
146
|
@_Concurrency.MainActor(unsafe) @objc override dynamic public init(frame: CoreFoundation.CGRect)
|
|
150
147
|
@objc @_Concurrency.MainActor(unsafe) public var ignoreTouchEvents: Swift.Bool {
|
|
@@ -161,6 +158,8 @@ import _SwiftConcurrencyShims
|
|
|
161
158
|
@objc set
|
|
162
159
|
}
|
|
163
160
|
@objc @_Concurrency.MainActor(unsafe) public func forceLayout(_ width: CoreFoundation.CGFloat, _ height: CoreFoundation.CGFloat)
|
|
161
|
+
@objc @_Concurrency.MainActor(unsafe) public func context2DTest(_ context: Swift.Int64)
|
|
162
|
+
@objc @_Concurrency.MainActor(unsafe) public func context2DPathTest(_ context: Swift.Int64)
|
|
164
163
|
@_Concurrency.MainActor(unsafe) @objc override dynamic public func layoutSubviews()
|
|
165
164
|
@objc deinit
|
|
166
165
|
@objc @_Concurrency.MainActor(unsafe) public static func getBoundingClientRect(_ view: UIKit.UIView, _ buffer: Swift.UnsafeMutableRawPointer)
|
|
@@ -25,23 +25,20 @@ import _SwiftConcurrencyShims
|
|
|
25
25
|
@objc public static func drawImage(context: Swift.Int64, image: UIKit.UIImage, dx: Swift.Float, dy: Swift.Float) -> Swift.Bool
|
|
26
26
|
@objc public static func drawImage(context: Swift.Int64, image: UIKit.UIImage, dx: Swift.Float, dy: Swift.Float, dw: Swift.Float, dh: Swift.Float) -> Swift.Bool
|
|
27
27
|
@objc public static func drawImage(context: Swift.Int64, image: UIKit.UIImage, sx: Swift.Float, sy: Swift.Float, sw: Swift.Float, sh: Swift.Float, dx: Swift.Float, dy: Swift.Float, dw: Swift.Float, dh: Swift.Float) -> Swift.Bool
|
|
28
|
-
@objc public static func initWebGPUWithViewLayer(_ instance: Swift.Int64, _ view:
|
|
29
|
-
@objc public static func initWebGPUWithView(_ instance: Swift.Int64, _ view:
|
|
30
|
-
@objc public static func resizeWebGPUWithView(_ context: Swift.Int64, _ view:
|
|
31
|
-
@objc public static func
|
|
32
|
-
@objc public static func
|
|
33
|
-
@objc public static func initGLWithWidthAndHeight(_ width: Swift.Int32, _ height: Swift.Int32, _ alpha: Swift.Bool, _ antialias: Swift.Bool, _ depth: Swift.Bool, _ fail_if_major_performance_caveat: Swift.Bool, _ power_preference: Swift.Int32, _ premultiplied_alpha: Swift.Bool, _ preserve_drawing_buffer: Swift.Bool, _ stencil: Swift.Bool, _ desynchronized: Swift.Bool, _ xr_compatible: Swift.Bool, _ version: Swift.Int32, _ is_canvas: Swift.Bool) -> Swift.Int64
|
|
34
|
-
@objc public static func initSharedGLWidthAndHeight(_ width: Swift.Int32, _ height: Swift.Int32, _ alpha: Swift.Bool, _ antialias: Swift.Bool, _ depth: Swift.Bool, _ fail_if_major_performance_caveat: Swift.Bool, _ power_preference: Swift.Int32, _ premultiplied_alpha: Swift.Bool, _ preserve_drawing_buffer: Swift.Bool, _ stencil: Swift.Bool, _ desynchronized: Swift.Bool, _ xr_compatible: Swift.Bool, _ version: Swift.Int32, _ is_canvas: Swift.Bool, _ shared_context: Swift.Int64) -> Swift.Int64
|
|
28
|
+
@objc public static func initWebGPUWithViewLayer(_ instance: Swift.Int64, _ view: CanvasNative.NSCCanvas, _ width: Swift.UInt32, _ height: Swift.UInt32) -> Swift.Int64
|
|
29
|
+
@objc public static func initWebGPUWithView(_ instance: Swift.Int64, _ view: CanvasNative.NSCCanvas, _ width: Swift.UInt32, _ height: Swift.UInt32) -> Swift.Int64
|
|
30
|
+
@objc public static func resizeWebGPUWithView(_ context: Swift.Int64, _ view: CanvasNative.NSCCanvas, _ width: Swift.UInt32, _ height: Swift.UInt32)
|
|
31
|
+
@objc public static func initWebGLWithView(_ view: CanvasNative.NSCCanvas, _ alpha: Swift.Bool, _ antialias: Swift.Bool, _ depth: Swift.Bool, _ fail_if_major_performance_caveat: Swift.Bool, _ power_preference: Swift.Int32, _ premultiplied_alpha: Swift.Bool, _ preserve_drawing_buffer: Swift.Bool, _ stencil: Swift.Bool, _ desynchronized: Swift.Bool, _ xr_compatible: Swift.Bool, _ version: Swift.Int32) -> Swift.Int64
|
|
32
|
+
@objc public static func initWebGLWithWidthAndHeight(_ width: Swift.Int32, _ height: Swift.Int32, _ alpha: Swift.Bool, _ antialias: Swift.Bool, _ depth: Swift.Bool, _ fail_if_major_performance_caveat: Swift.Bool, _ power_preference: Swift.Int32, _ premultiplied_alpha: Swift.Bool, _ preserve_drawing_buffer: Swift.Bool, _ stencil: Swift.Bool, _ desynchronized: Swift.Bool, _ xr_compatible: Swift.Bool, _ version: Swift.Int32) -> Swift.Int64
|
|
35
33
|
@objc public static func resize2DContext(_ context: Swift.Int64, _ width: Swift.Float, _ height: Swift.Float)
|
|
36
34
|
@objc public static func flush2DContext(_ context: Swift.Int64)
|
|
37
|
-
@objc public static func
|
|
38
|
-
@objc public static func
|
|
39
|
-
@objc public static func
|
|
40
|
-
@objc public static func
|
|
41
|
-
@objc public static func create2DContext(_
|
|
42
|
-
@objc public static func
|
|
43
|
-
@objc public static func
|
|
44
|
-
@objc public static func testToDataURL(_ context: Swift.Int64) -> Swift.String
|
|
35
|
+
@objc public static func flush2DContextAndSyncCPU(_ context: Swift.Int64)
|
|
36
|
+
@objc public static func presentDrawable(_ context: Swift.Int64)
|
|
37
|
+
@objc public static func flushWebGL(_ context: Swift.Int64) -> Swift.Bool
|
|
38
|
+
@objc public static func releaseWebGL(_ context: Swift.Int64)
|
|
39
|
+
@objc public static func create2DContext(_ view: CanvasNative.NSCCanvas, _ width: Swift.Int32, _ height: Swift.Int32, _ alpha: Swift.Bool, _ density: Swift.Float, _ fontColor: Swift.Int32, _ ppi: Swift.Float, _ direction: Swift.Int32) -> Swift.Int64
|
|
40
|
+
@objc public static func create2DContextMetal(_ view: CanvasNative.NSCCanvas, _ alpha: Swift.Bool, _ density: Swift.Float, _ fontColor: Swift.Int32, _ ppi: Swift.Float, _ direction: Swift.Int32) -> Swift.Int64
|
|
41
|
+
@objc public static func updateWebGLSurfaceWithView(_ view: Swift.Int64, _ width: Swift.Int32, _ height: Swift.Int32, _ context: Swift.Int64)
|
|
45
42
|
@objc public static func writeFile(_ data: Foundation.NSData, _ path: Swift.String, _ callback: @escaping (Swift.String?, Swift.String?) -> Swift.Void)
|
|
46
43
|
@objc public static func readFile(_ path: Swift.String, _ callback: @escaping (Swift.String?, Foundation.NSData?) -> Swift.Void)
|
|
47
44
|
@objc public static func deleteFile(_ path: Swift.String, _ callback: @escaping (Foundation.NSError?, Swift.Bool) -> Swift.Void)
|
|
@@ -95,6 +92,7 @@ import _SwiftConcurrencyShims
|
|
|
95
92
|
@objc deinit
|
|
96
93
|
}
|
|
97
94
|
@_inheritsConvenienceInitializers @_hasMissingDesignatedInitializers @objcMembers @objc(NSCCanvas) @_Concurrency.MainActor(unsafe) public class NSCCanvas : UIKit.UIView {
|
|
95
|
+
@objc @_Concurrency.MainActor(unsafe) public static var forceGL: Swift.Bool
|
|
98
96
|
@objc(CanvasFit) public enum CanvasFit : Swift.Int, Swift.RawRepresentable {
|
|
99
97
|
public typealias RawValue = Swift.UInt32
|
|
100
98
|
case None
|
|
@@ -113,16 +111,17 @@ import _SwiftConcurrencyShims
|
|
|
113
111
|
}
|
|
114
112
|
@objc @_Concurrency.MainActor(unsafe) public static let store: Foundation.NSMutableDictionary
|
|
115
113
|
@objc @_Concurrency.MainActor(unsafe) public static func getViews() -> Foundation.NSMapTable<Foundation.NSString, CanvasNative.NSCCanvas>
|
|
116
|
-
@objc @_Concurrency.MainActor(unsafe) public func
|
|
114
|
+
@objc @_Concurrency.MainActor(unsafe) public func getGlViewPtr() -> Swift.UnsafeMutableRawPointer
|
|
117
115
|
@objc @_Concurrency.MainActor(unsafe) public func getMtlViewPtr() -> Swift.UnsafeMutableRawPointer
|
|
116
|
+
@objc @_Concurrency.MainActor(unsafe) public func getMtlLayerPtr() -> Swift.UnsafeMutableRawPointer
|
|
118
117
|
@objc @_Concurrency.MainActor(unsafe) public var autoScale: Swift.Bool {
|
|
119
118
|
@objc get
|
|
120
119
|
@objc set
|
|
121
120
|
}
|
|
122
|
-
@objc @_Concurrency.MainActor(unsafe) public var
|
|
121
|
+
@objc @_Concurrency.MainActor(unsafe) public var nativeContext: Swift.Int64 {
|
|
123
122
|
get
|
|
124
123
|
}
|
|
125
|
-
@objc @_Concurrency.MainActor(unsafe) public var
|
|
124
|
+
@objc @_Concurrency.MainActor(unsafe) public var is2D: Swift.Bool {
|
|
126
125
|
get
|
|
127
126
|
}
|
|
128
127
|
@objc @_Concurrency.MainActor(unsafe) public var drawingBufferWidth: CoreFoundation.CGFloat {
|
|
@@ -143,8 +142,6 @@ import _SwiftConcurrencyShims
|
|
|
143
142
|
@objc @_Concurrency.MainActor(unsafe) public func snapshot(_ flip: Swift.Bool) -> UIKit.UIImage?
|
|
144
143
|
@objc @discardableResult
|
|
145
144
|
@_Concurrency.MainActor(unsafe) public func render() -> Swift.Bool
|
|
146
|
-
@objc @_Concurrency.MainActor(unsafe) public func context2DTest(_ context: Swift.Int64)
|
|
147
|
-
@objc @_Concurrency.MainActor(unsafe) public func context2DTestToDataURL(_ context: Swift.Int64) -> Swift.String
|
|
148
145
|
@objc @_Concurrency.MainActor(unsafe) public var touchEventListener: ((Swift.String, UIKit.UIGestureRecognizer) -> Swift.Void)?
|
|
149
146
|
@_Concurrency.MainActor(unsafe) @objc override dynamic public init(frame: CoreFoundation.CGRect)
|
|
150
147
|
@objc @_Concurrency.MainActor(unsafe) public var ignoreTouchEvents: Swift.Bool {
|
|
@@ -161,6 +158,8 @@ import _SwiftConcurrencyShims
|
|
|
161
158
|
@objc set
|
|
162
159
|
}
|
|
163
160
|
@objc @_Concurrency.MainActor(unsafe) public func forceLayout(_ width: CoreFoundation.CGFloat, _ height: CoreFoundation.CGFloat)
|
|
161
|
+
@objc @_Concurrency.MainActor(unsafe) public func context2DTest(_ context: Swift.Int64)
|
|
162
|
+
@objc @_Concurrency.MainActor(unsafe) public func context2DPathTest(_ context: Swift.Int64)
|
|
164
163
|
@_Concurrency.MainActor(unsafe) @objc override dynamic public func layoutSubviews()
|
|
165
164
|
@objc deinit
|
|
166
165
|
@objc @_Concurrency.MainActor(unsafe) public static func getBoundingClientRect(_ view: UIKit.UIView, _ buffer: Swift.UnsafeMutableRawPointer)
|
|
@@ -6,19 +6,23 @@
|
|
|
6
6
|
<dict>
|
|
7
7
|
<key>Headers/CanvasNative-Swift.h</key>
|
|
8
8
|
<data>
|
|
9
|
-
|
|
9
|
+
lQ6WlSAtC9I9Y/Qsf/Ky1/lLhhI=
|
|
10
10
|
</data>
|
|
11
11
|
<key>Headers/CanvasNative.h</key>
|
|
12
12
|
<data>
|
|
13
|
-
/
|
|
13
|
+
FNymyDc7X4Ydv/9lK3268mypJCk=
|
|
14
|
+
</data>
|
|
15
|
+
<key>Headers/NSCMTLView.h</key>
|
|
16
|
+
<data>
|
|
17
|
+
tdSy9ddI14zzHbiB630f+q6SxlA=
|
|
14
18
|
</data>
|
|
15
19
|
<key>Headers/canvas_ios.h</key>
|
|
16
20
|
<data>
|
|
17
|
-
|
|
21
|
+
hLmpcbnWVUlXC+krA3//aBRpHZE=
|
|
18
22
|
</data>
|
|
19
23
|
<key>Headers/canvas_native.h</key>
|
|
20
24
|
<data>
|
|
21
|
-
|
|
25
|
+
VYlJe29tK+ZaIdItv9RNq19661g=
|
|
22
26
|
</data>
|
|
23
27
|
<key>Info.plist</key>
|
|
24
28
|
<data>
|
|
@@ -26,19 +30,19 @@
|
|
|
26
30
|
</data>
|
|
27
31
|
<key>Modules/CanvasNative.swiftmodule/Project/arm64-apple-ios-simulator.swiftsourceinfo</key>
|
|
28
32
|
<data>
|
|
29
|
-
|
|
33
|
+
jOMjwH6JEscOD+WN0gwitfjix94=
|
|
30
34
|
</data>
|
|
31
35
|
<key>Modules/CanvasNative.swiftmodule/Project/x86_64-apple-ios-simulator.swiftsourceinfo</key>
|
|
32
36
|
<data>
|
|
33
|
-
|
|
37
|
+
X4xPNbTQeqOk1ncoMKoCqjdBaRM=
|
|
34
38
|
</data>
|
|
35
39
|
<key>Modules/CanvasNative.swiftmodule/arm64-apple-ios-simulator.abi.json</key>
|
|
36
40
|
<data>
|
|
37
|
-
|
|
41
|
+
OXaGviC0zQZQIKUKS0dfR1phqXw=
|
|
38
42
|
</data>
|
|
39
43
|
<key>Modules/CanvasNative.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface</key>
|
|
40
44
|
<data>
|
|
41
|
-
/
|
|
45
|
+
/Jwgrc2S6PHaoMo4zDo3S9s8ctY=
|
|
42
46
|
</data>
|
|
43
47
|
<key>Modules/CanvasNative.swiftmodule/arm64-apple-ios-simulator.swiftdoc</key>
|
|
44
48
|
<data>
|
|
@@ -46,19 +50,19 @@
|
|
|
46
50
|
</data>
|
|
47
51
|
<key>Modules/CanvasNative.swiftmodule/arm64-apple-ios-simulator.swiftinterface</key>
|
|
48
52
|
<data>
|
|
49
|
-
/
|
|
53
|
+
/Jwgrc2S6PHaoMo4zDo3S9s8ctY=
|
|
50
54
|
</data>
|
|
51
55
|
<key>Modules/CanvasNative.swiftmodule/arm64-apple-ios-simulator.swiftmodule</key>
|
|
52
56
|
<data>
|
|
53
|
-
|
|
57
|
+
HZmQtEvGPyTMIGDSd5whyklgbmQ=
|
|
54
58
|
</data>
|
|
55
59
|
<key>Modules/CanvasNative.swiftmodule/x86_64-apple-ios-simulator.abi.json</key>
|
|
56
60
|
<data>
|
|
57
|
-
|
|
61
|
+
OXaGviC0zQZQIKUKS0dfR1phqXw=
|
|
58
62
|
</data>
|
|
59
63
|
<key>Modules/CanvasNative.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface</key>
|
|
60
64
|
<data>
|
|
61
|
-
|
|
65
|
+
z1IzEILnfRsYU3ztmuTCYFyJBtk=
|
|
62
66
|
</data>
|
|
63
67
|
<key>Modules/CanvasNative.swiftmodule/x86_64-apple-ios-simulator.swiftdoc</key>
|
|
64
68
|
<data>
|
|
@@ -66,11 +70,11 @@
|
|
|
66
70
|
</data>
|
|
67
71
|
<key>Modules/CanvasNative.swiftmodule/x86_64-apple-ios-simulator.swiftinterface</key>
|
|
68
72
|
<data>
|
|
69
|
-
|
|
73
|
+
z1IzEILnfRsYU3ztmuTCYFyJBtk=
|
|
70
74
|
</data>
|
|
71
75
|
<key>Modules/CanvasNative.swiftmodule/x86_64-apple-ios-simulator.swiftmodule</key>
|
|
72
76
|
<data>
|
|
73
|
-
|
|
77
|
+
i44RzDvV0+VCAHiL2cBzFTdkTWw=
|
|
74
78
|
</data>
|
|
75
79
|
<key>Modules/module.modulemap</key>
|
|
76
80
|
<data>
|
|
@@ -87,56 +91,63 @@
|
|
|
87
91
|
<dict>
|
|
88
92
|
<key>hash2</key>
|
|
89
93
|
<data>
|
|
90
|
-
|
|
94
|
+
GzaX7NtW7wmTJJjG4xzW5ohBBX0rFCEw9/utX1PMUTs=
|
|
91
95
|
</data>
|
|
92
96
|
</dict>
|
|
93
97
|
<key>Headers/CanvasNative.h</key>
|
|
94
98
|
<dict>
|
|
95
99
|
<key>hash2</key>
|
|
96
100
|
<data>
|
|
97
|
-
|
|
101
|
+
fQbykEWRbpY6wzCCrEOuD1WupSfVSDHJtNnwv5cu/lw=
|
|
102
|
+
</data>
|
|
103
|
+
</dict>
|
|
104
|
+
<key>Headers/NSCMTLView.h</key>
|
|
105
|
+
<dict>
|
|
106
|
+
<key>hash2</key>
|
|
107
|
+
<data>
|
|
108
|
+
+N1S/5GmxqLxht8lbmJkn2LGj+qhxI2fXVUg4Gid4WQ=
|
|
98
109
|
</data>
|
|
99
110
|
</dict>
|
|
100
111
|
<key>Headers/canvas_ios.h</key>
|
|
101
112
|
<dict>
|
|
102
113
|
<key>hash2</key>
|
|
103
114
|
<data>
|
|
104
|
-
|
|
115
|
+
sB/NW58F9hrWrEgaabf/j10g/Rfaxj3QimH5RZPrZ2w=
|
|
105
116
|
</data>
|
|
106
117
|
</dict>
|
|
107
118
|
<key>Headers/canvas_native.h</key>
|
|
108
119
|
<dict>
|
|
109
120
|
<key>hash2</key>
|
|
110
121
|
<data>
|
|
111
|
-
|
|
122
|
+
PvMSO8z/g+ZVoSxdEbGpze/B8dAvcC485oPJLe+zAg0=
|
|
112
123
|
</data>
|
|
113
124
|
</dict>
|
|
114
125
|
<key>Modules/CanvasNative.swiftmodule/Project/arm64-apple-ios-simulator.swiftsourceinfo</key>
|
|
115
126
|
<dict>
|
|
116
127
|
<key>hash2</key>
|
|
117
128
|
<data>
|
|
118
|
-
|
|
129
|
+
PE7TlR2cybb4C00cqHLic/3EhzfJ+yU7zf95ovEjD4k=
|
|
119
130
|
</data>
|
|
120
131
|
</dict>
|
|
121
132
|
<key>Modules/CanvasNative.swiftmodule/Project/x86_64-apple-ios-simulator.swiftsourceinfo</key>
|
|
122
133
|
<dict>
|
|
123
134
|
<key>hash2</key>
|
|
124
135
|
<data>
|
|
125
|
-
|
|
136
|
+
2xoNMh3pknQQ7LzPEFB/1861U5qBZiQOo9+zbT6WmSk=
|
|
126
137
|
</data>
|
|
127
138
|
</dict>
|
|
128
139
|
<key>Modules/CanvasNative.swiftmodule/arm64-apple-ios-simulator.abi.json</key>
|
|
129
140
|
<dict>
|
|
130
141
|
<key>hash2</key>
|
|
131
142
|
<data>
|
|
132
|
-
|
|
143
|
+
xHbgA+lMR10OmN3uIinp1tlfMC28As6hxzSxEOszaEM=
|
|
133
144
|
</data>
|
|
134
145
|
</dict>
|
|
135
146
|
<key>Modules/CanvasNative.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface</key>
|
|
136
147
|
<dict>
|
|
137
148
|
<key>hash2</key>
|
|
138
149
|
<data>
|
|
139
|
-
|
|
150
|
+
GdWUs3wETGmKqyNU5VKDJA/tlR98st5/4td3G2QyLZE=
|
|
140
151
|
</data>
|
|
141
152
|
</dict>
|
|
142
153
|
<key>Modules/CanvasNative.swiftmodule/arm64-apple-ios-simulator.swiftdoc</key>
|
|
@@ -150,28 +161,28 @@
|
|
|
150
161
|
<dict>
|
|
151
162
|
<key>hash2</key>
|
|
152
163
|
<data>
|
|
153
|
-
|
|
164
|
+
GdWUs3wETGmKqyNU5VKDJA/tlR98st5/4td3G2QyLZE=
|
|
154
165
|
</data>
|
|
155
166
|
</dict>
|
|
156
167
|
<key>Modules/CanvasNative.swiftmodule/arm64-apple-ios-simulator.swiftmodule</key>
|
|
157
168
|
<dict>
|
|
158
169
|
<key>hash2</key>
|
|
159
170
|
<data>
|
|
160
|
-
|
|
171
|
+
rHVU4JyHEFCil/eMO5VCNiVdMgnE80HrTPbOa3yUpt4=
|
|
161
172
|
</data>
|
|
162
173
|
</dict>
|
|
163
174
|
<key>Modules/CanvasNative.swiftmodule/x86_64-apple-ios-simulator.abi.json</key>
|
|
164
175
|
<dict>
|
|
165
176
|
<key>hash2</key>
|
|
166
177
|
<data>
|
|
167
|
-
|
|
178
|
+
xHbgA+lMR10OmN3uIinp1tlfMC28As6hxzSxEOszaEM=
|
|
168
179
|
</data>
|
|
169
180
|
</dict>
|
|
170
181
|
<key>Modules/CanvasNative.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface</key>
|
|
171
182
|
<dict>
|
|
172
183
|
<key>hash2</key>
|
|
173
184
|
<data>
|
|
174
|
-
|
|
185
|
+
IAtDOdzqruy8Iw8YVHarD6zkC6DYDa/LIkBaXq3iOWc=
|
|
175
186
|
</data>
|
|
176
187
|
</dict>
|
|
177
188
|
<key>Modules/CanvasNative.swiftmodule/x86_64-apple-ios-simulator.swiftdoc</key>
|
|
@@ -185,14 +196,14 @@
|
|
|
185
196
|
<dict>
|
|
186
197
|
<key>hash2</key>
|
|
187
198
|
<data>
|
|
188
|
-
|
|
199
|
+
IAtDOdzqruy8Iw8YVHarD6zkC6DYDa/LIkBaXq3iOWc=
|
|
189
200
|
</data>
|
|
190
201
|
</dict>
|
|
191
202
|
<key>Modules/CanvasNative.swiftmodule/x86_64-apple-ios-simulator.swiftmodule</key>
|
|
192
203
|
<dict>
|
|
193
204
|
<key>hash2</key>
|
|
194
205
|
<data>
|
|
195
|
-
|
|
206
|
+
ojtLnUiwt5Zb+MQ7ac6B2gYnvAY9D2JFNcALJN8Qqzk=
|
|
196
207
|
</data>
|
|
197
208
|
</dict>
|
|
198
209
|
<key>Modules/module.modulemap</key>
|