@shopify/react-native-skia 2.0.0-next.1 → 2.0.0-next.3

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 (329) hide show
  1. package/android/build.gradle +25 -11
  2. package/android/cpp/jni/JniPlatformContext.cpp +1 -0
  3. package/{ios/RNSkia-iOS → apple}/MetalContext.h +0 -5
  4. package/{ios/RNSkia-iOS → apple}/MetalWindowContext.mm +4 -0
  5. package/{ios/RNSkia-iOS/RNSkiOSPlatformContext.h → apple/RNSkApplePlatformContext.h} +7 -3
  6. package/{ios/RNSkia-iOS/RNSkiOSPlatformContext.mm → apple/RNSkApplePlatformContext.mm} +19 -19
  7. package/{ios/RNSkia-iOS/RNSkiOSVideo.h → apple/RNSkAppleVideo.h} +3 -3
  8. package/{ios/RNSkia-iOS/RNSkiOSVideo.mm → apple/RNSkAppleVideo.mm} +14 -14
  9. package/{ios/RNSkia-iOS/RNSkiOSView.h → apple/RNSkAppleView.h} +4 -4
  10. package/{ios/RNSkia-iOS/RNSkiOSView.mm → apple/RNSkAppleView.mm} +4 -4
  11. package/{ios/RNSkia-iOS → apple}/RNSkMetalCanvasProvider.mm +6 -1
  12. package/{ios/RNSkia-iOS → apple}/SkiaManager.mm +2 -2
  13. package/{ios/RNSkia-iOS → apple}/SkiaPictureView.mm +2 -2
  14. package/{ios/RNSkia-iOS → apple}/SkiaPictureViewManager.mm +6 -2
  15. package/{ios/RNSkia-iOS → apple}/SkiaUIView.h +12 -4
  16. package/{ios/RNSkia-iOS → apple}/SkiaUIView.mm +11 -7
  17. package/{ios/RNSkia-iOS → apple}/ViewScreenshotService.h +4 -0
  18. package/{ios/RNSkia-iOS → apple}/ViewScreenshotService.mm +4 -0
  19. package/cpp/api/JsiSkCanvas.h +45 -2
  20. package/cpp/api/JsiSkContourMeasure.h +1 -1
  21. package/cpp/api/JsiSkHostObjects.h +21 -10
  22. package/cpp/api/JsiSkParagraph.h +17 -27
  23. package/cpp/api/JsiSkPathEffect.h +1 -1
  24. package/cpp/api/JsiSkPictureFactory.h +1 -1
  25. package/cpp/api/JsiSkShaderFactory.h +43 -8
  26. package/cpp/api/JsiSkVertices.h +14 -3
  27. package/cpp/api/recorder/Drawings.h +35 -5
  28. package/cpp/api/recorder/Shaders.h +40 -0
  29. package/cpp/rnskia/DawnContext.h +1 -1
  30. package/cpp/skia/include/codec/SkCodec.h +7 -2
  31. package/cpp/skia/include/config/SkUserConfig.h +11 -0
  32. package/cpp/skia/include/core/SkCanvas.h +11 -7
  33. package/cpp/skia/include/core/SkColor.h +10 -0
  34. package/cpp/skia/include/core/SkColorSpace.h +184 -2
  35. package/cpp/skia/include/core/SkColorType.h +114 -32
  36. package/cpp/skia/include/core/SkFontScanner.h +5 -8
  37. package/cpp/skia/include/core/SkFontStyle.h +1 -1
  38. package/cpp/skia/include/core/SkMaskFilter.h +0 -8
  39. package/cpp/skia/include/core/SkMilestone.h +1 -1
  40. package/cpp/skia/include/core/SkPath.h +1 -1
  41. package/cpp/skia/include/core/SkRRect.h +3 -1
  42. package/cpp/skia/include/core/SkShader.h +3 -3
  43. package/cpp/skia/include/core/SkString.h +8 -8
  44. package/cpp/skia/include/core/SkSurface.h +14 -0
  45. package/cpp/skia/include/core/SkTypeface.h +24 -7
  46. package/cpp/skia/include/effects/SkGradientShader.h +6 -1
  47. package/cpp/skia/include/effects/SkRuntimeEffect.h +1 -0
  48. package/cpp/skia/include/encode/SkPngEncoder.h +14 -0
  49. package/cpp/skia/include/gpu/GpuTypes.h +9 -0
  50. package/cpp/skia/include/gpu/ganesh/GrContextOptions.h +135 -133
  51. package/cpp/skia/include/gpu/ganesh/GrDirectContext.h +5 -0
  52. package/cpp/skia/include/gpu/ganesh/GrDriverBugWorkarounds.h +3 -3
  53. package/cpp/skia/include/gpu/ganesh/GrTypes.h +14 -9
  54. package/cpp/skia/include/gpu/graphite/Context.h +25 -2
  55. package/cpp/skia/include/gpu/graphite/ContextOptions.h +23 -5
  56. package/cpp/skia/include/gpu/graphite/GraphiteTypes.h +20 -1
  57. package/cpp/skia/include/gpu/graphite/Image.h +1 -0
  58. package/cpp/skia/include/gpu/graphite/LogPriority.h +36 -0
  59. package/cpp/skia/include/gpu/graphite/PrecompileContext.h +52 -0
  60. package/cpp/skia/include/gpu/graphite/Recorder.h +6 -0
  61. package/cpp/skia/include/gpu/graphite/Recording.h +3 -1
  62. package/cpp/skia/include/gpu/graphite/mtl/MtlGraphiteTypes.h +4 -36
  63. package/cpp/skia/include/gpu/graphite/mtl/MtlGraphiteTypesUtils.h +48 -0
  64. package/cpp/skia/include/gpu/graphite/precompile/Precompile.h +3 -2
  65. package/cpp/skia/include/pathops/SkPathOps.h +9 -1
  66. package/cpp/skia/include/ports/SkFontMgr_FontConfigInterface.h +3 -0
  67. package/cpp/skia/include/private/SkPathRef.h +15 -21
  68. package/cpp/skia/include/private/base/SkAttributes.h +16 -10
  69. package/cpp/skia/include/private/base/SkMutex.h +8 -0
  70. package/cpp/skia/include/private/base/SkTArray.h +1 -1
  71. package/cpp/skia/include/private/base/SkTDArray.h +1 -1
  72. package/cpp/skia/include/private/base/SkTemplates.h +24 -11
  73. package/cpp/skia/include/private/gpu/ganesh/GrTypesPriv.h +1 -1
  74. package/cpp/skia/include/sksl/SkSLDebugTrace.h +0 -3
  75. package/cpp/skia/modules/skcms/src/Transform_inl.h +20 -20
  76. package/cpp/skia/modules/skcms/src/skcms_Transform.h +4 -3
  77. package/cpp/skia/modules/skcms/src/skcms_public.h +19 -15
  78. package/cpp/skia/modules/skresources/include/SkResources.h +3 -1
  79. package/cpp/skia/modules/svg/include/SkSVGCircle.h +1 -1
  80. package/cpp/skia/modules/svg/include/SkSVGContainer.h +1 -1
  81. package/cpp/skia/modules/svg/include/SkSVGFeLightSource.h +1 -1
  82. package/cpp/skia/modules/svg/include/SkSVGImage.h +2 -2
  83. package/cpp/skia/modules/svg/include/SkSVGPath.h +1 -1
  84. package/cpp/skia/modules/svg/include/SkSVGPoly.h +1 -1
  85. package/cpp/skia/modules/svg/include/SkSVGRect.h +1 -1
  86. package/cpp/skia/modules/svg/include/SkSVGRenderContext.h +2 -0
  87. package/cpp/skia/modules/svg/include/SkSVGShape.h +1 -0
  88. package/cpp/skia/modules/svg/include/SkSVGText.h +1 -1
  89. package/cpp/skia/modules/svg/include/SkSVGTransformableNode.h +4 -0
  90. package/cpp/skia/modules/svg/include/SkSVGUse.h +1 -1
  91. package/cpp/skia/src/core/SkLRUCache.h +19 -13
  92. package/cpp/skia/src/core/SkTHash.h +50 -4
  93. package/cpp/skia/src/gpu/ganesh/gl/GrGLDefines.h +1 -0
  94. package/lib/commonjs/__tests__/setup.d.ts +18 -0
  95. package/lib/commonjs/external/reanimated/useAnimatedImageValue.js +4 -3
  96. package/lib/commonjs/external/reanimated/useAnimatedImageValue.js.map +1 -1
  97. package/lib/commonjs/headless/index.d.ts +1 -0
  98. package/lib/commonjs/headless/index.js +12 -0
  99. package/lib/commonjs/headless/index.js.map +1 -1
  100. package/lib/commonjs/mock/index.js +1 -2
  101. package/lib/commonjs/mock/index.js.map +1 -1
  102. package/lib/commonjs/renderer/Canvas.d.ts +1 -2
  103. package/lib/commonjs/renderer/Canvas.js +3 -1
  104. package/lib/commonjs/renderer/Canvas.js.map +1 -1
  105. package/lib/commonjs/skia/web/Host.d.ts +4 -6
  106. package/lib/commonjs/skia/web/Host.js +23 -10
  107. package/lib/commonjs/skia/web/Host.js.map +1 -1
  108. package/lib/commonjs/skia/web/JsiSkCanvas.js +15 -15
  109. package/lib/commonjs/skia/web/JsiSkCanvas.js.map +1 -1
  110. package/lib/commonjs/skia/web/JsiSkColorFilterFactory.js +1 -1
  111. package/lib/commonjs/skia/web/JsiSkColorFilterFactory.js.map +1 -1
  112. package/lib/commonjs/skia/web/JsiSkFont.js +3 -3
  113. package/lib/commonjs/skia/web/JsiSkFont.js.map +1 -1
  114. package/lib/commonjs/skia/web/JsiSkFontMgr.js +1 -1
  115. package/lib/commonjs/skia/web/JsiSkFontMgr.js.map +1 -1
  116. package/lib/commonjs/skia/web/JsiSkImage.js +6 -6
  117. package/lib/commonjs/skia/web/JsiSkImage.js.map +1 -1
  118. package/lib/commonjs/skia/web/JsiSkImageFactory.js +3 -3
  119. package/lib/commonjs/skia/web/JsiSkImageFactory.js.map +1 -1
  120. package/lib/commonjs/skia/web/JsiSkImageFilterFactory.js +9 -9
  121. package/lib/commonjs/skia/web/JsiSkImageFilterFactory.js.map +1 -1
  122. package/lib/commonjs/skia/web/JsiSkMaskFilterFactory.js +1 -1
  123. package/lib/commonjs/skia/web/JsiSkMaskFilterFactory.js.map +1 -1
  124. package/lib/commonjs/skia/web/JsiSkPaint.js +3 -3
  125. package/lib/commonjs/skia/web/JsiSkPaint.js.map +1 -1
  126. package/lib/commonjs/skia/web/JsiSkPath.js +4 -4
  127. package/lib/commonjs/skia/web/JsiSkPath.js.map +1 -1
  128. package/lib/commonjs/skia/web/JsiSkPathEffectFactory.js +3 -3
  129. package/lib/commonjs/skia/web/JsiSkPathEffectFactory.js.map +1 -1
  130. package/lib/commonjs/skia/web/JsiSkPathFactory.d.ts +1 -1
  131. package/lib/commonjs/skia/web/JsiSkPathFactory.js +2 -2
  132. package/lib/commonjs/skia/web/JsiSkPathFactory.js.map +1 -1
  133. package/lib/commonjs/skia/web/JsiSkPicture.js +1 -1
  134. package/lib/commonjs/skia/web/JsiSkPicture.js.map +1 -1
  135. package/lib/commonjs/skia/web/JsiSkShaderFactory.js +5 -5
  136. package/lib/commonjs/skia/web/JsiSkShaderFactory.js.map +1 -1
  137. package/lib/commonjs/skia/web/JsiSkTypefaceFontProvider.js +1 -1
  138. package/lib/commonjs/skia/web/JsiSkTypefaceFontProvider.js.map +1 -1
  139. package/lib/commonjs/skia/web/JsiSkVerticesFactory.js +1 -1
  140. package/lib/commonjs/skia/web/JsiSkVerticesFactory.js.map +1 -1
  141. package/lib/commonjs/skia/web/JsiSkia.js +4 -3
  142. package/lib/commonjs/skia/web/JsiSkia.js.map +1 -1
  143. package/lib/commonjs/skia/web/JsiVideo.js +2 -1
  144. package/lib/commonjs/skia/web/JsiVideo.js.map +1 -1
  145. package/lib/commonjs/sksg/HostConfig.js +3 -1
  146. package/lib/commonjs/sksg/HostConfig.js.map +1 -1
  147. package/lib/commonjs/sksg/Recorder/Core.d.ts +1 -5
  148. package/lib/commonjs/sksg/Recorder/Core.js +12 -4
  149. package/lib/commonjs/sksg/Recorder/Core.js.map +1 -1
  150. package/lib/commonjs/sksg/Recorder/Player.d.ts +1 -1
  151. package/lib/commonjs/sksg/Recorder/Player.js +4 -5
  152. package/lib/commonjs/sksg/Recorder/Player.js.map +1 -1
  153. package/lib/commonjs/sksg/Recorder/commands/Box.js +4 -6
  154. package/lib/commonjs/sksg/Recorder/commands/Box.js.map +1 -1
  155. package/lib/commonjs/sksg/Recorder/commands/Drawing.d.ts +1 -3
  156. package/lib/commonjs/sksg/Recorder/commands/Drawing.js +1 -58
  157. package/lib/commonjs/sksg/Recorder/commands/Drawing.js.map +1 -1
  158. package/lib/commonjs/specs/NativeSkiaModule.web.d.ts +2 -0
  159. package/lib/commonjs/specs/NativeSkiaModule.web.js +10 -1
  160. package/lib/commonjs/specs/NativeSkiaModule.web.js.map +1 -1
  161. package/lib/module/__tests__/setup.d.ts +18 -0
  162. package/lib/module/external/reanimated/useAnimatedImageValue.js +4 -3
  163. package/lib/module/external/reanimated/useAnimatedImageValue.js.map +1 -1
  164. package/lib/module/headless/index.d.ts +1 -0
  165. package/lib/module/headless/index.js +1 -0
  166. package/lib/module/headless/index.js.map +1 -1
  167. package/lib/module/mock/index.js +1 -2
  168. package/lib/module/mock/index.js.map +1 -1
  169. package/lib/module/renderer/Canvas.d.ts +1 -2
  170. package/lib/module/renderer/Canvas.js +3 -1
  171. package/lib/module/renderer/Canvas.js.map +1 -1
  172. package/lib/module/skia/web/Host.d.ts +4 -6
  173. package/lib/module/skia/web/Host.js +21 -8
  174. package/lib/module/skia/web/Host.js.map +1 -1
  175. package/lib/module/skia/web/JsiSkCanvas.js +15 -15
  176. package/lib/module/skia/web/JsiSkCanvas.js.map +1 -1
  177. package/lib/module/skia/web/JsiSkColorFilterFactory.js +1 -1
  178. package/lib/module/skia/web/JsiSkColorFilterFactory.js.map +1 -1
  179. package/lib/module/skia/web/JsiSkFont.js +4 -4
  180. package/lib/module/skia/web/JsiSkFont.js.map +1 -1
  181. package/lib/module/skia/web/JsiSkFontMgr.js +2 -2
  182. package/lib/module/skia/web/JsiSkFontMgr.js.map +1 -1
  183. package/lib/module/skia/web/JsiSkImage.js +6 -6
  184. package/lib/module/skia/web/JsiSkImage.js.map +1 -1
  185. package/lib/module/skia/web/JsiSkImageFactory.js +4 -4
  186. package/lib/module/skia/web/JsiSkImageFactory.js.map +1 -1
  187. package/lib/module/skia/web/JsiSkImageFilterFactory.js +10 -10
  188. package/lib/module/skia/web/JsiSkImageFilterFactory.js.map +1 -1
  189. package/lib/module/skia/web/JsiSkMaskFilterFactory.js +1 -1
  190. package/lib/module/skia/web/JsiSkMaskFilterFactory.js.map +1 -1
  191. package/lib/module/skia/web/JsiSkPaint.js +3 -3
  192. package/lib/module/skia/web/JsiSkPaint.js.map +1 -1
  193. package/lib/module/skia/web/JsiSkPath.js +4 -4
  194. package/lib/module/skia/web/JsiSkPath.js.map +1 -1
  195. package/lib/module/skia/web/JsiSkPathEffectFactory.js +4 -4
  196. package/lib/module/skia/web/JsiSkPathEffectFactory.js.map +1 -1
  197. package/lib/module/skia/web/JsiSkPathFactory.d.ts +1 -1
  198. package/lib/module/skia/web/JsiSkPathFactory.js +3 -3
  199. package/lib/module/skia/web/JsiSkPathFactory.js.map +1 -1
  200. package/lib/module/skia/web/JsiSkPicture.js +1 -1
  201. package/lib/module/skia/web/JsiSkPicture.js.map +1 -1
  202. package/lib/module/skia/web/JsiSkShaderFactory.js +5 -5
  203. package/lib/module/skia/web/JsiSkShaderFactory.js.map +1 -1
  204. package/lib/module/skia/web/JsiSkTypefaceFontProvider.js +2 -2
  205. package/lib/module/skia/web/JsiSkTypefaceFontProvider.js.map +1 -1
  206. package/lib/module/skia/web/JsiSkVerticesFactory.js +1 -1
  207. package/lib/module/skia/web/JsiSkVerticesFactory.js.map +1 -1
  208. package/lib/module/skia/web/JsiSkia.js +4 -3
  209. package/lib/module/skia/web/JsiSkia.js.map +1 -1
  210. package/lib/module/skia/web/JsiVideo.js +2 -1
  211. package/lib/module/skia/web/JsiVideo.js.map +1 -1
  212. package/lib/module/sksg/HostConfig.js +3 -1
  213. package/lib/module/sksg/HostConfig.js.map +1 -1
  214. package/lib/module/sksg/Recorder/Core.d.ts +1 -5
  215. package/lib/module/sksg/Recorder/Core.js +10 -2
  216. package/lib/module/sksg/Recorder/Core.js.map +1 -1
  217. package/lib/module/sksg/Recorder/Player.d.ts +1 -1
  218. package/lib/module/sksg/Recorder/Player.js +5 -6
  219. package/lib/module/sksg/Recorder/Player.js.map +1 -1
  220. package/lib/module/sksg/Recorder/commands/Box.js +5 -7
  221. package/lib/module/sksg/Recorder/commands/Box.js.map +1 -1
  222. package/lib/module/sksg/Recorder/commands/Drawing.d.ts +1 -3
  223. package/lib/module/sksg/Recorder/commands/Drawing.js +2 -58
  224. package/lib/module/sksg/Recorder/commands/Drawing.js.map +1 -1
  225. package/lib/module/specs/NativeSkiaModule.web.d.ts +2 -0
  226. package/lib/module/specs/NativeSkiaModule.web.js +10 -1
  227. package/lib/module/specs/NativeSkiaModule.web.js.map +1 -1
  228. package/lib/typescript/lib/commonjs/mock/index.d.ts +2 -2
  229. package/lib/typescript/lib/commonjs/skia/index.d.ts +1 -1
  230. package/lib/typescript/lib/commonjs/skia/web/Host.d.ts +3 -5
  231. package/lib/typescript/lib/commonjs/skia/web/JsiSkFont.d.ts +1 -1
  232. package/lib/typescript/lib/commonjs/skia/web/JsiSkFontMgr.d.ts +1 -1
  233. package/lib/typescript/lib/commonjs/skia/web/JsiSkImageFactory.d.ts +1 -1
  234. package/lib/typescript/lib/commonjs/skia/web/JsiSkImageFilterFactory.d.ts +1 -1
  235. package/lib/typescript/lib/commonjs/skia/web/JsiSkPathEffectFactory.d.ts +2 -2
  236. package/lib/typescript/lib/commonjs/skia/web/JsiSkPathFactory.d.ts +1 -1
  237. package/lib/typescript/lib/commonjs/skia/web/JsiSkTypefaceFontProvider.d.ts +1 -1
  238. package/lib/typescript/lib/commonjs/skia/web/JsiSkia.d.ts +3 -3
  239. package/lib/typescript/lib/commonjs/skia/web/JsiVideo.d.ts +1 -1
  240. package/lib/typescript/lib/commonjs/sksg/Recorder/Core.d.ts +1 -1
  241. package/lib/typescript/lib/commonjs/sksg/Recorder/commands/Drawing.d.ts +0 -1
  242. package/lib/typescript/lib/module/headless/index.d.ts +1 -0
  243. package/lib/typescript/lib/module/mock/index.d.ts +5 -5
  244. package/lib/typescript/lib/module/skia/Skia.d.ts +1 -1
  245. package/lib/typescript/lib/module/skia/Skia.web.d.ts +3 -3
  246. package/lib/typescript/lib/module/skia/web/Host.d.ts +3 -5
  247. package/lib/typescript/lib/module/skia/web/JsiSkFont.d.ts +1 -1
  248. package/lib/typescript/lib/module/skia/web/JsiSkFontMgr.d.ts +1 -1
  249. package/lib/typescript/lib/module/skia/web/JsiSkImageFactory.d.ts +1 -1
  250. package/lib/typescript/lib/module/skia/web/JsiSkImageFilterFactory.d.ts +1 -1
  251. package/lib/typescript/lib/module/skia/web/JsiSkPathEffectFactory.d.ts +2 -2
  252. package/lib/typescript/lib/module/skia/web/JsiSkPathFactory.d.ts +1 -1
  253. package/lib/typescript/lib/module/skia/web/JsiSkTypefaceFontProvider.d.ts +1 -1
  254. package/lib/typescript/lib/module/skia/web/JsiSkia.d.ts +3 -3
  255. package/lib/typescript/lib/module/skia/web/JsiVideo.d.ts +1 -1
  256. package/lib/typescript/lib/module/sksg/Recorder/Core.d.ts +1 -1
  257. package/lib/typescript/lib/module/sksg/Recorder/commands/Drawing.d.ts +0 -1
  258. package/lib/typescript/src/__tests__/setup.d.ts +18 -0
  259. package/lib/typescript/src/headless/index.d.ts +1 -0
  260. package/lib/typescript/src/renderer/Canvas.d.ts +1 -2
  261. package/lib/typescript/src/skia/web/Host.d.ts +4 -6
  262. package/lib/typescript/src/skia/web/JsiSkPathFactory.d.ts +1 -1
  263. package/lib/typescript/src/sksg/Recorder/Core.d.ts +1 -5
  264. package/lib/typescript/src/sksg/Recorder/Player.d.ts +1 -1
  265. package/lib/typescript/src/sksg/Recorder/commands/Drawing.d.ts +1 -3
  266. package/lib/typescript/src/specs/NativeSkiaModule.web.d.ts +2 -0
  267. package/package.json +8 -7
  268. package/react-native-skia.podspec +3 -3
  269. package/src/__tests__/setup.ts +67 -1
  270. package/src/__tests__/snapshots/box/box-shadow-opacity.png +0 -0
  271. package/src/__tests__/snapshots/platform-buffer.png +0 -0
  272. package/src/__tests__/snapshots/screens/snapshot2-android-ci.png +0 -0
  273. package/src/external/reanimated/useAnimatedImageValue.ts +4 -3
  274. package/src/headless/index.ts +2 -1
  275. package/src/mock/index.ts +1 -2
  276. package/src/renderer/Canvas.tsx +3 -2
  277. package/src/renderer/__tests__/e2e/Box.spec.tsx +22 -0
  278. package/src/renderer/__tests__/e2e/Matrix4.spec.tsx +1 -2
  279. package/src/renderer/__tests__/e2e/NativeBuffer.spec.tsx +2 -0
  280. package/src/renderer/__tests__/e2e/Paths.spec.tsx +13 -11
  281. package/src/skia/__tests__/Enums.spec.ts +24 -2
  282. package/src/skia/__tests__/Path.spec.ts +2 -2
  283. package/src/skia/web/Host.ts +29 -11
  284. package/src/skia/web/JsiSkCanvas.ts +17 -17
  285. package/src/skia/web/JsiSkColorFilterFactory.ts +1 -1
  286. package/src/skia/web/JsiSkFont.ts +5 -5
  287. package/src/skia/web/JsiSkFontMgr.ts +3 -3
  288. package/src/skia/web/JsiSkImage.ts +14 -10
  289. package/src/skia/web/JsiSkImageFactory.ts +5 -5
  290. package/src/skia/web/JsiSkImageFilterFactory.ts +12 -22
  291. package/src/skia/web/JsiSkMaskFilterFactory.ts +1 -1
  292. package/src/skia/web/JsiSkPaint.ts +3 -3
  293. package/src/skia/web/JsiSkPath.ts +4 -4
  294. package/src/skia/web/JsiSkPathEffectFactory.ts +6 -6
  295. package/src/skia/web/JsiSkPathFactory.ts +4 -9
  296. package/src/skia/web/JsiSkPicture.ts +3 -3
  297. package/src/skia/web/JsiSkShaderFactory.ts +5 -5
  298. package/src/skia/web/JsiSkTypefaceFontProvider.ts +3 -3
  299. package/src/skia/web/JsiSkVerticesFactory.ts +1 -1
  300. package/src/skia/web/JsiSkia.ts +7 -4
  301. package/src/skia/web/JsiVideo.ts +2 -1
  302. package/src/sksg/HostConfig.ts +1 -1
  303. package/src/sksg/Recorder/Core.ts +5 -7
  304. package/src/sksg/Recorder/Player.ts +6 -7
  305. package/src/sksg/Recorder/commands/Box.ts +5 -7
  306. package/src/sksg/Recorder/commands/Drawing.ts +0 -65
  307. package/src/specs/NativeSkiaModule.web.ts +12 -2
  308. package/ios/Rnskia.xcodeproj/project.pbxproj +0 -281
  309. package/ios/Rnskia.xcworkspace/contents.xcworkspacedata +0 -7
  310. package/lib/commonjs/skia/types/Image/ColorType.web.d.ts +0 -19
  311. package/lib/commonjs/skia/types/Image/ColorType.web.js +0 -43
  312. package/lib/commonjs/skia/types/Image/ColorType.web.js.map +0 -1
  313. package/lib/module/skia/types/Image/ColorType.web.d.ts +0 -19
  314. package/lib/module/skia/types/Image/ColorType.web.js +0 -37
  315. package/lib/module/skia/types/Image/ColorType.web.js.map +0 -1
  316. package/lib/typescript/lib/commonjs/skia/types/Image/ColorType.web.d.ts +0 -2
  317. package/lib/typescript/lib/module/skia/types/Image/ColorType.web.d.ts +0 -1
  318. package/lib/typescript/src/skia/types/Image/ColorType.web.d.ts +0 -19
  319. package/src/skia/types/Image/ColorType.web.ts +0 -19
  320. /package/{ios/RNSkia-iOS → apple}/MetalContext.mm +0 -0
  321. /package/{ios/RNSkia-iOS → apple}/MetalWindowContext.h +0 -0
  322. /package/{ios/RNSkia-iOS → apple}/RNSkMetalCanvasProvider.h +0 -0
  323. /package/{ios → apple}/RNSkiaModule.h +0 -0
  324. /package/{ios → apple}/RNSkiaModule.mm +0 -0
  325. /package/{ios/RNSkia-iOS → apple}/SkiaCVPixelBufferUtils.h +0 -0
  326. /package/{ios/RNSkia-iOS → apple}/SkiaCVPixelBufferUtils.mm +0 -0
  327. /package/{ios/RNSkia-iOS → apple}/SkiaManager.h +0 -0
  328. /package/{ios/RNSkia-iOS → apple}/SkiaPictureView.h +0 -0
  329. /package/{ios/RNSkia-iOS → apple}/SkiaPictureViewManager.h +0 -0
@@ -1,5 +1,3 @@
1
- import type { SharedValue } from "react-native-reanimated";
2
-
3
1
  import type {
4
2
  BlurMaskFilterProps,
5
3
  CircleProps,
@@ -115,16 +113,16 @@ export type Command<T extends CommandType = CommandType> = {
115
113
  [key: string]: unknown;
116
114
  };
117
115
 
118
- export const materializeProps = (command: {
119
- props: Record<string, unknown>;
120
- animatedProps?: Record<string, SharedValue<unknown>>;
121
- }) => {
116
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
117
+ export const materializeCommand = (command: any) => {
122
118
  "worklet";
119
+ const newProps = { ...command.props };
123
120
  if (command.animatedProps) {
124
121
  for (const key in command.animatedProps) {
125
- command.props[key] = command.animatedProps[key].value;
122
+ newProps[key] = command.animatedProps[key].value;
126
123
  }
127
124
  }
125
+ return { ...command, props: newProps };
128
126
  };
129
127
 
130
128
  export const isCommand = <T extends CommandType>(
@@ -44,19 +44,18 @@ import {
44
44
  isCommand,
45
45
  isDrawCommand,
46
46
  isGroup,
47
- materializeProps,
48
- type Command,
47
+ materializeCommand,
49
48
  } from "./Core";
49
+ import type { Command } from "./Core";
50
50
  import type { DrawingContext } from "./DrawingContext";
51
51
 
52
- function play(ctx: DrawingContext, command: Command) {
52
+ function play(ctx: DrawingContext, _command: Command) {
53
53
  "worklet";
54
- if (isGroup(command)) {
55
- command.children.forEach((child) => play(ctx, child));
54
+ if (isGroup(_command)) {
55
+ _command.children.forEach((child) => play(ctx, child));
56
56
  return;
57
57
  }
58
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
59
- materializeProps(command as any);
58
+ const command = materializeCommand(_command);
60
59
  if (isCommand(command, CommandType.SaveBackdropFilter)) {
61
60
  ctx.saveBackdropFilter();
62
61
  } else if (isCommand(command, CommandType.SaveLayer)) {
@@ -2,7 +2,7 @@ import { deflate, inflate, processColor } from "../../../dom/nodes";
2
2
  import type { BoxProps, BoxShadowProps } from "../../../dom/types";
3
3
  import { BlurStyle, ClipOp, isRRect } from "../../../skia/types";
4
4
  import type { Command } from "../Core";
5
- import { CommandType, materializeProps } from "../Core";
5
+ import { CommandType, materializeCommand } from "../Core";
6
6
  import type { DrawingContext } from "../DrawingContext";
7
7
 
8
8
  interface BoxCommand extends Command<CommandType.DrawBox> {
@@ -17,11 +17,9 @@ export const isBoxCommand = (command: Command): command is BoxCommand => {
17
17
 
18
18
  export const drawBox = (ctx: DrawingContext, command: BoxCommand) => {
19
19
  "worklet";
20
- command.shadows.forEach((shadow) => {
21
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
22
- materializeProps(shadow as any);
20
+ const shadows = command.shadows.map((shadow) => {
21
+ return materializeCommand(shadow).props;
23
22
  });
24
- const shadows = command.shadows.map((shadow) => shadow.props);
25
23
  const { paint, Skia, canvas } = ctx;
26
24
  const { box: defaultBox } = command.props;
27
25
  const opacity = paint.getAlphaf();
@@ -32,7 +30,7 @@ export const drawBox = (ctx: DrawingContext, command: BoxCommand) => {
32
30
  const { color = "black", blur, spread = 0, dx = 0, dy = 0 } = shadow;
33
31
  const lPaint = Skia.Paint();
34
32
  lPaint.setColor(processColor(Skia, color));
35
- lPaint.setAlphaf(paint.getAlphaf() * opacity);
33
+ lPaint.setAlphaf(lPaint.getAlphaf() * opacity);
36
34
  lPaint.setMaskFilter(
37
35
  Skia.MaskFilter.MakeBlur(BlurStyle.Normal, blur, true)
38
36
  );
@@ -50,7 +48,7 @@ export const drawBox = (ctx: DrawingContext, command: BoxCommand) => {
50
48
  canvas.clipRRect(box, ClipOp.Intersect, false);
51
49
  const lPaint = Skia.Paint();
52
50
  lPaint.setColor(Skia.Color(color));
53
- lPaint.setAlphaf(paint.getAlphaf() * opacity);
51
+ lPaint.setAlphaf(lPaint.getAlphaf() * opacity);
54
52
 
55
53
  lPaint.setMaskFilter(
56
54
  Skia.MaskFilter.MakeBlur(BlurStyle.Normal, blur, true)
@@ -1,9 +1,6 @@
1
1
  import {
2
- deflate,
3
2
  enumKey,
4
3
  fitRects,
5
- inflate,
6
- NodeType,
7
4
  processCircle,
8
5
  processColor,
9
6
  processPath,
@@ -12,8 +9,6 @@ import {
12
9
  } from "../../../dom/nodes";
13
10
  import type {
14
11
  AtlasProps,
15
- BoxProps,
16
- BoxShadowProps,
17
12
  CircleProps,
18
13
  DiffRectProps,
19
14
  DrawingNodeProps,
@@ -38,18 +33,13 @@ import { saturate } from "../../../renderer/processors";
38
33
  import type { SkPoint, SkRSXform } from "../../../skia/types";
39
34
  import {
40
35
  BlendMode,
41
- BlurStyle,
42
- ClipOp,
43
36
  FillType,
44
37
  FilterMode,
45
38
  isCubicSampling,
46
- isRRect,
47
39
  MipmapMode,
48
40
  PointMode,
49
41
  VertexMode,
50
42
  } from "../../../skia/types";
51
- import type { Node } from "../../Node";
52
- import { materialize } from "../../utils";
53
43
  import type { DrawingContext } from "../DrawingContext";
54
44
 
55
45
  export const drawLine = (ctx: DrawingContext, props: LineProps) => {
@@ -64,61 +54,6 @@ export const drawOval = (ctx: DrawingContext, props: OvalProps) => {
64
54
  ctx.canvas.drawOval(rect, ctx.paint);
65
55
  };
66
56
 
67
- export const drawBox = (
68
- ctx: DrawingContext,
69
- props: BoxProps,
70
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
71
- children: Node<any>[]
72
- ) => {
73
- "worklet";
74
- const { paint, Skia, canvas } = ctx;
75
- const { box: defaultBox } = props;
76
- const opacity = paint.getAlphaf();
77
- const box = isRRect(defaultBox) ? defaultBox : Skia.RRectXY(defaultBox, 0, 0);
78
- const shadows = children
79
- .map((node) => {
80
- if (node.type === NodeType.BoxShadow) {
81
- return materialize(node.props);
82
- }
83
- return null;
84
- })
85
- .filter((n): n is BoxShadowProps => n !== null);
86
- shadows
87
- .filter((shadow) => !shadow.inner)
88
- .map((shadow) => {
89
- const { color = "black", blur, spread = 0, dx = 0, dy = 0 } = shadow;
90
- const lPaint = Skia.Paint();
91
- lPaint.setColor(processColor(Skia, color));
92
- lPaint.setAlphaf(paint.getAlphaf() * opacity);
93
- lPaint.setMaskFilter(
94
- Skia.MaskFilter.MakeBlur(BlurStyle.Normal, blur, true)
95
- );
96
- canvas.drawRRect(inflate(Skia, box, spread, spread, dx, dy), lPaint);
97
- });
98
-
99
- canvas.drawRRect(box, paint);
100
-
101
- shadows
102
- .filter((shadow) => shadow.inner)
103
- .map((shadow) => {
104
- const { color = "black", blur, spread = 0, dx = 0, dy = 0 } = shadow;
105
- const delta = Skia.Point(10 + Math.abs(dx), 10 + Math.abs(dy));
106
- canvas.save();
107
- canvas.clipRRect(box, ClipOp.Intersect, false);
108
- const lPaint = Skia.Paint();
109
- lPaint.setColor(processColor(Skia, color));
110
- lPaint.setAlphaf(paint.getAlphaf() * opacity);
111
-
112
- lPaint.setMaskFilter(
113
- Skia.MaskFilter.MakeBlur(BlurStyle.Normal, blur, true)
114
- );
115
- const inner = deflate(Skia, box, spread, spread, dx, dy);
116
- const outer = inflate(Skia, box, delta.x, delta.y);
117
- canvas.drawDRRect(outer, inner, lPaint);
118
- canvas.restore();
119
- });
120
- };
121
-
122
57
  export const drawImage = (ctx: DrawingContext, props: ImageProps) => {
123
58
  "worklet";
124
59
  const { image, sampling } = props;
@@ -1,23 +1,33 @@
1
1
  /* eslint-disable import/no-anonymous-default-export */
2
- import type { SkRect } from "../skia/types";
2
+ import type { SkPicture, SkRect } from "../skia/types";
3
3
  import type { ISkiaViewApi } from "../views/types";
4
4
  import type { SkiaPictureView } from "../views/SkiaPictureView.web";
5
5
 
6
6
  export type ISkiaViewApiWeb = ISkiaViewApi & {
7
7
  views: Record<string, SkiaPictureView>;
8
+ deferedPictures: Record<string, SkPicture>;
8
9
  registerView(nativeId: string, view: SkiaPictureView): void;
9
10
  };
10
11
 
11
12
  global.SkiaViewApi = {
12
13
  views: {},
14
+ deferedPictures: {},
13
15
  web: true,
14
16
  registerView(nativeId: string, view: SkiaPictureView) {
17
+ // Maybe a picture for this view was already set
18
+ if (this.deferedPictures[nativeId]) {
19
+ view.setPicture(this.deferedPictures[nativeId] as SkPicture);
20
+ }
15
21
  this.views[nativeId] = view;
16
22
  },
17
23
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
18
24
  setJsiProperty(nativeId: number, name: string, value: any) {
19
25
  if (name === "picture") {
20
- this.views[`${nativeId}`].setPicture(value);
26
+ if (!this.views[`${nativeId}`]) {
27
+ this.deferedPictures[`${nativeId}`] = value;
28
+ } else {
29
+ this.views[`${nativeId}`].setPicture(value);
30
+ }
21
31
  }
22
32
  },
23
33
  requestRedraw(nativeId: number) {
@@ -1,281 +0,0 @@
1
- // !$*UTF8*$!
2
- {
3
- archiveVersion = 1;
4
- classes = {
5
- };
6
- objectVersion = 46;
7
- objects = {
8
-
9
- /* Begin PBXCopyFilesBuildPhase section */
10
- 58B511D91A9E6C8500147676 /* CopyFiles */ = {
11
- isa = PBXCopyFilesBuildPhase;
12
- buildActionMask = 2147483647;
13
- dstPath = "include/$(PRODUCT_NAME)";
14
- dstSubfolderSpec = 16;
15
- files = (
16
- );
17
- runOnlyForDeploymentPostprocessing = 0;
18
- };
19
- /* End PBXCopyFilesBuildPhase section */
20
-
21
- /* Begin PBXFileReference section */
22
- 134814201AA4EA6300B7C361 /* libRnskia.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libRnskia.a; sourceTree = BUILT_PRODUCTS_DIR; };
23
- /* End PBXFileReference section */
24
-
25
- /* Begin PBXFrameworksBuildPhase section */
26
- 58B511D81A9E6C8500147676 /* Frameworks */ = {
27
- isa = PBXFrameworksBuildPhase;
28
- buildActionMask = 2147483647;
29
- files = (
30
- );
31
- runOnlyForDeploymentPostprocessing = 0;
32
- };
33
- /* End PBXFrameworksBuildPhase section */
34
-
35
- /* Begin PBXGroup section */
36
- 134814211AA4EA7D00B7C361 /* Products */ = {
37
- isa = PBXGroup;
38
- children = (
39
- 134814201AA4EA6300B7C361 /* libRnskia.a */,
40
- );
41
- name = Products;
42
- sourceTree = "<group>";
43
- };
44
- 58B511D21A9E6C8500147676 = {
45
- isa = PBXGroup;
46
- children = (
47
- 134814211AA4EA7D00B7C361 /* Products */,
48
- );
49
- sourceTree = "<group>";
50
- };
51
- /* End PBXGroup section */
52
-
53
- /* Begin PBXNativeTarget section */
54
- 58B511DA1A9E6C8500147676 /* Rnskia */ = {
55
- isa = PBXNativeTarget;
56
- buildConfigurationList = 58B511EF1A9E6C8500147676 /* Build configuration list for PBXNativeTarget "Rnskia" */;
57
- buildPhases = (
58
- 58B511D71A9E6C8500147676 /* Sources */,
59
- 58B511D81A9E6C8500147676 /* Frameworks */,
60
- 58B511D91A9E6C8500147676 /* CopyFiles */,
61
- );
62
- buildRules = (
63
- );
64
- dependencies = (
65
- );
66
- name = Rnskia;
67
- productName = RCTDataManager;
68
- productReference = 134814201AA4EA6300B7C361 /* libRnskia.a */;
69
- productType = "com.apple.product-type.library.static";
70
- };
71
- /* End PBXNativeTarget section */
72
-
73
- /* Begin PBXProject section */
74
- 58B511D31A9E6C8500147676 /* Project object */ = {
75
- isa = PBXProject;
76
- attributes = {
77
- LastUpgradeCheck = 0920;
78
- ORGANIZATIONNAME = Facebook;
79
- TargetAttributes = {
80
- 58B511DA1A9E6C8500147676 = {
81
- CreatedOnToolsVersion = 6.1.1;
82
- };
83
- };
84
- };
85
- buildConfigurationList = 58B511D61A9E6C8500147676 /* Build configuration list for PBXProject "Rnskia" */;
86
- compatibilityVersion = "Xcode 3.2";
87
- developmentRegion = en;
88
- hasScannedForEncodings = 0;
89
- knownRegions = (
90
- en,
91
- Base,
92
- );
93
- mainGroup = 58B511D21A9E6C8500147676;
94
- productRefGroup = 58B511D21A9E6C8500147676;
95
- projectDirPath = "";
96
- projectRoot = "";
97
- targets = (
98
- 58B511DA1A9E6C8500147676 /* Rnskia */,
99
- );
100
- };
101
- /* End PBXProject section */
102
-
103
- /* Begin PBXSourcesBuildPhase section */
104
- 58B511D71A9E6C8500147676 /* Sources */ = {
105
- isa = PBXSourcesBuildPhase;
106
- buildActionMask = 2147483647;
107
- files = (
108
- );
109
- runOnlyForDeploymentPostprocessing = 0;
110
- };
111
- /* End PBXSourcesBuildPhase section */
112
-
113
- /* Begin XCBuildConfiguration section */
114
- 58B511ED1A9E6C8500147676 /* Debug */ = {
115
- isa = XCBuildConfiguration;
116
- buildSettings = {
117
- ALWAYS_SEARCH_USER_PATHS = NO;
118
- CLANG_ANALYZER_NONNULL = YES;
119
- CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
120
- CLANG_CXX_LIBRARY = "libc++";
121
- CLANG_ENABLE_MODULES = YES;
122
- CLANG_ENABLE_OBJC_ARC = YES;
123
- CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
124
- CLANG_WARN_BOOL_CONVERSION = YES;
125
- CLANG_WARN_COMMA = YES;
126
- CLANG_WARN_CONSTANT_CONVERSION = YES;
127
- CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
128
- CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
129
- CLANG_WARN_EMPTY_BODY = YES;
130
- CLANG_WARN_ENUM_CONVERSION = YES;
131
- CLANG_WARN_INFINITE_RECURSION = YES;
132
- CLANG_WARN_INT_CONVERSION = YES;
133
- CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
134
- CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
135
- CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
136
- CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
137
- CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
138
- CLANG_WARN_STRICT_PROTOTYPES = YES;
139
- CLANG_WARN_SUSPICIOUS_MOVE = YES;
140
- CLANG_WARN_UNREACHABLE_CODE = YES;
141
- CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
142
- COPY_PHASE_STRIP = NO;
143
- ENABLE_STRICT_OBJC_MSGSEND = YES;
144
- ENABLE_TESTABILITY = YES;
145
- GCC_C_LANGUAGE_STANDARD = gnu99;
146
- GCC_DYNAMIC_NO_PIC = NO;
147
- GCC_NO_COMMON_BLOCKS = YES;
148
- GCC_OPTIMIZATION_LEVEL = 0;
149
- GCC_PREPROCESSOR_DEFINITIONS = (
150
- "DEBUG=1",
151
- "$(inherited)",
152
- );
153
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
154
- GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
155
- GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
156
- GCC_WARN_UNDECLARED_SELECTOR = YES;
157
- GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
158
- GCC_WARN_UNUSED_FUNCTION = YES;
159
- GCC_WARN_UNUSED_VARIABLE = YES;
160
- IPHONEOS_DEPLOYMENT_TARGET = 9.0;
161
- LD_RUNPATH_SEARCH_PATHS = "/usr/lib/swift $(inherited)";
162
- LIBRARY_SEARCH_PATHS = (
163
- "\"$(TOOLCHAIN_DIR)/usr/lib/swift/$(PLATFORM_NAME)\"",
164
- "\"$(TOOLCHAIN_DIR)/usr/lib/swift-5.0/$(PLATFORM_NAME)\"",
165
- "\"$(inherited)\"",
166
- );
167
- MTL_ENABLE_DEBUG_INFO = YES;
168
- ONLY_ACTIVE_ARCH = YES;
169
- SDKROOT = iphoneos;
170
- };
171
- name = Debug;
172
- };
173
- 58B511EE1A9E6C8500147676 /* Release */ = {
174
- isa = XCBuildConfiguration;
175
- buildSettings = {
176
- ALWAYS_SEARCH_USER_PATHS = NO;
177
- CLANG_ANALYZER_NONNULL = YES;
178
- CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
179
- CLANG_CXX_LIBRARY = "libc++";
180
- CLANG_ENABLE_MODULES = YES;
181
- CLANG_ENABLE_OBJC_ARC = YES;
182
- CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
183
- CLANG_WARN_BOOL_CONVERSION = YES;
184
- CLANG_WARN_COMMA = YES;
185
- CLANG_WARN_CONSTANT_CONVERSION = YES;
186
- CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
187
- CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
188
- CLANG_WARN_EMPTY_BODY = YES;
189
- CLANG_WARN_ENUM_CONVERSION = YES;
190
- CLANG_WARN_INFINITE_RECURSION = YES;
191
- CLANG_WARN_INT_CONVERSION = YES;
192
- CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
193
- CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
194
- CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
195
- CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
196
- CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
197
- CLANG_WARN_STRICT_PROTOTYPES = YES;
198
- CLANG_WARN_SUSPICIOUS_MOVE = YES;
199
- CLANG_WARN_UNREACHABLE_CODE = YES;
200
- CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
201
- COPY_PHASE_STRIP = YES;
202
- ENABLE_NS_ASSERTIONS = NO;
203
- ENABLE_STRICT_OBJC_MSGSEND = YES;
204
- GCC_C_LANGUAGE_STANDARD = gnu99;
205
- GCC_NO_COMMON_BLOCKS = YES;
206
- GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
207
- GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
208
- GCC_WARN_UNDECLARED_SELECTOR = YES;
209
- GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
210
- GCC_WARN_UNUSED_FUNCTION = YES;
211
- GCC_WARN_UNUSED_VARIABLE = YES;
212
- IPHONEOS_DEPLOYMENT_TARGET = 9.0;
213
- LD_RUNPATH_SEARCH_PATHS = "/usr/lib/swift $(inherited)";
214
- LIBRARY_SEARCH_PATHS = (
215
- "\"$(TOOLCHAIN_DIR)/usr/lib/swift/$(PLATFORM_NAME)\"",
216
- "\"$(TOOLCHAIN_DIR)/usr/lib/swift-5.0/$(PLATFORM_NAME)\"",
217
- "\"$(inherited)\"",
218
- );
219
- MTL_ENABLE_DEBUG_INFO = NO;
220
- SDKROOT = iphoneos;
221
- VALIDATE_PRODUCT = YES;
222
- };
223
- name = Release;
224
- };
225
- 58B511F01A9E6C8500147676 /* Debug */ = {
226
- isa = XCBuildConfiguration;
227
- buildSettings = {
228
- HEADER_SEARCH_PATHS = (
229
- "$(inherited)",
230
- /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include,
231
- "$(SRCROOT)/../../../React/**",
232
- "$(SRCROOT)/../../react-native/React/**",
233
- );
234
- LIBRARY_SEARCH_PATHS = "$(inherited)";
235
- OTHER_LDFLAGS = "-ObjC";
236
- PRODUCT_NAME = Rnskia;
237
- SKIP_INSTALL = YES;
238
- };
239
- name = Debug;
240
- };
241
- 58B511F11A9E6C8500147676 /* Release */ = {
242
- isa = XCBuildConfiguration;
243
- buildSettings = {
244
- HEADER_SEARCH_PATHS = (
245
- "$(inherited)",
246
- /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include,
247
- "$(SRCROOT)/../../../React/**",
248
- "$(SRCROOT)/../../react-native/React/**",
249
- );
250
- LIBRARY_SEARCH_PATHS = "$(inherited)";
251
- OTHER_LDFLAGS = "-ObjC";
252
- PRODUCT_NAME = Rnskia;
253
- SKIP_INSTALL = YES;
254
- };
255
- name = Release;
256
- };
257
- /* End XCBuildConfiguration section */
258
-
259
- /* Begin XCConfigurationList section */
260
- 58B511D61A9E6C8500147676 /* Build configuration list for PBXProject "Rnskia" */ = {
261
- isa = XCConfigurationList;
262
- buildConfigurations = (
263
- 58B511ED1A9E6C8500147676 /* Debug */,
264
- 58B511EE1A9E6C8500147676 /* Release */,
265
- );
266
- defaultConfigurationIsVisible = 0;
267
- defaultConfigurationName = Release;
268
- };
269
- 58B511EF1A9E6C8500147676 /* Build configuration list for PBXNativeTarget "Rnskia" */ = {
270
- isa = XCConfigurationList;
271
- buildConfigurations = (
272
- 58B511F01A9E6C8500147676 /* Debug */,
273
- 58B511F11A9E6C8500147676 /* Release */,
274
- );
275
- defaultConfigurationIsVisible = 0;
276
- defaultConfigurationName = Release;
277
- };
278
- /* End XCConfigurationList section */
279
- };
280
- rootObject = 58B511D31A9E6C8500147676 /* Project object */;
281
- }
@@ -1,7 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <Workspace
3
- version = "1.0">
4
- <FileRef
5
- location = "group:Rnskia.xcodeproj">
6
- </FileRef>
7
- </Workspace>
@@ -1,19 +0,0 @@
1
- export declare enum ColorTypeCanvasKit {
2
- Unknown = 0,// uninitialized
3
- Alpha_8 = 1,// pixel with alpha in 8-bit byte
4
- RGB_565 = 2,// pixel with 5 bits red, 6 bits green, 5 bits blue, in 16-bit word
5
- ARGB_4444 = 3,// pixel with 4 bits for alpha, red, green, blue; in 16-bit word
6
- RGBA_8888 = 4,// pixel with 8 bits for red, green, blue, alpha; in 32-bit word
7
- RGB_888x = 5,// pixel with 8 bits each for red, green, blue; in 32-bit word
8
- BGRA_8888 = 6,// pixel with 8 bits for blue, green, red, alpha; in 32-bit word
9
- RGBA_1010102 = 7,// 10 bits for red, green, blue; 2 bits for alpha; in 32-bit word
10
- BGRA_1010102 = 8,// 10 bits for blue, green, red; 2 bits for alpha; in 32-bit word
11
- RGB_101010x = 9,// pixel with 10 bits each for red, green, blue; in 32-bit word
12
- BGR_101010x = 10,// pixel with 10 bits each for blue, green, red; in 32-bit word
13
- BGR_101010x_XR = 11,// pixel with 10 bits each for blue, green, red; in 32-bit word, extended range
14
- RGBA_10x6 = 12,// pixel with 10 used bits (most significant) followed by 6 unused
15
- Gray_8 = 13,// pixel with grayscale level in 8-bit byte
16
- RGBA_F16Norm = 14,// pixel with half floats in [0,1] for red, green, blue, alpha; in 64-bit word
17
- RGBA_F16 = 15,// pixel with half floats for red, green, blue, alpha; in 64-bit word
18
- RGBA_F32 = 16
19
- }
@@ -1,43 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.ColorTypeCanvasKit = void 0;
7
- let ColorTypeCanvasKit = exports.ColorTypeCanvasKit = /*#__PURE__*/function (ColorTypeCanvasKit) {
8
- ColorTypeCanvasKit[ColorTypeCanvasKit["Unknown"] = 0] = "Unknown";
9
- // uninitialized
10
- ColorTypeCanvasKit[ColorTypeCanvasKit["Alpha_8"] = 1] = "Alpha_8";
11
- // pixel with alpha in 8-bit byte
12
- ColorTypeCanvasKit[ColorTypeCanvasKit["RGB_565"] = 2] = "RGB_565";
13
- // pixel with 5 bits red, 6 bits green, 5 bits blue, in 16-bit word
14
- ColorTypeCanvasKit[ColorTypeCanvasKit["ARGB_4444"] = 3] = "ARGB_4444";
15
- // pixel with 4 bits for alpha, red, green, blue; in 16-bit word
16
- ColorTypeCanvasKit[ColorTypeCanvasKit["RGBA_8888"] = 4] = "RGBA_8888";
17
- // pixel with 8 bits for red, green, blue, alpha; in 32-bit word
18
- ColorTypeCanvasKit[ColorTypeCanvasKit["RGB_888x"] = 5] = "RGB_888x";
19
- // pixel with 8 bits each for red, green, blue; in 32-bit word
20
- ColorTypeCanvasKit[ColorTypeCanvasKit["BGRA_8888"] = 6] = "BGRA_8888";
21
- // pixel with 8 bits for blue, green, red, alpha; in 32-bit word
22
- ColorTypeCanvasKit[ColorTypeCanvasKit["RGBA_1010102"] = 7] = "RGBA_1010102";
23
- // 10 bits for red, green, blue; 2 bits for alpha; in 32-bit word
24
- ColorTypeCanvasKit[ColorTypeCanvasKit["BGRA_1010102"] = 8] = "BGRA_1010102";
25
- // 10 bits for blue, green, red; 2 bits for alpha; in 32-bit word
26
- ColorTypeCanvasKit[ColorTypeCanvasKit["RGB_101010x"] = 9] = "RGB_101010x";
27
- // pixel with 10 bits each for red, green, blue; in 32-bit word
28
- ColorTypeCanvasKit[ColorTypeCanvasKit["BGR_101010x"] = 10] = "BGR_101010x";
29
- // pixel with 10 bits each for blue, green, red; in 32-bit word
30
- ColorTypeCanvasKit[ColorTypeCanvasKit["BGR_101010x_XR"] = 11] = "BGR_101010x_XR";
31
- // pixel with 10 bits each for blue, green, red; in 32-bit word, extended range
32
- ColorTypeCanvasKit[ColorTypeCanvasKit["RGBA_10x6"] = 12] = "RGBA_10x6";
33
- // pixel with 10 used bits (most significant) followed by 6 unused
34
- ColorTypeCanvasKit[ColorTypeCanvasKit["Gray_8"] = 13] = "Gray_8";
35
- // pixel with grayscale level in 8-bit byte
36
- ColorTypeCanvasKit[ColorTypeCanvasKit["RGBA_F16Norm"] = 14] = "RGBA_F16Norm";
37
- // pixel with half floats in [0,1] for red, green, blue, alpha; in 64-bit word
38
- ColorTypeCanvasKit[ColorTypeCanvasKit["RGBA_F16"] = 15] = "RGBA_F16";
39
- // pixel with half floats for red, green, blue, alpha; in 64-bit word
40
- ColorTypeCanvasKit[ColorTypeCanvasKit["RGBA_F32"] = 16] = "RGBA_F32"; // pixel using C float for red, green, blue, alpha; in 128-bit word
41
- return ColorTypeCanvasKit;
42
- }({});
43
- //# sourceMappingURL=ColorType.web.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["ColorTypeCanvasKit","exports"],"sources":["ColorType.web.ts"],"sourcesContent":["export enum ColorTypeCanvasKit {\n Unknown, // uninitialized\n Alpha_8, // pixel with alpha in 8-bit byte\n RGB_565, // pixel with 5 bits red, 6 bits green, 5 bits blue, in 16-bit word\n ARGB_4444, // pixel with 4 bits for alpha, red, green, blue; in 16-bit word\n RGBA_8888, // pixel with 8 bits for red, green, blue, alpha; in 32-bit word\n RGB_888x, // pixel with 8 bits each for red, green, blue; in 32-bit word\n BGRA_8888, // pixel with 8 bits for blue, green, red, alpha; in 32-bit word\n RGBA_1010102, // 10 bits for red, green, blue; 2 bits for alpha; in 32-bit word\n BGRA_1010102, // 10 bits for blue, green, red; 2 bits for alpha; in 32-bit word\n RGB_101010x, // pixel with 10 bits each for red, green, blue; in 32-bit word\n BGR_101010x, // pixel with 10 bits each for blue, green, red; in 32-bit word\n BGR_101010x_XR, // pixel with 10 bits each for blue, green, red; in 32-bit word, extended range\n RGBA_10x6, // pixel with 10 used bits (most significant) followed by 6 unused\n Gray_8, // pixel with grayscale level in 8-bit byte\n RGBA_F16Norm, // pixel with half floats in [0,1] for red, green, blue, alpha; in 64-bit word\n RGBA_F16, // pixel with half floats for red, green, blue, alpha; in 64-bit word\n RGBA_F32, // pixel using C float for red, green, blue, alpha; in 128-bit word\n}\n"],"mappings":";;;;;;IAAYA,kBAAkB,GAAAC,OAAA,CAAAD,kBAAA,0BAAlBA,kBAAkB;EAAlBA,kBAAkB,CAAlBA,kBAAkB;EACnB;EADCA,kBAAkB,CAAlBA,kBAAkB;EAEnB;EAFCA,kBAAkB,CAAlBA,kBAAkB;EAGnB;EAHCA,kBAAkB,CAAlBA,kBAAkB;EAIjB;EAJDA,kBAAkB,CAAlBA,kBAAkB;EAKjB;EALDA,kBAAkB,CAAlBA,kBAAkB;EAMlB;EANAA,kBAAkB,CAAlBA,kBAAkB;EAOjB;EAPDA,kBAAkB,CAAlBA,kBAAkB;EAQd;EARJA,kBAAkB,CAAlBA,kBAAkB;EASd;EATJA,kBAAkB,CAAlBA,kBAAkB;EAUf;EAVHA,kBAAkB,CAAlBA,kBAAkB;EAWf;EAXHA,kBAAkB,CAAlBA,kBAAkB;EAYZ;EAZNA,kBAAkB,CAAlBA,kBAAkB;EAajB;EAbDA,kBAAkB,CAAlBA,kBAAkB;EAcpB;EAdEA,kBAAkB,CAAlBA,kBAAkB;EAed;EAfJA,kBAAkB,CAAlBA,kBAAkB;EAgBlB;EAhBAA,kBAAkB,CAAlBA,kBAAkB,iCAiBlB;EAAA,OAjBAA,kBAAkB;AAAA","ignoreList":[]}
@@ -1,19 +0,0 @@
1
- export declare enum ColorTypeCanvasKit {
2
- Unknown = 0,// uninitialized
3
- Alpha_8 = 1,// pixel with alpha in 8-bit byte
4
- RGB_565 = 2,// pixel with 5 bits red, 6 bits green, 5 bits blue, in 16-bit word
5
- ARGB_4444 = 3,// pixel with 4 bits for alpha, red, green, blue; in 16-bit word
6
- RGBA_8888 = 4,// pixel with 8 bits for red, green, blue, alpha; in 32-bit word
7
- RGB_888x = 5,// pixel with 8 bits each for red, green, blue; in 32-bit word
8
- BGRA_8888 = 6,// pixel with 8 bits for blue, green, red, alpha; in 32-bit word
9
- RGBA_1010102 = 7,// 10 bits for red, green, blue; 2 bits for alpha; in 32-bit word
10
- BGRA_1010102 = 8,// 10 bits for blue, green, red; 2 bits for alpha; in 32-bit word
11
- RGB_101010x = 9,// pixel with 10 bits each for red, green, blue; in 32-bit word
12
- BGR_101010x = 10,// pixel with 10 bits each for blue, green, red; in 32-bit word
13
- BGR_101010x_XR = 11,// pixel with 10 bits each for blue, green, red; in 32-bit word, extended range
14
- RGBA_10x6 = 12,// pixel with 10 used bits (most significant) followed by 6 unused
15
- Gray_8 = 13,// pixel with grayscale level in 8-bit byte
16
- RGBA_F16Norm = 14,// pixel with half floats in [0,1] for red, green, blue, alpha; in 64-bit word
17
- RGBA_F16 = 15,// pixel with half floats for red, green, blue, alpha; in 64-bit word
18
- RGBA_F32 = 16
19
- }
@@ -1,37 +0,0 @@
1
- export let ColorTypeCanvasKit = /*#__PURE__*/function (ColorTypeCanvasKit) {
2
- ColorTypeCanvasKit[ColorTypeCanvasKit["Unknown"] = 0] = "Unknown";
3
- // uninitialized
4
- ColorTypeCanvasKit[ColorTypeCanvasKit["Alpha_8"] = 1] = "Alpha_8";
5
- // pixel with alpha in 8-bit byte
6
- ColorTypeCanvasKit[ColorTypeCanvasKit["RGB_565"] = 2] = "RGB_565";
7
- // pixel with 5 bits red, 6 bits green, 5 bits blue, in 16-bit word
8
- ColorTypeCanvasKit[ColorTypeCanvasKit["ARGB_4444"] = 3] = "ARGB_4444";
9
- // pixel with 4 bits for alpha, red, green, blue; in 16-bit word
10
- ColorTypeCanvasKit[ColorTypeCanvasKit["RGBA_8888"] = 4] = "RGBA_8888";
11
- // pixel with 8 bits for red, green, blue, alpha; in 32-bit word
12
- ColorTypeCanvasKit[ColorTypeCanvasKit["RGB_888x"] = 5] = "RGB_888x";
13
- // pixel with 8 bits each for red, green, blue; in 32-bit word
14
- ColorTypeCanvasKit[ColorTypeCanvasKit["BGRA_8888"] = 6] = "BGRA_8888";
15
- // pixel with 8 bits for blue, green, red, alpha; in 32-bit word
16
- ColorTypeCanvasKit[ColorTypeCanvasKit["RGBA_1010102"] = 7] = "RGBA_1010102";
17
- // 10 bits for red, green, blue; 2 bits for alpha; in 32-bit word
18
- ColorTypeCanvasKit[ColorTypeCanvasKit["BGRA_1010102"] = 8] = "BGRA_1010102";
19
- // 10 bits for blue, green, red; 2 bits for alpha; in 32-bit word
20
- ColorTypeCanvasKit[ColorTypeCanvasKit["RGB_101010x"] = 9] = "RGB_101010x";
21
- // pixel with 10 bits each for red, green, blue; in 32-bit word
22
- ColorTypeCanvasKit[ColorTypeCanvasKit["BGR_101010x"] = 10] = "BGR_101010x";
23
- // pixel with 10 bits each for blue, green, red; in 32-bit word
24
- ColorTypeCanvasKit[ColorTypeCanvasKit["BGR_101010x_XR"] = 11] = "BGR_101010x_XR";
25
- // pixel with 10 bits each for blue, green, red; in 32-bit word, extended range
26
- ColorTypeCanvasKit[ColorTypeCanvasKit["RGBA_10x6"] = 12] = "RGBA_10x6";
27
- // pixel with 10 used bits (most significant) followed by 6 unused
28
- ColorTypeCanvasKit[ColorTypeCanvasKit["Gray_8"] = 13] = "Gray_8";
29
- // pixel with grayscale level in 8-bit byte
30
- ColorTypeCanvasKit[ColorTypeCanvasKit["RGBA_F16Norm"] = 14] = "RGBA_F16Norm";
31
- // pixel with half floats in [0,1] for red, green, blue, alpha; in 64-bit word
32
- ColorTypeCanvasKit[ColorTypeCanvasKit["RGBA_F16"] = 15] = "RGBA_F16";
33
- // pixel with half floats for red, green, blue, alpha; in 64-bit word
34
- ColorTypeCanvasKit[ColorTypeCanvasKit["RGBA_F32"] = 16] = "RGBA_F32"; // pixel using C float for red, green, blue, alpha; in 128-bit word
35
- return ColorTypeCanvasKit;
36
- }({});
37
- //# sourceMappingURL=ColorType.web.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["ColorTypeCanvasKit"],"sources":["ColorType.web.ts"],"sourcesContent":["export enum ColorTypeCanvasKit {\n Unknown, // uninitialized\n Alpha_8, // pixel with alpha in 8-bit byte\n RGB_565, // pixel with 5 bits red, 6 bits green, 5 bits blue, in 16-bit word\n ARGB_4444, // pixel with 4 bits for alpha, red, green, blue; in 16-bit word\n RGBA_8888, // pixel with 8 bits for red, green, blue, alpha; in 32-bit word\n RGB_888x, // pixel with 8 bits each for red, green, blue; in 32-bit word\n BGRA_8888, // pixel with 8 bits for blue, green, red, alpha; in 32-bit word\n RGBA_1010102, // 10 bits for red, green, blue; 2 bits for alpha; in 32-bit word\n BGRA_1010102, // 10 bits for blue, green, red; 2 bits for alpha; in 32-bit word\n RGB_101010x, // pixel with 10 bits each for red, green, blue; in 32-bit word\n BGR_101010x, // pixel with 10 bits each for blue, green, red; in 32-bit word\n BGR_101010x_XR, // pixel with 10 bits each for blue, green, red; in 32-bit word, extended range\n RGBA_10x6, // pixel with 10 used bits (most significant) followed by 6 unused\n Gray_8, // pixel with grayscale level in 8-bit byte\n RGBA_F16Norm, // pixel with half floats in [0,1] for red, green, blue, alpha; in 64-bit word\n RGBA_F16, // pixel with half floats for red, green, blue, alpha; in 64-bit word\n RGBA_F32, // pixel using C float for red, green, blue, alpha; in 128-bit word\n}\n"],"mappings":"AAAA,WAAYA,kBAAkB,0BAAlBA,kBAAkB;EAAlBA,kBAAkB,CAAlBA,kBAAkB;EACnB;EADCA,kBAAkB,CAAlBA,kBAAkB;EAEnB;EAFCA,kBAAkB,CAAlBA,kBAAkB;EAGnB;EAHCA,kBAAkB,CAAlBA,kBAAkB;EAIjB;EAJDA,kBAAkB,CAAlBA,kBAAkB;EAKjB;EALDA,kBAAkB,CAAlBA,kBAAkB;EAMlB;EANAA,kBAAkB,CAAlBA,kBAAkB;EAOjB;EAPDA,kBAAkB,CAAlBA,kBAAkB;EAQd;EARJA,kBAAkB,CAAlBA,kBAAkB;EASd;EATJA,kBAAkB,CAAlBA,kBAAkB;EAUf;EAVHA,kBAAkB,CAAlBA,kBAAkB;EAWf;EAXHA,kBAAkB,CAAlBA,kBAAkB;EAYZ;EAZNA,kBAAkB,CAAlBA,kBAAkB;EAajB;EAbDA,kBAAkB,CAAlBA,kBAAkB;EAcpB;EAdEA,kBAAkB,CAAlBA,kBAAkB;EAed;EAfJA,kBAAkB,CAAlBA,kBAAkB;EAgBlB;EAhBAA,kBAAkB,CAAlBA,kBAAkB,iCAiBlB;EAAA,OAjBAA,kBAAkB;AAAA","ignoreList":[]}
@@ -1,2 +0,0 @@
1
- export const __esModule: boolean;
2
- export const ColorTypeCanvasKit: {};
@@ -1 +0,0 @@
1
- export let ColorTypeCanvasKit: {};