@nativescript/canvas-svg 2.0.0-webgpu.8 → 2.0.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.
Files changed (38) hide show
  1. package/index.android.d.ts +10 -2
  2. package/index.android.js +62 -59
  3. package/index.android.js.map +1 -1
  4. package/index.d.ts +13 -2
  5. package/index.ios.d.ts +13 -5
  6. package/index.ios.js +54 -52
  7. package/index.ios.js.map +1 -1
  8. package/package.json +2 -2
  9. package/platforms/android/canvassvg-release.aar +0 -0
  10. package/platforms/ios/CanvasSVG.xcframework/ios-arm64/CanvasSVG.framework/CanvasSVG +0 -0
  11. package/platforms/ios/CanvasSVG.xcframework/ios-arm64/CanvasSVG.framework/Headers/CanvasSVG-Swift.h +28 -11
  12. package/platforms/ios/CanvasSVG.xcframework/ios-arm64/CanvasSVG.framework/Headers/canvas_svg.h +9 -5
  13. package/platforms/ios/CanvasSVG.xcframework/ios-arm64/CanvasSVG.framework/Info.plist +0 -0
  14. package/platforms/ios/CanvasSVG.xcframework/ios-arm64/CanvasSVG.framework/Modules/CanvasSVG.swiftmodule/Project/arm64-apple-ios.swiftsourceinfo +0 -0
  15. package/platforms/ios/CanvasSVG.xcframework/ios-arm64/CanvasSVG.framework/Modules/CanvasSVG.swiftmodule/arm64-apple-ios.abi.json +458 -106
  16. package/platforms/ios/CanvasSVG.xcframework/ios-arm64/CanvasSVG.framework/Modules/CanvasSVG.swiftmodule/arm64-apple-ios.private.swiftinterface +54 -23
  17. package/platforms/ios/CanvasSVG.xcframework/ios-arm64/CanvasSVG.framework/Modules/CanvasSVG.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
  18. package/platforms/ios/CanvasSVG.xcframework/ios-arm64/CanvasSVG.framework/Modules/CanvasSVG.swiftmodule/arm64-apple-ios.swiftinterface +54 -23
  19. package/platforms/ios/CanvasSVG.xcframework/ios-arm64/dSYMs/CanvasSVG.framework.dSYM/Contents/Resources/DWARF/CanvasSVG +0 -0
  20. package/platforms/ios/CanvasSVG.xcframework/ios-arm64/dSYMs/CanvasSVG.framework.dSYM/Contents/Resources/Relocations/aarch64/CanvasSVG.yml +135 -217
  21. package/platforms/ios/CanvasSVG.xcframework/ios-arm64_x86_64-simulator/CanvasSVG.framework/CanvasSVG +0 -0
  22. package/platforms/ios/CanvasSVG.xcframework/ios-arm64_x86_64-simulator/CanvasSVG.framework/Headers/CanvasSVG-Swift.h +56 -22
  23. package/platforms/ios/CanvasSVG.xcframework/ios-arm64_x86_64-simulator/CanvasSVG.framework/Headers/canvas_svg.h +9 -5
  24. package/platforms/ios/CanvasSVG.xcframework/ios-arm64_x86_64-simulator/CanvasSVG.framework/Info.plist +0 -0
  25. package/platforms/ios/CanvasSVG.xcframework/ios-arm64_x86_64-simulator/CanvasSVG.framework/Modules/CanvasSVG.swiftmodule/Project/arm64-apple-ios-simulator.swiftsourceinfo +0 -0
  26. package/platforms/ios/CanvasSVG.xcframework/ios-arm64_x86_64-simulator/CanvasSVG.framework/Modules/CanvasSVG.swiftmodule/Project/x86_64-apple-ios-simulator.swiftsourceinfo +0 -0
  27. package/platforms/ios/CanvasSVG.xcframework/ios-arm64_x86_64-simulator/CanvasSVG.framework/Modules/CanvasSVG.swiftmodule/arm64-apple-ios-simulator.abi.json +458 -106
  28. package/platforms/ios/CanvasSVG.xcframework/ios-arm64_x86_64-simulator/CanvasSVG.framework/Modules/CanvasSVG.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +54 -23
  29. package/platforms/ios/CanvasSVG.xcframework/ios-arm64_x86_64-simulator/CanvasSVG.framework/Modules/CanvasSVG.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
  30. package/platforms/ios/CanvasSVG.xcframework/ios-arm64_x86_64-simulator/CanvasSVG.framework/Modules/CanvasSVG.swiftmodule/arm64-apple-ios-simulator.swiftinterface +54 -23
  31. package/platforms/ios/CanvasSVG.xcframework/ios-arm64_x86_64-simulator/CanvasSVG.framework/Modules/CanvasSVG.swiftmodule/x86_64-apple-ios-simulator.abi.json +458 -106
  32. package/platforms/ios/CanvasSVG.xcframework/ios-arm64_x86_64-simulator/CanvasSVG.framework/Modules/CanvasSVG.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +54 -23
  33. package/platforms/ios/CanvasSVG.xcframework/ios-arm64_x86_64-simulator/CanvasSVG.framework/Modules/CanvasSVG.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
  34. package/platforms/ios/CanvasSVG.xcframework/ios-arm64_x86_64-simulator/CanvasSVG.framework/Modules/CanvasSVG.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +54 -23
  35. package/platforms/ios/CanvasSVG.xcframework/ios-arm64_x86_64-simulator/CanvasSVG.framework/_CodeSignature/CodeResources +29 -29
  36. package/platforms/ios/CanvasSVG.xcframework/ios-arm64_x86_64-simulator/dSYMs/CanvasSVG.framework.dSYM/Contents/Resources/DWARF/CanvasSVG +0 -0
  37. package/platforms/ios/CanvasSVG.xcframework/ios-arm64_x86_64-simulator/dSYMs/CanvasSVG.framework.dSYM/Contents/Resources/Relocations/aarch64/CanvasSVG.yml +136 -217
  38. package/platforms/ios/CanvasSVG.xcframework/ios-arm64_x86_64-simulator/dSYMs/CanvasSVG.framework.dSYM/Contents/Resources/Relocations/x86_64/CanvasSVG.yml +115 -286
@@ -1,6 +1,6 @@
1
1
  #if 0
2
2
  #elif defined(__arm64__) && __arm64__
3
- // Generated by Apple Swift version 5.10 (swiftlang-5.10.0.13 clang-1500.3.9.4)
3
+ // Generated by Apple Swift version 6.2.3 effective-5.10 (swiftlang-6.2.3.3.21 clang-1700.6.3.2)
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
@@ -278,6 +282,7 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
278
282
  #pragma clang diagnostic ignored "-Watimport-in-framework-header"
279
283
  #endif
280
284
  @import CoreFoundation;
285
+ @import ObjectiveC;
281
286
  @import UIKit;
282
287
  #endif
283
288
 
@@ -290,6 +295,7 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
290
295
  #pragma clang diagnostic ignored "-Wunknown-pragmas"
291
296
  #pragma clang diagnostic ignored "-Wnullability"
292
297
  #pragma clang diagnostic ignored "-Wdollar-in-identifier-extension"
298
+ #pragma clang diagnostic ignored "-Wunsafe-buffer-usage"
293
299
 
294
300
  #if __has_attribute(external_source_symbol)
295
301
  # pragma push_macro("any")
@@ -299,19 +305,19 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
299
305
  #endif
300
306
 
301
307
  #if defined(__OBJC__)
308
+
302
309
  @class NSString;
310
+ @class NSCSVGData;
303
311
  @class NSCoder;
304
312
  @class UIImage;
305
313
  @class NSData;
306
-
307
314
  SWIFT_CLASS_NAMED("NSCSVG")
308
315
  @interface NSCSVG : UIView
309
- @property (nonatomic, readonly) void * _Nullable data;
310
- @property (nonatomic, readonly) CGSize data_size;
311
- @property (nonatomic, readonly) NSUInteger buf_size;
316
+ @property (nonatomic) BOOL sync;
312
317
  @property (nonatomic) BOOL autoScale;
313
318
  @property (nonatomic, copy) NSString * _Nullable src;
314
319
  @property (nonatomic, copy) NSString * _Nullable srcPath;
320
+ - (void)loadData:(NSCSVGData * _Nonnull)data;
315
321
  - (void)update;
316
322
  - (void)layoutSubviews;
317
323
  - (nonnull instancetype)initWithFrame:(CGRect)frame OBJC_DESIGNATED_INITIALIZER;
@@ -319,12 +325,23 @@ SWIFT_CLASS_NAMED("NSCSVG")
319
325
  - (void)drawRect:(CGRect)rect;
320
326
  - (UIImage * _Nullable)toImage SWIFT_WARN_UNUSED_RESULT;
321
327
  - (NSData * _Nullable)toData SWIFT_WARN_UNUSED_RESULT;
322
- + (NSCSVG * _Nullable)fromStringSync:(NSString * _Nonnull)source SWIFT_WARN_UNUSED_RESULT;
323
- + (NSCSVG * _Nullable)fromPathSync:(NSString * _Nonnull)path SWIFT_WARN_UNUSED_RESULT;
324
- + (NSCSVG * _Nullable)fromRemoteSync:(NSString * _Nonnull)path SWIFT_WARN_UNUSED_RESULT;
325
- + (void)fromString:(NSString * _Nonnull)source :(void (^ _Nonnull)(NSCSVG * _Nullable))callback;
326
- + (void)fromPath:(NSString * _Nonnull)path :(void (^ _Nonnull)(NSCSVG * _Nullable))callback;
327
- + (void)fromRemote:(NSString * _Nonnull)path :(void (^ _Nonnull)(NSCSVG * _Nullable))callback;
328
+ + (NSCSVGData * _Nullable)fromStringSync:(NSString * _Nonnull)source SWIFT_WARN_UNUSED_RESULT;
329
+ + (NSCSVGData * _Nullable)fromPathSync:(NSString * _Nonnull)path SWIFT_WARN_UNUSED_RESULT;
330
+ + (NSCSVGData * _Nullable)fromRemoteSync:(NSString * _Nonnull)path SWIFT_WARN_UNUSED_RESULT;
331
+ + (void)fromString:(NSString * _Nonnull)source :(void (^ _Nonnull)(NSCSVGData * _Nullable))callback;
332
+ + (void)fromPath:(NSString * _Nonnull)path :(void (^ _Nonnull)(NSCSVGData * _Nullable))callback;
333
+ + (void)fromRemote:(NSString * _Nonnull)path :(void (^ _Nonnull)(NSCSVGData * _Nullable))callback;
334
+ @end
335
+
336
+ @class NSMutableData;
337
+ SWIFT_CLASS_NAMED("NSCSVGData")
338
+ @interface NSCSVGData : NSObject
339
+ @property (nonatomic, readonly, strong) NSMutableData * _Nullable data;
340
+ @property (nonatomic, readonly) CGFloat width;
341
+ @property (nonatomic, readonly) CGFloat height;
342
+ @property (nonatomic, readonly) void * _Nullable rawData;
343
+ - (UIImage * _Nullable)getImage SWIFT_WARN_UNUSED_RESULT;
344
+ - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
328
345
  @end
329
346
 
330
347
  #endif
@@ -337,7 +354,7 @@ SWIFT_CLASS_NAMED("NSCSVG")
337
354
  #endif
338
355
 
339
356
  #elif defined(__x86_64__) && __x86_64__
340
- // Generated by Apple Swift version 5.10 (swiftlang-5.10.0.13 clang-1500.3.9.4)
357
+ // Generated by Apple Swift version 6.2.3 effective-5.10 (swiftlang-6.2.3.3.21 clang-1700.6.3.2)
341
358
  #ifndef CANVASSVG_SWIFT_H
342
359
  #define CANVASSVG_SWIFT_H
343
360
  #pragma clang diagnostic push
@@ -379,6 +396,8 @@ SWIFT_CLASS_NAMED("NSCSVG")
379
396
  #include <string.h>
380
397
  #endif
381
398
  #if defined(__cplusplus)
399
+ #pragma clang diagnostic push
400
+ #pragma clang diagnostic ignored "-Wnon-modular-include-in-framework-module"
382
401
  #if defined(__arm64e__) && __has_include(<ptrauth.h>)
383
402
  # include <ptrauth.h>
384
403
  #else
@@ -392,6 +411,7 @@ SWIFT_CLASS_NAMED("NSCSVG")
392
411
  # endif
393
412
  #pragma clang diagnostic pop
394
413
  #endif
414
+ #pragma clang diagnostic pop
395
415
  #endif
396
416
 
397
417
  #if !defined(SWIFT_TYPEDEFS)
@@ -399,6 +419,7 @@ SWIFT_CLASS_NAMED("NSCSVG")
399
419
  # if __has_include(<uchar.h>)
400
420
  # include <uchar.h>
401
421
  # elif !defined(__cplusplus)
422
+ typedef unsigned char char8_t;
402
423
  typedef uint_least16_t char16_t;
403
424
  typedef uint_least32_t char32_t;
404
425
  # endif
@@ -615,6 +636,7 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
615
636
  #pragma clang diagnostic ignored "-Watimport-in-framework-header"
616
637
  #endif
617
638
  @import CoreFoundation;
639
+ @import ObjectiveC;
618
640
  @import UIKit;
619
641
  #endif
620
642
 
@@ -627,6 +649,7 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
627
649
  #pragma clang diagnostic ignored "-Wunknown-pragmas"
628
650
  #pragma clang diagnostic ignored "-Wnullability"
629
651
  #pragma clang diagnostic ignored "-Wdollar-in-identifier-extension"
652
+ #pragma clang diagnostic ignored "-Wunsafe-buffer-usage"
630
653
 
631
654
  #if __has_attribute(external_source_symbol)
632
655
  # pragma push_macro("any")
@@ -636,19 +659,19 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
636
659
  #endif
637
660
 
638
661
  #if defined(__OBJC__)
662
+
639
663
  @class NSString;
664
+ @class NSCSVGData;
640
665
  @class NSCoder;
641
666
  @class UIImage;
642
667
  @class NSData;
643
-
644
668
  SWIFT_CLASS_NAMED("NSCSVG")
645
669
  @interface NSCSVG : UIView
646
- @property (nonatomic, readonly) void * _Nullable data;
647
- @property (nonatomic, readonly) CGSize data_size;
648
- @property (nonatomic, readonly) NSUInteger buf_size;
670
+ @property (nonatomic) BOOL sync;
649
671
  @property (nonatomic) BOOL autoScale;
650
672
  @property (nonatomic, copy) NSString * _Nullable src;
651
673
  @property (nonatomic, copy) NSString * _Nullable srcPath;
674
+ - (void)loadData:(NSCSVGData * _Nonnull)data;
652
675
  - (void)update;
653
676
  - (void)layoutSubviews;
654
677
  - (nonnull instancetype)initWithFrame:(CGRect)frame OBJC_DESIGNATED_INITIALIZER;
@@ -656,12 +679,23 @@ SWIFT_CLASS_NAMED("NSCSVG")
656
679
  - (void)drawRect:(CGRect)rect;
657
680
  - (UIImage * _Nullable)toImage SWIFT_WARN_UNUSED_RESULT;
658
681
  - (NSData * _Nullable)toData SWIFT_WARN_UNUSED_RESULT;
659
- + (NSCSVG * _Nullable)fromStringSync:(NSString * _Nonnull)source SWIFT_WARN_UNUSED_RESULT;
660
- + (NSCSVG * _Nullable)fromPathSync:(NSString * _Nonnull)path SWIFT_WARN_UNUSED_RESULT;
661
- + (NSCSVG * _Nullable)fromRemoteSync:(NSString * _Nonnull)path SWIFT_WARN_UNUSED_RESULT;
662
- + (void)fromString:(NSString * _Nonnull)source :(void (^ _Nonnull)(NSCSVG * _Nullable))callback;
663
- + (void)fromPath:(NSString * _Nonnull)path :(void (^ _Nonnull)(NSCSVG * _Nullable))callback;
664
- + (void)fromRemote:(NSString * _Nonnull)path :(void (^ _Nonnull)(NSCSVG * _Nullable))callback;
682
+ + (NSCSVGData * _Nullable)fromStringSync:(NSString * _Nonnull)source SWIFT_WARN_UNUSED_RESULT;
683
+ + (NSCSVGData * _Nullable)fromPathSync:(NSString * _Nonnull)path SWIFT_WARN_UNUSED_RESULT;
684
+ + (NSCSVGData * _Nullable)fromRemoteSync:(NSString * _Nonnull)path SWIFT_WARN_UNUSED_RESULT;
685
+ + (void)fromString:(NSString * _Nonnull)source :(void (^ _Nonnull)(NSCSVGData * _Nullable))callback;
686
+ + (void)fromPath:(NSString * _Nonnull)path :(void (^ _Nonnull)(NSCSVGData * _Nullable))callback;
687
+ + (void)fromRemote:(NSString * _Nonnull)path :(void (^ _Nonnull)(NSCSVGData * _Nullable))callback;
688
+ @end
689
+
690
+ @class NSMutableData;
691
+ SWIFT_CLASS_NAMED("NSCSVGData")
692
+ @interface NSCSVGData : NSObject
693
+ @property (nonatomic, readonly, strong) NSMutableData * _Nullable data;
694
+ @property (nonatomic, readonly) CGFloat width;
695
+ @property (nonatomic, readonly) CGFloat height;
696
+ @property (nonatomic, readonly) void * _Nullable rawData;
697
+ - (UIImage * _Nullable)getImage SWIFT_WARN_UNUSED_RESULT;
698
+ - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
665
699
  @end
666
700
 
667
701
  #endif
@@ -8,22 +8,26 @@
8
8
  #include <stdint.h>
9
9
  #include <stdlib.h>
10
10
 
11
- #if defined(TARGET_OS_IOS)
11
+ void canvas_native_svg_draw_from_bytes(uint8_t *data,
12
+ uintptr_t size,
13
+ float width,
14
+ float height,
15
+ float scale,
16
+ const uint8_t *svg_data,
17
+ uintptr_t svg_size);
18
+
12
19
  void canvas_native_svg_draw_from_string(uint8_t *data,
13
20
  uintptr_t size,
14
21
  float width,
15
22
  float height,
16
23
  float scale,
17
24
  const char *svg);
18
- #endif
19
25
 
20
- #if defined(TARGET_OS_IOS)
21
26
  void canvas_native_svg_draw_from_path(uint8_t *data,
22
27
  uintptr_t size,
23
28
  float width,
24
29
  float height,
25
30
  float scale,
26
31
  const char *path);
27
- #endif
28
32
 
29
- #endif /* CANVAS_SVG_IOS_H */
33
+ #endif /* CANVAS_SVG_IOS_H */