@nativescript/canvas-svg 2.0.0-rc.21 → 2.0.0-rc.22
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/index.android.d.ts +1 -0
- package/index.android.js +5 -0
- package/index.android.js.map +1 -1
- package/index.d.ts +1 -0
- package/index.ios.d.ts +4 -3
- package/index.ios.js +5 -0
- package/index.ios.js.map +1 -1
- package/package.json +1 -1
- package/platforms/android/canvassvg-release.aar +0 -0
- package/platforms/ios/CanvasSVG.xcframework/Info.plist +5 -5
- package/platforms/ios/CanvasSVG.xcframework/ios-arm64/CanvasSVG.framework/CanvasSVG +0 -0
- package/platforms/ios/CanvasSVG.xcframework/ios-arm64/CanvasSVG.framework/Headers/CanvasSVG-Swift.h +11 -5
- package/platforms/ios/CanvasSVG.xcframework/ios-arm64/CanvasSVG.framework/Headers/canvas_svg.h +1 -7
- package/platforms/ios/CanvasSVG.xcframework/ios-arm64/CanvasSVG.framework/Info.plist +0 -0
- package/platforms/ios/CanvasSVG.xcframework/ios-arm64/CanvasSVG.framework/Modules/CanvasSVG.swiftmodule/Project/arm64-apple-ios.swiftsourceinfo +0 -0
- package/platforms/ios/CanvasSVG.xcframework/ios-arm64/CanvasSVG.framework/Modules/CanvasSVG.swiftmodule/arm64-apple-ios.abi.json +1510 -1154
- package/platforms/ios/CanvasSVG.xcframework/ios-arm64/CanvasSVG.framework/Modules/CanvasSVG.swiftmodule/arm64-apple-ios.private.swiftinterface +24 -21
- package/platforms/ios/CanvasSVG.xcframework/ios-arm64/CanvasSVG.framework/Modules/CanvasSVG.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
- package/platforms/ios/CanvasSVG.xcframework/ios-arm64/CanvasSVG.framework/Modules/CanvasSVG.swiftmodule/arm64-apple-ios.swiftinterface +24 -21
- package/platforms/ios/CanvasSVG.xcframework/ios-arm64/dSYMs/CanvasSVG.framework.dSYM/Contents/Resources/DWARF/CanvasSVG +0 -0
- package/platforms/ios/CanvasSVG.xcframework/ios-arm64/dSYMs/CanvasSVG.framework.dSYM/Contents/Resources/Relocations/aarch64/CanvasSVG.yml +135 -254
- package/platforms/ios/CanvasSVG.xcframework/ios-arm64_x86_64-simulator/CanvasSVG.framework/CanvasSVG +0 -0
- package/platforms/ios/CanvasSVG.xcframework/ios-arm64_x86_64-simulator/CanvasSVG.framework/Headers/CanvasSVG-Swift.h +22 -10
- package/platforms/ios/CanvasSVG.xcframework/ios-arm64_x86_64-simulator/CanvasSVG.framework/Headers/canvas_svg.h +1 -7
- package/platforms/ios/CanvasSVG.xcframework/ios-arm64_x86_64-simulator/CanvasSVG.framework/Info.plist +0 -0
- package/platforms/ios/CanvasSVG.xcframework/ios-arm64_x86_64-simulator/CanvasSVG.framework/Modules/CanvasSVG.swiftmodule/Project/arm64-apple-ios-simulator.swiftsourceinfo +0 -0
- package/platforms/ios/CanvasSVG.xcframework/ios-arm64_x86_64-simulator/CanvasSVG.framework/Modules/CanvasSVG.swiftmodule/Project/x86_64-apple-ios-simulator.swiftsourceinfo +0 -0
- package/platforms/ios/CanvasSVG.xcframework/ios-arm64_x86_64-simulator/CanvasSVG.framework/Modules/CanvasSVG.swiftmodule/arm64-apple-ios-simulator.abi.json +1510 -1154
- package/platforms/ios/CanvasSVG.xcframework/ios-arm64_x86_64-simulator/CanvasSVG.framework/Modules/CanvasSVG.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +24 -21
- package/platforms/ios/CanvasSVG.xcframework/ios-arm64_x86_64-simulator/CanvasSVG.framework/Modules/CanvasSVG.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
- package/platforms/ios/CanvasSVG.xcframework/ios-arm64_x86_64-simulator/CanvasSVG.framework/Modules/CanvasSVG.swiftmodule/arm64-apple-ios-simulator.swiftinterface +24 -21
- package/platforms/ios/CanvasSVG.xcframework/ios-arm64_x86_64-simulator/CanvasSVG.framework/Modules/CanvasSVG.swiftmodule/x86_64-apple-ios-simulator.abi.json +1510 -1154
- package/platforms/ios/CanvasSVG.xcframework/ios-arm64_x86_64-simulator/CanvasSVG.framework/Modules/CanvasSVG.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +24 -21
- package/platforms/ios/CanvasSVG.xcframework/ios-arm64_x86_64-simulator/CanvasSVG.framework/Modules/CanvasSVG.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
- package/platforms/ios/CanvasSVG.xcframework/ios-arm64_x86_64-simulator/CanvasSVG.framework/Modules/CanvasSVG.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +24 -21
- package/platforms/ios/CanvasSVG.xcframework/ios-arm64_x86_64-simulator/CanvasSVG.framework/_CodeSignature/CodeResources +29 -29
- package/platforms/ios/CanvasSVG.xcframework/ios-arm64_x86_64-simulator/dSYMs/CanvasSVG.framework.dSYM/Contents/Resources/DWARF/CanvasSVG +0 -0
- package/platforms/ios/CanvasSVG.xcframework/ios-arm64_x86_64-simulator/dSYMs/CanvasSVG.framework.dSYM/Contents/Resources/Relocations/aarch64/CanvasSVG.yml +136 -254
- package/platforms/ios/CanvasSVG.xcframework/ios-arm64_x86_64-simulator/dSYMs/CanvasSVG.framework.dSYM/Contents/Resources/Relocations/x86_64/CanvasSVG.yml +115 -304
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#if 0
|
|
2
2
|
#elif defined(__arm64__) && __arm64__
|
|
3
|
-
// Generated by Apple Swift version 5.10 (swiftlang-
|
|
3
|
+
// Generated by Apple Swift version 6.1.2 effective-5.10 (swiftlang-6.1.2.1.2 clang-1700.0.13.5)
|
|
4
4
|
#ifndef CANVASSVG_SWIFT_H
|
|
5
5
|
#define CANVASSVG_SWIFT_H
|
|
6
6
|
#pragma clang diagnostic push
|
|
@@ -42,6 +42,8 @@
|
|
|
42
42
|
#include <string.h>
|
|
43
43
|
#endif
|
|
44
44
|
#if defined(__cplusplus)
|
|
45
|
+
#pragma clang diagnostic push
|
|
46
|
+
#pragma clang diagnostic ignored "-Wnon-modular-include-in-framework-module"
|
|
45
47
|
#if defined(__arm64e__) && __has_include(<ptrauth.h>)
|
|
46
48
|
# include <ptrauth.h>
|
|
47
49
|
#else
|
|
@@ -55,6 +57,7 @@
|
|
|
55
57
|
# endif
|
|
56
58
|
#pragma clang diagnostic pop
|
|
57
59
|
#endif
|
|
60
|
+
#pragma clang diagnostic pop
|
|
58
61
|
#endif
|
|
59
62
|
|
|
60
63
|
#if !defined(SWIFT_TYPEDEFS)
|
|
@@ -62,6 +65,7 @@
|
|
|
62
65
|
# if __has_include(<uchar.h>)
|
|
63
66
|
# include <uchar.h>
|
|
64
67
|
# elif !defined(__cplusplus)
|
|
68
|
+
typedef unsigned char char8_t;
|
|
65
69
|
typedef uint_least16_t char16_t;
|
|
66
70
|
typedef uint_least32_t char32_t;
|
|
67
71
|
# endif
|
|
@@ -291,6 +295,7 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
|
|
|
291
295
|
#pragma clang diagnostic ignored "-Wunknown-pragmas"
|
|
292
296
|
#pragma clang diagnostic ignored "-Wnullability"
|
|
293
297
|
#pragma clang diagnostic ignored "-Wdollar-in-identifier-extension"
|
|
298
|
+
#pragma clang diagnostic ignored "-Wunsafe-buffer-usage"
|
|
294
299
|
|
|
295
300
|
#if __has_attribute(external_source_symbol)
|
|
296
301
|
# pragma push_macro("any")
|
|
@@ -300,17 +305,19 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
|
|
|
300
305
|
#endif
|
|
301
306
|
|
|
302
307
|
#if defined(__OBJC__)
|
|
308
|
+
|
|
303
309
|
@class NSString;
|
|
310
|
+
@class NSCSVGData;
|
|
304
311
|
@class NSCoder;
|
|
305
312
|
@class UIImage;
|
|
306
313
|
@class NSData;
|
|
307
|
-
@class NSCSVGData;
|
|
308
|
-
|
|
309
314
|
SWIFT_CLASS_NAMED("NSCSVG")
|
|
310
315
|
@interface NSCSVG : UIView
|
|
316
|
+
@property (nonatomic) BOOL sync;
|
|
311
317
|
@property (nonatomic) BOOL autoScale;
|
|
312
318
|
@property (nonatomic, copy) NSString * _Nullable src;
|
|
313
319
|
@property (nonatomic, copy) NSString * _Nullable srcPath;
|
|
320
|
+
- (void)loadData:(NSCSVGData * _Nonnull)data;
|
|
314
321
|
- (void)update;
|
|
315
322
|
- (void)layoutSubviews;
|
|
316
323
|
- (nonnull instancetype)initWithFrame:(CGRect)frame OBJC_DESIGNATED_INITIALIZER;
|
|
@@ -327,13 +334,12 @@ SWIFT_CLASS_NAMED("NSCSVG")
|
|
|
327
334
|
@end
|
|
328
335
|
|
|
329
336
|
@class NSMutableData;
|
|
330
|
-
|
|
331
337
|
SWIFT_CLASS_NAMED("NSCSVGData")
|
|
332
338
|
@interface NSCSVGData : NSObject
|
|
339
|
+
@property (nonatomic, readonly, strong) NSMutableData * _Nullable data;
|
|
333
340
|
@property (nonatomic, readonly) CGFloat width;
|
|
334
341
|
@property (nonatomic, readonly) CGFloat height;
|
|
335
342
|
@property (nonatomic, readonly) void * _Nullable rawData;
|
|
336
|
-
@property (nonatomic, readonly, strong) NSMutableData * _Nullable data;
|
|
337
343
|
- (UIImage * _Nullable)getImage SWIFT_WARN_UNUSED_RESULT;
|
|
338
344
|
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
|
|
339
345
|
@end
|
|
@@ -348,7 +354,7 @@ SWIFT_CLASS_NAMED("NSCSVGData")
|
|
|
348
354
|
#endif
|
|
349
355
|
|
|
350
356
|
#elif defined(__x86_64__) && __x86_64__
|
|
351
|
-
// Generated by Apple Swift version 5.10 (swiftlang-
|
|
357
|
+
// Generated by Apple Swift version 6.1.2 effective-5.10 (swiftlang-6.1.2.1.2 clang-1700.0.13.5)
|
|
352
358
|
#ifndef CANVASSVG_SWIFT_H
|
|
353
359
|
#define CANVASSVG_SWIFT_H
|
|
354
360
|
#pragma clang diagnostic push
|
|
@@ -390,6 +396,8 @@ SWIFT_CLASS_NAMED("NSCSVGData")
|
|
|
390
396
|
#include <string.h>
|
|
391
397
|
#endif
|
|
392
398
|
#if defined(__cplusplus)
|
|
399
|
+
#pragma clang diagnostic push
|
|
400
|
+
#pragma clang diagnostic ignored "-Wnon-modular-include-in-framework-module"
|
|
393
401
|
#if defined(__arm64e__) && __has_include(<ptrauth.h>)
|
|
394
402
|
# include <ptrauth.h>
|
|
395
403
|
#else
|
|
@@ -403,6 +411,7 @@ SWIFT_CLASS_NAMED("NSCSVGData")
|
|
|
403
411
|
# endif
|
|
404
412
|
#pragma clang diagnostic pop
|
|
405
413
|
#endif
|
|
414
|
+
#pragma clang diagnostic pop
|
|
406
415
|
#endif
|
|
407
416
|
|
|
408
417
|
#if !defined(SWIFT_TYPEDEFS)
|
|
@@ -410,6 +419,7 @@ SWIFT_CLASS_NAMED("NSCSVGData")
|
|
|
410
419
|
# if __has_include(<uchar.h>)
|
|
411
420
|
# include <uchar.h>
|
|
412
421
|
# elif !defined(__cplusplus)
|
|
422
|
+
typedef unsigned char char8_t;
|
|
413
423
|
typedef uint_least16_t char16_t;
|
|
414
424
|
typedef uint_least32_t char32_t;
|
|
415
425
|
# endif
|
|
@@ -639,6 +649,7 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
|
|
|
639
649
|
#pragma clang diagnostic ignored "-Wunknown-pragmas"
|
|
640
650
|
#pragma clang diagnostic ignored "-Wnullability"
|
|
641
651
|
#pragma clang diagnostic ignored "-Wdollar-in-identifier-extension"
|
|
652
|
+
#pragma clang diagnostic ignored "-Wunsafe-buffer-usage"
|
|
642
653
|
|
|
643
654
|
#if __has_attribute(external_source_symbol)
|
|
644
655
|
# pragma push_macro("any")
|
|
@@ -648,17 +659,19 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
|
|
|
648
659
|
#endif
|
|
649
660
|
|
|
650
661
|
#if defined(__OBJC__)
|
|
662
|
+
|
|
651
663
|
@class NSString;
|
|
664
|
+
@class NSCSVGData;
|
|
652
665
|
@class NSCoder;
|
|
653
666
|
@class UIImage;
|
|
654
667
|
@class NSData;
|
|
655
|
-
@class NSCSVGData;
|
|
656
|
-
|
|
657
668
|
SWIFT_CLASS_NAMED("NSCSVG")
|
|
658
669
|
@interface NSCSVG : UIView
|
|
670
|
+
@property (nonatomic) BOOL sync;
|
|
659
671
|
@property (nonatomic) BOOL autoScale;
|
|
660
672
|
@property (nonatomic, copy) NSString * _Nullable src;
|
|
661
673
|
@property (nonatomic, copy) NSString * _Nullable srcPath;
|
|
674
|
+
- (void)loadData:(NSCSVGData * _Nonnull)data;
|
|
662
675
|
- (void)update;
|
|
663
676
|
- (void)layoutSubviews;
|
|
664
677
|
- (nonnull instancetype)initWithFrame:(CGRect)frame OBJC_DESIGNATED_INITIALIZER;
|
|
@@ -675,13 +688,12 @@ SWIFT_CLASS_NAMED("NSCSVG")
|
|
|
675
688
|
@end
|
|
676
689
|
|
|
677
690
|
@class NSMutableData;
|
|
678
|
-
|
|
679
691
|
SWIFT_CLASS_NAMED("NSCSVGData")
|
|
680
692
|
@interface NSCSVGData : NSObject
|
|
693
|
+
@property (nonatomic, readonly, strong) NSMutableData * _Nullable data;
|
|
681
694
|
@property (nonatomic, readonly) CGFloat width;
|
|
682
695
|
@property (nonatomic, readonly) CGFloat height;
|
|
683
696
|
@property (nonatomic, readonly) void * _Nullable rawData;
|
|
684
|
-
@property (nonatomic, readonly, strong) NSMutableData * _Nullable data;
|
|
685
697
|
- (UIImage * _Nullable)getImage SWIFT_WARN_UNUSED_RESULT;
|
|
686
698
|
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
|
|
687
699
|
@end
|
|
@@ -8,7 +8,6 @@
|
|
|
8
8
|
#include <stdint.h>
|
|
9
9
|
#include <stdlib.h>
|
|
10
10
|
|
|
11
|
-
#if defined(TARGET_OS_IOS)
|
|
12
11
|
void canvas_native_svg_draw_from_bytes(uint8_t *data,
|
|
13
12
|
uintptr_t size,
|
|
14
13
|
float width,
|
|
@@ -16,24 +15,19 @@ void canvas_native_svg_draw_from_bytes(uint8_t *data,
|
|
|
16
15
|
float scale,
|
|
17
16
|
const uint8_t *svg_data,
|
|
18
17
|
uintptr_t svg_size);
|
|
19
|
-
#endif
|
|
20
18
|
|
|
21
|
-
#if defined(TARGET_OS_IOS)
|
|
22
19
|
void canvas_native_svg_draw_from_string(uint8_t *data,
|
|
23
20
|
uintptr_t size,
|
|
24
21
|
float width,
|
|
25
22
|
float height,
|
|
26
23
|
float scale,
|
|
27
24
|
const char *svg);
|
|
28
|
-
#endif
|
|
29
25
|
|
|
30
|
-
#if defined(TARGET_OS_IOS)
|
|
31
26
|
void canvas_native_svg_draw_from_path(uint8_t *data,
|
|
32
27
|
uintptr_t size,
|
|
33
28
|
float width,
|
|
34
29
|
float height,
|
|
35
30
|
float scale,
|
|
36
31
|
const char *path);
|
|
37
|
-
#endif
|
|
38
32
|
|
|
39
|
-
#endif
|
|
33
|
+
#endif /* CANVAS_SVG_IOS_H */
|
|
Binary file
|
|
Binary file
|