@nativescript/canvas 2.0.0-alpha.27 → 2.0.0-alpha.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Canvas/common.js +12 -11
- package/Canvas/common.js.map +1 -1
- package/Canvas2D/CanvasRenderingContext2D/index.d.ts +1 -0
- package/Canvas2D/CanvasRenderingContext2D/index.js +3 -0
- package/Canvas2D/CanvasRenderingContext2D/index.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/package.json +1 -1
- package/platforms/android/canvas-release.aar +0 -0
- 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 +3 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Headers/canvas_native.h +5 -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 +161 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios.private.swiftinterface +3 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios.swiftinterface +3 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/dSYMs/CanvasNative.framework.dSYM/Contents/Resources/DWARF/CanvasNative +0 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/CanvasNative +0 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Headers/CanvasNative-Swift.h +6 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Headers/canvas_native.h +5 -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 +161 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +3 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios-simulator.swiftinterface +3 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/x86_64-apple-ios-simulator.abi.json +161 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +3 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +3 -0
- 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/platforms/ios/src/cpp/canvas2d/CanvasRenderingContext2DImpl.cpp +36 -0
- package/platforms/ios/src/cpp/canvas2d/CanvasRenderingContext2DImpl.h +3 -0
- package/typings/objc!CanvasNative.d.ts +2038 -0
- package/typings/objc!CanvasNative.js +1 -0
- package/typings/objc!CanvasNative.js.map +1 -0
- package/utils.d.ts +3 -1
- package/utils.js +7 -20
- package/utils.js.map +1 -1
|
@@ -438,6 +438,8 @@ SWIFT_CLASS_NAMED("NSCSVG")
|
|
|
438
438
|
- (nonnull instancetype)initWithFrame:(CGRect)frame OBJC_DESIGNATED_INITIALIZER;
|
|
439
439
|
- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE;
|
|
440
440
|
- (void)drawRect:(CGRect)rect;
|
|
441
|
+
- (UIImage * _Nullable)toImage SWIFT_WARN_UNUSED_RESULT;
|
|
442
|
+
- (NSData * _Nullable)toData SWIFT_WARN_UNUSED_RESULT;
|
|
441
443
|
@end
|
|
442
444
|
|
|
443
445
|
@class AVPlayer;
|
|
@@ -449,6 +451,7 @@ SWIFT_CLASS_NAMED("Utils")
|
|
|
449
451
|
+ (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;
|
|
450
452
|
+ (TNSRender * _Nonnull)setupRender SWIFT_WARN_UNUSED_RESULT;
|
|
451
453
|
+ (void)drawFrame:(AVPlayer * _Nonnull)player :(AVPlayerItemVideoOutput * _Nonnull)output :(CGSize)videoSize :(TNSRender * _Nonnull)render :(int32_t)internalFormat :(int32_t)format :(BOOL)flipYWebGL;
|
|
454
|
+
+ (BOOL)writeToFile:(NSData * _Nonnull)data :(NSString * _Nonnull)path error:(NSError * _Nullable * _Nullable)error;
|
|
452
455
|
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
|
|
453
456
|
@end
|
|
454
457
|
|
|
@@ -900,6 +903,8 @@ SWIFT_CLASS_NAMED("NSCSVG")
|
|
|
900
903
|
- (nonnull instancetype)initWithFrame:(CGRect)frame OBJC_DESIGNATED_INITIALIZER;
|
|
901
904
|
- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE;
|
|
902
905
|
- (void)drawRect:(CGRect)rect;
|
|
906
|
+
- (UIImage * _Nullable)toImage SWIFT_WARN_UNUSED_RESULT;
|
|
907
|
+
- (NSData * _Nullable)toData SWIFT_WARN_UNUSED_RESULT;
|
|
903
908
|
@end
|
|
904
909
|
|
|
905
910
|
@class AVPlayer;
|
|
@@ -911,6 +916,7 @@ SWIFT_CLASS_NAMED("Utils")
|
|
|
911
916
|
+ (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;
|
|
912
917
|
+ (TNSRender * _Nonnull)setupRender SWIFT_WARN_UNUSED_RESULT;
|
|
913
918
|
+ (void)drawFrame:(AVPlayer * _Nonnull)player :(AVPlayerItemVideoOutput * _Nonnull)output :(CGSize)videoSize :(TNSRender * _Nonnull)render :(int32_t)internalFormat :(int32_t)format :(BOOL)flipYWebGL;
|
|
919
|
+
+ (BOOL)writeToFile:(NSData * _Nonnull)data :(NSString * _Nonnull)path error:(NSError * _Nullable * _Nullable)error;
|
|
914
920
|
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
|
|
915
921
|
@end
|
|
916
922
|
|
|
@@ -482,6 +482,11 @@ struct PaintStyle *canvas_native_context_create_linear_gradient(struct CanvasRen
|
|
|
482
482
|
float x1,
|
|
483
483
|
float y1);
|
|
484
484
|
|
|
485
|
+
struct PaintStyle *canvas_native_context_create_conic_gradient(struct CanvasRenderingContext2D *context,
|
|
486
|
+
float start_angle,
|
|
487
|
+
float x,
|
|
488
|
+
float y);
|
|
489
|
+
|
|
485
490
|
struct PaintStyle *canvas_native_context_create_pattern(struct CanvasRenderingContext2D *context,
|
|
486
491
|
const uint8_t *data,
|
|
487
492
|
uintptr_t size,
|
|
Binary file
|
|
Binary file
|
|
@@ -3474,6 +3474,68 @@
|
|
|
3474
3474
|
"AccessControl"
|
|
3475
3475
|
],
|
|
3476
3476
|
"funcSelfKind": "NonMutating"
|
|
3477
|
+
},
|
|
3478
|
+
{
|
|
3479
|
+
"kind": "Function",
|
|
3480
|
+
"name": "toImage",
|
|
3481
|
+
"printedName": "toImage()",
|
|
3482
|
+
"children": [
|
|
3483
|
+
{
|
|
3484
|
+
"kind": "TypeNominal",
|
|
3485
|
+
"name": "Optional",
|
|
3486
|
+
"printedName": "UIKit.UIImage?",
|
|
3487
|
+
"children": [
|
|
3488
|
+
{
|
|
3489
|
+
"kind": "TypeNominal",
|
|
3490
|
+
"name": "UIImage",
|
|
3491
|
+
"printedName": "UIKit.UIImage",
|
|
3492
|
+
"usr": "c:objc(cs)UIImage"
|
|
3493
|
+
}
|
|
3494
|
+
],
|
|
3495
|
+
"usr": "s:Sq"
|
|
3496
|
+
}
|
|
3497
|
+
],
|
|
3498
|
+
"declKind": "Func",
|
|
3499
|
+
"usr": "c:@M@CanvasNative@objc(cs)TNSSVG(im)toImage",
|
|
3500
|
+
"mangledName": "$s12CanvasNative6NSCSVGC7toImageSo7UIImageCSgyF",
|
|
3501
|
+
"moduleName": "CanvasNative",
|
|
3502
|
+
"declAttributes": [
|
|
3503
|
+
"Custom",
|
|
3504
|
+
"AccessControl",
|
|
3505
|
+
"ObjC"
|
|
3506
|
+
],
|
|
3507
|
+
"funcSelfKind": "NonMutating"
|
|
3508
|
+
},
|
|
3509
|
+
{
|
|
3510
|
+
"kind": "Function",
|
|
3511
|
+
"name": "toData",
|
|
3512
|
+
"printedName": "toData()",
|
|
3513
|
+
"children": [
|
|
3514
|
+
{
|
|
3515
|
+
"kind": "TypeNominal",
|
|
3516
|
+
"name": "Optional",
|
|
3517
|
+
"printedName": "Foundation.NSData?",
|
|
3518
|
+
"children": [
|
|
3519
|
+
{
|
|
3520
|
+
"kind": "TypeNominal",
|
|
3521
|
+
"name": "NSData",
|
|
3522
|
+
"printedName": "Foundation.NSData",
|
|
3523
|
+
"usr": "c:objc(cs)NSData"
|
|
3524
|
+
}
|
|
3525
|
+
],
|
|
3526
|
+
"usr": "s:Sq"
|
|
3527
|
+
}
|
|
3528
|
+
],
|
|
3529
|
+
"declKind": "Func",
|
|
3530
|
+
"usr": "c:@M@CanvasNative@objc(cs)TNSSVG(im)toData",
|
|
3531
|
+
"mangledName": "$s12CanvasNative6NSCSVGC6toDataSo6NSDataCSgyF",
|
|
3532
|
+
"moduleName": "CanvasNative",
|
|
3533
|
+
"declAttributes": [
|
|
3534
|
+
"Custom",
|
|
3535
|
+
"AccessControl",
|
|
3536
|
+
"ObjC"
|
|
3537
|
+
],
|
|
3538
|
+
"funcSelfKind": "NonMutating"
|
|
3477
3539
|
}
|
|
3478
3540
|
],
|
|
3479
3541
|
"declKind": "Class",
|
|
@@ -3987,6 +4049,42 @@
|
|
|
3987
4049
|
],
|
|
3988
4050
|
"funcSelfKind": "NonMutating"
|
|
3989
4051
|
},
|
|
4052
|
+
{
|
|
4053
|
+
"kind": "Function",
|
|
4054
|
+
"name": "writeToFile",
|
|
4055
|
+
"printedName": "writeToFile(_:_:)",
|
|
4056
|
+
"children": [
|
|
4057
|
+
{
|
|
4058
|
+
"kind": "TypeNominal",
|
|
4059
|
+
"name": "Void",
|
|
4060
|
+
"printedName": "()"
|
|
4061
|
+
},
|
|
4062
|
+
{
|
|
4063
|
+
"kind": "TypeNominal",
|
|
4064
|
+
"name": "NSData",
|
|
4065
|
+
"printedName": "Foundation.NSData",
|
|
4066
|
+
"usr": "c:objc(cs)NSData"
|
|
4067
|
+
},
|
|
4068
|
+
{
|
|
4069
|
+
"kind": "TypeNominal",
|
|
4070
|
+
"name": "String",
|
|
4071
|
+
"printedName": "Swift.String",
|
|
4072
|
+
"usr": "s:SS"
|
|
4073
|
+
}
|
|
4074
|
+
],
|
|
4075
|
+
"declKind": "Func",
|
|
4076
|
+
"usr": "c:@M@CanvasNative@objc(cs)Utils(cm)writeToFile::error:",
|
|
4077
|
+
"mangledName": "$s12CanvasNative5UtilsC11writeToFileyySo6NSDataC_SStKFZ",
|
|
4078
|
+
"moduleName": "CanvasNative",
|
|
4079
|
+
"static": true,
|
|
4080
|
+
"declAttributes": [
|
|
4081
|
+
"Final",
|
|
4082
|
+
"AccessControl",
|
|
4083
|
+
"ObjC"
|
|
4084
|
+
],
|
|
4085
|
+
"throwing": true,
|
|
4086
|
+
"funcSelfKind": "NonMutating"
|
|
4087
|
+
},
|
|
3990
4088
|
{
|
|
3991
4089
|
"kind": "Constructor",
|
|
3992
4090
|
"name": "init",
|
|
@@ -7428,6 +7526,27 @@
|
|
|
7428
7526
|
"length": 1,
|
|
7429
7527
|
"value": "4"
|
|
7430
7528
|
},
|
|
7529
|
+
{
|
|
7530
|
+
"filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCSVG.swift",
|
|
7531
|
+
"kind": "IntegerLiteral",
|
|
7532
|
+
"offset": 5218,
|
|
7533
|
+
"length": 1,
|
|
7534
|
+
"value": "0"
|
|
7535
|
+
},
|
|
7536
|
+
{
|
|
7537
|
+
"filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCSVG.swift",
|
|
7538
|
+
"kind": "IntegerLiteral",
|
|
7539
|
+
"offset": 5440,
|
|
7540
|
+
"length": 1,
|
|
7541
|
+
"value": "8"
|
|
7542
|
+
},
|
|
7543
|
+
{
|
|
7544
|
+
"filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCSVG.swift",
|
|
7545
|
+
"kind": "IntegerLiteral",
|
|
7546
|
+
"offset": 5464,
|
|
7547
|
+
"length": 1,
|
|
7548
|
+
"value": "4"
|
|
7549
|
+
},
|
|
7431
7550
|
{
|
|
7432
7551
|
"filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCImageBitmap.swift",
|
|
7433
7552
|
"kind": "StringLiteral",
|
|
@@ -7449,6 +7568,48 @@
|
|
|
7449
7568
|
"length": 1,
|
|
7450
7569
|
"value": "4"
|
|
7451
7570
|
},
|
|
7571
|
+
{
|
|
7572
|
+
"filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/Utils.swift",
|
|
7573
|
+
"kind": "BooleanLiteral",
|
|
7574
|
+
"offset": 2553,
|
|
7575
|
+
"length": 5,
|
|
7576
|
+
"value": "false"
|
|
7577
|
+
},
|
|
7578
|
+
{
|
|
7579
|
+
"filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/Utils.swift",
|
|
7580
|
+
"kind": "BooleanLiteral",
|
|
7581
|
+
"offset": 2686,
|
|
7582
|
+
"length": 4,
|
|
7583
|
+
"value": "true"
|
|
7584
|
+
},
|
|
7585
|
+
{
|
|
7586
|
+
"filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/Utils.swift",
|
|
7587
|
+
"kind": "BooleanLiteral",
|
|
7588
|
+
"offset": 2738,
|
|
7589
|
+
"length": 4,
|
|
7590
|
+
"value": "true"
|
|
7591
|
+
},
|
|
7592
|
+
{
|
|
7593
|
+
"filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/Utils.swift",
|
|
7594
|
+
"kind": "StringLiteral",
|
|
7595
|
+
"offset": 2923,
|
|
7596
|
+
"length": 33,
|
|
7597
|
+
"value": "\"Failed to create file at path '\""
|
|
7598
|
+
},
|
|
7599
|
+
{
|
|
7600
|
+
"filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/Utils.swift",
|
|
7601
|
+
"kind": "StringLiteral",
|
|
7602
|
+
"offset": 2966,
|
|
7603
|
+
"length": 3,
|
|
7604
|
+
"value": "\"'\""
|
|
7605
|
+
},
|
|
7606
|
+
{
|
|
7607
|
+
"filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/Utils.swift",
|
|
7608
|
+
"kind": "BooleanLiteral",
|
|
7609
|
+
"offset": 3229,
|
|
7610
|
+
"length": 4,
|
|
7611
|
+
"value": "true"
|
|
7612
|
+
},
|
|
7452
7613
|
{
|
|
7453
7614
|
"filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/GLRenderer.swift",
|
|
7454
7615
|
"kind": "BooleanLiteral",
|
|
@@ -103,6 +103,8 @@ import _StringProcessing
|
|
|
103
103
|
@_Concurrency.MainActor(unsafe) @objc override dynamic public func layoutSubviews()
|
|
104
104
|
@_Concurrency.MainActor(unsafe) @objc override dynamic public init(frame: CoreFoundation.CGRect)
|
|
105
105
|
@_Concurrency.MainActor(unsafe) @objc override dynamic public func draw(_ rect: CoreFoundation.CGRect)
|
|
106
|
+
@objc @_Concurrency.MainActor(unsafe) public func toImage() -> UIKit.UIImage?
|
|
107
|
+
@objc @_Concurrency.MainActor(unsafe) public func toData() -> Foundation.NSData?
|
|
106
108
|
@objc deinit
|
|
107
109
|
}
|
|
108
110
|
@_inheritsConvenienceInitializers @objcMembers @objc(NSCImageBitmap) public class NSCImageBitmap : ObjectiveC.NSObject {
|
|
@@ -115,6 +117,7 @@ import _StringProcessing
|
|
|
115
117
|
@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?
|
|
116
118
|
@objc public static func setupRender() -> CanvasNative.NSCRender
|
|
117
119
|
@objc public static func drawFrame(_ player: AVFoundation.AVPlayer, _ output: AVFoundation.AVPlayerItemVideoOutput, _ videoSize: CoreFoundation.CGSize, _ render: CanvasNative.NSCRender, _ internalFormat: Swift.Int32, _ format: Swift.Int32, _ flipYWebGL: Swift.Bool)
|
|
120
|
+
@objc public static func writeToFile(_ data: Foundation.NSData, _ path: Swift.String) throws
|
|
118
121
|
@objc override dynamic public init()
|
|
119
122
|
@objc deinit
|
|
120
123
|
}
|
|
@@ -103,6 +103,8 @@ import _StringProcessing
|
|
|
103
103
|
@_Concurrency.MainActor(unsafe) @objc override dynamic public func layoutSubviews()
|
|
104
104
|
@_Concurrency.MainActor(unsafe) @objc override dynamic public init(frame: CoreFoundation.CGRect)
|
|
105
105
|
@_Concurrency.MainActor(unsafe) @objc override dynamic public func draw(_ rect: CoreFoundation.CGRect)
|
|
106
|
+
@objc @_Concurrency.MainActor(unsafe) public func toImage() -> UIKit.UIImage?
|
|
107
|
+
@objc @_Concurrency.MainActor(unsafe) public func toData() -> Foundation.NSData?
|
|
106
108
|
@objc deinit
|
|
107
109
|
}
|
|
108
110
|
@_inheritsConvenienceInitializers @objcMembers @objc(NSCImageBitmap) public class NSCImageBitmap : ObjectiveC.NSObject {
|
|
@@ -115,6 +117,7 @@ import _StringProcessing
|
|
|
115
117
|
@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?
|
|
116
118
|
@objc public static func setupRender() -> CanvasNative.NSCRender
|
|
117
119
|
@objc public static func drawFrame(_ player: AVFoundation.AVPlayer, _ output: AVFoundation.AVPlayerItemVideoOutput, _ videoSize: CoreFoundation.CGSize, _ render: CanvasNative.NSCRender, _ internalFormat: Swift.Int32, _ format: Swift.Int32, _ flipYWebGL: Swift.Bool)
|
|
120
|
+
@objc public static func writeToFile(_ data: Foundation.NSData, _ path: Swift.String) throws
|
|
118
121
|
@objc override dynamic public init()
|
|
119
122
|
@objc deinit
|
|
120
123
|
}
|
|
@@ -3474,6 +3474,68 @@
|
|
|
3474
3474
|
"AccessControl"
|
|
3475
3475
|
],
|
|
3476
3476
|
"funcSelfKind": "NonMutating"
|
|
3477
|
+
},
|
|
3478
|
+
{
|
|
3479
|
+
"kind": "Function",
|
|
3480
|
+
"name": "toImage",
|
|
3481
|
+
"printedName": "toImage()",
|
|
3482
|
+
"children": [
|
|
3483
|
+
{
|
|
3484
|
+
"kind": "TypeNominal",
|
|
3485
|
+
"name": "Optional",
|
|
3486
|
+
"printedName": "UIKit.UIImage?",
|
|
3487
|
+
"children": [
|
|
3488
|
+
{
|
|
3489
|
+
"kind": "TypeNominal",
|
|
3490
|
+
"name": "UIImage",
|
|
3491
|
+
"printedName": "UIKit.UIImage",
|
|
3492
|
+
"usr": "c:objc(cs)UIImage"
|
|
3493
|
+
}
|
|
3494
|
+
],
|
|
3495
|
+
"usr": "s:Sq"
|
|
3496
|
+
}
|
|
3497
|
+
],
|
|
3498
|
+
"declKind": "Func",
|
|
3499
|
+
"usr": "c:@M@CanvasNative@objc(cs)TNSSVG(im)toImage",
|
|
3500
|
+
"mangledName": "$s12CanvasNative6NSCSVGC7toImageSo7UIImageCSgyF",
|
|
3501
|
+
"moduleName": "CanvasNative",
|
|
3502
|
+
"declAttributes": [
|
|
3503
|
+
"Custom",
|
|
3504
|
+
"AccessControl",
|
|
3505
|
+
"ObjC"
|
|
3506
|
+
],
|
|
3507
|
+
"funcSelfKind": "NonMutating"
|
|
3508
|
+
},
|
|
3509
|
+
{
|
|
3510
|
+
"kind": "Function",
|
|
3511
|
+
"name": "toData",
|
|
3512
|
+
"printedName": "toData()",
|
|
3513
|
+
"children": [
|
|
3514
|
+
{
|
|
3515
|
+
"kind": "TypeNominal",
|
|
3516
|
+
"name": "Optional",
|
|
3517
|
+
"printedName": "Foundation.NSData?",
|
|
3518
|
+
"children": [
|
|
3519
|
+
{
|
|
3520
|
+
"kind": "TypeNominal",
|
|
3521
|
+
"name": "NSData",
|
|
3522
|
+
"printedName": "Foundation.NSData",
|
|
3523
|
+
"usr": "c:objc(cs)NSData"
|
|
3524
|
+
}
|
|
3525
|
+
],
|
|
3526
|
+
"usr": "s:Sq"
|
|
3527
|
+
}
|
|
3528
|
+
],
|
|
3529
|
+
"declKind": "Func",
|
|
3530
|
+
"usr": "c:@M@CanvasNative@objc(cs)TNSSVG(im)toData",
|
|
3531
|
+
"mangledName": "$s12CanvasNative6NSCSVGC6toDataSo6NSDataCSgyF",
|
|
3532
|
+
"moduleName": "CanvasNative",
|
|
3533
|
+
"declAttributes": [
|
|
3534
|
+
"Custom",
|
|
3535
|
+
"AccessControl",
|
|
3536
|
+
"ObjC"
|
|
3537
|
+
],
|
|
3538
|
+
"funcSelfKind": "NonMutating"
|
|
3477
3539
|
}
|
|
3478
3540
|
],
|
|
3479
3541
|
"declKind": "Class",
|
|
@@ -3987,6 +4049,42 @@
|
|
|
3987
4049
|
],
|
|
3988
4050
|
"funcSelfKind": "NonMutating"
|
|
3989
4051
|
},
|
|
4052
|
+
{
|
|
4053
|
+
"kind": "Function",
|
|
4054
|
+
"name": "writeToFile",
|
|
4055
|
+
"printedName": "writeToFile(_:_:)",
|
|
4056
|
+
"children": [
|
|
4057
|
+
{
|
|
4058
|
+
"kind": "TypeNominal",
|
|
4059
|
+
"name": "Void",
|
|
4060
|
+
"printedName": "()"
|
|
4061
|
+
},
|
|
4062
|
+
{
|
|
4063
|
+
"kind": "TypeNominal",
|
|
4064
|
+
"name": "NSData",
|
|
4065
|
+
"printedName": "Foundation.NSData",
|
|
4066
|
+
"usr": "c:objc(cs)NSData"
|
|
4067
|
+
},
|
|
4068
|
+
{
|
|
4069
|
+
"kind": "TypeNominal",
|
|
4070
|
+
"name": "String",
|
|
4071
|
+
"printedName": "Swift.String",
|
|
4072
|
+
"usr": "s:SS"
|
|
4073
|
+
}
|
|
4074
|
+
],
|
|
4075
|
+
"declKind": "Func",
|
|
4076
|
+
"usr": "c:@M@CanvasNative@objc(cs)Utils(cm)writeToFile::error:",
|
|
4077
|
+
"mangledName": "$s12CanvasNative5UtilsC11writeToFileyySo6NSDataC_SStKFZ",
|
|
4078
|
+
"moduleName": "CanvasNative",
|
|
4079
|
+
"static": true,
|
|
4080
|
+
"declAttributes": [
|
|
4081
|
+
"Final",
|
|
4082
|
+
"AccessControl",
|
|
4083
|
+
"ObjC"
|
|
4084
|
+
],
|
|
4085
|
+
"throwing": true,
|
|
4086
|
+
"funcSelfKind": "NonMutating"
|
|
4087
|
+
},
|
|
3990
4088
|
{
|
|
3991
4089
|
"kind": "Constructor",
|
|
3992
4090
|
"name": "init",
|
|
@@ -7428,6 +7526,27 @@
|
|
|
7428
7526
|
"length": 1,
|
|
7429
7527
|
"value": "4"
|
|
7430
7528
|
},
|
|
7529
|
+
{
|
|
7530
|
+
"filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCSVG.swift",
|
|
7531
|
+
"kind": "IntegerLiteral",
|
|
7532
|
+
"offset": 5218,
|
|
7533
|
+
"length": 1,
|
|
7534
|
+
"value": "0"
|
|
7535
|
+
},
|
|
7536
|
+
{
|
|
7537
|
+
"filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCSVG.swift",
|
|
7538
|
+
"kind": "IntegerLiteral",
|
|
7539
|
+
"offset": 5440,
|
|
7540
|
+
"length": 1,
|
|
7541
|
+
"value": "8"
|
|
7542
|
+
},
|
|
7543
|
+
{
|
|
7544
|
+
"filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/NSCSVG.swift",
|
|
7545
|
+
"kind": "IntegerLiteral",
|
|
7546
|
+
"offset": 5464,
|
|
7547
|
+
"length": 1,
|
|
7548
|
+
"value": "4"
|
|
7549
|
+
},
|
|
7431
7550
|
{
|
|
7432
7551
|
"filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/NSCImageBitmap.swift",
|
|
7433
7552
|
"kind": "StringLiteral",
|
|
@@ -7449,6 +7568,48 @@
|
|
|
7449
7568
|
"length": 1,
|
|
7450
7569
|
"value": "4"
|
|
7451
7570
|
},
|
|
7571
|
+
{
|
|
7572
|
+
"filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/Utils.swift",
|
|
7573
|
+
"kind": "BooleanLiteral",
|
|
7574
|
+
"offset": 2553,
|
|
7575
|
+
"length": 5,
|
|
7576
|
+
"value": "false"
|
|
7577
|
+
},
|
|
7578
|
+
{
|
|
7579
|
+
"filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/Utils.swift",
|
|
7580
|
+
"kind": "BooleanLiteral",
|
|
7581
|
+
"offset": 2686,
|
|
7582
|
+
"length": 4,
|
|
7583
|
+
"value": "true"
|
|
7584
|
+
},
|
|
7585
|
+
{
|
|
7586
|
+
"filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/Utils.swift",
|
|
7587
|
+
"kind": "BooleanLiteral",
|
|
7588
|
+
"offset": 2738,
|
|
7589
|
+
"length": 4,
|
|
7590
|
+
"value": "true"
|
|
7591
|
+
},
|
|
7592
|
+
{
|
|
7593
|
+
"filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/Utils.swift",
|
|
7594
|
+
"kind": "StringLiteral",
|
|
7595
|
+
"offset": 2923,
|
|
7596
|
+
"length": 33,
|
|
7597
|
+
"value": "\"Failed to create file at path '\""
|
|
7598
|
+
},
|
|
7599
|
+
{
|
|
7600
|
+
"filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/Utils.swift",
|
|
7601
|
+
"kind": "StringLiteral",
|
|
7602
|
+
"offset": 2966,
|
|
7603
|
+
"length": 3,
|
|
7604
|
+
"value": "\"'\""
|
|
7605
|
+
},
|
|
7606
|
+
{
|
|
7607
|
+
"filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/Utils.swift",
|
|
7608
|
+
"kind": "BooleanLiteral",
|
|
7609
|
+
"offset": 3229,
|
|
7610
|
+
"length": 4,
|
|
7611
|
+
"value": "true"
|
|
7612
|
+
},
|
|
7452
7613
|
{
|
|
7453
7614
|
"filePath": "\/Users\/triniwiz\/Documents\/GitHub\/canvas\/packages\/canvas\/src-native\/canvas-ios\/CanvasNative\/Source\/GLRenderer.swift",
|
|
7454
7615
|
"kind": "BooleanLiteral",
|
|
@@ -103,6 +103,8 @@ import _StringProcessing
|
|
|
103
103
|
@_Concurrency.MainActor(unsafe) @objc override dynamic public func layoutSubviews()
|
|
104
104
|
@_Concurrency.MainActor(unsafe) @objc override dynamic public init(frame: CoreFoundation.CGRect)
|
|
105
105
|
@_Concurrency.MainActor(unsafe) @objc override dynamic public func draw(_ rect: CoreFoundation.CGRect)
|
|
106
|
+
@objc @_Concurrency.MainActor(unsafe) public func toImage() -> UIKit.UIImage?
|
|
107
|
+
@objc @_Concurrency.MainActor(unsafe) public func toData() -> Foundation.NSData?
|
|
106
108
|
@objc deinit
|
|
107
109
|
}
|
|
108
110
|
@_inheritsConvenienceInitializers @objcMembers @objc(NSCImageBitmap) public class NSCImageBitmap : ObjectiveC.NSObject {
|
|
@@ -115,6 +117,7 @@ import _StringProcessing
|
|
|
115
117
|
@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?
|
|
116
118
|
@objc public static func setupRender() -> CanvasNative.NSCRender
|
|
117
119
|
@objc public static func drawFrame(_ player: AVFoundation.AVPlayer, _ output: AVFoundation.AVPlayerItemVideoOutput, _ videoSize: CoreFoundation.CGSize, _ render: CanvasNative.NSCRender, _ internalFormat: Swift.Int32, _ format: Swift.Int32, _ flipYWebGL: Swift.Bool)
|
|
120
|
+
@objc public static func writeToFile(_ data: Foundation.NSData, _ path: Swift.String) throws
|
|
118
121
|
@objc override dynamic public init()
|
|
119
122
|
@objc deinit
|
|
120
123
|
}
|
|
@@ -103,6 +103,8 @@ import _StringProcessing
|
|
|
103
103
|
@_Concurrency.MainActor(unsafe) @objc override dynamic public func layoutSubviews()
|
|
104
104
|
@_Concurrency.MainActor(unsafe) @objc override dynamic public init(frame: CoreFoundation.CGRect)
|
|
105
105
|
@_Concurrency.MainActor(unsafe) @objc override dynamic public func draw(_ rect: CoreFoundation.CGRect)
|
|
106
|
+
@objc @_Concurrency.MainActor(unsafe) public func toImage() -> UIKit.UIImage?
|
|
107
|
+
@objc @_Concurrency.MainActor(unsafe) public func toData() -> Foundation.NSData?
|
|
106
108
|
@objc deinit
|
|
107
109
|
}
|
|
108
110
|
@_inheritsConvenienceInitializers @objcMembers @objc(NSCImageBitmap) public class NSCImageBitmap : ObjectiveC.NSObject {
|
|
@@ -115,6 +117,7 @@ import _StringProcessing
|
|
|
115
117
|
@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?
|
|
116
118
|
@objc public static func setupRender() -> CanvasNative.NSCRender
|
|
117
119
|
@objc public static func drawFrame(_ player: AVFoundation.AVPlayer, _ output: AVFoundation.AVPlayerItemVideoOutput, _ videoSize: CoreFoundation.CGSize, _ render: CanvasNative.NSCRender, _ internalFormat: Swift.Int32, _ format: Swift.Int32, _ flipYWebGL: Swift.Bool)
|
|
120
|
+
@objc public static func writeToFile(_ data: Foundation.NSData, _ path: Swift.String) throws
|
|
118
121
|
@objc override dynamic public init()
|
|
119
122
|
@objc deinit
|
|
120
123
|
}
|