@nativescript/canvas 1.1.0-alpha.0 → 1.1.0-alpha.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Canvas/common.d.ts +4 -1
- package/Canvas/common.js +24 -11
- package/Canvas/common.js.map +1 -1
- package/Canvas/index.android.d.ts +2 -0
- package/Canvas/index.android.js +22 -15
- package/Canvas/index.android.js.map +1 -1
- package/Canvas/index.d.ts +4 -0
- package/Canvas/index.ios.d.ts +2 -0
- package/Canvas/index.ios.js +38 -16
- package/Canvas/index.ios.js.map +1 -1
- package/Canvas2D/CanvasPattern/CanvasPattern.ios.d.ts +1 -0
- package/Canvas2D/CanvasPattern/CanvasPattern.ios.js +3 -0
- package/Canvas2D/CanvasPattern/CanvasPattern.ios.js.map +1 -1
- package/Canvas2D/CanvasRenderingContext2D/common.d.ts +3 -1
- package/Canvas2D/CanvasRenderingContext2D/common.js.map +1 -1
- package/Canvas2D/CanvasRenderingContext2D/index.android.d.ts +0 -1
- package/Canvas2D/CanvasRenderingContext2D/index.android.js +1 -2
- package/Canvas2D/CanvasRenderingContext2D/index.android.js.map +1 -1
- package/Canvas2D/CanvasRenderingContext2D/index.ios.js +2 -0
- package/Canvas2D/CanvasRenderingContext2D/index.ios.js.map +1 -1
- package/Canvas2D/DOMMatrix/common.d.ts +1 -0
- package/Canvas2D/DOMMatrix/common.js +3 -0
- package/Canvas2D/DOMMatrix/common.js.map +1 -1
- package/Canvas2D/ImageData/common.d.ts +1 -0
- package/Canvas2D/ImageData/common.js +3 -0
- package/Canvas2D/ImageData/common.js.map +1 -1
- package/Canvas2D/Path2D/Path2D.android.d.ts +2 -0
- package/Canvas2D/Path2D/Path2D.android.js +8 -0
- package/Canvas2D/Path2D/Path2D.android.js.map +1 -1
- package/Canvas2D/Path2D/Path2D.d.ts +4 -0
- package/Canvas2D/Path2D/Path2D.ios.d.ts +2 -0
- package/Canvas2D/Path2D/Path2D.ios.js +9 -1
- package/Canvas2D/Path2D/Path2D.ios.js.map +1 -1
- package/Canvas2D/Path2D/common.d.ts +4 -1
- package/Canvas2D/Path2D/common.js +3 -0
- package/Canvas2D/Path2D/common.js.map +1 -1
- package/Canvas2D/TextMetrics/common.d.ts +1 -0
- package/Canvas2D/TextMetrics/common.js +3 -0
- package/Canvas2D/TextMetrics/common.js.map +1 -1
- package/ImageAsset/ImageAsset.android.js +4 -4
- package/ImageAsset/ImageAsset.android.js.map +1 -1
- package/ImageAsset/ImageAsset.ios.js +3 -3
- package/ImageAsset/ImageAsset.ios.js.map +1 -1
- package/ImageAsset/common.d.ts +1 -0
- package/ImageAsset/common.js +3 -0
- package/ImageAsset/common.js.map +1 -1
- package/ImageBitmap/common.d.ts +1 -0
- package/ImageBitmap/common.js +3 -0
- package/ImageBitmap/common.js.map +1 -1
- package/ImageBitmap/index.android.js +49 -23
- package/ImageBitmap/index.android.js.map +1 -1
- package/ImageBitmap/index.ios.d.ts +2 -1
- package/ImageBitmap/index.ios.js +14 -25
- package/ImageBitmap/index.ios.js.map +1 -1
- package/TextDecoder/common.d.ts +1 -0
- package/TextDecoder/common.js +3 -0
- package/TextDecoder/common.js.map +1 -1
- package/TextEncoder/common.d.ts +1 -0
- package/TextEncoder/common.js +3 -0
- package/TextEncoder/common.js.map +1 -1
- package/WebGL/WebGLActiveInfo.d.ts +7 -3
- package/WebGL/WebGLActiveInfo.js +26 -3
- package/WebGL/WebGLActiveInfo.js.map +1 -1
- package/WebGL/WebGLProgram.d.ts +0 -1
- package/WebGL/WebGLProgram.js +0 -3
- package/WebGL/WebGLProgram.js.map +1 -1
- package/WebGL/WebGLRenderingContext/index.android.js +3 -2
- package/WebGL/WebGLRenderingContext/index.android.js.map +1 -1
- package/WebGL2/WebGL2RenderingContext/index.android.d.ts +1 -1
- package/WebGL2/WebGL2RenderingContext/index.android.js +12 -16
- package/WebGL2/WebGL2RenderingContext/index.android.js.map +1 -1
- package/angular/esm2020/index.mjs +5 -5
- package/angular/fesm2015/nativescript-canvas-angular.mjs +4 -4
- package/angular/fesm2015/nativescript-canvas-angular.mjs.map +1 -1
- package/angular/fesm2020/nativescript-canvas-angular.mjs +4 -4
- package/angular/fesm2020/nativescript-canvas-angular.mjs.map +1 -1
- package/package.json +1 -1
- package/platforms/android/include.gradle +6 -1
- package/platforms/ios/CanvasNative.xcframework/Info.plist +5 -5
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/CanvasNative +0 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Headers/CanvasNative-Swift.h +22 -4
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Headers/canvas_native.h +20 -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 +952 -99
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios.private.swiftinterface +23 -2
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios.swiftinterface +23 -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 +44 -8
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Headers/canvas_native.h +20 -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 +952 -99
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +23 -2
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios-simulator.swiftinterface +23 -2
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/x86_64-apple-ios-simulator.abi.json +952 -99
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +23 -2
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +23 -2
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/_CodeSignature/CodeResources +24 -24
- 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 +19 -1
- package/utils.d.ts +3 -1
- package/utils.js +7 -20
- package/utils.js.map +1 -1
|
@@ -237,6 +237,10 @@ import _StringProcessing
|
|
|
237
237
|
@objc get
|
|
238
238
|
@objc set
|
|
239
239
|
}
|
|
240
|
+
@objc @_Concurrency.MainActor(unsafe) public var scaling: Swift.Bool {
|
|
241
|
+
@objc get
|
|
242
|
+
@objc set
|
|
243
|
+
}
|
|
240
244
|
@objc @_Concurrency.MainActor(unsafe) public static func createSVGMatrix() -> CanvasNative.TNSDOMMatrix
|
|
241
245
|
@objc @_Concurrency.MainActor(unsafe) public var handleInvalidationManually: Swift.Bool {
|
|
242
246
|
@objc get
|
|
@@ -250,6 +254,7 @@ import _StringProcessing
|
|
|
250
254
|
@objc @_Concurrency.MainActor(unsafe) public func toDataURLAsync(_ type: Swift.String, _ callback: @escaping (Swift.String) -> Swift.Void)
|
|
251
255
|
@objc @_Concurrency.MainActor(unsafe) public func toDataURLAsync(_ type: Swift.String, _ format: Swift.Float, _ callback: @escaping (Swift.String) -> Swift.Void)
|
|
252
256
|
@objc @_Concurrency.MainActor(unsafe) public func snapshot() -> [Swift.UInt8]
|
|
257
|
+
@objc @_Concurrency.MainActor(unsafe) public func getImage(_ flip: Swift.Bool) -> UIKit.UIImage?
|
|
253
258
|
@objc @_Concurrency.MainActor(unsafe) public func snapshotEncoded() -> [Swift.UInt8]
|
|
254
259
|
@objc @_Concurrency.MainActor(unsafe) public var isGL: Swift.Bool {
|
|
255
260
|
@objc get
|
|
@@ -273,6 +278,7 @@ import _StringProcessing
|
|
|
273
278
|
@objc @_Concurrency.MainActor(unsafe) public var fps: Swift.Float {
|
|
274
279
|
@objc get
|
|
275
280
|
}
|
|
281
|
+
@objc @_Concurrency.MainActor(unsafe) public static func layoutView(_ view: UIKit.UIView, _ width: CoreFoundation.CGFloat, _ height: CoreFoundation.CGFloat)
|
|
276
282
|
@_Concurrency.MainActor(unsafe) @objc override dynamic public func layoutSubviews()
|
|
277
283
|
@objc deinit
|
|
278
284
|
@objc @_Concurrency.MainActor(unsafe) public func resume()
|
|
@@ -282,7 +288,15 @@ import _StringProcessing
|
|
|
282
288
|
@objc @_Concurrency.MainActor(unsafe) public func handleMoveOffMain()
|
|
283
289
|
@objc @_Concurrency.MainActor(unsafe) public func handleMoveToMain()
|
|
284
290
|
@objc @_Concurrency.MainActor(unsafe) public func getContext(_ type: Swift.String) -> CanvasNative.TNSCanvasRenderingContext?
|
|
285
|
-
@objc @_Concurrency.MainActor(unsafe) public func getContext(
|
|
291
|
+
@objc @_Concurrency.MainActor(unsafe) public func getContext(type: Swift.String, attributes: Swift.String) -> CanvasNative.TNSCanvasRenderingContext?
|
|
292
|
+
@objc @_Concurrency.MainActor(unsafe) public func getContext(_ type: Swift.String, contextAttributes: Swift.Dictionary<Swift.String, Any>) -> CanvasNative.TNSCanvasRenderingContext?
|
|
293
|
+
@objc @_Concurrency.MainActor(unsafe) public func getContext(type: Swift.String, contextAttributes: CanvasNative.TNSContextAttributes) -> CanvasNative.TNSCanvasRenderingContext?
|
|
294
|
+
}
|
|
295
|
+
@_inheritsConvenienceInitializers @objc(TNSContextAttributes) @objcMembers public class TNSContextAttributes : ObjectiveC.NSObject, Swift.Codable {
|
|
296
|
+
@objc override dynamic public init()
|
|
297
|
+
@objc deinit
|
|
298
|
+
public func encode(to encoder: Swift.Encoder) throws
|
|
299
|
+
required public init(from decoder: Swift.Decoder) throws
|
|
286
300
|
}
|
|
287
301
|
@_inheritsConvenienceInitializers @objcMembers @objc(TNSTextEncoder) public class TNSTextEncoder : ObjectiveC.NSObject {
|
|
288
302
|
@objc override dynamic public init()
|
|
@@ -1366,6 +1380,9 @@ extension Swift.RangeReplaceableCollection {
|
|
|
1366
1380
|
@objc public func ellipse(_ x: Swift.Float, _ y: Swift.Float, _ radiusX: Swift.Float, _ radiusY: Swift.Float, _ rotation: Swift.Float, _ startAngle: Swift.Float, _ endAngle: Swift.Float)
|
|
1367
1381
|
@objc public func ellipse(_ x: Swift.Float, _ y: Swift.Float, _ radiusX: Swift.Float, _ radiusY: Swift.Float, _ rotation: Swift.Float, _ startAngle: Swift.Float, _ endAngle: Swift.Float, _ anticlockwise: Swift.Bool)
|
|
1368
1382
|
@objc public func rect(_ x: Swift.Float, _ y: Swift.Float, _ width: Swift.Float, _ height: Swift.Float)
|
|
1383
|
+
@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)
|
|
1384
|
+
@objc public func roundRectWithRadii(_ x: Swift.Float, _ y: Swift.Float, _ width: Swift.Float, _ height: Swift.Float, _ radii: Swift.Float)
|
|
1385
|
+
@objc public func roundRect(x: Swift.Float, y: Swift.Float, width: Swift.Float, height: Swift.Float, radii: [Swift.Float])
|
|
1369
1386
|
}
|
|
1370
1387
|
@_inheritsConvenienceInitializers @objcMembers @objc(TNS_OES_texture_half_float) public class TNS_OES_texture_half_float : ObjectiveC.NSObject {
|
|
1371
1388
|
@objc override dynamic public init()
|
|
@@ -1438,6 +1455,7 @@ extension Swift.RangeReplaceableCollection {
|
|
|
1438
1455
|
@_Concurrency.MainActor(unsafe) @objc override dynamic public init(frame: CoreFoundation.CGRect)
|
|
1439
1456
|
@_Concurrency.MainActor(unsafe) @objc override dynamic public func draw(_ rect: CoreFoundation.CGRect)
|
|
1440
1457
|
@objc @_Concurrency.MainActor(unsafe) public func toImage() -> UIKit.UIImage?
|
|
1458
|
+
@objc @_Concurrency.MainActor(unsafe) public func toData() -> Foundation.NSData?
|
|
1441
1459
|
@objc deinit
|
|
1442
1460
|
}
|
|
1443
1461
|
@objcMembers @objc(TNSWebGLRenderingContext) public class TNSWebGLRenderingContext : CanvasNative.TNSCanvasRenderingContext {
|
|
@@ -2591,6 +2609,7 @@ extension Swift.RangeReplaceableCollection {
|
|
|
2591
2609
|
@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?
|
|
2592
2610
|
@objc public static func setupRender() -> CanvasNative.TNSRender
|
|
2593
2611
|
@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)
|
|
2612
|
+
@objc public static func writeToFile(_ data: Foundation.NSData, _ path: Swift.String) throws
|
|
2594
2613
|
@objc override dynamic public init()
|
|
2595
2614
|
@objc deinit
|
|
2596
2615
|
}
|
|
@@ -2870,7 +2889,7 @@ public enum ContextType : Swift.Int, Swift.RawRepresentable {
|
|
|
2870
2889
|
}
|
|
2871
2890
|
}
|
|
2872
2891
|
@objc public class GLRenderer : ObjectiveC.NSObject, GLKit.GLKViewDelegate {
|
|
2873
|
-
public var attributes:
|
|
2892
|
+
public var attributes: CanvasNative.TNSContextAttributes
|
|
2874
2893
|
public func updateDirection(_ direction: Swift.String)
|
|
2875
2894
|
public var invalidateState: Swift.Int {
|
|
2876
2895
|
get
|
|
@@ -2982,6 +3001,8 @@ public enum ContextType : Swift.Int, Swift.RawRepresentable {
|
|
|
2982
3001
|
@objc public func loadImageFromUrl(url: Swift.String) -> Swift.Bool
|
|
2983
3002
|
@objc public func loadImageFromUrlAsync(url: Swift.String, callback: @escaping (Swift.String?) -> ())
|
|
2984
3003
|
@objc public func loadImageFromPathAsync(path: Swift.String, callback: @escaping (Swift.String?) -> ())
|
|
3004
|
+
@objc public func loadImageFromBuffer(_ buffer: Foundation.NSData) -> Swift.Bool
|
|
3005
|
+
@objc public func loadImageFromBufferAsync(_ buffer: Foundation.NSData, callback: @escaping (Swift.String?) -> ())
|
|
2985
3006
|
@objc public func loadImageFromBytes(array: [Swift.UInt8]) -> Swift.Bool
|
|
2986
3007
|
@objc public func loadImageFromBytesAsync(array: [Swift.UInt8], callback: @escaping (Swift.String?) -> ())
|
|
2987
3008
|
@objc public func loadImageFromImage(image: UIKit.UIImage) -> Swift.Bool
|
|
@@ -237,6 +237,10 @@ import _StringProcessing
|
|
|
237
237
|
@objc get
|
|
238
238
|
@objc set
|
|
239
239
|
}
|
|
240
|
+
@objc @_Concurrency.MainActor(unsafe) public var scaling: Swift.Bool {
|
|
241
|
+
@objc get
|
|
242
|
+
@objc set
|
|
243
|
+
}
|
|
240
244
|
@objc @_Concurrency.MainActor(unsafe) public static func createSVGMatrix() -> CanvasNative.TNSDOMMatrix
|
|
241
245
|
@objc @_Concurrency.MainActor(unsafe) public var handleInvalidationManually: Swift.Bool {
|
|
242
246
|
@objc get
|
|
@@ -250,6 +254,7 @@ import _StringProcessing
|
|
|
250
254
|
@objc @_Concurrency.MainActor(unsafe) public func toDataURLAsync(_ type: Swift.String, _ callback: @escaping (Swift.String) -> Swift.Void)
|
|
251
255
|
@objc @_Concurrency.MainActor(unsafe) public func toDataURLAsync(_ type: Swift.String, _ format: Swift.Float, _ callback: @escaping (Swift.String) -> Swift.Void)
|
|
252
256
|
@objc @_Concurrency.MainActor(unsafe) public func snapshot() -> [Swift.UInt8]
|
|
257
|
+
@objc @_Concurrency.MainActor(unsafe) public func getImage(_ flip: Swift.Bool) -> UIKit.UIImage?
|
|
253
258
|
@objc @_Concurrency.MainActor(unsafe) public func snapshotEncoded() -> [Swift.UInt8]
|
|
254
259
|
@objc @_Concurrency.MainActor(unsafe) public var isGL: Swift.Bool {
|
|
255
260
|
@objc get
|
|
@@ -273,6 +278,7 @@ import _StringProcessing
|
|
|
273
278
|
@objc @_Concurrency.MainActor(unsafe) public var fps: Swift.Float {
|
|
274
279
|
@objc get
|
|
275
280
|
}
|
|
281
|
+
@objc @_Concurrency.MainActor(unsafe) public static func layoutView(_ view: UIKit.UIView, _ width: CoreFoundation.CGFloat, _ height: CoreFoundation.CGFloat)
|
|
276
282
|
@_Concurrency.MainActor(unsafe) @objc override dynamic public func layoutSubviews()
|
|
277
283
|
@objc deinit
|
|
278
284
|
@objc @_Concurrency.MainActor(unsafe) public func resume()
|
|
@@ -282,7 +288,15 @@ import _StringProcessing
|
|
|
282
288
|
@objc @_Concurrency.MainActor(unsafe) public func handleMoveOffMain()
|
|
283
289
|
@objc @_Concurrency.MainActor(unsafe) public func handleMoveToMain()
|
|
284
290
|
@objc @_Concurrency.MainActor(unsafe) public func getContext(_ type: Swift.String) -> CanvasNative.TNSCanvasRenderingContext?
|
|
285
|
-
@objc @_Concurrency.MainActor(unsafe) public func getContext(
|
|
291
|
+
@objc @_Concurrency.MainActor(unsafe) public func getContext(type: Swift.String, attributes: Swift.String) -> CanvasNative.TNSCanvasRenderingContext?
|
|
292
|
+
@objc @_Concurrency.MainActor(unsafe) public func getContext(_ type: Swift.String, contextAttributes: Swift.Dictionary<Swift.String, Any>) -> CanvasNative.TNSCanvasRenderingContext?
|
|
293
|
+
@objc @_Concurrency.MainActor(unsafe) public func getContext(type: Swift.String, contextAttributes: CanvasNative.TNSContextAttributes) -> CanvasNative.TNSCanvasRenderingContext?
|
|
294
|
+
}
|
|
295
|
+
@_inheritsConvenienceInitializers @objc(TNSContextAttributes) @objcMembers public class TNSContextAttributes : ObjectiveC.NSObject, Swift.Codable {
|
|
296
|
+
@objc override dynamic public init()
|
|
297
|
+
@objc deinit
|
|
298
|
+
public func encode(to encoder: Swift.Encoder) throws
|
|
299
|
+
required public init(from decoder: Swift.Decoder) throws
|
|
286
300
|
}
|
|
287
301
|
@_inheritsConvenienceInitializers @objcMembers @objc(TNSTextEncoder) public class TNSTextEncoder : ObjectiveC.NSObject {
|
|
288
302
|
@objc override dynamic public init()
|
|
@@ -1366,6 +1380,9 @@ extension Swift.RangeReplaceableCollection {
|
|
|
1366
1380
|
@objc public func ellipse(_ x: Swift.Float, _ y: Swift.Float, _ radiusX: Swift.Float, _ radiusY: Swift.Float, _ rotation: Swift.Float, _ startAngle: Swift.Float, _ endAngle: Swift.Float)
|
|
1367
1381
|
@objc public func ellipse(_ x: Swift.Float, _ y: Swift.Float, _ radiusX: Swift.Float, _ radiusY: Swift.Float, _ rotation: Swift.Float, _ startAngle: Swift.Float, _ endAngle: Swift.Float, _ anticlockwise: Swift.Bool)
|
|
1368
1382
|
@objc public func rect(_ x: Swift.Float, _ y: Swift.Float, _ width: Swift.Float, _ height: Swift.Float)
|
|
1383
|
+
@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)
|
|
1384
|
+
@objc public func roundRectWithRadii(_ x: Swift.Float, _ y: Swift.Float, _ width: Swift.Float, _ height: Swift.Float, _ radii: Swift.Float)
|
|
1385
|
+
@objc public func roundRect(x: Swift.Float, y: Swift.Float, width: Swift.Float, height: Swift.Float, radii: [Swift.Float])
|
|
1369
1386
|
}
|
|
1370
1387
|
@_inheritsConvenienceInitializers @objcMembers @objc(TNS_OES_texture_half_float) public class TNS_OES_texture_half_float : ObjectiveC.NSObject {
|
|
1371
1388
|
@objc override dynamic public init()
|
|
@@ -1438,6 +1455,7 @@ extension Swift.RangeReplaceableCollection {
|
|
|
1438
1455
|
@_Concurrency.MainActor(unsafe) @objc override dynamic public init(frame: CoreFoundation.CGRect)
|
|
1439
1456
|
@_Concurrency.MainActor(unsafe) @objc override dynamic public func draw(_ rect: CoreFoundation.CGRect)
|
|
1440
1457
|
@objc @_Concurrency.MainActor(unsafe) public func toImage() -> UIKit.UIImage?
|
|
1458
|
+
@objc @_Concurrency.MainActor(unsafe) public func toData() -> Foundation.NSData?
|
|
1441
1459
|
@objc deinit
|
|
1442
1460
|
}
|
|
1443
1461
|
@objcMembers @objc(TNSWebGLRenderingContext) public class TNSWebGLRenderingContext : CanvasNative.TNSCanvasRenderingContext {
|
|
@@ -2591,6 +2609,7 @@ extension Swift.RangeReplaceableCollection {
|
|
|
2591
2609
|
@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?
|
|
2592
2610
|
@objc public static func setupRender() -> CanvasNative.TNSRender
|
|
2593
2611
|
@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)
|
|
2612
|
+
@objc public static func writeToFile(_ data: Foundation.NSData, _ path: Swift.String) throws
|
|
2594
2613
|
@objc override dynamic public init()
|
|
2595
2614
|
@objc deinit
|
|
2596
2615
|
}
|
|
@@ -2870,7 +2889,7 @@ public enum ContextType : Swift.Int, Swift.RawRepresentable {
|
|
|
2870
2889
|
}
|
|
2871
2890
|
}
|
|
2872
2891
|
@objc public class GLRenderer : ObjectiveC.NSObject, GLKit.GLKViewDelegate {
|
|
2873
|
-
public var attributes:
|
|
2892
|
+
public var attributes: CanvasNative.TNSContextAttributes
|
|
2874
2893
|
public func updateDirection(_ direction: Swift.String)
|
|
2875
2894
|
public var invalidateState: Swift.Int {
|
|
2876
2895
|
get
|
|
@@ -2982,6 +3001,8 @@ public enum ContextType : Swift.Int, Swift.RawRepresentable {
|
|
|
2982
3001
|
@objc public func loadImageFromUrl(url: Swift.String) -> Swift.Bool
|
|
2983
3002
|
@objc public func loadImageFromUrlAsync(url: Swift.String, callback: @escaping (Swift.String?) -> ())
|
|
2984
3003
|
@objc public func loadImageFromPathAsync(path: Swift.String, callback: @escaping (Swift.String?) -> ())
|
|
3004
|
+
@objc public func loadImageFromBuffer(_ buffer: Foundation.NSData) -> Swift.Bool
|
|
3005
|
+
@objc public func loadImageFromBufferAsync(_ buffer: Foundation.NSData, callback: @escaping (Swift.String?) -> ())
|
|
2985
3006
|
@objc public func loadImageFromBytes(array: [Swift.UInt8]) -> Swift.Bool
|
|
2986
3007
|
@objc public func loadImageFromBytesAsync(array: [Swift.UInt8], callback: @escaping (Swift.String?) -> ())
|
|
2987
3008
|
@objc public func loadImageFromImage(image: UIKit.UIImage) -> Swift.Bool
|
|
Binary file
|
|
Binary file
|
|
@@ -311,15 +311,17 @@ SWIFT_CLASS_NAMED("TNSAnimationFrame")
|
|
|
311
311
|
@end
|
|
312
312
|
|
|
313
313
|
@class TNSDOMMatrix;
|
|
314
|
+
@class UIImage;
|
|
314
315
|
@protocol TNSCanvasListener;
|
|
315
316
|
@class TNSCanvasRenderingContext;
|
|
316
|
-
@class
|
|
317
|
+
@class TNSContextAttributes;
|
|
317
318
|
|
|
318
319
|
SWIFT_CLASS_NAMED("TNSCanvas")
|
|
319
320
|
@interface TNSCanvas : UIView
|
|
320
321
|
+ (NSMapTable<NSString *, TNSCanvas *> * _Nonnull)getViews SWIFT_WARN_UNUSED_RESULT;
|
|
321
322
|
- (void * _Nullable)getViewPtr SWIFT_WARN_UNUSED_RESULT;
|
|
322
323
|
@property (nonatomic) BOOL ignorePixelScaling;
|
|
324
|
+
@property (nonatomic) BOOL scaling;
|
|
323
325
|
+ (TNSDOMMatrix * _Nonnull)createSVGMatrix SWIFT_WARN_UNUSED_RESULT;
|
|
324
326
|
@property (nonatomic) BOOL handleInvalidationManually;
|
|
325
327
|
- (void)didDraw;
|
|
@@ -330,6 +332,7 @@ SWIFT_CLASS_NAMED("TNSCanvas")
|
|
|
330
332
|
- (void)toDataURLAsync:(NSString * _Nonnull)type :(void (^ _Nonnull)(NSString * _Nonnull))callback;
|
|
331
333
|
- (void)toDataURLAsync:(NSString * _Nonnull)type :(float)format :(void (^ _Nonnull)(NSString * _Nonnull))callback;
|
|
332
334
|
- (NSArray<NSNumber *> * _Nonnull)snapshot SWIFT_WARN_UNUSED_RESULT;
|
|
335
|
+
- (UIImage * _Nullable)getImage:(BOOL)flip SWIFT_WARN_UNUSED_RESULT;
|
|
333
336
|
- (NSArray<NSNumber *> * _Nonnull)snapshotEncoded SWIFT_WARN_UNUSED_RESULT;
|
|
334
337
|
@property (nonatomic, readonly) BOOL isGL;
|
|
335
338
|
- (GLint)getId SWIFT_WARN_UNUSED_RESULT;
|
|
@@ -343,6 +346,7 @@ SWIFT_CLASS_NAMED("TNSCanvas")
|
|
|
343
346
|
- (nonnull instancetype)initWithFrame:(CGRect)frame useCpu:(BOOL)useCpu OBJC_DESIGNATED_INITIALIZER;
|
|
344
347
|
- (void)setListener:(id <TNSCanvasListener> _Nullable)listener;
|
|
345
348
|
@property (nonatomic, readonly) float fps;
|
|
349
|
+
+ (void)layoutView:(UIView * _Nonnull)view :(CGFloat)width :(CGFloat)height;
|
|
346
350
|
- (void)layoutSubviews;
|
|
347
351
|
- (void)resume;
|
|
348
352
|
- (void)pause;
|
|
@@ -351,7 +355,9 @@ SWIFT_CLASS_NAMED("TNSCanvas")
|
|
|
351
355
|
- (void)handleMoveOffMain;
|
|
352
356
|
- (void)handleMoveToMain;
|
|
353
357
|
- (TNSCanvasRenderingContext * _Nullable)getContext:(NSString * _Nonnull)type SWIFT_WARN_UNUSED_RESULT;
|
|
354
|
-
- (TNSCanvasRenderingContext * _Nullable)
|
|
358
|
+
- (TNSCanvasRenderingContext * _Nullable)getContextWithType:(NSString * _Nonnull)type attributes:(NSString * _Nonnull)attributes SWIFT_WARN_UNUSED_RESULT;
|
|
359
|
+
- (TNSCanvasRenderingContext * _Nullable)getContext:(NSString * _Nonnull)type contextAttributes:(NSDictionary<NSString *, id> * _Nonnull)contextAttributes SWIFT_WARN_UNUSED_RESULT;
|
|
360
|
+
- (TNSCanvasRenderingContext * _Nullable)getContextWithType:(NSString * _Nonnull)type contextAttributes:(TNSContextAttributes * _Nonnull)contextAttributes SWIFT_WARN_UNUSED_RESULT;
|
|
355
361
|
- (nonnull instancetype)initWithFrame:(CGRect)frame SWIFT_UNAVAILABLE;
|
|
356
362
|
@end
|
|
357
363
|
|
|
@@ -548,6 +554,12 @@ typedef SWIFT_ENUM_NAMED(NSInteger, TNSCompositeOperationType, "TNSCompositeOper
|
|
|
548
554
|
};
|
|
549
555
|
|
|
550
556
|
|
|
557
|
+
SWIFT_CLASS_NAMED("TNSContextAttributes")
|
|
558
|
+
@interface TNSContextAttributes : NSObject
|
|
559
|
+
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
|
|
560
|
+
@end
|
|
561
|
+
|
|
562
|
+
|
|
551
563
|
SWIFT_CLASS_NAMED("TNSDOMMatrix")
|
|
552
564
|
@interface TNSDOMMatrix : NSObject
|
|
553
565
|
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
|
|
@@ -590,7 +602,7 @@ SWIFT_CLASS_NAMED("TNSFramebufferAttachmentParameter")
|
|
|
590
602
|
- (nonnull instancetype)initWithIsTexture:(BOOL)isTexture isRenderbuffer:(BOOL)isRenderbuffer value:(int32_t)value OBJC_DESIGNATED_INITIALIZER;
|
|
591
603
|
@end
|
|
592
604
|
|
|
593
|
-
@class
|
|
605
|
+
@class NSData;
|
|
594
606
|
enum TNSImageAssetFormat : NSInteger;
|
|
595
607
|
|
|
596
608
|
SWIFT_CLASS_NAMED("TNSImageAsset")
|
|
@@ -603,6 +615,8 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, strong) dispatch_queue_t _Null
|
|
|
603
615
|
- (BOOL)loadImageFromUrlWithUrl:(NSString * _Nonnull)url SWIFT_WARN_UNUSED_RESULT;
|
|
604
616
|
- (void)loadImageFromUrlAsyncWithUrl:(NSString * _Nonnull)url callback:(void (^ _Nonnull)(NSString * _Nullable))callback;
|
|
605
617
|
- (void)loadImageFromPathAsyncWithPath:(NSString * _Nonnull)path callback:(void (^ _Nonnull)(NSString * _Nullable))callback;
|
|
618
|
+
- (BOOL)loadImageFromBuffer:(NSData * _Nonnull)buffer SWIFT_WARN_UNUSED_RESULT;
|
|
619
|
+
- (void)loadImageFromBufferAsync:(NSData * _Nonnull)buffer callback:(void (^ _Nonnull)(NSString * _Nullable))callback;
|
|
606
620
|
- (BOOL)loadImageFromBytesWithArray:(NSArray<NSNumber *> * _Nonnull)array SWIFT_WARN_UNUSED_RESULT;
|
|
607
621
|
- (void)loadImageFromBytesAsyncWithArray:(NSArray<NSNumber *> * _Nonnull)array callback:(void (^ _Nonnull)(NSString * _Nullable))callback;
|
|
608
622
|
- (BOOL)loadImageFromImageWithImage:(UIImage * _Nonnull)image SWIFT_WARN_UNUSED_RESULT;
|
|
@@ -627,7 +641,6 @@ typedef SWIFT_ENUM_NAMED(NSInteger, TNSImageAssetFormat, "TNSImageAssetFormat",
|
|
|
627
641
|
};
|
|
628
642
|
|
|
629
643
|
@class TNSImageBitmapOptions;
|
|
630
|
-
@class NSData;
|
|
631
644
|
|
|
632
645
|
SWIFT_CLASS_NAMED("TNSImageBitmap")
|
|
633
646
|
@interface TNSImageBitmap : NSObject
|
|
@@ -745,6 +758,9 @@ SWIFT_CLASS_NAMED("TNSPath2D")
|
|
|
745
758
|
- (void)ellipse:(float)x :(float)y :(float)radiusX :(float)radiusY :(float)rotation :(float)startAngle :(float)endAngle;
|
|
746
759
|
- (void)ellipse:(float)x :(float)y :(float)radiusX :(float)radiusY :(float)rotation :(float)startAngle :(float)endAngle :(BOOL)anticlockwise;
|
|
747
760
|
- (void)rect:(float)x :(float)y :(float)width :(float)height;
|
|
761
|
+
- (void)roundRect:(float)x :(float)y :(float)width :(float)height :(float)topLeft :(float)topRight :(float)bottomRight :(float)bottomLeft;
|
|
762
|
+
- (void)roundRectWithRadii:(float)x :(float)y :(float)width :(float)height :(float)radii;
|
|
763
|
+
- (void)roundRectWithX:(float)x y:(float)y width:(float)width height:(float)height radii:(NSArray<NSNumber *> * _Nonnull)radii;
|
|
748
764
|
@end
|
|
749
765
|
|
|
750
766
|
typedef SWIFT_ENUM(NSInteger, TNSPatternRepetition, open) {
|
|
@@ -772,6 +788,7 @@ SWIFT_CLASS_NAMED("TNSSVG")
|
|
|
772
788
|
- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE;
|
|
773
789
|
- (void)drawRect:(CGRect)rect;
|
|
774
790
|
- (UIImage * _Nullable)toImage SWIFT_WARN_UNUSED_RESULT;
|
|
791
|
+
- (NSData * _Nullable)toData SWIFT_WARN_UNUSED_RESULT;
|
|
775
792
|
@end
|
|
776
793
|
|
|
777
794
|
typedef SWIFT_ENUM_NAMED(NSInteger, TNSTextAlignment, "TNSTextAlignment", open) {
|
|
@@ -2043,6 +2060,7 @@ SWIFT_CLASS_NAMED("Utils")
|
|
|
2043
2060
|
+ (CVOpenGLESTextureRef _Nullable)createImage:(CVOpenGLESTextureCacheRef _Nonnull)texturecache :(CVImageBufferRef _Nonnull)buffer :(CFDictionaryRef _Nullable)textureAttributes :(GLenum)target :(GLint)internalFormat :(GLsizei)width :(GLsizei)height :(GLenum)format :(GLenum)type :(NSInteger)planeIndex SWIFT_WARN_UNUSED_RESULT;
|
|
2044
2061
|
+ (TNSRender * _Nonnull)setupRender SWIFT_WARN_UNUSED_RESULT;
|
|
2045
2062
|
+ (void)drawFrame:(AVPlayer * _Nonnull)player :(AVPlayerItemVideoOutput * _Nonnull)output :(CGSize)videoSize :(TNSRender * _Nonnull)render :(int32_t)internalFormat :(int32_t)format :(BOOL)flipYWebGL;
|
|
2063
|
+
+ (BOOL)writeToFile:(NSData * _Nonnull)data :(NSString * _Nonnull)path error:(NSError * _Nullable * _Nullable)error;
|
|
2046
2064
|
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
|
|
2047
2065
|
@end
|
|
2048
2066
|
|
|
@@ -2367,15 +2385,17 @@ SWIFT_CLASS_NAMED("TNSAnimationFrame")
|
|
|
2367
2385
|
@end
|
|
2368
2386
|
|
|
2369
2387
|
@class TNSDOMMatrix;
|
|
2388
|
+
@class UIImage;
|
|
2370
2389
|
@protocol TNSCanvasListener;
|
|
2371
2390
|
@class TNSCanvasRenderingContext;
|
|
2372
|
-
@class
|
|
2391
|
+
@class TNSContextAttributes;
|
|
2373
2392
|
|
|
2374
2393
|
SWIFT_CLASS_NAMED("TNSCanvas")
|
|
2375
2394
|
@interface TNSCanvas : UIView
|
|
2376
2395
|
+ (NSMapTable<NSString *, TNSCanvas *> * _Nonnull)getViews SWIFT_WARN_UNUSED_RESULT;
|
|
2377
2396
|
- (void * _Nullable)getViewPtr SWIFT_WARN_UNUSED_RESULT;
|
|
2378
2397
|
@property (nonatomic) BOOL ignorePixelScaling;
|
|
2398
|
+
@property (nonatomic) BOOL scaling;
|
|
2379
2399
|
+ (TNSDOMMatrix * _Nonnull)createSVGMatrix SWIFT_WARN_UNUSED_RESULT;
|
|
2380
2400
|
@property (nonatomic) BOOL handleInvalidationManually;
|
|
2381
2401
|
- (void)didDraw;
|
|
@@ -2386,6 +2406,7 @@ SWIFT_CLASS_NAMED("TNSCanvas")
|
|
|
2386
2406
|
- (void)toDataURLAsync:(NSString * _Nonnull)type :(void (^ _Nonnull)(NSString * _Nonnull))callback;
|
|
2387
2407
|
- (void)toDataURLAsync:(NSString * _Nonnull)type :(float)format :(void (^ _Nonnull)(NSString * _Nonnull))callback;
|
|
2388
2408
|
- (NSArray<NSNumber *> * _Nonnull)snapshot SWIFT_WARN_UNUSED_RESULT;
|
|
2409
|
+
- (UIImage * _Nullable)getImage:(BOOL)flip SWIFT_WARN_UNUSED_RESULT;
|
|
2389
2410
|
- (NSArray<NSNumber *> * _Nonnull)snapshotEncoded SWIFT_WARN_UNUSED_RESULT;
|
|
2390
2411
|
@property (nonatomic, readonly) BOOL isGL;
|
|
2391
2412
|
- (GLint)getId SWIFT_WARN_UNUSED_RESULT;
|
|
@@ -2399,6 +2420,7 @@ SWIFT_CLASS_NAMED("TNSCanvas")
|
|
|
2399
2420
|
- (nonnull instancetype)initWithFrame:(CGRect)frame useCpu:(BOOL)useCpu OBJC_DESIGNATED_INITIALIZER;
|
|
2400
2421
|
- (void)setListener:(id <TNSCanvasListener> _Nullable)listener;
|
|
2401
2422
|
@property (nonatomic, readonly) float fps;
|
|
2423
|
+
+ (void)layoutView:(UIView * _Nonnull)view :(CGFloat)width :(CGFloat)height;
|
|
2402
2424
|
- (void)layoutSubviews;
|
|
2403
2425
|
- (void)resume;
|
|
2404
2426
|
- (void)pause;
|
|
@@ -2407,7 +2429,9 @@ SWIFT_CLASS_NAMED("TNSCanvas")
|
|
|
2407
2429
|
- (void)handleMoveOffMain;
|
|
2408
2430
|
- (void)handleMoveToMain;
|
|
2409
2431
|
- (TNSCanvasRenderingContext * _Nullable)getContext:(NSString * _Nonnull)type SWIFT_WARN_UNUSED_RESULT;
|
|
2410
|
-
- (TNSCanvasRenderingContext * _Nullable)
|
|
2432
|
+
- (TNSCanvasRenderingContext * _Nullable)getContextWithType:(NSString * _Nonnull)type attributes:(NSString * _Nonnull)attributes SWIFT_WARN_UNUSED_RESULT;
|
|
2433
|
+
- (TNSCanvasRenderingContext * _Nullable)getContext:(NSString * _Nonnull)type contextAttributes:(NSDictionary<NSString *, id> * _Nonnull)contextAttributes SWIFT_WARN_UNUSED_RESULT;
|
|
2434
|
+
- (TNSCanvasRenderingContext * _Nullable)getContextWithType:(NSString * _Nonnull)type contextAttributes:(TNSContextAttributes * _Nonnull)contextAttributes SWIFT_WARN_UNUSED_RESULT;
|
|
2411
2435
|
- (nonnull instancetype)initWithFrame:(CGRect)frame SWIFT_UNAVAILABLE;
|
|
2412
2436
|
@end
|
|
2413
2437
|
|
|
@@ -2604,6 +2628,12 @@ typedef SWIFT_ENUM_NAMED(NSInteger, TNSCompositeOperationType, "TNSCompositeOper
|
|
|
2604
2628
|
};
|
|
2605
2629
|
|
|
2606
2630
|
|
|
2631
|
+
SWIFT_CLASS_NAMED("TNSContextAttributes")
|
|
2632
|
+
@interface TNSContextAttributes : NSObject
|
|
2633
|
+
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
|
|
2634
|
+
@end
|
|
2635
|
+
|
|
2636
|
+
|
|
2607
2637
|
SWIFT_CLASS_NAMED("TNSDOMMatrix")
|
|
2608
2638
|
@interface TNSDOMMatrix : NSObject
|
|
2609
2639
|
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
|
|
@@ -2646,7 +2676,7 @@ SWIFT_CLASS_NAMED("TNSFramebufferAttachmentParameter")
|
|
|
2646
2676
|
- (nonnull instancetype)initWithIsTexture:(BOOL)isTexture isRenderbuffer:(BOOL)isRenderbuffer value:(int32_t)value OBJC_DESIGNATED_INITIALIZER;
|
|
2647
2677
|
@end
|
|
2648
2678
|
|
|
2649
|
-
@class
|
|
2679
|
+
@class NSData;
|
|
2650
2680
|
enum TNSImageAssetFormat : NSInteger;
|
|
2651
2681
|
|
|
2652
2682
|
SWIFT_CLASS_NAMED("TNSImageAsset")
|
|
@@ -2659,6 +2689,8 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, strong) dispatch_queue_t _Null
|
|
|
2659
2689
|
- (BOOL)loadImageFromUrlWithUrl:(NSString * _Nonnull)url SWIFT_WARN_UNUSED_RESULT;
|
|
2660
2690
|
- (void)loadImageFromUrlAsyncWithUrl:(NSString * _Nonnull)url callback:(void (^ _Nonnull)(NSString * _Nullable))callback;
|
|
2661
2691
|
- (void)loadImageFromPathAsyncWithPath:(NSString * _Nonnull)path callback:(void (^ _Nonnull)(NSString * _Nullable))callback;
|
|
2692
|
+
- (BOOL)loadImageFromBuffer:(NSData * _Nonnull)buffer SWIFT_WARN_UNUSED_RESULT;
|
|
2693
|
+
- (void)loadImageFromBufferAsync:(NSData * _Nonnull)buffer callback:(void (^ _Nonnull)(NSString * _Nullable))callback;
|
|
2662
2694
|
- (BOOL)loadImageFromBytesWithArray:(NSArray<NSNumber *> * _Nonnull)array SWIFT_WARN_UNUSED_RESULT;
|
|
2663
2695
|
- (void)loadImageFromBytesAsyncWithArray:(NSArray<NSNumber *> * _Nonnull)array callback:(void (^ _Nonnull)(NSString * _Nullable))callback;
|
|
2664
2696
|
- (BOOL)loadImageFromImageWithImage:(UIImage * _Nonnull)image SWIFT_WARN_UNUSED_RESULT;
|
|
@@ -2683,7 +2715,6 @@ typedef SWIFT_ENUM_NAMED(NSInteger, TNSImageAssetFormat, "TNSImageAssetFormat",
|
|
|
2683
2715
|
};
|
|
2684
2716
|
|
|
2685
2717
|
@class TNSImageBitmapOptions;
|
|
2686
|
-
@class NSData;
|
|
2687
2718
|
|
|
2688
2719
|
SWIFT_CLASS_NAMED("TNSImageBitmap")
|
|
2689
2720
|
@interface TNSImageBitmap : NSObject
|
|
@@ -2801,6 +2832,9 @@ SWIFT_CLASS_NAMED("TNSPath2D")
|
|
|
2801
2832
|
- (void)ellipse:(float)x :(float)y :(float)radiusX :(float)radiusY :(float)rotation :(float)startAngle :(float)endAngle;
|
|
2802
2833
|
- (void)ellipse:(float)x :(float)y :(float)radiusX :(float)radiusY :(float)rotation :(float)startAngle :(float)endAngle :(BOOL)anticlockwise;
|
|
2803
2834
|
- (void)rect:(float)x :(float)y :(float)width :(float)height;
|
|
2835
|
+
- (void)roundRect:(float)x :(float)y :(float)width :(float)height :(float)topLeft :(float)topRight :(float)bottomRight :(float)bottomLeft;
|
|
2836
|
+
- (void)roundRectWithRadii:(float)x :(float)y :(float)width :(float)height :(float)radii;
|
|
2837
|
+
- (void)roundRectWithX:(float)x y:(float)y width:(float)width height:(float)height radii:(NSArray<NSNumber *> * _Nonnull)radii;
|
|
2804
2838
|
@end
|
|
2805
2839
|
|
|
2806
2840
|
typedef SWIFT_ENUM(NSInteger, TNSPatternRepetition, open) {
|
|
@@ -2828,6 +2862,7 @@ SWIFT_CLASS_NAMED("TNSSVG")
|
|
|
2828
2862
|
- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE;
|
|
2829
2863
|
- (void)drawRect:(CGRect)rect;
|
|
2830
2864
|
- (UIImage * _Nullable)toImage SWIFT_WARN_UNUSED_RESULT;
|
|
2865
|
+
- (NSData * _Nullable)toData SWIFT_WARN_UNUSED_RESULT;
|
|
2831
2866
|
@end
|
|
2832
2867
|
|
|
2833
2868
|
typedef SWIFT_ENUM_NAMED(NSInteger, TNSTextAlignment, "TNSTextAlignment", open) {
|
|
@@ -4099,6 +4134,7 @@ SWIFT_CLASS_NAMED("Utils")
|
|
|
4099
4134
|
+ (CVOpenGLESTextureRef _Nullable)createImage:(CVOpenGLESTextureCacheRef _Nonnull)texturecache :(CVImageBufferRef _Nonnull)buffer :(CFDictionaryRef _Nullable)textureAttributes :(GLenum)target :(GLint)internalFormat :(GLsizei)width :(GLsizei)height :(GLenum)format :(GLenum)type :(NSInteger)planeIndex SWIFT_WARN_UNUSED_RESULT;
|
|
4100
4135
|
+ (TNSRender * _Nonnull)setupRender SWIFT_WARN_UNUSED_RESULT;
|
|
4101
4136
|
+ (void)drawFrame:(AVPlayer * _Nonnull)player :(AVPlayerItemVideoOutput * _Nonnull)output :(CGSize)videoSize :(TNSRender * _Nonnull)render :(int32_t)internalFormat :(int32_t)format :(BOOL)flipYWebGL;
|
|
4137
|
+
+ (BOOL)writeToFile:(NSData * _Nonnull)data :(NSString * _Nonnull)path error:(NSError * _Nullable * _Nullable)error;
|
|
4102
4138
|
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
|
|
4103
4139
|
@end
|
|
4104
4140
|
|
|
@@ -289,6 +289,10 @@ void destroy_paint_style(long long style);
|
|
|
289
289
|
void destroy_text_metrics(long long metrics);
|
|
290
290
|
#endif
|
|
291
291
|
|
|
292
|
+
#if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
|
|
293
|
+
struct U8Array *gl_snapshot_current_gl_context(float width, float height, bool _alpha);
|
|
294
|
+
#endif
|
|
295
|
+
|
|
292
296
|
#if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
|
|
293
297
|
long long context_init_context(float width,
|
|
294
298
|
float height,
|
|
@@ -311,6 +315,10 @@ long long context_init_context_with_custom_surface(float width,
|
|
|
311
315
|
enum TextDirection direction);
|
|
312
316
|
#endif
|
|
313
317
|
|
|
318
|
+
#if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
|
|
319
|
+
void context_set_scaling(long long context, bool scaling);
|
|
320
|
+
#endif
|
|
321
|
+
|
|
314
322
|
#if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
|
|
315
323
|
void context_resize_custom_surface(long long context,
|
|
316
324
|
float width,
|
|
@@ -1363,6 +1371,18 @@ void path_ellipse(long long path,
|
|
|
1363
1371
|
void path_rect(long long path, float x, float y, float width, float height);
|
|
1364
1372
|
#endif
|
|
1365
1373
|
|
|
1374
|
+
#if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
|
|
1375
|
+
void path_round_rect(long long path,
|
|
1376
|
+
float x,
|
|
1377
|
+
float y,
|
|
1378
|
+
float width,
|
|
1379
|
+
float height,
|
|
1380
|
+
float top_left,
|
|
1381
|
+
float top_right,
|
|
1382
|
+
float bottom_right,
|
|
1383
|
+
float bottom_left);
|
|
1384
|
+
#endif
|
|
1385
|
+
|
|
1366
1386
|
#if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
|
|
1367
1387
|
void destroy_path(long long path);
|
|
1368
1388
|
#endif
|
|
Binary file
|