@shopify/react-native-skia 0.1.160 → 0.1.163

Sign up to get free protection for your applications and to get access to all the features.
Files changed (124) hide show
  1. package/android/CMakeLists.txt +9 -9
  2. package/android/cpp/rnskia-android/RNSkAndroidPlatformContext.h +2 -0
  3. package/android/cpp/rnskia-android/RNSkOpenGLCanvasProvider.cpp +2 -2
  4. package/android/cpp/rnskia-android/RNSkOpenGLCanvasProvider.h +2 -2
  5. package/android/cpp/rnskia-android/SkiaOpenGLRenderer.h +5 -5
  6. package/cpp/api/JsiSkCanvas.h +8 -8
  7. package/cpp/api/JsiSkColor.h +1 -1
  8. package/cpp/api/JsiSkColorFilter.h +1 -1
  9. package/cpp/api/JsiSkColorFilterFactory.h +2 -2
  10. package/cpp/api/JsiSkContourMeasure.h +1 -1
  11. package/cpp/api/JsiSkContourMeasureIter.h +2 -2
  12. package/cpp/api/JsiSkData.h +2 -2
  13. package/cpp/api/JsiSkDataFactory.h +1 -1
  14. package/cpp/api/JsiSkFont.h +2 -2
  15. package/cpp/api/JsiSkImage.h +3 -3
  16. package/cpp/api/JsiSkImageFilter.h +1 -1
  17. package/cpp/api/JsiSkImageFilterFactory.h +1 -1
  18. package/cpp/api/JsiSkImageInfo.h +1 -1
  19. package/cpp/api/JsiSkMaskFilter.h +1 -1
  20. package/cpp/api/JsiSkMaskFilterFactory.h +1 -1
  21. package/cpp/api/JsiSkMatrix.h +1 -1
  22. package/cpp/api/JsiSkPaint.h +1 -1
  23. package/cpp/api/JsiSkPath.h +15 -15
  24. package/cpp/api/JsiSkPathEffect.h +1 -1
  25. package/cpp/api/JsiSkPathEffectFactory.h +4 -4
  26. package/cpp/api/JsiSkPathFactory.h +2 -2
  27. package/cpp/api/JsiSkPicture.h +1 -1
  28. package/cpp/api/JsiSkPictureFactory.h +2 -2
  29. package/cpp/api/JsiSkPictureRecorder.h +2 -2
  30. package/cpp/api/JsiSkPoint.h +1 -1
  31. package/cpp/api/JsiSkRRect.h +1 -1
  32. package/cpp/api/JsiSkRSXform.h +1 -1
  33. package/cpp/api/JsiSkRect.h +1 -1
  34. package/cpp/api/JsiSkRuntimeEffect.h +1 -1
  35. package/cpp/api/JsiSkRuntimeShaderBuilder.h +1 -1
  36. package/cpp/api/JsiSkSVGFactory.h +1 -1
  37. package/cpp/api/JsiSkShader.h +2 -2
  38. package/cpp/api/JsiSkShaderFactory.h +3 -3
  39. package/cpp/api/JsiSkSurface.h +1 -1
  40. package/cpp/api/JsiSkSurfaceFactory.h +2 -2
  41. package/cpp/api/JsiSkTextBlob.h +1 -1
  42. package/cpp/api/JsiSkTextBlobFactory.h +1 -1
  43. package/cpp/api/JsiSkTypeface.h +2 -2
  44. package/cpp/api/JsiSkVertices.h +1 -1
  45. package/cpp/rnskia/RNSkDomView.cpp +1 -2
  46. package/cpp/rnskia/RNSkJsView.h +3 -3
  47. package/cpp/rnskia/RNSkPictureView.h +3 -3
  48. package/cpp/rnskia/RNSkPlatformContext.h +5 -3
  49. package/cpp/rnskia/RNSkView.h +2 -2
  50. package/cpp/rnskia/dom/nodes/JsiBlendNode.h +6 -7
  51. package/cpp/rnskia/dom/nodes/JsiColorFilterNodes.h +1 -1
  52. package/cpp/rnskia/dom/nodes/JsiPathNode.h +10 -8
  53. package/cpp/rnskia/dom/props/BlendModeProp.h +2 -2
  54. package/cpp/rnskia/dom/props/PaintProps.h +5 -1
  55. package/ios/RNSkia-iOS/RNSkMetalCanvasProvider.mm +8 -7
  56. package/ios/RNSkia-iOS/RNSkiOSPlatformContext.h +2 -1
  57. package/ios/RNSkia-iOS/SkiaDrawViewManager.mm +4 -4
  58. package/ios/RNSkia-iOS/SkiaManager.mm +5 -5
  59. package/ios/RNSkia-iOS/SkiaPictureViewManager.mm +3 -3
  60. package/ios/RNSkia-iOS/SkiaUIView.mm +10 -10
  61. package/lib/commonjs/renderer/Canvas.js +2 -11
  62. package/lib/commonjs/renderer/Canvas.js.map +1 -1
  63. package/lib/commonjs/renderer/Container.js +2 -1
  64. package/lib/commonjs/renderer/Container.js.map +1 -1
  65. package/lib/commonjs/renderer/components/Mask.js +11 -25
  66. package/lib/commonjs/renderer/components/Mask.js.map +1 -1
  67. package/lib/commonjs/renderer/index.js +0 -13
  68. package/lib/commonjs/renderer/index.js.map +1 -1
  69. package/lib/module/renderer/Canvas.js +3 -10
  70. package/lib/module/renderer/Canvas.js.map +1 -1
  71. package/lib/module/renderer/Container.js +2 -1
  72. package/lib/module/renderer/Container.js.map +1 -1
  73. package/lib/module/renderer/components/Mask.js +9 -21
  74. package/lib/module/renderer/components/Mask.js.map +1 -1
  75. package/lib/module/renderer/index.js +0 -1
  76. package/lib/module/renderer/index.js.map +1 -1
  77. package/lib/typescript/src/renderer/Container.d.ts +1 -1
  78. package/lib/typescript/src/renderer/index.d.ts +0 -1
  79. package/libs/android/arm64-v8a/libskottie.a +0 -0
  80. package/libs/android/arm64-v8a/libskshaper.a +0 -0
  81. package/libs/android/armeabi-v7a/libskottie.a +0 -0
  82. package/libs/android/armeabi-v7a/libskshaper.a +0 -0
  83. package/libs/android/x86/libskottie.a +0 -0
  84. package/libs/android/x86/libskshaper.a +0 -0
  85. package/libs/android/x86_64/libskottie.a +0 -0
  86. package/libs/android/x86_64/libskshaper.a +0 -0
  87. package/libs/ios/libskia.xcframework/Info.plist +5 -5
  88. package/libs/ios/libskia.xcframework/ios-arm64_arm64e/libskia.a +0 -0
  89. package/libs/ios/libskia.xcframework/ios-arm64_arm64e_x86_64-simulator/libskia.a +0 -0
  90. package/libs/ios/libskottie.xcframework/ios-arm64_arm64e/libskottie.a +0 -0
  91. package/libs/ios/libskottie.xcframework/ios-arm64_arm64e_x86_64-simulator/libskottie.a +0 -0
  92. package/libs/ios/libsksg.xcframework/ios-arm64_arm64e/libsksg.a +0 -0
  93. package/libs/ios/libsksg.xcframework/ios-arm64_arm64e_x86_64-simulator/libsksg.a +0 -0
  94. package/libs/ios/libskshaper.xcframework/Info.plist +5 -5
  95. package/libs/ios/libskshaper.xcframework/ios-arm64_arm64e/libskshaper.a +0 -0
  96. package/libs/ios/libskshaper.xcframework/ios-arm64_arm64e_x86_64-simulator/libskshaper.a +0 -0
  97. package/libs/ios/libsvg.xcframework/ios-arm64_arm64e/libsvg.a +0 -0
  98. package/libs/ios/libsvg.xcframework/ios-arm64_arm64e_x86_64-simulator/libsvg.a +0 -0
  99. package/package.json +9 -4
  100. package/react-native-skia.podspec +2 -2
  101. package/src/renderer/Canvas.tsx +2 -12
  102. package/src/renderer/Container.tsx +1 -1
  103. package/src/renderer/components/Mask.tsx +11 -20
  104. package/src/renderer/index.ts +0 -1
  105. package/lib/commonjs/renderer/useCanvas.js +0 -32
  106. package/lib/commonjs/renderer/useCanvas.js.map +0 -1
  107. package/lib/module/renderer/useCanvas.js +0 -15
  108. package/lib/module/renderer/useCanvas.js.map +0 -1
  109. package/lib/typescript/src/renderer/useCanvas.d.ts +0 -9
  110. package/libs/android/arm64-v8a/libskparagraph.a +0 -0
  111. package/libs/android/arm64-v8a/libskunicode.a +0 -0
  112. package/libs/android/armeabi-v7a/libskparagraph.a +0 -0
  113. package/libs/android/armeabi-v7a/libskunicode.a +0 -0
  114. package/libs/android/x86/libskparagraph.a +0 -0
  115. package/libs/android/x86/libskunicode.a +0 -0
  116. package/libs/android/x86_64/libskparagraph.a +0 -0
  117. package/libs/android/x86_64/libskunicode.a +0 -0
  118. package/libs/ios/libskparagraph.xcframework/Info.plist +0 -42
  119. package/libs/ios/libskparagraph.xcframework/ios-arm64_arm64e/libskparagraph.a +0 -0
  120. package/libs/ios/libskparagraph.xcframework/ios-arm64_arm64e_x86_64-simulator/libskparagraph.a +0 -0
  121. package/libs/ios/libskunicode.xcframework/Info.plist +0 -42
  122. package/libs/ios/libskunicode.xcframework/ios-arm64_arm64e/libskunicode.a +0 -0
  123. package/libs/ios/libskunicode.xcframework/ios-arm64_arm64e_x86_64-simulator/libskunicode.a +0 -0
  124. package/src/renderer/useCanvas.ts +0 -21
@@ -9,8 +9,8 @@ set (PACKAGE_NAME "reactskia")
9
9
  set (SKIA_LIB "skia")
10
10
  set (SKIA_SVG_LIB "svg")
11
11
  set (SKIA_SKSHAPER_LIB "skshaper")
12
- set (SKIA_SKPARAGRAPH_LIB "skparagraph")
13
- set (SKIA_SKUNICODE_LIB "skunicode")
12
+ #set (SKIA_SKPARAGRAPH_LIB "skparagraph")
13
+ #set (SKIA_SKUNICODE_LIB "skunicode")
14
14
 
15
15
  set(build_DIR ${CMAKE_SOURCE_DIR}/build)
16
16
  file(GLOB LIBRN_DIR "${PREBUILT_DIR}/${ANDROID_ABI}")
@@ -72,7 +72,7 @@ target_include_directories(
72
72
  cpp/skia/include/utils/
73
73
  cpp/skia/include/pathops/
74
74
  cpp/skia/modules/
75
- cpp/skia/modules/skparagraph/include/
75
+ #cpp/skia/modules/skparagraph/include/
76
76
  cpp/skia/include/
77
77
  cpp/skia
78
78
 
@@ -103,11 +103,11 @@ set_property(TARGET svg PROPERTY IMPORTED_LOCATION "${SKIA_LIBS_PATH}/libsvg.a")
103
103
  add_library(skshaper STATIC IMPORTED)
104
104
  set_property(TARGET skshaper PROPERTY IMPORTED_LOCATION "${SKIA_LIBS_PATH}/libskshaper.a")
105
105
 
106
- add_library(skparagraph STATIC IMPORTED)
107
- set_property(TARGET skparagraph PROPERTY IMPORTED_LOCATION "${SKIA_LIBS_PATH}/libskparagraph.a")
106
+ #add_library(skparagraph STATIC IMPORTED)
107
+ #set_property(TARGET skparagraph PROPERTY IMPORTED_LOCATION "${SKIA_LIBS_PATH}/libskparagraph.a")
108
108
 
109
- add_library(skunicode STATIC IMPORTED)
110
- set_property(TARGET skunicode PROPERTY IMPORTED_LOCATION "${SKIA_LIBS_PATH}/libskunicode.a")
109
+ #add_library(skunicode STATIC IMPORTED)
110
+ #set_property(TARGET skunicode PROPERTY IMPORTED_LOCATION "${SKIA_LIBS_PATH}/libskunicode.a")
111
111
 
112
112
 
113
113
  find_library(
@@ -169,8 +169,8 @@ target_link_libraries(
169
169
  ${TURBOMODULES_LIB}
170
170
  ${SKIA_SVG_LIB}
171
171
  ${SKIA_SKSHAPER_LIB}
172
- ${SKIA_SKPARAGRAPH_LIB}
173
- ${SKIA_SKUNICODE_LIB}
172
+ #${SKIA_SKPARAGRAPH_LIB}
173
+ #${SKIA_SKUNICODE_LIB}
174
174
  ${SKIA_LIB}
175
175
  -ljnigraphics
176
176
  -lGLESv2
@@ -24,6 +24,8 @@ public:
24
24
  [this]() { notifyDrawLoop(false); });
25
25
  }
26
26
 
27
+ ~RNSkAndroidPlatformContext() { stopDrawLoop(); }
28
+
27
29
  void performStreamOperation(
28
30
  const std::string &sourceUri,
29
31
  const std::function<void(std::unique_ptr<SkStreamAsset>)> &op) override {
@@ -5,8 +5,8 @@
5
5
  #pragma clang diagnostic push
6
6
  #pragma clang diagnostic ignored "-Wdocumentation"
7
7
 
8
- #include <SkCanvas.h>
9
- #include <SkSurface.h>
8
+ #include "SkCanvas.h"
9
+ #include "SkSurface.h"
10
10
 
11
11
  #pragma clang diagnostic pop
12
12
 
@@ -6,7 +6,7 @@
6
6
 
7
7
  #include <RNSkJsView.h>
8
8
 
9
- #include <SkiaOpenGLRenderer.h>
9
+ #include "SkiaOpenGLRenderer.h"
10
10
  #include <android/native_window.h>
11
11
 
12
12
  namespace RNSkia {
@@ -39,4 +39,4 @@ private:
39
39
  float _width = -1;
40
40
  float _height = -1;
41
41
  };
42
- } // namespace RNSkia
42
+ } // namespace RNSkia
@@ -16,12 +16,12 @@
16
16
  #pragma clang diagnostic push
17
17
  #pragma clang diagnostic ignored "-Wdocumentation"
18
18
 
19
+ #include "SkCanvas.h"
20
+ #include "SkColorSpace.h"
21
+ #include "SkPicture.h"
22
+ #include "SkSurface.h"
19
23
  #include "include/gpu/GrDirectContext.h"
20
24
  #include "include/gpu/gl/GrGLInterface.h"
21
- #include <SkCanvas.h>
22
- #include <SkColorSpace.h>
23
- #include <SkPicture.h>
24
- #include <SkSurface.h>
25
25
 
26
26
  #pragma clang diagnostic pop
27
27
 
@@ -127,4 +127,4 @@ private:
127
127
 
128
128
  std::atomic<RenderState> _renderState = {RenderState::Initializing};
129
129
  };
130
- } // namespace RNSkia
130
+ } // namespace RNSkia
@@ -22,14 +22,14 @@
22
22
  #pragma clang diagnostic push
23
23
  #pragma clang diagnostic ignored "-Wdocumentation"
24
24
 
25
- #include <SkCanvas.h>
26
- #include <SkFont.h>
27
- #include <SkPaint.h>
28
- #include <SkPath.h>
29
- #include <SkPicture.h>
30
- #include <SkRegion.h>
31
- #include <SkSurface.h>
32
- #include <SkTypeface.h>
25
+ #include "SkCanvas.h"
26
+ #include "SkFont.h"
27
+ #include "SkPaint.h"
28
+ #include "SkPath.h"
29
+ #include "SkPicture.h"
30
+ #include "SkRegion.h"
31
+ #include "SkSurface.h"
32
+ #include "SkTypeface.h"
33
33
 
34
34
  #pragma clang diagnostic pop
35
35
 
@@ -12,7 +12,7 @@
12
12
  #pragma clang diagnostic push
13
13
  #pragma clang diagnostic ignored "-Wdocumentation"
14
14
 
15
- #include <SkColor.h>
15
+ #include "SkColor.h"
16
16
 
17
17
  #pragma clang diagnostic pop
18
18
 
@@ -8,7 +8,7 @@
8
8
  #pragma clang diagnostic push
9
9
  #pragma clang diagnostic ignored "-Wdocumentation"
10
10
 
11
- #include <SkColorFilter.h>
11
+ #include "SkColorFilter.h"
12
12
 
13
13
  #pragma clang diagnostic pop
14
14
 
@@ -10,8 +10,8 @@
10
10
  #pragma clang diagnostic push
11
11
  #pragma clang diagnostic ignored "-Wdocumentation"
12
12
 
13
- #include <SkColorFilter.h>
14
- #include <SkLumaColorFilter.h>
13
+ #include "SkColorFilter.h"
14
+ #include "SkLumaColorFilter.h"
15
15
 
16
16
  #pragma clang diagnostic pop
17
17
 
@@ -10,7 +10,7 @@
10
10
  #pragma clang diagnostic push
11
11
  #pragma clang diagnostic ignored "-Wdocumentation"
12
12
 
13
- #include <SkContourMeasure.h>
13
+ #include "SkContourMeasure.h"
14
14
 
15
15
  #include "JsiSkPath.h"
16
16
 
@@ -9,7 +9,7 @@
9
9
  #pragma clang diagnostic push
10
10
  #pragma clang diagnostic ignored "-Wdocumentation"
11
11
 
12
- #include <SkContourMeasure.h>
12
+ #include "SkContourMeasure.h"
13
13
 
14
14
  #include "JsiSkPath.h"
15
15
 
@@ -80,4 +80,4 @@ public:
80
80
  };
81
81
  }
82
82
  };
83
- } // namespace RNSkia
83
+ } // namespace RNSkia
@@ -10,8 +10,8 @@
10
10
  #pragma clang diagnostic push
11
11
  #pragma clang diagnostic ignored "-Wdocumentation"
12
12
 
13
- #include <SkFont.h>
14
- #include <SkStream.h>
13
+ #include "SkFont.h"
14
+ #include "SkStream.h"
15
15
 
16
16
  #pragma clang diagnostic pop
17
17
 
@@ -6,7 +6,7 @@
6
6
  #include <ReactCommon/TurboModuleUtils.h>
7
7
  #include <jsi/jsi.h>
8
8
 
9
- #include <SkBase64.h>
9
+ #include "SkBase64.h"
10
10
 
11
11
  #include "JsiSkData.h"
12
12
 
@@ -17,8 +17,8 @@
17
17
  #pragma clang diagnostic push
18
18
  #pragma clang diagnostic ignored "-Wdocumentation"
19
19
 
20
- #include <SkFont.h>
21
- #include <SkFontMetrics.h>
20
+ #include "SkFont.h"
21
+ #include "SkFontMetrics.h"
22
22
 
23
23
  #pragma clang diagnostic pop
24
24
 
@@ -11,9 +11,9 @@
11
11
  #pragma clang diagnostic push
12
12
  #pragma clang diagnostic ignored "-Wdocumentation"
13
13
 
14
- #include <SkBase64.h>
15
- #include <SkImage.h>
16
- #include <SkStream.h>
14
+ #include "SkBase64.h"
15
+ #include "SkImage.h"
16
+ #include "SkStream.h"
17
17
  #include <include/codec/SkCodec.h>
18
18
 
19
19
  #pragma clang diagnostic pop
@@ -10,7 +10,7 @@
10
10
  #pragma clang diagnostic push
11
11
  #pragma clang diagnostic ignored "-Wdocumentation"
12
12
 
13
- #include <SkImageFilters.h>
13
+ #include "SkImageFilters.h"
14
14
 
15
15
  #pragma clang diagnostic pop
16
16
 
@@ -12,7 +12,7 @@
12
12
  #pragma clang diagnostic push
13
13
  #pragma clang diagnostic ignored "-Wdocumentation"
14
14
 
15
- #include <SkImageFilter.h>
15
+ #include "SkImageFilter.h"
16
16
 
17
17
  #pragma clang diagnostic pop
18
18
 
@@ -10,7 +10,7 @@
10
10
  #pragma clang diagnostic push
11
11
  #pragma clang diagnostic ignored "-Wdocumentation"
12
12
 
13
- #include <SkImageInfo.h>
13
+ #include "SkImageInfo.h"
14
14
 
15
15
  #pragma clang diagnostic pop
16
16
 
@@ -10,7 +10,7 @@
10
10
  #pragma clang diagnostic push
11
11
  #pragma clang diagnostic ignored "-Wdocumentation"
12
12
 
13
- #include <SkMaskFilter.h>
13
+ #include "SkMaskFilter.h"
14
14
 
15
15
  #pragma clang diagnostic pop
16
16
 
@@ -11,7 +11,7 @@
11
11
  #pragma clang diagnostic push
12
12
  #pragma clang diagnostic ignored "-Wdocumentation"
13
13
 
14
- #include <SkMaskFilter.h>
14
+ #include "SkMaskFilter.h"
15
15
 
16
16
  #pragma clang diagnostic pop
17
17
 
@@ -10,7 +10,7 @@
10
10
  #pragma clang diagnostic push
11
11
  #pragma clang diagnostic ignored "-Wdocumentation"
12
12
 
13
- #include <SkMatrix.h>
13
+ #include "SkMatrix.h"
14
14
 
15
15
  #pragma clang diagnostic pop
16
16
 
@@ -16,7 +16,7 @@
16
16
  #pragma clang diagnostic push
17
17
  #pragma clang diagnostic ignored "-Wdocumentation"
18
18
 
19
- #include <SkPaint.h>
19
+ #include "SkPaint.h"
20
20
 
21
21
  #pragma clang diagnostic pop
22
22
 
@@ -14,16 +14,16 @@
14
14
  #pragma clang diagnostic push
15
15
  #pragma clang diagnostic ignored "-Wdocumentation"
16
16
 
17
- #include <SkDashPathEffect.h>
18
- #include <SkParsePath.h>
19
- #include <SkPath.h>
20
- #include <SkPathEffect.h>
21
- #include <SkPathOps.h>
22
- #include <SkPathTypes.h>
23
- #include <SkString.h>
24
- #include <SkStrokeRec.h>
25
- #include <SkTextUtils.h>
26
- #include <SkTrimPathEffect.h>
17
+ #include "SkDashPathEffect.h"
18
+ #include "SkParsePath.h"
19
+ #include "SkPath.h"
20
+ #include "SkPathEffect.h"
21
+ #include "SkPathOps.h"
22
+ #include "SkPathTypes.h"
23
+ #include "SkString.h"
24
+ #include "SkStrokeRec.h"
25
+ #include "SkTextUtils.h"
26
+ #include "SkTrimPathEffect.h"
27
27
 
28
28
  #include "JsiSkMatrix.h"
29
29
 
@@ -42,7 +42,7 @@ public:
42
42
  }
43
43
 
44
44
  JSI_HOST_FUNCTION(addArc) {
45
- auto rect = JsiSkRect::fromValue(runtime, arguments[0]).get();
45
+ auto rect = JsiSkRect::fromValue(runtime, arguments[0]);
46
46
  auto start = arguments[1].asNumber();
47
47
  auto sweep = arguments[2].asNumber();
48
48
  getObject()->addArc(*rect, start, sweep);
@@ -50,7 +50,7 @@ public:
50
50
  }
51
51
 
52
52
  JSI_HOST_FUNCTION(addOval) {
53
- auto rect = JsiSkRect::fromValue(runtime, arguments[0]).get();
53
+ auto rect = JsiSkRect::fromValue(runtime, arguments[0]);
54
54
  auto direction = SkPathDirection::kCW;
55
55
  if (count >= 2 && arguments[1].getBool()) {
56
56
  direction = SkPathDirection::kCCW;
@@ -76,7 +76,7 @@ public:
76
76
  }
77
77
 
78
78
  JSI_HOST_FUNCTION(addRect) {
79
- auto rect = JsiSkRect::fromValue(runtime, arguments[0]).get();
79
+ auto rect = JsiSkRect::fromValue(runtime, arguments[0]);
80
80
  auto direction = SkPathDirection::kCW;
81
81
  if (count >= 2 && arguments[1].getBool()) {
82
82
  direction = SkPathDirection::kCCW;
@@ -86,7 +86,7 @@ public:
86
86
  }
87
87
 
88
88
  JSI_HOST_FUNCTION(addRRect) {
89
- auto rrect = JsiSkRRect::fromValue(runtime, arguments[0]).get();
89
+ auto rrect = JsiSkRRect::fromValue(runtime, arguments[0]);
90
90
  auto direction = SkPathDirection::kCW;
91
91
  if (count >= 2 && arguments[1].getBool()) {
92
92
  direction = SkPathDirection::kCCW;
@@ -96,7 +96,7 @@ public:
96
96
  }
97
97
 
98
98
  JSI_HOST_FUNCTION(arcToOval) {
99
- auto rect = JsiSkRect::fromValue(runtime, arguments[0]).get();
99
+ auto rect = JsiSkRect::fromValue(runtime, arguments[0]);
100
100
  auto start = arguments[1].asNumber();
101
101
  auto sweep = arguments[2].asNumber();
102
102
  auto forceMoveTo = arguments[3].getBool();
@@ -10,7 +10,7 @@
10
10
  #pragma clang diagnostic push
11
11
  #pragma clang diagnostic ignored "-Wdocumentation"
12
12
 
13
- #include <SkPathEffect.h>
13
+ #include "SkPathEffect.h"
14
14
 
15
15
  #pragma clang diagnostic pop
16
16
 
@@ -12,12 +12,12 @@
12
12
  #pragma clang diagnostic push
13
13
  #pragma clang diagnostic ignored "-Wdocumentation"
14
14
 
15
+ #include "SkCornerPathEffect.h"
16
+ #include "SkDashPathEffect.h"
17
+ #include "SkDiscretePathEffect.h"
18
+ #include "SkPathEffect.h"
15
19
  #include "include/effects/Sk1DPathEffect.h"
16
20
  #include "include/effects/Sk2DPathEffect.h"
17
- #include <SkCornerPathEffect.h>
18
- #include <SkDashPathEffect.h>
19
- #include <SkDiscretePathEffect.h>
20
- #include <SkPathEffect.h>
21
21
 
22
22
  #pragma clang diagnostic pop
23
23
 
@@ -11,9 +11,9 @@
11
11
  #pragma clang diagnostic push
12
12
  #pragma clang diagnostic ignored "-Wdocumentation"
13
13
 
14
+ #include "SkPath.h"
15
+ #include "SkPathOps.h"
14
16
  #include <RNSkLog.h>
15
- #include <SkPath.h>
16
- #include <SkPathOps.h>
17
17
 
18
18
  #pragma clang diagnostic pop
19
19
 
@@ -9,7 +9,7 @@
9
9
  #pragma clang diagnostic push
10
10
  #pragma clang diagnostic ignored "-Wdocumentation"
11
11
 
12
- #include <SkPicture.h>
12
+ #include "SkPicture.h"
13
13
 
14
14
  #pragma clang diagnostic pop
15
15
 
@@ -10,8 +10,8 @@
10
10
  #pragma clang diagnostic push
11
11
  #pragma clang diagnostic ignored "-Wdocumentation"
12
12
 
13
- #include <SkData.h>
14
- #include <SkPicture.h>
13
+ #include "SkData.h"
14
+ #include "SkPicture.h"
15
15
 
16
16
  #pragma clang diagnostic pop
17
17
 
@@ -10,8 +10,8 @@
10
10
  #pragma clang diagnostic push
11
11
  #pragma clang diagnostic ignored "-Wdocumentation"
12
12
 
13
- #include <SkBBHFactory.h>
14
- #include <SkPictureRecorder.h>
13
+ #include "SkBBHFactory.h"
14
+ #include "SkPictureRecorder.h"
15
15
 
16
16
  #pragma clang diagnostic pop
17
17
 
@@ -10,7 +10,7 @@
10
10
  #pragma clang diagnostic push
11
11
  #pragma clang diagnostic ignored "-Wdocumentation"
12
12
 
13
- #include <SkPoint.h>
13
+ #include "SkPoint.h"
14
14
 
15
15
  #pragma clang diagnostic pop
16
16
 
@@ -10,7 +10,7 @@
10
10
  #pragma clang diagnostic push
11
11
  #pragma clang diagnostic ignored "-Wdocumentation"
12
12
 
13
- #include <SkRRect.h>
13
+ #include "SkRRect.h"
14
14
 
15
15
  #include "JsiSkRect.h"
16
16
 
@@ -10,7 +10,7 @@
10
10
  #pragma clang diagnostic push
11
11
  #pragma clang diagnostic ignored "-Wdocumentation"
12
12
 
13
- #include <SkRSXform.h>
13
+ #include "SkRSXform.h"
14
14
 
15
15
  #pragma clang diagnostic pop
16
16
 
@@ -10,7 +10,7 @@
10
10
  #pragma clang diagnostic push
11
11
  #pragma clang diagnostic ignored "-Wdocumentation"
12
12
 
13
- #include <SkRect.h>
13
+ #include "SkRect.h"
14
14
 
15
15
  #pragma clang diagnostic pop
16
16
 
@@ -14,7 +14,7 @@
14
14
  #pragma clang diagnostic push
15
15
  #pragma clang diagnostic ignored "-Wdocumentation"
16
16
 
17
- #include <SkRuntimeEffect.h>
17
+ #include "SkRuntimeEffect.h"
18
18
 
19
19
  #pragma clang diagnostic pop
20
20
 
@@ -12,7 +12,7 @@
12
12
  #pragma clang diagnostic ignored "-Wdocumentation"
13
13
 
14
14
  #include "JsiSkRuntimeEffect.h"
15
- #include <SkRuntimeEffect.h>
15
+ #include "SkRuntimeEffect.h"
16
16
 
17
17
  #pragma clang diagnostic pop
18
18
 
@@ -13,7 +13,7 @@
13
13
  #pragma clang diagnostic push
14
14
  #pragma clang diagnostic ignored "-Wdocumentation"
15
15
 
16
- #include <SkStream.h>
16
+ #include "SkStream.h"
17
17
 
18
18
  #pragma clang diagnostic pop
19
19
 
@@ -10,8 +10,8 @@
10
10
  #pragma clang diagnostic push
11
11
  #pragma clang diagnostic ignored "-Wdocumentation"
12
12
 
13
- #include <SkGradientShader.h>
14
- #include <SkShader.h>
13
+ #include "SkGradientShader.h"
14
+ #include "SkShader.h"
15
15
 
16
16
  #pragma clang diagnostic pop
17
17
 
@@ -12,9 +12,9 @@
12
12
  #pragma clang diagnostic push
13
13
  #pragma clang diagnostic ignored "-Wdocumentation"
14
14
 
15
- #include <SkColorFilter.h>
16
- #include <SkImageFilters.h>
17
- #include <SkPerlinNoiseShader.h>
15
+ #include "SkColorFilter.h"
16
+ #include "SkImageFilters.h"
17
+ #include "SkPerlinNoiseShader.h"
18
18
 
19
19
  #pragma clang diagnostic pop
20
20
 
@@ -14,7 +14,7 @@
14
14
  #pragma clang diagnostic push
15
15
  #pragma clang diagnostic ignored "-Wdocumentation"
16
16
 
17
- #include <SkSurface.h>
17
+ #include "SkSurface.h"
18
18
 
19
19
  #pragma clang diagnostic pop
20
20
 
@@ -12,8 +12,8 @@
12
12
  #pragma clang diagnostic push
13
13
  #pragma clang diagnostic ignored "-Wdocumentation"
14
14
 
15
- #include <SkImage.h>
16
- #include <SkSurface.h>
15
+ #include "SkImage.h"
16
+ #include "SkSurface.h"
17
17
 
18
18
  #pragma clang diagnostic pop
19
19
 
@@ -10,7 +10,7 @@
10
10
  #pragma clang diagnostic push
11
11
  #pragma clang diagnostic ignored "-Wdocumentation"
12
12
 
13
- #include <SkTextBlob.h>
13
+ #include "SkTextBlob.h"
14
14
 
15
15
  #pragma clang diagnostic pop
16
16
 
@@ -14,7 +14,7 @@
14
14
  #pragma clang diagnostic push
15
15
  #pragma clang diagnostic ignored "-Wdocumentation"
16
16
 
17
- #include <SkTextBlob.h>
17
+ #include "SkTextBlob.h"
18
18
 
19
19
  #pragma clang diagnostic pop
20
20
 
@@ -11,8 +11,8 @@
11
11
  #pragma clang diagnostic push
12
12
  #pragma clang diagnostic ignored "-Wdocumentation"
13
13
 
14
- #include <SkFont.h>
15
- #include <SkTypeface.h>
14
+ #include "SkFont.h"
15
+ #include "SkTypeface.h"
16
16
 
17
17
  #pragma clang diagnostic pop
18
18
 
@@ -10,7 +10,7 @@
10
10
  #pragma clang diagnostic push
11
11
  #pragma clang diagnostic ignored "-Wdocumentation"
12
12
 
13
- #include <SkVertices.h>
13
+ #include "SkVertices.h"
14
14
 
15
15
  #pragma clang diagnostic pop
16
16
 
@@ -86,8 +86,7 @@ void RNSkDomRenderer::renderCanvas(SkCanvas *canvas, float scaledWidth,
86
86
  if (_drawingContext == nullptr) {
87
87
  auto paint = std::make_shared<SkPaint>();
88
88
  paint->setAntiAlias(true);
89
- _drawingContext =
90
- std::make_shared<DrawingContext>(paint, 1.0f);
89
+ _drawingContext = std::make_shared<DrawingContext>(paint, 1.0f);
91
90
 
92
91
  _drawingContext->setRequestRedraw([weakSelf = weak_from_this()]() {
93
92
  auto self = weakSelf.lock();
@@ -21,9 +21,9 @@
21
21
  #pragma clang diagnostic push
22
22
  #pragma clang diagnostic ignored "-Wdocumentation"
23
23
 
24
- #include <SkBBHFactory.h>
25
- #include <SkCanvas.h>
26
- #include <SkPictureRecorder.h>
24
+ #include "SkBBHFactory.h"
25
+ #include "SkCanvas.h"
26
+ #include "SkPictureRecorder.h"
27
27
 
28
28
  #pragma clang diagnostic pop
29
29