@nativescript/canvas 1.0.0 → 1.1.0-alpha.0
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 +1 -0
- package/Canvas/common.js +65 -31
- package/Canvas/common.js.map +1 -1
- package/Canvas2D/CanvasRenderingContext2D/index.android.d.ts +3 -0
- package/Canvas2D/CanvasRenderingContext2D/index.android.js +47 -35
- package/Canvas2D/CanvasRenderingContext2D/index.android.js.map +1 -1
- package/Canvas2D/CanvasRenderingContext2D/index.d.ts +6 -0
- package/Canvas2D/CanvasRenderingContext2D/index.ios.d.ts +4 -1
- package/Canvas2D/CanvasRenderingContext2D/index.ios.js +117 -113
- package/Canvas2D/CanvasRenderingContext2D/index.ios.js.map +1 -1
- package/ImageBitmap/index.ios.js +9 -9
- package/ImageBitmap/index.ios.js.map +1 -1
- package/SVG/SVG.js.map +1 -1
- package/angular/esm2020/index.mjs +17 -0
- package/angular/esm2020/nativescript-canvas-angular.mjs +5 -0
- package/angular/fesm2015/nativescript-canvas-angular.mjs +24 -0
- package/angular/fesm2015/nativescript-canvas-angular.mjs.map +1 -0
- package/angular/fesm2020/nativescript-canvas-angular.mjs +24 -0
- package/angular/fesm2020/nativescript-canvas-angular.mjs.map +1 -0
- package/angular/index.d.ts +4 -0
- package/angular/package.json +20 -8
- package/package.json +2 -2
- package/platforms/android/include.gradle +1 -1
- 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 +67 -3
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Headers/canvas_native.h +56 -32
- 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 +74840 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/CanvasNative.swiftmodule/{arm64.swiftinterface → arm64-apple-ios.private.swiftinterface} +26 -13
- 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 +26 -13
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/module.modulemap +2 -2
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/dSYMs/CanvasNative.framework.dSYM/Contents/Resources/DWARF/CanvasNative +0 -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 +124 -6
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Headers/canvas_native.h +56 -32
- 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 +74840 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/{arm64.swiftinterface → arm64-apple-ios-simulator.private.swiftinterface} +26 -13
- 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 +26 -13
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/x86_64-apple-ios-simulator.abi.json +74840 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/{x86_64.swiftinterface → x86_64-apple-ios-simulator.private.swiftinterface} +26 -13
- 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 +26 -13
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/module.modulemap +2 -2
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/_CodeSignature/CodeResources +41 -85
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/dSYMs/CanvasNative.framework.dSYM/Contents/Resources/DWARF/CanvasNative +0 -0
- package/typings/objc!CanvasNative.d.ts +2018 -0
- package/typings/objc!CanvasNative.js +1 -0
- package/typings/objc!CanvasNative.js.map +1 -0
- package/angular/bundles/nativescript-canvas-angular.umd.js +0 -29
- package/angular/bundles/nativescript-canvas-angular.umd.js.map +0 -1
- package/angular/esm2015/index.js +0 -12
- package/angular/esm2015/nativescript-canvas-angular.js +0 -5
- package/angular/fesm2015/nativescript-canvas-angular.js +0 -19
- package/angular/fesm2015/nativescript-canvas-angular.js.map +0 -1
- package/angular/nativescript-canvas-angular.d.ts +0 -4
- package/angular/nativescript-canvas-angular.metadata.json +0 -1
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/CanvasNative.swiftmodule/Project/arm64.swiftsourceinfo +0 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64.swiftdoc +0 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/Project/arm64.swiftsourceinfo +0 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/Project/x86_64.swiftsourceinfo +0 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64.swiftdoc +0 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/x86_64.swiftdoc +0 -0
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// swift-interface-format-version: 1.0
|
|
2
|
-
// swift-compiler-version: Apple Swift version 5.
|
|
2
|
+
// swift-compiler-version: Apple Swift version 5.7 (swiftlang-5.7.0.127.4 clang-1400.0.29.50)
|
|
3
3
|
// swift-module-flags: -target arm64-apple-ios11.0 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -module-name CanvasNative
|
|
4
|
+
// swift-module-flags-ignorable: -enable-bare-slash-regex
|
|
4
5
|
import AVFoundation
|
|
5
6
|
@_exported import CanvasNative
|
|
6
7
|
import CoreVideo
|
|
@@ -11,6 +12,7 @@ import OpenGLES
|
|
|
11
12
|
import Swift
|
|
12
13
|
import UIKit
|
|
13
14
|
import _Concurrency
|
|
15
|
+
import _StringProcessing
|
|
14
16
|
@_inheritsConvenienceInitializers @_hasMissingDesignatedInitializers @objcMembers @objc(TNSDOMMatrix) public class TNSDOMMatrix : ObjectiveC.NSObject {
|
|
15
17
|
@objc override dynamic public init()
|
|
16
18
|
@objc public var a: Swift.Float {
|
|
@@ -248,6 +250,7 @@ import _Concurrency
|
|
|
248
250
|
@objc @_Concurrency.MainActor(unsafe) public func toDataURLAsync(_ type: Swift.String, _ callback: @escaping (Swift.String) -> Swift.Void)
|
|
249
251
|
@objc @_Concurrency.MainActor(unsafe) public func toDataURLAsync(_ type: Swift.String, _ format: Swift.Float, _ callback: @escaping (Swift.String) -> Swift.Void)
|
|
250
252
|
@objc @_Concurrency.MainActor(unsafe) public func snapshot() -> [Swift.UInt8]
|
|
253
|
+
@objc @_Concurrency.MainActor(unsafe) public func snapshotEncoded() -> [Swift.UInt8]
|
|
251
254
|
@objc @_Concurrency.MainActor(unsafe) public var isGL: Swift.Bool {
|
|
252
255
|
@objc get
|
|
253
256
|
}
|
|
@@ -265,7 +268,7 @@ import _Concurrency
|
|
|
265
268
|
}
|
|
266
269
|
@objc @_Concurrency.MainActor(unsafe) public func doDraw()
|
|
267
270
|
@objc @_Concurrency.MainActor(unsafe) public func flush()
|
|
268
|
-
@objc @_Concurrency.MainActor(unsafe) public init(frame:
|
|
271
|
+
@objc @_Concurrency.MainActor(unsafe) public init(frame: CoreFoundation.CGRect, useCpu: Swift.Bool)
|
|
269
272
|
@objc @_Concurrency.MainActor(unsafe) public func setListener(_ listener: CanvasNative.TNSCanvasListener?)
|
|
270
273
|
@objc @_Concurrency.MainActor(unsafe) public var fps: Swift.Float {
|
|
271
274
|
@objc get
|
|
@@ -1432,8 +1435,9 @@ extension Swift.RangeReplaceableCollection {
|
|
|
1432
1435
|
@objc set
|
|
1433
1436
|
}
|
|
1434
1437
|
@_Concurrency.MainActor(unsafe) @objc override dynamic public func layoutSubviews()
|
|
1435
|
-
@_Concurrency.MainActor(unsafe) @objc override dynamic public init(frame:
|
|
1436
|
-
@_Concurrency.MainActor(unsafe) @objc override dynamic public func draw(_ rect:
|
|
1438
|
+
@_Concurrency.MainActor(unsafe) @objc override dynamic public init(frame: CoreFoundation.CGRect)
|
|
1439
|
+
@_Concurrency.MainActor(unsafe) @objc override dynamic public func draw(_ rect: CoreFoundation.CGRect)
|
|
1440
|
+
@objc @_Concurrency.MainActor(unsafe) public func toImage() -> UIKit.UIImage?
|
|
1437
1441
|
@objc deinit
|
|
1438
1442
|
}
|
|
1439
1443
|
@objcMembers @objc(TNSWebGLRenderingContext) public class TNSWebGLRenderingContext : CanvasNative.TNSCanvasRenderingContext {
|
|
@@ -2586,7 +2590,7 @@ extension Swift.RangeReplaceableCollection {
|
|
|
2586
2590
|
@objc public static func createTextureCache(_ context: CanvasNative.TNSWebGLRenderingContext) -> CoreVideo.CVOpenGLESTextureCache?
|
|
2587
2591
|
@objc public static func createImage(_ texturecache: CoreVideo.CVOpenGLESTextureCache, _ buffer: CoreVideo.CVImageBuffer, _ textureAttributes: CoreFoundation.CFDictionary?, _ target: OpenGLES.GLenum, _ internalFormat: OpenGLES.GLint, _ width: OpenGLES.GLsizei, _ height: OpenGLES.GLsizei, _ format: OpenGLES.GLenum, _ type: OpenGLES.GLenum, _ planeIndex: Swift.Int) -> CoreVideo.CVOpenGLESTexture?
|
|
2588
2592
|
@objc public static func setupRender() -> CanvasNative.TNSRender
|
|
2589
|
-
@objc public static func drawFrame(_ player: AVFoundation.AVPlayer, _ output: AVFoundation.AVPlayerItemVideoOutput, _ videoSize:
|
|
2593
|
+
@objc public static func drawFrame(_ player: AVFoundation.AVPlayer, _ output: AVFoundation.AVPlayerItemVideoOutput, _ videoSize: CoreFoundation.CGSize, _ render: CanvasNative.TNSRender, _ internalFormat: Swift.Int32, _ format: Swift.Int32, _ flipYWebGL: Swift.Bool)
|
|
2590
2594
|
@objc override dynamic public init()
|
|
2591
2595
|
@objc deinit
|
|
2592
2596
|
}
|
|
@@ -2697,10 +2701,12 @@ extension Swift.RangeReplaceableCollection {
|
|
|
2697
2701
|
@objc get
|
|
2698
2702
|
@objc set
|
|
2699
2703
|
}
|
|
2704
|
+
@objc public func setFillStyleWithString(_ color: Swift.String)
|
|
2700
2705
|
@objc public var fillStyle: CanvasNative.ICanvasColorStyle {
|
|
2701
2706
|
@objc get
|
|
2702
2707
|
@objc set
|
|
2703
2708
|
}
|
|
2709
|
+
@objc public func setStrokeStyleWithString(_ color: Swift.String)
|
|
2704
2710
|
@objc public var strokeStyle: CanvasNative.ICanvasColorStyle {
|
|
2705
2711
|
@objc get
|
|
2706
2712
|
@objc set
|
|
@@ -2712,6 +2718,9 @@ extension Swift.RangeReplaceableCollection {
|
|
|
2712
2718
|
@objc public func strokeText(_ text: Swift.String, _ x: Swift.Float, _ y: Swift.Float)
|
|
2713
2719
|
@objc public func strokeText(_ text: Swift.String, _ x: Swift.Float, _ y: Swift.Float, _ width: Swift.Float)
|
|
2714
2720
|
@objc public func rect(_ x: Swift.Float, _ y: Swift.Float, _ width: Swift.Float, _ height: Swift.Float)
|
|
2721
|
+
@objc public func roundRect(x: Swift.Float, y: Swift.Float, width: Swift.Float, height: Swift.Float, topLeft: Swift.Float, topRight: Swift.Float, bottomRight: Swift.Float, bottomLeft: Swift.Float)
|
|
2722
|
+
@objc public func roundRect(x: Swift.Float, y: Swift.Float, width: Swift.Float, height: Swift.Float, radii: Swift.Float)
|
|
2723
|
+
@objc public func roundRect(_ x: Swift.Float, _ y: Swift.Float, _ width: Swift.Float, _ height: Swift.Float, _ radii: [Swift.Float])
|
|
2715
2724
|
@objc public func fill()
|
|
2716
2725
|
@objc public func fill(value: Any)
|
|
2717
2726
|
@objc public func fill(_ path: CanvasNative.TNSPath2D, _ rule: CanvasNative.TNSFillRule)
|
|
@@ -2735,6 +2744,7 @@ extension Swift.RangeReplaceableCollection {
|
|
|
2735
2744
|
@objc public func getCanvas() -> CanvasNative.TNSCanvas
|
|
2736
2745
|
@objc public func createLinearGradient(_ x0: Swift.Float, _ y0: Swift.Float, _ x1: Swift.Float, _ y1: Swift.Float) -> CanvasNative.TNSColorStyle.TNSLinearGradient
|
|
2737
2746
|
@objc public func createRadialGradient(_ x0: Swift.Float, _ y0: Swift.Float, _ r0: Swift.Float, _ x1: Swift.Float, _ y1: Swift.Float, _ r1: Swift.Float) -> CanvasNative.TNSColorStyle.TNSRadialGradient
|
|
2747
|
+
@objc public func createConicGradient(_ startAngle: Swift.Float, _ x: Swift.Float, _ y: Swift.Float) -> CanvasNative.TNSColorStyle.TNSConicGradient
|
|
2738
2748
|
@objc public func createPattern(_ value: Any, _ repetition: CanvasNative.TNSPatternRepetition) -> Any?
|
|
2739
2749
|
@objc public func setTransform(_ a: Swift.Float, _ b: Swift.Float, _ c: Swift.Float, _ d: Swift.Float, _ e: Swift.Float, _ f: Swift.Float)
|
|
2740
2750
|
@objc public func scale(_ x: Swift.Float, _ y: Swift.Float)
|
|
@@ -2833,17 +2843,17 @@ extension Swift.RangeReplaceableCollection {
|
|
|
2833
2843
|
public init?(string: Swift.String)
|
|
2834
2844
|
}
|
|
2835
2845
|
@_hasMissingDesignatedInitializers @objcMembers @objc(CanvasGLKView) @_Concurrency.MainActor(unsafe) public class CanvasGLKView : GLKit.GLKView {
|
|
2836
|
-
@objc dynamic public init()
|
|
2837
|
-
@_Concurrency.MainActor(unsafe) @objc override dynamic public init(frame:
|
|
2846
|
+
@_Concurrency.MainActor(unsafe) @objc dynamic public init()
|
|
2847
|
+
@_Concurrency.MainActor(unsafe) @objc override dynamic public init(frame: CoreFoundation.CGRect)
|
|
2838
2848
|
@_Concurrency.MainActor(unsafe) @objc override dynamic public func setNeedsDisplay()
|
|
2839
|
-
@_Concurrency.MainActor(unsafe) @objc override dynamic public func setNeedsDisplay(_ rect:
|
|
2849
|
+
@_Concurrency.MainActor(unsafe) @objc override dynamic public func setNeedsDisplay(_ rect: CoreFoundation.CGRect)
|
|
2840
2850
|
@objc deinit
|
|
2841
2851
|
}
|
|
2842
2852
|
@_inheritsConvenienceInitializers @_hasMissingDesignatedInitializers @objcMembers @objc(CanvasCPUView) @_Concurrency.MainActor(unsafe) public class CanvasCPUView : UIKit.UIView {
|
|
2843
2853
|
@objc @_Concurrency.MainActor(unsafe) public var ignorePixelScaling: Swift.Bool
|
|
2844
|
-
@objc dynamic public init()
|
|
2845
|
-
@_Concurrency.MainActor(unsafe) @objc override dynamic public init(frame:
|
|
2846
|
-
@_Concurrency.MainActor(unsafe) @objc override dynamic public func draw(_ rect:
|
|
2854
|
+
@_Concurrency.MainActor(unsafe) @objc dynamic public init()
|
|
2855
|
+
@_Concurrency.MainActor(unsafe) @objc override dynamic public init(frame: CoreFoundation.CGRect)
|
|
2856
|
+
@_Concurrency.MainActor(unsafe) @objc override dynamic public func draw(_ rect: CoreFoundation.CGRect)
|
|
2847
2857
|
@objc deinit
|
|
2848
2858
|
}
|
|
2849
2859
|
public protocol RenderListener {
|
|
@@ -2862,7 +2872,7 @@ public enum ContextType : Swift.Int, Swift.RawRepresentable {
|
|
|
2862
2872
|
@objc public class GLRenderer : ObjectiveC.NSObject, GLKit.GLKViewDelegate {
|
|
2863
2873
|
public var attributes: Foundation.NSDictionary
|
|
2864
2874
|
public func updateDirection(_ direction: Swift.String)
|
|
2865
|
-
public var
|
|
2875
|
+
public var invalidateState: Swift.Int {
|
|
2866
2876
|
get
|
|
2867
2877
|
set
|
|
2868
2878
|
}
|
|
@@ -2901,7 +2911,7 @@ public enum ContextType : Swift.Int, Swift.RawRepresentable {
|
|
|
2901
2911
|
public func ensureIsReady()
|
|
2902
2912
|
public func pause()
|
|
2903
2913
|
public func resume()
|
|
2904
|
-
@objc public func glkView(_ view: GLKit.GLKView, drawIn rect:
|
|
2914
|
+
@objc public func glkView(_ view: GLKit.GLKView, drawIn rect: CoreFoundation.CGRect)
|
|
2905
2915
|
}
|
|
2906
2916
|
@_inheritsConvenienceInitializers @_hasMissingDesignatedInitializers @objcMembers @objc(TNSIndexedParameter) public class TNSIndexedParameter : ObjectiveC.NSObject {
|
|
2907
2917
|
@objc deinit
|
|
@@ -3178,6 +3188,9 @@ public enum ContextType : Swift.Int, Swift.RawRepresentable {
|
|
|
3178
3188
|
@_inheritsConvenienceInitializers @_hasMissingDesignatedInitializers @objcMembers @objc(TNSRadialGradient) public class TNSRadialGradient : CanvasNative.TNSColorStyle.TNSGradient {
|
|
3179
3189
|
@objc deinit
|
|
3180
3190
|
}
|
|
3191
|
+
@_inheritsConvenienceInitializers @_hasMissingDesignatedInitializers @objcMembers @objc(TNSConicGradient) public class TNSConicGradient : CanvasNative.TNSColorStyle.TNSGradient {
|
|
3192
|
+
@objc deinit
|
|
3193
|
+
}
|
|
3181
3194
|
@_hasMissingDesignatedInitializers @objcMembers @objc(TNSPattern) public class TNSPattern : ObjectiveC.NSObject, CanvasNative.ICanvasColorStyle {
|
|
3182
3195
|
@objc public func setTransform(matrix: CanvasNative.TNSDOMMatrix)
|
|
3183
3196
|
@objc deinit
|
|
Binary file
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// swift-interface-format-version: 1.0
|
|
2
|
-
// swift-compiler-version: Apple Swift version 5.
|
|
2
|
+
// swift-compiler-version: Apple Swift version 5.7 (swiftlang-5.7.0.127.4 clang-1400.0.29.50)
|
|
3
3
|
// swift-module-flags: -target arm64-apple-ios11.0 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -module-name CanvasNative
|
|
4
|
+
// swift-module-flags-ignorable: -enable-bare-slash-regex
|
|
4
5
|
import AVFoundation
|
|
5
6
|
@_exported import CanvasNative
|
|
6
7
|
import CoreVideo
|
|
@@ -11,6 +12,7 @@ import OpenGLES
|
|
|
11
12
|
import Swift
|
|
12
13
|
import UIKit
|
|
13
14
|
import _Concurrency
|
|
15
|
+
import _StringProcessing
|
|
14
16
|
@_inheritsConvenienceInitializers @_hasMissingDesignatedInitializers @objcMembers @objc(TNSDOMMatrix) public class TNSDOMMatrix : ObjectiveC.NSObject {
|
|
15
17
|
@objc override dynamic public init()
|
|
16
18
|
@objc public var a: Swift.Float {
|
|
@@ -248,6 +250,7 @@ import _Concurrency
|
|
|
248
250
|
@objc @_Concurrency.MainActor(unsafe) public func toDataURLAsync(_ type: Swift.String, _ callback: @escaping (Swift.String) -> Swift.Void)
|
|
249
251
|
@objc @_Concurrency.MainActor(unsafe) public func toDataURLAsync(_ type: Swift.String, _ format: Swift.Float, _ callback: @escaping (Swift.String) -> Swift.Void)
|
|
250
252
|
@objc @_Concurrency.MainActor(unsafe) public func snapshot() -> [Swift.UInt8]
|
|
253
|
+
@objc @_Concurrency.MainActor(unsafe) public func snapshotEncoded() -> [Swift.UInt8]
|
|
251
254
|
@objc @_Concurrency.MainActor(unsafe) public var isGL: Swift.Bool {
|
|
252
255
|
@objc get
|
|
253
256
|
}
|
|
@@ -265,7 +268,7 @@ import _Concurrency
|
|
|
265
268
|
}
|
|
266
269
|
@objc @_Concurrency.MainActor(unsafe) public func doDraw()
|
|
267
270
|
@objc @_Concurrency.MainActor(unsafe) public func flush()
|
|
268
|
-
@objc @_Concurrency.MainActor(unsafe) public init(frame:
|
|
271
|
+
@objc @_Concurrency.MainActor(unsafe) public init(frame: CoreFoundation.CGRect, useCpu: Swift.Bool)
|
|
269
272
|
@objc @_Concurrency.MainActor(unsafe) public func setListener(_ listener: CanvasNative.TNSCanvasListener?)
|
|
270
273
|
@objc @_Concurrency.MainActor(unsafe) public var fps: Swift.Float {
|
|
271
274
|
@objc get
|
|
@@ -1432,8 +1435,9 @@ extension Swift.RangeReplaceableCollection {
|
|
|
1432
1435
|
@objc set
|
|
1433
1436
|
}
|
|
1434
1437
|
@_Concurrency.MainActor(unsafe) @objc override dynamic public func layoutSubviews()
|
|
1435
|
-
@_Concurrency.MainActor(unsafe) @objc override dynamic public init(frame:
|
|
1436
|
-
@_Concurrency.MainActor(unsafe) @objc override dynamic public func draw(_ rect:
|
|
1438
|
+
@_Concurrency.MainActor(unsafe) @objc override dynamic public init(frame: CoreFoundation.CGRect)
|
|
1439
|
+
@_Concurrency.MainActor(unsafe) @objc override dynamic public func draw(_ rect: CoreFoundation.CGRect)
|
|
1440
|
+
@objc @_Concurrency.MainActor(unsafe) public func toImage() -> UIKit.UIImage?
|
|
1437
1441
|
@objc deinit
|
|
1438
1442
|
}
|
|
1439
1443
|
@objcMembers @objc(TNSWebGLRenderingContext) public class TNSWebGLRenderingContext : CanvasNative.TNSCanvasRenderingContext {
|
|
@@ -2586,7 +2590,7 @@ extension Swift.RangeReplaceableCollection {
|
|
|
2586
2590
|
@objc public static func createTextureCache(_ context: CanvasNative.TNSWebGLRenderingContext) -> CoreVideo.CVOpenGLESTextureCache?
|
|
2587
2591
|
@objc public static func createImage(_ texturecache: CoreVideo.CVOpenGLESTextureCache, _ buffer: CoreVideo.CVImageBuffer, _ textureAttributes: CoreFoundation.CFDictionary?, _ target: OpenGLES.GLenum, _ internalFormat: OpenGLES.GLint, _ width: OpenGLES.GLsizei, _ height: OpenGLES.GLsizei, _ format: OpenGLES.GLenum, _ type: OpenGLES.GLenum, _ planeIndex: Swift.Int) -> CoreVideo.CVOpenGLESTexture?
|
|
2588
2592
|
@objc public static func setupRender() -> CanvasNative.TNSRender
|
|
2589
|
-
@objc public static func drawFrame(_ player: AVFoundation.AVPlayer, _ output: AVFoundation.AVPlayerItemVideoOutput, _ videoSize:
|
|
2593
|
+
@objc public static func drawFrame(_ player: AVFoundation.AVPlayer, _ output: AVFoundation.AVPlayerItemVideoOutput, _ videoSize: CoreFoundation.CGSize, _ render: CanvasNative.TNSRender, _ internalFormat: Swift.Int32, _ format: Swift.Int32, _ flipYWebGL: Swift.Bool)
|
|
2590
2594
|
@objc override dynamic public init()
|
|
2591
2595
|
@objc deinit
|
|
2592
2596
|
}
|
|
@@ -2697,10 +2701,12 @@ extension Swift.RangeReplaceableCollection {
|
|
|
2697
2701
|
@objc get
|
|
2698
2702
|
@objc set
|
|
2699
2703
|
}
|
|
2704
|
+
@objc public func setFillStyleWithString(_ color: Swift.String)
|
|
2700
2705
|
@objc public var fillStyle: CanvasNative.ICanvasColorStyle {
|
|
2701
2706
|
@objc get
|
|
2702
2707
|
@objc set
|
|
2703
2708
|
}
|
|
2709
|
+
@objc public func setStrokeStyleWithString(_ color: Swift.String)
|
|
2704
2710
|
@objc public var strokeStyle: CanvasNative.ICanvasColorStyle {
|
|
2705
2711
|
@objc get
|
|
2706
2712
|
@objc set
|
|
@@ -2712,6 +2718,9 @@ extension Swift.RangeReplaceableCollection {
|
|
|
2712
2718
|
@objc public func strokeText(_ text: Swift.String, _ x: Swift.Float, _ y: Swift.Float)
|
|
2713
2719
|
@objc public func strokeText(_ text: Swift.String, _ x: Swift.Float, _ y: Swift.Float, _ width: Swift.Float)
|
|
2714
2720
|
@objc public func rect(_ x: Swift.Float, _ y: Swift.Float, _ width: Swift.Float, _ height: Swift.Float)
|
|
2721
|
+
@objc public func roundRect(x: Swift.Float, y: Swift.Float, width: Swift.Float, height: Swift.Float, topLeft: Swift.Float, topRight: Swift.Float, bottomRight: Swift.Float, bottomLeft: Swift.Float)
|
|
2722
|
+
@objc public func roundRect(x: Swift.Float, y: Swift.Float, width: Swift.Float, height: Swift.Float, radii: Swift.Float)
|
|
2723
|
+
@objc public func roundRect(_ x: Swift.Float, _ y: Swift.Float, _ width: Swift.Float, _ height: Swift.Float, _ radii: [Swift.Float])
|
|
2715
2724
|
@objc public func fill()
|
|
2716
2725
|
@objc public func fill(value: Any)
|
|
2717
2726
|
@objc public func fill(_ path: CanvasNative.TNSPath2D, _ rule: CanvasNative.TNSFillRule)
|
|
@@ -2735,6 +2744,7 @@ extension Swift.RangeReplaceableCollection {
|
|
|
2735
2744
|
@objc public func getCanvas() -> CanvasNative.TNSCanvas
|
|
2736
2745
|
@objc public func createLinearGradient(_ x0: Swift.Float, _ y0: Swift.Float, _ x1: Swift.Float, _ y1: Swift.Float) -> CanvasNative.TNSColorStyle.TNSLinearGradient
|
|
2737
2746
|
@objc public func createRadialGradient(_ x0: Swift.Float, _ y0: Swift.Float, _ r0: Swift.Float, _ x1: Swift.Float, _ y1: Swift.Float, _ r1: Swift.Float) -> CanvasNative.TNSColorStyle.TNSRadialGradient
|
|
2747
|
+
@objc public func createConicGradient(_ startAngle: Swift.Float, _ x: Swift.Float, _ y: Swift.Float) -> CanvasNative.TNSColorStyle.TNSConicGradient
|
|
2738
2748
|
@objc public func createPattern(_ value: Any, _ repetition: CanvasNative.TNSPatternRepetition) -> Any?
|
|
2739
2749
|
@objc public func setTransform(_ a: Swift.Float, _ b: Swift.Float, _ c: Swift.Float, _ d: Swift.Float, _ e: Swift.Float, _ f: Swift.Float)
|
|
2740
2750
|
@objc public func scale(_ x: Swift.Float, _ y: Swift.Float)
|
|
@@ -2833,17 +2843,17 @@ extension Swift.RangeReplaceableCollection {
|
|
|
2833
2843
|
public init?(string: Swift.String)
|
|
2834
2844
|
}
|
|
2835
2845
|
@_hasMissingDesignatedInitializers @objcMembers @objc(CanvasGLKView) @_Concurrency.MainActor(unsafe) public class CanvasGLKView : GLKit.GLKView {
|
|
2836
|
-
@objc dynamic public init()
|
|
2837
|
-
@_Concurrency.MainActor(unsafe) @objc override dynamic public init(frame:
|
|
2846
|
+
@_Concurrency.MainActor(unsafe) @objc dynamic public init()
|
|
2847
|
+
@_Concurrency.MainActor(unsafe) @objc override dynamic public init(frame: CoreFoundation.CGRect)
|
|
2838
2848
|
@_Concurrency.MainActor(unsafe) @objc override dynamic public func setNeedsDisplay()
|
|
2839
|
-
@_Concurrency.MainActor(unsafe) @objc override dynamic public func setNeedsDisplay(_ rect:
|
|
2849
|
+
@_Concurrency.MainActor(unsafe) @objc override dynamic public func setNeedsDisplay(_ rect: CoreFoundation.CGRect)
|
|
2840
2850
|
@objc deinit
|
|
2841
2851
|
}
|
|
2842
2852
|
@_inheritsConvenienceInitializers @_hasMissingDesignatedInitializers @objcMembers @objc(CanvasCPUView) @_Concurrency.MainActor(unsafe) public class CanvasCPUView : UIKit.UIView {
|
|
2843
2853
|
@objc @_Concurrency.MainActor(unsafe) public var ignorePixelScaling: Swift.Bool
|
|
2844
|
-
@objc dynamic public init()
|
|
2845
|
-
@_Concurrency.MainActor(unsafe) @objc override dynamic public init(frame:
|
|
2846
|
-
@_Concurrency.MainActor(unsafe) @objc override dynamic public func draw(_ rect:
|
|
2854
|
+
@_Concurrency.MainActor(unsafe) @objc dynamic public init()
|
|
2855
|
+
@_Concurrency.MainActor(unsafe) @objc override dynamic public init(frame: CoreFoundation.CGRect)
|
|
2856
|
+
@_Concurrency.MainActor(unsafe) @objc override dynamic public func draw(_ rect: CoreFoundation.CGRect)
|
|
2847
2857
|
@objc deinit
|
|
2848
2858
|
}
|
|
2849
2859
|
public protocol RenderListener {
|
|
@@ -2862,7 +2872,7 @@ public enum ContextType : Swift.Int, Swift.RawRepresentable {
|
|
|
2862
2872
|
@objc public class GLRenderer : ObjectiveC.NSObject, GLKit.GLKViewDelegate {
|
|
2863
2873
|
public var attributes: Foundation.NSDictionary
|
|
2864
2874
|
public func updateDirection(_ direction: Swift.String)
|
|
2865
|
-
public var
|
|
2875
|
+
public var invalidateState: Swift.Int {
|
|
2866
2876
|
get
|
|
2867
2877
|
set
|
|
2868
2878
|
}
|
|
@@ -2901,7 +2911,7 @@ public enum ContextType : Swift.Int, Swift.RawRepresentable {
|
|
|
2901
2911
|
public func ensureIsReady()
|
|
2902
2912
|
public func pause()
|
|
2903
2913
|
public func resume()
|
|
2904
|
-
@objc public func glkView(_ view: GLKit.GLKView, drawIn rect:
|
|
2914
|
+
@objc public func glkView(_ view: GLKit.GLKView, drawIn rect: CoreFoundation.CGRect)
|
|
2905
2915
|
}
|
|
2906
2916
|
@_inheritsConvenienceInitializers @_hasMissingDesignatedInitializers @objcMembers @objc(TNSIndexedParameter) public class TNSIndexedParameter : ObjectiveC.NSObject {
|
|
2907
2917
|
@objc deinit
|
|
@@ -3178,6 +3188,9 @@ public enum ContextType : Swift.Int, Swift.RawRepresentable {
|
|
|
3178
3188
|
@_inheritsConvenienceInitializers @_hasMissingDesignatedInitializers @objcMembers @objc(TNSRadialGradient) public class TNSRadialGradient : CanvasNative.TNSColorStyle.TNSGradient {
|
|
3179
3189
|
@objc deinit
|
|
3180
3190
|
}
|
|
3191
|
+
@_inheritsConvenienceInitializers @_hasMissingDesignatedInitializers @objcMembers @objc(TNSConicGradient) public class TNSConicGradient : CanvasNative.TNSColorStyle.TNSGradient {
|
|
3192
|
+
@objc deinit
|
|
3193
|
+
}
|
|
3181
3194
|
@_hasMissingDesignatedInitializers @objcMembers @objc(TNSPattern) public class TNSPattern : ObjectiveC.NSObject, CanvasNative.ICanvasColorStyle {
|
|
3182
3195
|
@objc public func setTransform(matrix: CanvasNative.TNSDOMMatrix)
|
|
3183
3196
|
@objc deinit
|
|
Binary file
|
|
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.7 (swiftlang-5.7.0.127.4 clang-1400.0.29.50)
|
|
4
4
|
#ifndef CANVASNATIVE_SWIFT_H
|
|
5
5
|
#define CANVASNATIVE_SWIFT_H
|
|
6
6
|
#pragma clang diagnostic push
|
|
@@ -23,11 +23,20 @@
|
|
|
23
23
|
# include <swift/objc-prologue.h>
|
|
24
24
|
#endif
|
|
25
25
|
|
|
26
|
+
#pragma clang diagnostic ignored "-Wduplicate-method-match"
|
|
26
27
|
#pragma clang diagnostic ignored "-Wauto-import"
|
|
28
|
+
#if defined(__OBJC__)
|
|
27
29
|
#include <Foundation/Foundation.h>
|
|
30
|
+
#endif
|
|
31
|
+
#if defined(__cplusplus)
|
|
32
|
+
#include <cstdint>
|
|
33
|
+
#include <cstddef>
|
|
34
|
+
#include <cstdbool>
|
|
35
|
+
#else
|
|
28
36
|
#include <stdint.h>
|
|
29
37
|
#include <stddef.h>
|
|
30
38
|
#include <stdbool.h>
|
|
39
|
+
#endif
|
|
31
40
|
|
|
32
41
|
#if !defined(SWIFT_TYPEDEFS)
|
|
33
42
|
# define SWIFT_TYPEDEFS 1
|
|
@@ -183,15 +192,45 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
|
|
|
183
192
|
#else
|
|
184
193
|
# define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg)
|
|
185
194
|
#endif
|
|
195
|
+
#if defined(__OBJC__)
|
|
186
196
|
#if !defined(IBSegueAction)
|
|
187
197
|
# define IBSegueAction
|
|
188
198
|
#endif
|
|
199
|
+
#endif
|
|
200
|
+
#if !defined(SWIFT_EXTERN)
|
|
201
|
+
# if defined(__cplusplus)
|
|
202
|
+
# define SWIFT_EXTERN extern "C"
|
|
203
|
+
# else
|
|
204
|
+
# define SWIFT_EXTERN extern
|
|
205
|
+
# endif
|
|
206
|
+
#endif
|
|
207
|
+
#if !defined(SWIFT_CALL)
|
|
208
|
+
# define SWIFT_CALL __attribute__((swiftcall))
|
|
209
|
+
#endif
|
|
210
|
+
#if defined(__cplusplus)
|
|
211
|
+
#if !defined(SWIFT_NOEXCEPT)
|
|
212
|
+
# define SWIFT_NOEXCEPT noexcept
|
|
213
|
+
#endif
|
|
214
|
+
#else
|
|
215
|
+
#if !defined(SWIFT_NOEXCEPT)
|
|
216
|
+
# define SWIFT_NOEXCEPT
|
|
217
|
+
#endif
|
|
218
|
+
#endif
|
|
219
|
+
#if defined(__cplusplus)
|
|
220
|
+
#if !defined(SWIFT_CXX_INT_DEFINED)
|
|
221
|
+
#define SWIFT_CXX_INT_DEFINED
|
|
222
|
+
namespace swift {
|
|
223
|
+
using Int = ptrdiff_t;
|
|
224
|
+
using UInt = size_t;
|
|
225
|
+
}
|
|
226
|
+
#endif
|
|
227
|
+
#endif
|
|
228
|
+
#if defined(__OBJC__)
|
|
189
229
|
#if __has_feature(modules)
|
|
190
230
|
#if __has_warning("-Watimport-in-framework-header")
|
|
191
231
|
#pragma clang diagnostic ignored "-Watimport-in-framework-header"
|
|
192
232
|
#endif
|
|
193
233
|
@import CoreFoundation;
|
|
194
|
-
@import CoreGraphics;
|
|
195
234
|
@import CoreVideo;
|
|
196
235
|
@import Dispatch;
|
|
197
236
|
@import Foundation;
|
|
@@ -201,6 +240,7 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
|
|
|
201
240
|
@import UIKit;
|
|
202
241
|
#endif
|
|
203
242
|
|
|
243
|
+
#endif
|
|
204
244
|
#pragma clang diagnostic ignored "-Wproperty-attribute-mismatch"
|
|
205
245
|
#pragma clang diagnostic ignored "-Wduplicate-method-arg"
|
|
206
246
|
#if __has_warning("-Wpragma-clang-attribute")
|
|
@@ -208,6 +248,7 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
|
|
|
208
248
|
#endif
|
|
209
249
|
#pragma clang diagnostic ignored "-Wunknown-pragmas"
|
|
210
250
|
#pragma clang diagnostic ignored "-Wnullability"
|
|
251
|
+
#pragma clang diagnostic ignored "-Wdollar-in-identifier-extension"
|
|
211
252
|
|
|
212
253
|
#if __has_attribute(external_source_symbol)
|
|
213
254
|
# pragma push_macro("any")
|
|
@@ -216,7 +257,7 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
|
|
|
216
257
|
# pragma pop_macro("any")
|
|
217
258
|
#endif
|
|
218
259
|
|
|
219
|
-
|
|
260
|
+
#if defined(__OBJC__)
|
|
220
261
|
@class NSCoder;
|
|
221
262
|
|
|
222
263
|
SWIFT_CLASS_NAMED("CanvasCPUView")
|
|
@@ -289,6 +330,7 @@ SWIFT_CLASS_NAMED("TNSCanvas")
|
|
|
289
330
|
- (void)toDataURLAsync:(NSString * _Nonnull)type :(void (^ _Nonnull)(NSString * _Nonnull))callback;
|
|
290
331
|
- (void)toDataURLAsync:(NSString * _Nonnull)type :(float)format :(void (^ _Nonnull)(NSString * _Nonnull))callback;
|
|
291
332
|
- (NSArray<NSNumber *> * _Nonnull)snapshot SWIFT_WARN_UNUSED_RESULT;
|
|
333
|
+
- (NSArray<NSNumber *> * _Nonnull)snapshotEncoded SWIFT_WARN_UNUSED_RESULT;
|
|
292
334
|
@property (nonatomic, readonly) BOOL isGL;
|
|
293
335
|
- (GLint)getId SWIFT_WARN_UNUSED_RESULT;
|
|
294
336
|
@property (nonatomic, readonly) float width;
|
|
@@ -335,6 +377,7 @@ enum TNSTextBaseLine : NSInteger;
|
|
|
335
377
|
enum TNSFillRule : NSInteger;
|
|
336
378
|
@class TNSLinearGradient;
|
|
337
379
|
@class TNSRadialGradient;
|
|
380
|
+
@class TNSConicGradient;
|
|
338
381
|
enum TNSPatternRepetition : NSInteger;
|
|
339
382
|
@class TNSImageData;
|
|
340
383
|
@class TNSTextMetrics;
|
|
@@ -359,7 +402,9 @@ SWIFT_CLASS_NAMED("TNSCanvasRenderingContext2D")
|
|
|
359
402
|
@property (nonatomic) float shadowOffsetY;
|
|
360
403
|
@property (nonatomic) enum TNSTextAlignment textAlign;
|
|
361
404
|
@property (nonatomic) enum TNSTextBaseLine textBaseline;
|
|
405
|
+
- (void)setFillStyleWithString:(NSString * _Nonnull)color;
|
|
362
406
|
@property (nonatomic, strong) id <ICanvasColorStyle> _Nonnull fillStyle;
|
|
407
|
+
- (void)setStrokeStyleWithString:(NSString * _Nonnull)color;
|
|
363
408
|
@property (nonatomic, strong) id <ICanvasColorStyle> _Nonnull strokeStyle;
|
|
364
409
|
- (void)fillRect:(float)x :(float)y :(float)width :(float)height;
|
|
365
410
|
- (void)strokeRect:(float)x :(float)y :(float)width :(float)height;
|
|
@@ -368,6 +413,9 @@ SWIFT_CLASS_NAMED("TNSCanvasRenderingContext2D")
|
|
|
368
413
|
- (void)strokeText:(NSString * _Nonnull)text :(float)x :(float)y;
|
|
369
414
|
- (void)strokeText:(NSString * _Nonnull)text :(float)x :(float)y :(float)width;
|
|
370
415
|
- (void)rect:(float)x :(float)y :(float)width :(float)height;
|
|
416
|
+
- (void)roundRectWithX:(float)x y:(float)y width:(float)width height:(float)height topLeft:(float)topLeft topRight:(float)topRight bottomRight:(float)bottomRight bottomLeft:(float)bottomLeft;
|
|
417
|
+
- (void)roundRectWithX:(float)x y:(float)y width:(float)width height:(float)height radii:(float)radii;
|
|
418
|
+
- (void)roundRect:(float)x :(float)y :(float)width :(float)height :(NSArray<NSNumber *> * _Nonnull)radii;
|
|
371
419
|
- (void)fill;
|
|
372
420
|
- (void)fillWithValue:(id _Nonnull)value;
|
|
373
421
|
- (void)fill:(TNSPath2D * _Nonnull)path :(enum TNSFillRule)rule;
|
|
@@ -391,6 +439,7 @@ SWIFT_CLASS_NAMED("TNSCanvasRenderingContext2D")
|
|
|
391
439
|
- (TNSCanvas * _Nonnull)getCanvas SWIFT_WARN_UNUSED_RESULT;
|
|
392
440
|
- (TNSLinearGradient * _Nonnull)createLinearGradient:(float)x0 :(float)y0 :(float)x1 :(float)y1 SWIFT_WARN_UNUSED_RESULT;
|
|
393
441
|
- (TNSRadialGradient * _Nonnull)createRadialGradient:(float)x0 :(float)y0 :(float)r0 :(float)x1 :(float)y1 :(float)r1 SWIFT_WARN_UNUSED_RESULT;
|
|
442
|
+
- (TNSConicGradient * _Nonnull)createConicGradient:(float)startAngle :(float)x :(float)y SWIFT_WARN_UNUSED_RESULT;
|
|
394
443
|
- (id _Nullable)createPattern:(id _Nonnull)value :(enum TNSPatternRepetition)repetition SWIFT_WARN_UNUSED_RESULT;
|
|
395
444
|
- (void)setTransform:(float)a :(float)b :(float)c :(float)d :(float)e :(float)f;
|
|
396
445
|
- (void)scale:(float)x :(float)y;
|
|
@@ -456,6 +505,11 @@ SWIFT_CLASS_NAMED("TNSRadialGradient")
|
|
|
456
505
|
@end
|
|
457
506
|
|
|
458
507
|
|
|
508
|
+
SWIFT_CLASS_NAMED("TNSConicGradient")
|
|
509
|
+
@interface TNSConicGradient : TNSGradient
|
|
510
|
+
@end
|
|
511
|
+
|
|
512
|
+
|
|
459
513
|
SWIFT_CLASS_NAMED("TNSPattern")
|
|
460
514
|
@interface TNSPattern : NSObject <ICanvasColorStyle>
|
|
461
515
|
- (void)setTransformWithMatrix:(TNSDOMMatrix * _Nonnull)matrix;
|
|
@@ -717,6 +771,7 @@ SWIFT_CLASS_NAMED("TNSSVG")
|
|
|
717
771
|
- (nonnull instancetype)initWithFrame:(CGRect)frame OBJC_DESIGNATED_INITIALIZER;
|
|
718
772
|
- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE;
|
|
719
773
|
- (void)drawRect:(CGRect)rect;
|
|
774
|
+
- (UIImage * _Nullable)toImage SWIFT_WARN_UNUSED_RESULT;
|
|
720
775
|
@end
|
|
721
776
|
|
|
722
777
|
typedef SWIFT_ENUM_NAMED(NSInteger, TNSTextAlignment, "TNSTextAlignment", open) {
|
|
@@ -1991,6 +2046,9 @@ SWIFT_CLASS_NAMED("Utils")
|
|
|
1991
2046
|
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
|
|
1992
2047
|
@end
|
|
1993
2048
|
|
|
2049
|
+
#endif
|
|
2050
|
+
#if defined(__cplusplus)
|
|
2051
|
+
#endif
|
|
1994
2052
|
#if __has_attribute(external_source_symbol)
|
|
1995
2053
|
# pragma clang attribute pop
|
|
1996
2054
|
#endif
|
|
@@ -1998,7 +2056,7 @@ SWIFT_CLASS_NAMED("Utils")
|
|
|
1998
2056
|
#endif
|
|
1999
2057
|
|
|
2000
2058
|
#elif defined(__x86_64__) && __x86_64__
|
|
2001
|
-
// Generated by Apple Swift version 5.
|
|
2059
|
+
// Generated by Apple Swift version 5.7 (swiftlang-5.7.0.127.4 clang-1400.0.29.50)
|
|
2002
2060
|
#ifndef CANVASNATIVE_SWIFT_H
|
|
2003
2061
|
#define CANVASNATIVE_SWIFT_H
|
|
2004
2062
|
#pragma clang diagnostic push
|
|
@@ -2021,11 +2079,20 @@ SWIFT_CLASS_NAMED("Utils")
|
|
|
2021
2079
|
# include <swift/objc-prologue.h>
|
|
2022
2080
|
#endif
|
|
2023
2081
|
|
|
2082
|
+
#pragma clang diagnostic ignored "-Wduplicate-method-match"
|
|
2024
2083
|
#pragma clang diagnostic ignored "-Wauto-import"
|
|
2084
|
+
#if defined(__OBJC__)
|
|
2025
2085
|
#include <Foundation/Foundation.h>
|
|
2086
|
+
#endif
|
|
2087
|
+
#if defined(__cplusplus)
|
|
2088
|
+
#include <cstdint>
|
|
2089
|
+
#include <cstddef>
|
|
2090
|
+
#include <cstdbool>
|
|
2091
|
+
#else
|
|
2026
2092
|
#include <stdint.h>
|
|
2027
2093
|
#include <stddef.h>
|
|
2028
2094
|
#include <stdbool.h>
|
|
2095
|
+
#endif
|
|
2029
2096
|
|
|
2030
2097
|
#if !defined(SWIFT_TYPEDEFS)
|
|
2031
2098
|
# define SWIFT_TYPEDEFS 1
|
|
@@ -2181,15 +2248,45 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
|
|
|
2181
2248
|
#else
|
|
2182
2249
|
# define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg)
|
|
2183
2250
|
#endif
|
|
2251
|
+
#if defined(__OBJC__)
|
|
2184
2252
|
#if !defined(IBSegueAction)
|
|
2185
2253
|
# define IBSegueAction
|
|
2186
2254
|
#endif
|
|
2255
|
+
#endif
|
|
2256
|
+
#if !defined(SWIFT_EXTERN)
|
|
2257
|
+
# if defined(__cplusplus)
|
|
2258
|
+
# define SWIFT_EXTERN extern "C"
|
|
2259
|
+
# else
|
|
2260
|
+
# define SWIFT_EXTERN extern
|
|
2261
|
+
# endif
|
|
2262
|
+
#endif
|
|
2263
|
+
#if !defined(SWIFT_CALL)
|
|
2264
|
+
# define SWIFT_CALL __attribute__((swiftcall))
|
|
2265
|
+
#endif
|
|
2266
|
+
#if defined(__cplusplus)
|
|
2267
|
+
#if !defined(SWIFT_NOEXCEPT)
|
|
2268
|
+
# define SWIFT_NOEXCEPT noexcept
|
|
2269
|
+
#endif
|
|
2270
|
+
#else
|
|
2271
|
+
#if !defined(SWIFT_NOEXCEPT)
|
|
2272
|
+
# define SWIFT_NOEXCEPT
|
|
2273
|
+
#endif
|
|
2274
|
+
#endif
|
|
2275
|
+
#if defined(__cplusplus)
|
|
2276
|
+
#if !defined(SWIFT_CXX_INT_DEFINED)
|
|
2277
|
+
#define SWIFT_CXX_INT_DEFINED
|
|
2278
|
+
namespace swift {
|
|
2279
|
+
using Int = ptrdiff_t;
|
|
2280
|
+
using UInt = size_t;
|
|
2281
|
+
}
|
|
2282
|
+
#endif
|
|
2283
|
+
#endif
|
|
2284
|
+
#if defined(__OBJC__)
|
|
2187
2285
|
#if __has_feature(modules)
|
|
2188
2286
|
#if __has_warning("-Watimport-in-framework-header")
|
|
2189
2287
|
#pragma clang diagnostic ignored "-Watimport-in-framework-header"
|
|
2190
2288
|
#endif
|
|
2191
2289
|
@import CoreFoundation;
|
|
2192
|
-
@import CoreGraphics;
|
|
2193
2290
|
@import CoreVideo;
|
|
2194
2291
|
@import Dispatch;
|
|
2195
2292
|
@import Foundation;
|
|
@@ -2199,6 +2296,7 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
|
|
|
2199
2296
|
@import UIKit;
|
|
2200
2297
|
#endif
|
|
2201
2298
|
|
|
2299
|
+
#endif
|
|
2202
2300
|
#pragma clang diagnostic ignored "-Wproperty-attribute-mismatch"
|
|
2203
2301
|
#pragma clang diagnostic ignored "-Wduplicate-method-arg"
|
|
2204
2302
|
#if __has_warning("-Wpragma-clang-attribute")
|
|
@@ -2206,6 +2304,7 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
|
|
|
2206
2304
|
#endif
|
|
2207
2305
|
#pragma clang diagnostic ignored "-Wunknown-pragmas"
|
|
2208
2306
|
#pragma clang diagnostic ignored "-Wnullability"
|
|
2307
|
+
#pragma clang diagnostic ignored "-Wdollar-in-identifier-extension"
|
|
2209
2308
|
|
|
2210
2309
|
#if __has_attribute(external_source_symbol)
|
|
2211
2310
|
# pragma push_macro("any")
|
|
@@ -2214,7 +2313,7 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
|
|
|
2214
2313
|
# pragma pop_macro("any")
|
|
2215
2314
|
#endif
|
|
2216
2315
|
|
|
2217
|
-
|
|
2316
|
+
#if defined(__OBJC__)
|
|
2218
2317
|
@class NSCoder;
|
|
2219
2318
|
|
|
2220
2319
|
SWIFT_CLASS_NAMED("CanvasCPUView")
|
|
@@ -2287,6 +2386,7 @@ SWIFT_CLASS_NAMED("TNSCanvas")
|
|
|
2287
2386
|
- (void)toDataURLAsync:(NSString * _Nonnull)type :(void (^ _Nonnull)(NSString * _Nonnull))callback;
|
|
2288
2387
|
- (void)toDataURLAsync:(NSString * _Nonnull)type :(float)format :(void (^ _Nonnull)(NSString * _Nonnull))callback;
|
|
2289
2388
|
- (NSArray<NSNumber *> * _Nonnull)snapshot SWIFT_WARN_UNUSED_RESULT;
|
|
2389
|
+
- (NSArray<NSNumber *> * _Nonnull)snapshotEncoded SWIFT_WARN_UNUSED_RESULT;
|
|
2290
2390
|
@property (nonatomic, readonly) BOOL isGL;
|
|
2291
2391
|
- (GLint)getId SWIFT_WARN_UNUSED_RESULT;
|
|
2292
2392
|
@property (nonatomic, readonly) float width;
|
|
@@ -2333,6 +2433,7 @@ enum TNSTextBaseLine : NSInteger;
|
|
|
2333
2433
|
enum TNSFillRule : NSInteger;
|
|
2334
2434
|
@class TNSLinearGradient;
|
|
2335
2435
|
@class TNSRadialGradient;
|
|
2436
|
+
@class TNSConicGradient;
|
|
2336
2437
|
enum TNSPatternRepetition : NSInteger;
|
|
2337
2438
|
@class TNSImageData;
|
|
2338
2439
|
@class TNSTextMetrics;
|
|
@@ -2357,7 +2458,9 @@ SWIFT_CLASS_NAMED("TNSCanvasRenderingContext2D")
|
|
|
2357
2458
|
@property (nonatomic) float shadowOffsetY;
|
|
2358
2459
|
@property (nonatomic) enum TNSTextAlignment textAlign;
|
|
2359
2460
|
@property (nonatomic) enum TNSTextBaseLine textBaseline;
|
|
2461
|
+
- (void)setFillStyleWithString:(NSString * _Nonnull)color;
|
|
2360
2462
|
@property (nonatomic, strong) id <ICanvasColorStyle> _Nonnull fillStyle;
|
|
2463
|
+
- (void)setStrokeStyleWithString:(NSString * _Nonnull)color;
|
|
2361
2464
|
@property (nonatomic, strong) id <ICanvasColorStyle> _Nonnull strokeStyle;
|
|
2362
2465
|
- (void)fillRect:(float)x :(float)y :(float)width :(float)height;
|
|
2363
2466
|
- (void)strokeRect:(float)x :(float)y :(float)width :(float)height;
|
|
@@ -2366,6 +2469,9 @@ SWIFT_CLASS_NAMED("TNSCanvasRenderingContext2D")
|
|
|
2366
2469
|
- (void)strokeText:(NSString * _Nonnull)text :(float)x :(float)y;
|
|
2367
2470
|
- (void)strokeText:(NSString * _Nonnull)text :(float)x :(float)y :(float)width;
|
|
2368
2471
|
- (void)rect:(float)x :(float)y :(float)width :(float)height;
|
|
2472
|
+
- (void)roundRectWithX:(float)x y:(float)y width:(float)width height:(float)height topLeft:(float)topLeft topRight:(float)topRight bottomRight:(float)bottomRight bottomLeft:(float)bottomLeft;
|
|
2473
|
+
- (void)roundRectWithX:(float)x y:(float)y width:(float)width height:(float)height radii:(float)radii;
|
|
2474
|
+
- (void)roundRect:(float)x :(float)y :(float)width :(float)height :(NSArray<NSNumber *> * _Nonnull)radii;
|
|
2369
2475
|
- (void)fill;
|
|
2370
2476
|
- (void)fillWithValue:(id _Nonnull)value;
|
|
2371
2477
|
- (void)fill:(TNSPath2D * _Nonnull)path :(enum TNSFillRule)rule;
|
|
@@ -2389,6 +2495,7 @@ SWIFT_CLASS_NAMED("TNSCanvasRenderingContext2D")
|
|
|
2389
2495
|
- (TNSCanvas * _Nonnull)getCanvas SWIFT_WARN_UNUSED_RESULT;
|
|
2390
2496
|
- (TNSLinearGradient * _Nonnull)createLinearGradient:(float)x0 :(float)y0 :(float)x1 :(float)y1 SWIFT_WARN_UNUSED_RESULT;
|
|
2391
2497
|
- (TNSRadialGradient * _Nonnull)createRadialGradient:(float)x0 :(float)y0 :(float)r0 :(float)x1 :(float)y1 :(float)r1 SWIFT_WARN_UNUSED_RESULT;
|
|
2498
|
+
- (TNSConicGradient * _Nonnull)createConicGradient:(float)startAngle :(float)x :(float)y SWIFT_WARN_UNUSED_RESULT;
|
|
2392
2499
|
- (id _Nullable)createPattern:(id _Nonnull)value :(enum TNSPatternRepetition)repetition SWIFT_WARN_UNUSED_RESULT;
|
|
2393
2500
|
- (void)setTransform:(float)a :(float)b :(float)c :(float)d :(float)e :(float)f;
|
|
2394
2501
|
- (void)scale:(float)x :(float)y;
|
|
@@ -2454,6 +2561,11 @@ SWIFT_CLASS_NAMED("TNSRadialGradient")
|
|
|
2454
2561
|
@end
|
|
2455
2562
|
|
|
2456
2563
|
|
|
2564
|
+
SWIFT_CLASS_NAMED("TNSConicGradient")
|
|
2565
|
+
@interface TNSConicGradient : TNSGradient
|
|
2566
|
+
@end
|
|
2567
|
+
|
|
2568
|
+
|
|
2457
2569
|
SWIFT_CLASS_NAMED("TNSPattern")
|
|
2458
2570
|
@interface TNSPattern : NSObject <ICanvasColorStyle>
|
|
2459
2571
|
- (void)setTransformWithMatrix:(TNSDOMMatrix * _Nonnull)matrix;
|
|
@@ -2715,6 +2827,7 @@ SWIFT_CLASS_NAMED("TNSSVG")
|
|
|
2715
2827
|
- (nonnull instancetype)initWithFrame:(CGRect)frame OBJC_DESIGNATED_INITIALIZER;
|
|
2716
2828
|
- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE;
|
|
2717
2829
|
- (void)drawRect:(CGRect)rect;
|
|
2830
|
+
- (UIImage * _Nullable)toImage SWIFT_WARN_UNUSED_RESULT;
|
|
2718
2831
|
@end
|
|
2719
2832
|
|
|
2720
2833
|
typedef SWIFT_ENUM_NAMED(NSInteger, TNSTextAlignment, "TNSTextAlignment", open) {
|
|
@@ -3989,10 +4102,15 @@ SWIFT_CLASS_NAMED("Utils")
|
|
|
3989
4102
|
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
|
|
3990
4103
|
@end
|
|
3991
4104
|
|
|
4105
|
+
#endif
|
|
4106
|
+
#if defined(__cplusplus)
|
|
4107
|
+
#endif
|
|
3992
4108
|
#if __has_attribute(external_source_symbol)
|
|
3993
4109
|
# pragma clang attribute pop
|
|
3994
4110
|
#endif
|
|
3995
4111
|
#pragma clang diagnostic pop
|
|
3996
4112
|
#endif
|
|
3997
4113
|
|
|
4114
|
+
#else
|
|
4115
|
+
#error unsupported Swift architecture
|
|
3998
4116
|
#endif
|