@shopify/react-native-skia 0.1.164 → 0.1.165

Sign up to get free protection for your applications and to get access to all the features.
Files changed (197) hide show
  1. package/cpp/api/JsiSkRuntimeEffect.h +7 -2
  2. package/cpp/rnskia/RNSkDomView.cpp +1 -1
  3. package/cpp/rnskia/RNSkPlatformContext.h +2 -6
  4. package/cpp/rnskia/dom/base/DrawingContext.cpp +5 -38
  5. package/cpp/rnskia/dom/base/DrawingContext.h +3 -17
  6. package/cpp/rnskia/dom/nodes/JsiCircleNode.h +0 -2
  7. package/cpp/rnskia/dom/nodes/JsiCustomDrawingNode.h +1 -3
  8. package/cpp/rnskia/dom/nodes/JsiImageFilterNodes.h +2 -2
  9. package/cpp/rnskia/dom/props/CircleProp.h +2 -0
  10. package/cpp/rnskia/dom/props/ColorProp.h +9 -4
  11. package/cpp/rnskia/dom/props/ImageProps.h +3 -2
  12. package/cpp/rnskia/dom/props/PaintProps.h +15 -6
  13. package/cpp/rnskia/dom/props/RectProp.h +11 -4
  14. package/cpp/rnskia/dom/props/UniformsProp.h +86 -123
  15. package/cpp/rnskia/values/RNSkReadonlyValue.h +2 -6
  16. package/lib/commonjs/dom/nodes/datatypes/Circle.js +6 -1
  17. package/lib/commonjs/dom/nodes/datatypes/Circle.js.map +1 -1
  18. package/lib/commonjs/dom/nodes/datatypes/Rect.js +3 -3
  19. package/lib/commonjs/dom/nodes/datatypes/Rect.js.map +1 -1
  20. package/lib/commonjs/dom/nodes/drawings/ImageNode.js +2 -2
  21. package/lib/commonjs/dom/nodes/drawings/ImageNode.js.map +1 -1
  22. package/lib/commonjs/dom/types/Common.js.map +1 -1
  23. package/lib/commonjs/dom/types/Drawings.js.map +1 -1
  24. package/lib/commonjs/renderer/components/Mask.js +2 -6
  25. package/lib/commonjs/renderer/components/Mask.js.map +1 -1
  26. package/lib/commonjs/renderer/components/image/Image.js +0 -5
  27. package/lib/commonjs/renderer/components/image/Image.js.map +1 -1
  28. package/lib/commonjs/renderer/components/image/ImageShader.js +20 -10
  29. package/lib/commonjs/renderer/components/image/ImageShader.js.map +1 -1
  30. package/lib/commonjs/renderer/components/imageFilters/Blur.js +10 -5
  31. package/lib/commonjs/renderer/components/imageFilters/Blur.js.map +1 -1
  32. package/lib/commonjs/renderer/components/imageFilters/Morphology.js +10 -5
  33. package/lib/commonjs/renderer/components/imageFilters/Morphology.js.map +1 -1
  34. package/lib/commonjs/renderer/components/imageFilters/Offset.js +12 -6
  35. package/lib/commonjs/renderer/components/imageFilters/Offset.js.map +1 -1
  36. package/lib/commonjs/renderer/components/maskFilters/Blur.js +12 -6
  37. package/lib/commonjs/renderer/components/maskFilters/Blur.js.map +1 -1
  38. package/lib/commonjs/renderer/components/pathEffects/Discrete.js +10 -5
  39. package/lib/commonjs/renderer/components/pathEffects/Discrete.js.map +1 -1
  40. package/lib/commonjs/renderer/components/shaders/FractalNoise.js +14 -7
  41. package/lib/commonjs/renderer/components/shaders/FractalNoise.js.map +1 -1
  42. package/lib/commonjs/renderer/components/shaders/Shader.js +10 -5
  43. package/lib/commonjs/renderer/components/shaders/Shader.js.map +1 -1
  44. package/lib/commonjs/renderer/components/shaders/Turbulence.js +14 -7
  45. package/lib/commonjs/renderer/components/shaders/Turbulence.js.map +1 -1
  46. package/lib/commonjs/renderer/components/shapes/Circle.js +0 -6
  47. package/lib/commonjs/renderer/components/shapes/Circle.js.map +1 -1
  48. package/lib/commonjs/renderer/components/shapes/FitBox.js +1 -4
  49. package/lib/commonjs/renderer/components/shapes/FitBox.js.map +1 -1
  50. package/lib/commonjs/renderer/components/shapes/Oval.js +0 -4
  51. package/lib/commonjs/renderer/components/shapes/Oval.js.map +1 -1
  52. package/lib/commonjs/renderer/components/shapes/Path.js +12 -6
  53. package/lib/commonjs/renderer/components/shapes/Path.js.map +1 -1
  54. package/lib/commonjs/renderer/components/shapes/Points.js +10 -5
  55. package/lib/commonjs/renderer/components/shapes/Points.js.map +1 -1
  56. package/lib/commonjs/renderer/components/shapes/RoundedRect.js +0 -3
  57. package/lib/commonjs/renderer/components/shapes/RoundedRect.js.map +1 -1
  58. package/lib/commonjs/renderer/components/shapes/Vertices.js +10 -5
  59. package/lib/commonjs/renderer/components/shapes/Vertices.js.map +1 -1
  60. package/lib/commonjs/renderer/components/text/Glyphs.js +12 -6
  61. package/lib/commonjs/renderer/components/text/Glyphs.js.map +1 -1
  62. package/lib/commonjs/renderer/components/text/Text.js +12 -6
  63. package/lib/commonjs/renderer/components/text/Text.js.map +1 -1
  64. package/lib/commonjs/renderer/components/text/TextBlob.js +12 -6
  65. package/lib/commonjs/renderer/components/text/TextBlob.js.map +1 -1
  66. package/lib/commonjs/renderer/components/text/TextPath.js +10 -5
  67. package/lib/commonjs/renderer/components/text/TextPath.js.map +1 -1
  68. package/lib/commonjs/renderer/processors/Animations/Animations.js.map +1 -1
  69. package/lib/commonjs/skia/types/RuntimeEffect/RuntimeEffect.js.map +1 -1
  70. package/lib/commonjs/skia/types/Shader/Shader.js +3 -2
  71. package/lib/commonjs/skia/types/Shader/Shader.js.map +1 -1
  72. package/lib/commonjs/skia/web/JsiSkRuntimeEffect.js +6 -1
  73. package/lib/commonjs/skia/web/JsiSkRuntimeEffect.js.map +1 -1
  74. package/lib/commonjs/skia/web/JsiSkRuntimeEffectFactory.js +1 -1
  75. package/lib/commonjs/skia/web/JsiSkRuntimeEffectFactory.js.map +1 -1
  76. package/lib/module/dom/nodes/datatypes/Circle.js +8 -1
  77. package/lib/module/dom/nodes/datatypes/Circle.js.map +1 -1
  78. package/lib/module/dom/nodes/datatypes/Rect.js +7 -3
  79. package/lib/module/dom/nodes/datatypes/Rect.js.map +1 -1
  80. package/lib/module/dom/nodes/drawings/ImageNode.js +4 -2
  81. package/lib/module/dom/nodes/drawings/ImageNode.js.map +1 -1
  82. package/lib/module/dom/types/Common.js.map +1 -1
  83. package/lib/module/dom/types/Drawings.js.map +1 -1
  84. package/lib/module/renderer/components/Mask.js +2 -6
  85. package/lib/module/renderer/components/Mask.js.map +1 -1
  86. package/lib/module/renderer/components/image/Image.js +0 -5
  87. package/lib/module/renderer/components/image/Image.js.map +1 -1
  88. package/lib/module/renderer/components/image/ImageShader.js +20 -10
  89. package/lib/module/renderer/components/image/ImageShader.js.map +1 -1
  90. package/lib/module/renderer/components/imageFilters/Blur.js +10 -5
  91. package/lib/module/renderer/components/imageFilters/Blur.js.map +1 -1
  92. package/lib/module/renderer/components/imageFilters/Morphology.js +10 -5
  93. package/lib/module/renderer/components/imageFilters/Morphology.js.map +1 -1
  94. package/lib/module/renderer/components/imageFilters/Offset.js +12 -6
  95. package/lib/module/renderer/components/imageFilters/Offset.js.map +1 -1
  96. package/lib/module/renderer/components/maskFilters/Blur.js +12 -6
  97. package/lib/module/renderer/components/maskFilters/Blur.js.map +1 -1
  98. package/lib/module/renderer/components/pathEffects/Discrete.js +10 -5
  99. package/lib/module/renderer/components/pathEffects/Discrete.js.map +1 -1
  100. package/lib/module/renderer/components/shaders/FractalNoise.js +14 -7
  101. package/lib/module/renderer/components/shaders/FractalNoise.js.map +1 -1
  102. package/lib/module/renderer/components/shaders/Shader.js +10 -5
  103. package/lib/module/renderer/components/shaders/Shader.js.map +1 -1
  104. package/lib/module/renderer/components/shaders/Turbulence.js +14 -7
  105. package/lib/module/renderer/components/shaders/Turbulence.js.map +1 -1
  106. package/lib/module/renderer/components/shapes/Circle.js +0 -6
  107. package/lib/module/renderer/components/shapes/Circle.js.map +1 -1
  108. package/lib/module/renderer/components/shapes/FitBox.js +1 -4
  109. package/lib/module/renderer/components/shapes/FitBox.js.map +1 -1
  110. package/lib/module/renderer/components/shapes/Oval.js +0 -4
  111. package/lib/module/renderer/components/shapes/Oval.js.map +1 -1
  112. package/lib/module/renderer/components/shapes/Path.js +12 -6
  113. package/lib/module/renderer/components/shapes/Path.js.map +1 -1
  114. package/lib/module/renderer/components/shapes/Points.js +10 -5
  115. package/lib/module/renderer/components/shapes/Points.js.map +1 -1
  116. package/lib/module/renderer/components/shapes/RoundedRect.js +0 -3
  117. package/lib/module/renderer/components/shapes/RoundedRect.js.map +1 -1
  118. package/lib/module/renderer/components/shapes/Vertices.js +10 -5
  119. package/lib/module/renderer/components/shapes/Vertices.js.map +1 -1
  120. package/lib/module/renderer/components/text/Glyphs.js +12 -6
  121. package/lib/module/renderer/components/text/Glyphs.js.map +1 -1
  122. package/lib/module/renderer/components/text/Text.js +12 -6
  123. package/lib/module/renderer/components/text/Text.js.map +1 -1
  124. package/lib/module/renderer/components/text/TextBlob.js +12 -6
  125. package/lib/module/renderer/components/text/TextBlob.js.map +1 -1
  126. package/lib/module/renderer/components/text/TextPath.js +10 -5
  127. package/lib/module/renderer/components/text/TextPath.js.map +1 -1
  128. package/lib/module/renderer/processors/Animations/Animations.js.map +1 -1
  129. package/lib/module/skia/types/RuntimeEffect/RuntimeEffect.js.map +1 -1
  130. package/lib/module/skia/types/Shader/Shader.js +3 -2
  131. package/lib/module/skia/types/Shader/Shader.js.map +1 -1
  132. package/lib/module/skia/web/JsiSkRuntimeEffect.js +6 -1
  133. package/lib/module/skia/web/JsiSkRuntimeEffect.js.map +1 -1
  134. package/lib/module/skia/web/JsiSkRuntimeEffectFactory.js +1 -1
  135. package/lib/module/skia/web/JsiSkRuntimeEffectFactory.js.map +1 -1
  136. package/lib/typescript/src/dom/nodes/datatypes/Circle.d.ts +4 -1
  137. package/lib/typescript/src/dom/types/Common.d.ts +4 -4
  138. package/lib/typescript/src/dom/types/Drawings.d.ts +1 -1
  139. package/lib/typescript/src/renderer/components/Mask.d.ts +3 -9
  140. package/lib/typescript/src/renderer/components/image/Image.d.ts +1 -8
  141. package/lib/typescript/src/renderer/components/image/ImageShader.d.ts +2 -12
  142. package/lib/typescript/src/renderer/components/imageFilters/Blur.d.ts +2 -7
  143. package/lib/typescript/src/renderer/components/imageFilters/Morphology.d.ts +2 -7
  144. package/lib/typescript/src/renderer/components/imageFilters/Offset.d.ts +2 -8
  145. package/lib/typescript/src/renderer/components/maskFilters/Blur.d.ts +2 -8
  146. package/lib/typescript/src/renderer/components/pathEffects/Discrete.d.ts +2 -7
  147. package/lib/typescript/src/renderer/components/shaders/FractalNoise.d.ts +2 -9
  148. package/lib/typescript/src/renderer/components/shaders/Shader.d.ts +2 -7
  149. package/lib/typescript/src/renderer/components/shaders/Turbulence.d.ts +2 -9
  150. package/lib/typescript/src/renderer/components/shapes/Circle.d.ts +1 -9
  151. package/lib/typescript/src/renderer/components/shapes/FitBox.d.ts +2 -7
  152. package/lib/typescript/src/renderer/components/shapes/Oval.d.ts +1 -7
  153. package/lib/typescript/src/renderer/components/shapes/Path.d.ts +2 -8
  154. package/lib/typescript/src/renderer/components/shapes/Points.d.ts +2 -7
  155. package/lib/typescript/src/renderer/components/shapes/RoundedRect.d.ts +1 -6
  156. package/lib/typescript/src/renderer/components/shapes/Vertices.d.ts +2 -7
  157. package/lib/typescript/src/renderer/components/text/Glyphs.d.ts +2 -8
  158. package/lib/typescript/src/renderer/components/text/Text.d.ts +2 -8
  159. package/lib/typescript/src/renderer/components/text/TextBlob.d.ts +2 -8
  160. package/lib/typescript/src/renderer/components/text/TextPath.d.ts +2 -7
  161. package/lib/typescript/src/renderer/processors/Animations/Animations.d.ts +5 -0
  162. package/lib/typescript/src/skia/types/RuntimeEffect/RuntimeEffect.d.ts +4 -0
  163. package/lib/typescript/src/skia/types/Shader/Shader.d.ts +1 -1
  164. package/lib/typescript/src/skia/web/JsiSkRuntimeEffect.d.ts +3 -1
  165. package/package.json +1 -1
  166. package/src/dom/nodes/datatypes/Circle.ts +1 -1
  167. package/src/dom/nodes/datatypes/Rect.ts +3 -3
  168. package/src/dom/nodes/drawings/ImageNode.ts +2 -1
  169. package/src/dom/types/Common.ts +4 -4
  170. package/src/dom/types/Drawings.ts +1 -1
  171. package/src/renderer/components/Mask.tsx +8 -8
  172. package/src/renderer/components/image/Image.tsx +0 -6
  173. package/src/renderer/components/image/ImageShader.tsx +24 -12
  174. package/src/renderer/components/imageFilters/Blur.tsx +6 -7
  175. package/src/renderer/components/imageFilters/Morphology.tsx +6 -7
  176. package/src/renderer/components/imageFilters/Offset.tsx +7 -8
  177. package/src/renderer/components/maskFilters/Blur.tsx +7 -8
  178. package/src/renderer/components/pathEffects/Discrete.tsx +6 -9
  179. package/src/renderer/components/shaders/FractalNoise.tsx +18 -9
  180. package/src/renderer/components/shaders/Shader.tsx +6 -7
  181. package/src/renderer/components/shaders/Turbulence.tsx +15 -9
  182. package/src/renderer/components/shapes/Circle.tsx +0 -4
  183. package/src/renderer/components/shapes/FitBox.tsx +2 -6
  184. package/src/renderer/components/shapes/Oval.tsx +0 -5
  185. package/src/renderer/components/shapes/Path.tsx +7 -8
  186. package/src/renderer/components/shapes/Points.tsx +6 -7
  187. package/src/renderer/components/shapes/RoundedRect.tsx +0 -4
  188. package/src/renderer/components/shapes/Vertices.tsx +6 -7
  189. package/src/renderer/components/text/Glyphs.tsx +7 -8
  190. package/src/renderer/components/text/Text.tsx +7 -8
  191. package/src/renderer/components/text/TextBlob.tsx +7 -8
  192. package/src/renderer/components/text/TextPath.tsx +6 -7
  193. package/src/renderer/processors/Animations/Animations.ts +9 -3
  194. package/src/skia/types/RuntimeEffect/RuntimeEffect.ts +5 -0
  195. package/src/skia/types/Shader/Shader.ts +5 -3
  196. package/src/skia/web/JsiSkRuntimeEffect.ts +5 -1
  197. package/src/skia/web/JsiSkRuntimeEffectFactory.ts +1 -1
@@ -1 +1 @@
1
- {"version":3,"names":["isEdge","pos","b","x","y","width","height","isRRectCtor","def","rect","undefined","isRectCtor","processRect","Skia","XYWHRect","processRRect","r","processRadius","RRectXY"],"sources":["Rect.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any */\nimport type { Skia, SkRect, Vector } from \"../../../skia/types\";\nimport type { RectCtor, RectDef, RRectCtor, RRectDef } from \"../../types\";\n\nimport { processRadius } from \"./Radius\";\n\nexport const isEdge = (pos: Vector, b: SkRect) =>\n pos.x === b.x || pos.y === b.y || pos.x === b.width || pos.y === b.height;\n\n// We have an issue to check property existence on JSI backed instances\nconst isRRectCtor = (def: RRectDef): def is RRectCtor =>\n (def as any).rect === undefined;\n// We have an issue to check property existence on JSI backed instances\nconst isRectCtor = (def: RectDef): def is RectCtor =>\n (def as any).rect === undefined;\n\nexport const processRect = (Skia: Skia, def: RectDef) => {\n if (isRectCtor(def)) {\n return Skia.XYWHRect(def.x, def.y, def.width, def.height);\n } else {\n return def.rect;\n }\n};\n\nexport const processRRect = (Skia: Skia, def: RRectDef) => {\n if (isRRectCtor(def)) {\n const r = processRadius(Skia, def.r);\n return Skia.RRectXY(\n Skia.XYWHRect(def.x, def.y, def.width, def.height),\n r.x,\n r.y\n );\n } else {\n return def.rect;\n }\n};\n"],"mappings":";;;;;;;AAIA;;AAJA;AAMO,MAAMA,MAAM,GAAG,CAACC,GAAD,EAAcC,CAAd,KACpBD,GAAG,CAACE,CAAJ,KAAUD,CAAC,CAACC,CAAZ,IAAiBF,GAAG,CAACG,CAAJ,KAAUF,CAAC,CAACE,CAA7B,IAAkCH,GAAG,CAACE,CAAJ,KAAUD,CAAC,CAACG,KAA9C,IAAuDJ,GAAG,CAACG,CAAJ,KAAUF,CAAC,CAACI,MAD9D,C,CAGP;;;;;AACA,MAAMC,WAAW,GAAIC,GAAD,IACjBA,GAAD,CAAaC,IAAb,KAAsBC,SADxB,C,CAEA;;;AACA,MAAMC,UAAU,GAAIH,GAAD,IAChBA,GAAD,CAAaC,IAAb,KAAsBC,SADxB;;AAGO,MAAME,WAAW,GAAG,CAACC,IAAD,EAAaL,GAAb,KAA8B;EACvD,IAAIG,UAAU,CAACH,GAAD,CAAd,EAAqB;IACnB,OAAOK,IAAI,CAACC,QAAL,CAAcN,GAAG,CAACL,CAAlB,EAAqBK,GAAG,CAACJ,CAAzB,EAA4BI,GAAG,CAACH,KAAhC,EAAuCG,GAAG,CAACF,MAA3C,CAAP;EACD,CAFD,MAEO;IACL,OAAOE,GAAG,CAACC,IAAX;EACD;AACF,CANM;;;;AAQA,MAAMM,YAAY,GAAG,CAACF,IAAD,EAAaL,GAAb,KAA+B;EACzD,IAAID,WAAW,CAACC,GAAD,CAAf,EAAsB;IACpB,MAAMQ,CAAC,GAAG,IAAAC,qBAAA,EAAcJ,IAAd,EAAoBL,GAAG,CAACQ,CAAxB,CAAV;IACA,OAAOH,IAAI,CAACK,OAAL,CACLL,IAAI,CAACC,QAAL,CAAcN,GAAG,CAACL,CAAlB,EAAqBK,GAAG,CAACJ,CAAzB,EAA4BI,GAAG,CAACH,KAAhC,EAAuCG,GAAG,CAACF,MAA3C,CADK,EAELU,CAAC,CAACb,CAFG,EAGLa,CAAC,CAACZ,CAHG,CAAP;EAKD,CAPD,MAOO;IACL,OAAOI,GAAG,CAACC,IAAX;EACD;AACF,CAXM"}
1
+ {"version":3,"names":["isEdge","pos","b","x","y","width","height","isRRectCtor","def","rect","undefined","isRectCtor","processRect","Skia","XYWHRect","processRRect","r","processRadius","RRectXY"],"sources":["Rect.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any */\nimport type { Skia, SkRect, Vector } from \"../../../skia/types\";\nimport type { RectCtor, RectDef, RRectCtor, RRectDef } from \"../../types\";\n\nimport { processRadius } from \"./Radius\";\n\nexport const isEdge = (pos: Vector, b: SkRect) =>\n pos.x === b.x || pos.y === b.y || pos.x === b.width || pos.y === b.height;\n\n// We have an issue to check property existence on JSI backed instances\nconst isRRectCtor = (def: RRectDef): def is RRectCtor =>\n (def as any).rect === undefined;\n// We have an issue to check property existence on JSI backed instances\nconst isRectCtor = (def: RectDef): def is RectCtor =>\n (def as any).rect === undefined;\n\nexport const processRect = (Skia: Skia, def: RectDef) => {\n if (isRectCtor(def)) {\n return Skia.XYWHRect(def.x ?? 0, def.y ?? 0, def.width, def.height);\n } else {\n return def.rect;\n }\n};\n\nexport const processRRect = (Skia: Skia, def: RRectDef) => {\n if (isRRectCtor(def)) {\n const r = processRadius(Skia, def.r ?? 0);\n return Skia.RRectXY(\n Skia.XYWHRect(def.x ?? 0, def.y ?? 0, def.width, def.height),\n r.x,\n r.y\n );\n } else {\n return def.rect;\n }\n};\n"],"mappings":";;;;;;;AAIA;;AAJA;AAMO,MAAMA,MAAM,GAAG,CAACC,GAAD,EAAcC,CAAd,KACpBD,GAAG,CAACE,CAAJ,KAAUD,CAAC,CAACC,CAAZ,IAAiBF,GAAG,CAACG,CAAJ,KAAUF,CAAC,CAACE,CAA7B,IAAkCH,GAAG,CAACE,CAAJ,KAAUD,CAAC,CAACG,KAA9C,IAAuDJ,GAAG,CAACG,CAAJ,KAAUF,CAAC,CAACI,MAD9D,C,CAGP;;;;;AACA,MAAMC,WAAW,GAAIC,GAAD,IACjBA,GAAD,CAAaC,IAAb,KAAsBC,SADxB,C,CAEA;;;AACA,MAAMC,UAAU,GAAIH,GAAD,IAChBA,GAAD,CAAaC,IAAb,KAAsBC,SADxB;;AAGO,MAAME,WAAW,GAAG,CAACC,IAAD,EAAaL,GAAb,KAA8B;EACvD,IAAIG,UAAU,CAACH,GAAD,CAAd,EAAqB;IACnB,OAAOK,IAAI,CAACC,QAAL,CAAcN,GAAG,CAACL,CAAJ,IAAS,CAAvB,EAA0BK,GAAG,CAACJ,CAAJ,IAAS,CAAnC,EAAsCI,GAAG,CAACH,KAA1C,EAAiDG,GAAG,CAACF,MAArD,CAAP;EACD,CAFD,MAEO;IACL,OAAOE,GAAG,CAACC,IAAX;EACD;AACF,CANM;;;;AAQA,MAAMM,YAAY,GAAG,CAACF,IAAD,EAAaL,GAAb,KAA+B;EACzD,IAAID,WAAW,CAACC,GAAD,CAAf,EAAsB;IACpB,MAAMQ,CAAC,GAAG,IAAAC,qBAAA,EAAcJ,IAAd,EAAoBL,GAAG,CAACQ,CAAJ,IAAS,CAA7B,CAAV;IACA,OAAOH,IAAI,CAACK,OAAL,CACLL,IAAI,CAACC,QAAL,CAAcN,GAAG,CAACL,CAAJ,IAAS,CAAvB,EAA0BK,GAAG,CAACJ,CAAJ,IAAS,CAAnC,EAAsCI,GAAG,CAACH,KAA1C,EAAiDG,GAAG,CAACF,MAArD,CADK,EAELU,CAAC,CAACb,CAFG,EAGLa,CAAC,CAACZ,CAHG,CAAP;EAKD,CAPD,MAOO;IACL,OAAOI,GAAG,CAACC,IAAX;EACD;AACF,CAXM"}
@@ -18,9 +18,9 @@ class ImageNode extends _DrawingNode.JsiDrawingNode {
18
18
 
19
19
  deriveProps() {
20
20
  const {
21
- image,
22
- fit
21
+ image
23
22
  } = this.props;
23
+ const fit = this.props.fit ?? "contain";
24
24
  const rect = (0, _datatypes.processRect)(this.Skia, this.props);
25
25
  const {
26
26
  src,
@@ -1 +1 @@
1
- {"version":3,"names":["ImageNode","JsiDrawingNode","constructor","ctx","props","NodeType","Image","deriveProps","image","fit","rect","processRect","Skia","src","dst","fitRects","x","y","width","height","draw","canvas","paint","derived","Error","drawImageRect"],"sources":["ImageNode.ts"],"sourcesContent":["import type { SkRect } from \"../../../skia/types\";\nimport type { DrawingContext, ImageProps } from \"../../types\";\nimport { NodeType } from \"../../types\";\nimport { fitRects, processRect } from \"../datatypes\";\nimport { JsiDrawingNode } from \"../DrawingNode\";\nimport type { NodeContext } from \"../Node\";\n\nexport class ImageNode extends JsiDrawingNode<\n ImageProps,\n { src: SkRect; dst: SkRect }\n> {\n constructor(ctx: NodeContext, props: ImageProps) {\n super(ctx, NodeType.Image, props);\n }\n\n deriveProps() {\n const { image, fit } = this.props;\n const rect = processRect(this.Skia, this.props);\n const { src, dst } = fitRects(\n fit,\n {\n x: 0,\n y: 0,\n width: image.width(),\n height: image.height(),\n },\n rect\n );\n return { src, dst };\n }\n\n draw({ canvas, paint }: DrawingContext) {\n const { image } = this.props;\n if (!this.derived) {\n throw new Error(\"ImageNode: src and dst are undefined\");\n }\n const { src, dst } = this.derived;\n canvas.drawImageRect(image, src, dst, paint);\n }\n}\n"],"mappings":";;;;;;;AAEA;;AACA;;AACA;;AAGO,MAAMA,SAAN,SAAwBC,2BAAxB,CAGL;EACAC,WAAW,CAACC,GAAD,EAAmBC,KAAnB,EAAsC;IAC/C,MAAMD,GAAN,EAAWE,eAAA,CAASC,KAApB,EAA2BF,KAA3B;EACD;;EAEDG,WAAW,GAAG;IACZ,MAAM;MAAEC,KAAF;MAASC;IAAT,IAAiB,KAAKL,KAA5B;IACA,MAAMM,IAAI,GAAG,IAAAC,sBAAA,EAAY,KAAKC,IAAjB,EAAuB,KAAKR,KAA5B,CAAb;IACA,MAAM;MAAES,GAAF;MAAOC;IAAP,IAAe,IAAAC,mBAAA,EACnBN,GADmB,EAEnB;MACEO,CAAC,EAAE,CADL;MAEEC,CAAC,EAAE,CAFL;MAGEC,KAAK,EAAEV,KAAK,CAACU,KAAN,EAHT;MAIEC,MAAM,EAAEX,KAAK,CAACW,MAAN;IAJV,CAFmB,EAQnBT,IARmB,CAArB;IAUA,OAAO;MAAEG,GAAF;MAAOC;IAAP,CAAP;EACD;;EAEDM,IAAI,OAAoC;IAAA,IAAnC;MAAEC,MAAF;MAAUC;IAAV,CAAmC;IACtC,MAAM;MAAEd;IAAF,IAAY,KAAKJ,KAAvB;;IACA,IAAI,CAAC,KAAKmB,OAAV,EAAmB;MACjB,MAAM,IAAIC,KAAJ,CAAU,sCAAV,CAAN;IACD;;IACD,MAAM;MAAEX,GAAF;MAAOC;IAAP,IAAe,KAAKS,OAA1B;IACAF,MAAM,CAACI,aAAP,CAAqBjB,KAArB,EAA4BK,GAA5B,EAAiCC,GAAjC,EAAsCQ,KAAtC;EACD;;AA5BD"}
1
+ {"version":3,"names":["ImageNode","JsiDrawingNode","constructor","ctx","props","NodeType","Image","deriveProps","image","fit","rect","processRect","Skia","src","dst","fitRects","x","y","width","height","draw","canvas","paint","derived","Error","drawImageRect"],"sources":["ImageNode.ts"],"sourcesContent":["import type { SkRect } from \"../../../skia/types\";\nimport type { DrawingContext, ImageProps } from \"../../types\";\nimport { NodeType } from \"../../types\";\nimport { fitRects, processRect } from \"../datatypes\";\nimport { JsiDrawingNode } from \"../DrawingNode\";\nimport type { NodeContext } from \"../Node\";\n\nexport class ImageNode extends JsiDrawingNode<\n ImageProps,\n { src: SkRect; dst: SkRect }\n> {\n constructor(ctx: NodeContext, props: ImageProps) {\n super(ctx, NodeType.Image, props);\n }\n\n deriveProps() {\n const { image } = this.props;\n const fit = this.props.fit ?? \"contain\";\n const rect = processRect(this.Skia, this.props);\n const { src, dst } = fitRects(\n fit,\n {\n x: 0,\n y: 0,\n width: image.width(),\n height: image.height(),\n },\n rect\n );\n return { src, dst };\n }\n\n draw({ canvas, paint }: DrawingContext) {\n const { image } = this.props;\n if (!this.derived) {\n throw new Error(\"ImageNode: src and dst are undefined\");\n }\n const { src, dst } = this.derived;\n canvas.drawImageRect(image, src, dst, paint);\n }\n}\n"],"mappings":";;;;;;;AAEA;;AACA;;AACA;;AAGO,MAAMA,SAAN,SAAwBC,2BAAxB,CAGL;EACAC,WAAW,CAACC,GAAD,EAAmBC,KAAnB,EAAsC;IAC/C,MAAMD,GAAN,EAAWE,eAAA,CAASC,KAApB,EAA2BF,KAA3B;EACD;;EAEDG,WAAW,GAAG;IACZ,MAAM;MAAEC;IAAF,IAAY,KAAKJ,KAAvB;IACA,MAAMK,GAAG,GAAG,KAAKL,KAAL,CAAWK,GAAX,IAAkB,SAA9B;IACA,MAAMC,IAAI,GAAG,IAAAC,sBAAA,EAAY,KAAKC,IAAjB,EAAuB,KAAKR,KAA5B,CAAb;IACA,MAAM;MAAES,GAAF;MAAOC;IAAP,IAAe,IAAAC,mBAAA,EACnBN,GADmB,EAEnB;MACEO,CAAC,EAAE,CADL;MAEEC,CAAC,EAAE,CAFL;MAGEC,KAAK,EAAEV,KAAK,CAACU,KAAN,EAHT;MAIEC,MAAM,EAAEX,KAAK,CAACW,MAAN;IAJV,CAFmB,EAQnBT,IARmB,CAArB;IAUA,OAAO;MAAEG,GAAF;MAAOC;IAAP,CAAP;EACD;;EAEDM,IAAI,OAAoC;IAAA,IAAnC;MAAEC,MAAF;MAAUC;IAAV,CAAmC;IACtC,MAAM;MAAEd;IAAF,IAAY,KAAKJ,KAAvB;;IACA,IAAI,CAAC,KAAKmB,OAAV,EAAmB;MACjB,MAAM,IAAIC,KAAJ,CAAU,sCAAV,CAAN;IACD;;IACD,MAAM;MAAEX,GAAF;MAAOC;IAAP,IAAe,KAAKS,OAA1B;IACAF,MAAM,CAACI,aAAP,CAAqBjB,KAArB,EAA4BK,GAA5B,EAAiCC,GAAjC,EAAsCQ,KAAtC;EACD;;AA7BD"}
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["Common.ts"],"sourcesContent":["import type { ReactNode } from \"react\";\n\nimport type {\n BlendMode,\n Color,\n PaintStyle,\n SkMatrix,\n SkPaint,\n SkPath,\n SkRect,\n SkRRect,\n StrokeCap,\n StrokeJoin,\n Transforms2d,\n Vector,\n} from \"../../skia/types\";\n\nexport type SkEnum<T> = Uncapitalize<keyof T extends string ? keyof T : never>;\n\nexport type PathDef = string | SkPath;\n\nexport type ClipDef = SkRRect | SkRect | PathDef;\n\nexport type Fit =\n | \"cover\"\n | \"contain\"\n | \"fill\"\n | \"fitHeight\"\n | \"fitWidth\"\n | \"none\"\n | \"scaleDown\";\n\nexport type Radius = number | Vector;\n\nexport interface ChildrenProps {\n children?: ReactNode | ReactNode[];\n}\n\nexport interface RectCtor {\n x: number;\n y: number;\n width: number;\n height: number;\n}\n\nexport interface RRectCtor extends RectCtor {\n r: Radius;\n}\n\nexport type RectDef = RectCtor | { rect: SkRect };\nexport type RRectDef = RRectCtor | { rect: SkRRect };\n\nexport interface PointCircleDef {\n c: Vector;\n r: number;\n}\n\nexport interface ScalarCircleDef {\n cx: number;\n cy: number;\n r: number;\n}\n\nexport type CircleDef = PointCircleDef | ScalarCircleDef;\n\nexport interface TransformProps {\n transform?: Transforms2d;\n origin?: Vector;\n matrix?: SkMatrix;\n}\n\nexport interface PaintProps extends ChildrenProps {\n color?: Color;\n strokeWidth?: number;\n blendMode?: SkEnum<typeof BlendMode>;\n style?: SkEnum<typeof PaintStyle>;\n strokeJoin?: SkEnum<typeof StrokeJoin>;\n strokeCap?: SkEnum<typeof StrokeCap>;\n strokeMiter?: number;\n opacity?: number;\n antiAlias?: boolean;\n}\n\nexport interface GroupProps extends PaintProps, TransformProps {\n clip?: ClipDef;\n invertClip?: boolean;\n layer?: SkPaint | boolean;\n}\n"],"mappings":""}
1
+ {"version":3,"names":[],"sources":["Common.ts"],"sourcesContent":["import type { ReactNode } from \"react\";\n\nimport type {\n BlendMode,\n Color,\n PaintStyle,\n SkMatrix,\n SkPaint,\n SkPath,\n SkRect,\n SkRRect,\n StrokeCap,\n StrokeJoin,\n Transforms2d,\n Vector,\n} from \"../../skia/types\";\n\nexport type SkEnum<T> = Uncapitalize<keyof T extends string ? keyof T : never>;\n\nexport type PathDef = string | SkPath;\n\nexport type ClipDef = SkRRect | SkRect | PathDef;\n\nexport type Fit =\n | \"cover\"\n | \"contain\"\n | \"fill\"\n | \"fitHeight\"\n | \"fitWidth\"\n | \"none\"\n | \"scaleDown\";\n\nexport type Radius = number | Vector;\n\nexport interface ChildrenProps {\n children?: ReactNode | ReactNode[];\n}\n\nexport interface RectCtor {\n x?: number;\n y?: number;\n width: number;\n height: number;\n}\n\nexport interface RRectCtor extends RectCtor {\n r?: Radius;\n}\n\nexport type RectDef = RectCtor | { rect: SkRect };\nexport type RRectDef = RRectCtor | { rect: SkRRect };\n\nexport interface PointCircleDef {\n c?: Vector;\n r: number;\n}\n\nexport interface ScalarCircleDef {\n cx: number;\n cy: number;\n r: number;\n}\n\nexport type CircleDef = PointCircleDef | ScalarCircleDef;\n\nexport interface TransformProps {\n transform?: Transforms2d;\n origin?: Vector;\n matrix?: SkMatrix;\n}\n\nexport interface PaintProps extends ChildrenProps {\n color?: Color;\n strokeWidth?: number;\n blendMode?: SkEnum<typeof BlendMode>;\n style?: SkEnum<typeof PaintStyle>;\n strokeJoin?: SkEnum<typeof StrokeJoin>;\n strokeCap?: SkEnum<typeof StrokeCap>;\n strokeMiter?: number;\n opacity?: number;\n antiAlias?: boolean;\n}\n\nexport interface GroupProps extends PaintProps, TransformProps {\n clip?: ClipDef;\n invertClip?: boolean;\n layer?: SkPaint | boolean;\n}\n"],"mappings":""}
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["Drawings.ts"],"sourcesContent":["import type {\n FillType,\n SkImage,\n StrokeOpts,\n Vector,\n Color,\n SkPoint,\n BlendMode,\n PointMode,\n VertexMode,\n SkFont,\n SkRRect,\n SkTextBlob,\n SkPicture,\n SkSVG,\n SkPaint,\n SkRect,\n} from \"../../skia/types\";\n\nimport type {\n CircleDef,\n Fit,\n GroupProps,\n PathDef,\n RectDef,\n RRectDef,\n SkEnum,\n} from \"./Common\";\nimport type { DrawingContext } from \"./DrawingContext\";\n\nexport interface DrawingNodeProps extends GroupProps {\n paint?: SkPaint;\n}\n\nexport type ImageProps = DrawingNodeProps &\n RectDef & {\n fit: Fit;\n image: SkImage;\n };\n\nexport type CircleProps = CircleDef & DrawingNodeProps;\n\nexport interface PathProps extends DrawingNodeProps {\n path: PathDef;\n start: number;\n end: number;\n stroke?: StrokeOpts;\n fillType?: SkEnum<typeof FillType>;\n}\n\nexport interface CustomDrawingNodeProps extends DrawingNodeProps {\n drawing: (ctx: DrawingContext) => void;\n}\n\nexport interface LineProps extends DrawingNodeProps {\n p1: Vector;\n p2: Vector;\n}\n\nexport type OvalProps = RectDef & DrawingNodeProps;\n\nexport type RectProps = RectDef & DrawingNodeProps;\n\nexport type RoundedRectProps = RRectDef & DrawingNodeProps;\n\nexport interface CubicBezierHandle {\n pos: Vector;\n c1: Vector;\n c2: Vector;\n}\n\nexport interface PatchProps extends DrawingNodeProps {\n colors?: Color[];\n patch: [\n CubicBezierHandle,\n CubicBezierHandle,\n CubicBezierHandle,\n CubicBezierHandle\n ];\n texture?: readonly [SkPoint, SkPoint, SkPoint, SkPoint];\n blendMode?: SkEnum<typeof BlendMode>;\n}\n\nexport interface VerticesProps extends DrawingNodeProps {\n colors?: string[];\n vertices: SkPoint[];\n textures?: SkPoint[];\n mode: SkEnum<typeof VertexMode>;\n blendMode?: SkEnum<typeof BlendMode>;\n indices?: number[];\n}\n\nexport type ImageSVGProps = RectDef & {\n svg: SkSVG;\n} & DrawingNodeProps;\n\nexport interface PictureProps extends DrawingNodeProps {\n picture: SkPicture;\n}\n\nexport interface PointsProps extends DrawingNodeProps {\n points: SkPoint[];\n mode: SkEnum<typeof PointMode>;\n}\n\nexport interface DiffRectProps extends DrawingNodeProps {\n inner: SkRRect;\n outer: SkRRect;\n}\n\nexport interface TextProps extends DrawingNodeProps {\n font: SkFont;\n text: string;\n x: number;\n y: number;\n}\n\nexport interface TextPathProps extends DrawingNodeProps {\n font: SkFont;\n text: string;\n path: PathDef;\n initialOffset: number;\n}\n\nexport interface TextBlobProps extends DrawingNodeProps {\n blob: SkTextBlob;\n x: number;\n y: number;\n}\n\nexport interface Glyph {\n id: number;\n pos: SkPoint;\n}\n\nexport interface GlyphsProps extends DrawingNodeProps {\n font: SkFont;\n x: number;\n y: number;\n glyphs: Glyph[];\n}\n\nexport interface BoxProps extends DrawingNodeProps {\n box: SkRRect | SkRect;\n}\n\nexport interface BoxShadowProps {\n dx?: number;\n dy?: number;\n spread?: number;\n blur: number;\n color?: Color;\n inner?: boolean;\n}\n"],"mappings":""}
1
+ {"version":3,"names":[],"sources":["Drawings.ts"],"sourcesContent":["import type {\n FillType,\n SkImage,\n StrokeOpts,\n Vector,\n Color,\n SkPoint,\n BlendMode,\n PointMode,\n VertexMode,\n SkFont,\n SkRRect,\n SkTextBlob,\n SkPicture,\n SkSVG,\n SkPaint,\n SkRect,\n} from \"../../skia/types\";\n\nimport type {\n CircleDef,\n Fit,\n GroupProps,\n PathDef,\n RectDef,\n RRectDef,\n SkEnum,\n} from \"./Common\";\nimport type { DrawingContext } from \"./DrawingContext\";\n\nexport interface DrawingNodeProps extends GroupProps {\n paint?: SkPaint;\n}\n\nexport type ImageProps = DrawingNodeProps &\n RectDef & {\n fit?: Fit;\n image: SkImage;\n };\n\nexport type CircleProps = CircleDef & DrawingNodeProps;\n\nexport interface PathProps extends DrawingNodeProps {\n path: PathDef;\n start: number;\n end: number;\n stroke?: StrokeOpts;\n fillType?: SkEnum<typeof FillType>;\n}\n\nexport interface CustomDrawingNodeProps extends DrawingNodeProps {\n drawing: (ctx: DrawingContext) => void;\n}\n\nexport interface LineProps extends DrawingNodeProps {\n p1: Vector;\n p2: Vector;\n}\n\nexport type OvalProps = RectDef & DrawingNodeProps;\n\nexport type RectProps = RectDef & DrawingNodeProps;\n\nexport type RoundedRectProps = RRectDef & DrawingNodeProps;\n\nexport interface CubicBezierHandle {\n pos: Vector;\n c1: Vector;\n c2: Vector;\n}\n\nexport interface PatchProps extends DrawingNodeProps {\n colors?: Color[];\n patch: [\n CubicBezierHandle,\n CubicBezierHandle,\n CubicBezierHandle,\n CubicBezierHandle\n ];\n texture?: readonly [SkPoint, SkPoint, SkPoint, SkPoint];\n blendMode?: SkEnum<typeof BlendMode>;\n}\n\nexport interface VerticesProps extends DrawingNodeProps {\n colors?: string[];\n vertices: SkPoint[];\n textures?: SkPoint[];\n mode: SkEnum<typeof VertexMode>;\n blendMode?: SkEnum<typeof BlendMode>;\n indices?: number[];\n}\n\nexport type ImageSVGProps = RectDef & {\n svg: SkSVG;\n} & DrawingNodeProps;\n\nexport interface PictureProps extends DrawingNodeProps {\n picture: SkPicture;\n}\n\nexport interface PointsProps extends DrawingNodeProps {\n points: SkPoint[];\n mode: SkEnum<typeof PointMode>;\n}\n\nexport interface DiffRectProps extends DrawingNodeProps {\n inner: SkRRect;\n outer: SkRRect;\n}\n\nexport interface TextProps extends DrawingNodeProps {\n font: SkFont;\n text: string;\n x: number;\n y: number;\n}\n\nexport interface TextPathProps extends DrawingNodeProps {\n font: SkFont;\n text: string;\n path: PathDef;\n initialOffset: number;\n}\n\nexport interface TextBlobProps extends DrawingNodeProps {\n blob: SkTextBlob;\n x: number;\n y: number;\n}\n\nexport interface Glyph {\n id: number;\n pos: SkPoint;\n}\n\nexport interface GlyphsProps extends DrawingNodeProps {\n font: SkFont;\n x: number;\n y: number;\n glyphs: Glyph[];\n}\n\nexport interface BoxProps extends DrawingNodeProps {\n box: SkRRect | SkRect;\n}\n\nexport interface BoxShadowProps {\n dx?: number;\n dy?: number;\n spread?: number;\n blur: number;\n color?: Color;\n inner?: boolean;\n}\n"],"mappings":""}
@@ -19,8 +19,8 @@ const Mask = _ref => {
19
19
  let {
20
20
  children,
21
21
  mask,
22
- mode,
23
- clip
22
+ mode = "alpha",
23
+ clip = true
24
24
  } = _ref;
25
25
  return /*#__PURE__*/_react.default.createElement(_Group.Group, {
26
26
  layer: true
@@ -38,8 +38,4 @@ const Mask = _ref => {
38
38
  };
39
39
 
40
40
  exports.Mask = Mask;
41
- Mask.defaultProps = {
42
- mode: "alpha",
43
- clip: true
44
- };
45
41
  //# sourceMappingURL=Mask.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["Mask","children","mask","mode","clip","defaultProps"],"sources":["Mask.tsx"],"sourcesContent":["import type { ReactNode } from \"react\";\nimport React from \"react\";\n\nimport { Group } from \"./Group\";\nimport { LumaColorFilter } from \"./colorFilters/LumaColorFilter\";\nimport { Paint } from \"./Paint\";\n\ninterface MaskProps {\n mode: \"luminance\" | \"alpha\";\n clip: boolean;\n mask: ReactNode | ReactNode[];\n children: ReactNode | ReactNode[];\n}\n\nexport const Mask = ({ children, mask, mode, clip }: MaskProps) => {\n return (\n <Group layer>\n <Group\n layer={\n <Paint blendMode=\"src\">\n {mode === \"luminance\" && <LumaColorFilter />}\n </Paint>\n }\n >\n {mask}\n {clip && <Group layer={<Paint blendMode=\"dstIn\" />}>{children}</Group>}\n </Group>\n <Group blendMode=\"srcIn\">{children}</Group>\n </Group>\n );\n};\n\nMask.defaultProps = {\n mode: \"alpha\",\n clip: true,\n};\n"],"mappings":";;;;;;;AACA;;AAEA;;AACA;;AACA;;;;AASO,MAAMA,IAAI,GAAG,QAA+C;EAAA,IAA9C;IAAEC,QAAF;IAAYC,IAAZ;IAAkBC,IAAlB;IAAwBC;EAAxB,CAA8C;EACjE,oBACE,6BAAC,YAAD;IAAO,KAAK;EAAZ,gBACE,6BAAC,YAAD;IACE,KAAK,eACH,6BAAC,YAAD;MAAO,SAAS,EAAC;IAAjB,GACGD,IAAI,KAAK,WAAT,iBAAwB,6BAAC,gCAAD,OAD3B;EAFJ,GAOGD,IAPH,EAQGE,IAAI,iBAAI,6BAAC,YAAD;IAAO,KAAK,eAAE,6BAAC,YAAD;MAAO,SAAS,EAAC;IAAjB;EAAd,GAA4CH,QAA5C,CARX,CADF,eAWE,6BAAC,YAAD;IAAO,SAAS,EAAC;EAAjB,GAA0BA,QAA1B,CAXF,CADF;AAeD,CAhBM;;;AAkBPD,IAAI,CAACK,YAAL,GAAoB;EAClBF,IAAI,EAAE,OADY;EAElBC,IAAI,EAAE;AAFY,CAApB"}
1
+ {"version":3,"names":["Mask","children","mask","mode","clip"],"sources":["Mask.tsx"],"sourcesContent":["import type { ReactNode } from \"react\";\nimport React from \"react\";\n\nimport { Group } from \"./Group\";\nimport { LumaColorFilter } from \"./colorFilters/LumaColorFilter\";\nimport { Paint } from \"./Paint\";\n\ninterface MaskProps {\n mode?: \"luminance\" | \"alpha\";\n clip?: boolean;\n mask: ReactNode | ReactNode[];\n children: ReactNode | ReactNode[];\n}\n\nexport const Mask = ({\n children,\n mask,\n mode = \"alpha\",\n clip = true,\n}: MaskProps) => {\n return (\n <Group layer>\n <Group\n layer={\n <Paint blendMode=\"src\">\n {mode === \"luminance\" && <LumaColorFilter />}\n </Paint>\n }\n >\n {mask}\n {clip && <Group layer={<Paint blendMode=\"dstIn\" />}>{children}</Group>}\n </Group>\n <Group blendMode=\"srcIn\">{children}</Group>\n </Group>\n );\n};\n"],"mappings":";;;;;;;AACA;;AAEA;;AACA;;AACA;;;;AASO,MAAMA,IAAI,GAAG,QAKH;EAAA,IALI;IACnBC,QADmB;IAEnBC,IAFmB;IAGnBC,IAAI,GAAG,OAHY;IAInBC,IAAI,GAAG;EAJY,CAKJ;EACf,oBACE,6BAAC,YAAD;IAAO,KAAK;EAAZ,gBACE,6BAAC,YAAD;IACE,KAAK,eACH,6BAAC,YAAD;MAAO,SAAS,EAAC;IAAjB,GACGD,IAAI,KAAK,WAAT,iBAAwB,6BAAC,gCAAD,OAD3B;EAFJ,GAOGD,IAPH,EAQGE,IAAI,iBAAI,6BAAC,YAAD;IAAO,KAAK,eAAE,6BAAC,YAAD;MAAO,SAAS,EAAC;IAAjB;EAAd,GAA4CH,QAA5C,CARX,CADF,eAWE,6BAAC,YAAD;IAAO,SAAS,EAAC;EAAjB,GAA0BA,QAA1B,CAXF,CADF;AAeD,CArBM"}
@@ -14,9 +14,4 @@ const Image = props => {
14
14
  };
15
15
 
16
16
  exports.Image = Image;
17
- Image.defaultProps = {
18
- x: 0,
19
- y: 0,
20
- fit: "contain"
21
- };
22
17
  //# sourceMappingURL=Image.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["Image","props","defaultProps","x","y","fit"],"sources":["Image.tsx"],"sourcesContent":["import React from \"react\";\n\nimport type { SkiaProps } from \"../../processors\";\nimport type { ImageProps } from \"../../../dom/types\";\n\nexport const Image = (props: SkiaProps<ImageProps>) => {\n return <skImage {...props} />;\n};\n\nImage.defaultProps = {\n x: 0,\n y: 0,\n fit: \"contain\",\n};\n"],"mappings":";;;;;;;AAAA;;;;AAKO,MAAMA,KAAK,GAAIC,KAAD,IAAkC;EACrD,oBAAO,wCAAaA,KAAb,CAAP;AACD,CAFM;;;AAIPD,KAAK,CAACE,YAAN,GAAqB;EACnBC,CAAC,EAAE,CADgB;EAEnBC,CAAC,EAAE,CAFgB;EAGnBC,GAAG,EAAE;AAHc,CAArB"}
1
+ {"version":3,"names":["Image","props"],"sources":["Image.tsx"],"sourcesContent":["import React from \"react\";\n\nimport type { SkiaProps } from \"../../processors\";\nimport type { ImageProps } from \"../../../dom/types\";\n\nexport const Image = (props: SkiaProps<ImageProps>) => {\n return <skImage {...props} />;\n};\n"],"mappings":";;;;;;;AAAA;;;;AAKO,MAAMA,KAAK,GAAIC,KAAD,IAAkC;EACrD,oBAAO,wCAAaA,KAAb,CAAP;AACD,CAFM"}
@@ -9,17 +9,27 @@ var _react = _interopRequireDefault(require("react"));
9
9
 
10
10
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11
11
 
12
- const ImageShader = props => {
13
- return /*#__PURE__*/_react.default.createElement("skImageShader", props);
12
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
13
+
14
+ const ImageShader = _ref => {
15
+ let {
16
+ tx = "decal",
17
+ ty = "decal",
18
+ fm = "nearest",
19
+ mm = "none",
20
+ fit = "none",
21
+ transform = [],
22
+ ...props
23
+ } = _ref;
24
+ return /*#__PURE__*/_react.default.createElement("skImageShader", _extends({
25
+ tx: tx,
26
+ ty: ty,
27
+ fm: fm,
28
+ mm: mm,
29
+ fit: fit,
30
+ transform: transform
31
+ }, props));
14
32
  };
15
33
 
16
34
  exports.ImageShader = ImageShader;
17
- ImageShader.defaultProps = {
18
- tx: "decal",
19
- ty: "decal",
20
- fm: "nearest",
21
- mm: "none",
22
- fit: "none",
23
- transform: []
24
- };
25
35
  //# sourceMappingURL=ImageShader.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["ImageShader","props","defaultProps","tx","ty","fm","mm","fit","transform"],"sources":["ImageShader.tsx"],"sourcesContent":["import React from \"react\";\n\nimport type { ImageShaderProps } from \"../../../dom/types\";\nimport type { SkiaProps } from \"../../processors\";\n\nexport const ImageShader = (props: SkiaProps<ImageShaderProps>) => {\n return <skImageShader {...props} />;\n};\n\nImageShader.defaultProps = {\n tx: \"decal\",\n ty: \"decal\",\n fm: \"nearest\",\n mm: \"none\",\n fit: \"none\",\n transform: [],\n} as const;\n"],"mappings":";;;;;;;AAAA;;;;AAKO,MAAMA,WAAW,GAAIC,KAAD,IAAwC;EACjE,oBAAO,8CAAmBA,KAAnB,CAAP;AACD,CAFM;;;AAIPD,WAAW,CAACE,YAAZ,GAA2B;EACzBC,EAAE,EAAE,OADqB;EAEzBC,EAAE,EAAE,OAFqB;EAGzBC,EAAE,EAAE,SAHqB;EAIzBC,EAAE,EAAE,MAJqB;EAKzBC,GAAG,EAAE,MALoB;EAMzBC,SAAS,EAAE;AANc,CAA3B"}
1
+ {"version":3,"names":["ImageShader","tx","ty","fm","mm","fit","transform","props"],"sources":["ImageShader.tsx"],"sourcesContent":["import React from \"react\";\n\nimport type { ImageShaderProps } from \"../../../dom/types\";\nimport type { SkiaDefaultProps } from \"../../processors\";\n\nexport const ImageShader = ({\n tx = \"decal\",\n ty = \"decal\",\n fm = \"nearest\",\n mm = \"none\",\n fit = \"none\",\n transform = [],\n ...props\n}: SkiaDefaultProps<\n ImageShaderProps,\n \"tx\" | \"ty\" | \"fm\" | \"mm\" | \"fit\" | \"transform\"\n>) => {\n return (\n <skImageShader\n tx={tx}\n ty={ty}\n fm={fm}\n mm={mm}\n fit={fit}\n transform={transform}\n {...props}\n />\n );\n};\n"],"mappings":";;;;;;;AAAA;;;;;;AAKO,MAAMA,WAAW,GAAG,QAWrB;EAAA,IAXsB;IAC1BC,EAAE,GAAG,OADqB;IAE1BC,EAAE,GAAG,OAFqB;IAG1BC,EAAE,GAAG,SAHqB;IAI1BC,EAAE,GAAG,MAJqB;IAK1BC,GAAG,GAAG,MALoB;IAM1BC,SAAS,GAAG,EANc;IAO1B,GAAGC;EAPuB,CAWtB;EACJ,oBACE;IACE,EAAE,EAAEN,EADN;IAEE,EAAE,EAAEC,EAFN;IAGE,EAAE,EAAEC,EAHN;IAIE,EAAE,EAAEC,EAJN;IAKE,GAAG,EAAEC,GALP;IAME,SAAS,EAAEC;EANb,GAOMC,KAPN,EADF;AAWD,CAvBM"}
@@ -9,12 +9,17 @@ var _react = _interopRequireDefault(require("react"));
9
9
 
10
10
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11
11
 
12
- const Blur = props => {
13
- return /*#__PURE__*/_react.default.createElement("skBlurImageFilter", props);
12
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
13
+
14
+ const Blur = _ref => {
15
+ let {
16
+ mode = "decal",
17
+ ...props
18
+ } = _ref;
19
+ return /*#__PURE__*/_react.default.createElement("skBlurImageFilter", _extends({
20
+ mode: mode
21
+ }, props));
14
22
  };
15
23
 
16
24
  exports.Blur = Blur;
17
- Blur.defaultProps = {
18
- mode: "decal"
19
- };
20
25
  //# sourceMappingURL=Blur.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["Blur","props","defaultProps","mode"],"sources":["Blur.tsx"],"sourcesContent":["import React from \"react\";\n\nimport type { SkiaProps } from \"../../processors/Animations/Animations\";\nimport type { BlurImageFilterProps } from \"../../../dom/types\";\n\nexport const Blur = (props: SkiaProps<BlurImageFilterProps>) => {\n return <skBlurImageFilter {...props} />;\n};\n\nBlur.defaultProps = {\n mode: \"decal\",\n};\n"],"mappings":";;;;;;;AAAA;;;;AAKO,MAAMA,IAAI,GAAIC,KAAD,IAA4C;EAC9D,oBAAO,kDAAuBA,KAAvB,CAAP;AACD,CAFM;;;AAIPD,IAAI,CAACE,YAAL,GAAoB;EAClBC,IAAI,EAAE;AADY,CAApB"}
1
+ {"version":3,"names":["Blur","mode","props"],"sources":["Blur.tsx"],"sourcesContent":["import React from \"react\";\n\nimport type { SkiaDefaultProps } from \"../../processors/Animations/Animations\";\nimport type { BlurImageFilterProps } from \"../../../dom/types\";\n\nexport const Blur = ({\n mode = \"decal\",\n ...props\n}: SkiaDefaultProps<BlurImageFilterProps, \"mode\">) => {\n return <skBlurImageFilter mode={mode} {...props} />;\n};\n"],"mappings":";;;;;;;AAAA;;;;;;AAKO,MAAMA,IAAI,GAAG,QAGkC;EAAA,IAHjC;IACnBC,IAAI,GAAG,OADY;IAEnB,GAAGC;EAFgB,CAGiC;EACpD,oBAAO;IAAmB,IAAI,EAAED;EAAzB,GAAmCC,KAAnC,EAAP;AACD,CALM"}
@@ -9,12 +9,17 @@ var _react = _interopRequireDefault(require("react"));
9
9
 
10
10
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11
11
 
12
- const Morphology = props => {
13
- return /*#__PURE__*/_react.default.createElement("skMorphologyImageFilter", props);
12
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
13
+
14
+ const Morphology = _ref => {
15
+ let {
16
+ operator = "dilate",
17
+ ...props
18
+ } = _ref;
19
+ return /*#__PURE__*/_react.default.createElement("skMorphologyImageFilter", _extends({
20
+ operator: operator
21
+ }, props));
14
22
  };
15
23
 
16
24
  exports.Morphology = Morphology;
17
- Morphology.defaultProps = {
18
- operator: "dilate"
19
- };
20
25
  //# sourceMappingURL=Morphology.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["Morphology","props","defaultProps","operator"],"sources":["Morphology.tsx"],"sourcesContent":["import React from \"react\";\n\nimport type { MorphologyImageFilterProps } from \"../../../dom/types\";\nimport type { SkiaProps } from \"../../processors\";\n\nexport const Morphology = (props: SkiaProps<MorphologyImageFilterProps>) => {\n return <skMorphologyImageFilter {...props} />;\n};\n\nMorphology.defaultProps = {\n operator: \"dilate\",\n};\n"],"mappings":";;;;;;;AAAA;;;;AAKO,MAAMA,UAAU,GAAIC,KAAD,IAAkD;EAC1E,oBAAO,wDAA6BA,KAA7B,CAAP;AACD,CAFM;;;AAIPD,UAAU,CAACE,YAAX,GAA0B;EACxBC,QAAQ,EAAE;AADc,CAA1B"}
1
+ {"version":3,"names":["Morphology","operator","props"],"sources":["Morphology.tsx"],"sourcesContent":["import React from \"react\";\n\nimport type { MorphologyImageFilterProps } from \"../../../dom/types\";\nimport type { SkiaDefaultProps } from \"../../processors\";\n\nexport const Morphology = ({\n operator = \"dilate\",\n ...props\n}: SkiaDefaultProps<MorphologyImageFilterProps, \"operator\">) => {\n return <skMorphologyImageFilter operator={operator} {...props} />;\n};\n"],"mappings":";;;;;;;AAAA;;;;;;AAKO,MAAMA,UAAU,GAAG,QAGsC;EAAA,IAHrC;IACzBC,QAAQ,GAAG,QADc;IAEzB,GAAGC;EAFsB,CAGqC;EAC9D,oBAAO;IAAyB,QAAQ,EAAED;EAAnC,GAAiDC,KAAjD,EAAP;AACD,CALM"}
@@ -9,13 +9,19 @@ var _react = _interopRequireDefault(require("react"));
9
9
 
10
10
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11
11
 
12
- const Offset = props => {
13
- return /*#__PURE__*/_react.default.createElement("skOffsetImageFilter", props);
12
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
13
+
14
+ const Offset = _ref => {
15
+ let {
16
+ x = 0,
17
+ y = 0,
18
+ ...props
19
+ } = _ref;
20
+ return /*#__PURE__*/_react.default.createElement("skOffsetImageFilter", _extends({
21
+ x: x,
22
+ y: y
23
+ }, props));
14
24
  };
15
25
 
16
26
  exports.Offset = Offset;
17
- Offset.defaultProps = {
18
- x: 0,
19
- y: 0
20
- };
21
27
  //# sourceMappingURL=Offset.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["Offset","props","defaultProps","x","y"],"sources":["Offset.tsx"],"sourcesContent":["import React from \"react\";\n\nimport type { SkiaProps } from \"../../processors/Animations/Animations\";\nimport type { OffsetImageFilterProps } from \"../../../dom/types\";\n\nexport const Offset = (props: SkiaProps<OffsetImageFilterProps>) => {\n return <skOffsetImageFilter {...props} />;\n};\n\nOffset.defaultProps = {\n x: 0,\n y: 0,\n};\n"],"mappings":";;;;;;;AAAA;;;;AAKO,MAAMA,MAAM,GAAIC,KAAD,IAA8C;EAClE,oBAAO,oDAAyBA,KAAzB,CAAP;AACD,CAFM;;;AAIPD,MAAM,CAACE,YAAP,GAAsB;EACpBC,CAAC,EAAE,CADiB;EAEpBC,CAAC,EAAE;AAFiB,CAAtB"}
1
+ {"version":3,"names":["Offset","x","y","props"],"sources":["Offset.tsx"],"sourcesContent":["import React from \"react\";\n\nimport type { SkiaDefaultProps } from \"../../processors/Animations/Animations\";\nimport type { OffsetImageFilterProps } from \"../../../dom/types\";\n\nexport const Offset = ({\n x = 0,\n y = 0,\n ...props\n}: SkiaDefaultProps<OffsetImageFilterProps, \"x\" | \"y\">) => {\n return <skOffsetImageFilter x={x} y={y} {...props} />;\n};\n"],"mappings":";;;;;;;AAAA;;;;;;AAKO,MAAMA,MAAM,GAAG,QAIqC;EAAA,IAJpC;IACrBC,CAAC,GAAG,CADiB;IAErBC,CAAC,GAAG,CAFiB;IAGrB,GAAGC;EAHkB,CAIoC;EACzD,oBAAO;IAAqB,CAAC,EAAEF,CAAxB;IAA2B,CAAC,EAAEC;EAA9B,GAAqCC,KAArC,EAAP;AACD,CANM"}
@@ -9,13 +9,19 @@ var _react = _interopRequireDefault(require("react"));
9
9
 
10
10
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11
11
 
12
- const BlurMask = props => {
13
- return /*#__PURE__*/_react.default.createElement("skBlurMaskFilter", props);
12
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
13
+
14
+ const BlurMask = _ref => {
15
+ let {
16
+ style = "normal",
17
+ respectCTM = true,
18
+ ...props
19
+ } = _ref;
20
+ return /*#__PURE__*/_react.default.createElement("skBlurMaskFilter", _extends({
21
+ style: style,
22
+ respectCTM: respectCTM
23
+ }, props));
14
24
  };
15
25
 
16
26
  exports.BlurMask = BlurMask;
17
- BlurMask.defaultProps = {
18
- style: "normal",
19
- respectCTM: true
20
- };
21
27
  //# sourceMappingURL=Blur.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["BlurMask","props","defaultProps","style","respectCTM"],"sources":["Blur.tsx"],"sourcesContent":["import React from \"react\";\n\nimport type { BlurMaskFilterProps } from \"../../../dom/types\";\nimport type { SkiaProps } from \"../../processors/Animations/Animations\";\n\nexport const BlurMask = (props: SkiaProps<BlurMaskFilterProps>) => {\n return <skBlurMaskFilter {...props} />;\n};\n\nBlurMask.defaultProps = {\n style: \"normal\",\n respectCTM: true,\n};\n"],"mappings":";;;;;;;AAAA;;;;AAKO,MAAMA,QAAQ,GAAIC,KAAD,IAA2C;EACjE,oBAAO,iDAAsBA,KAAtB,CAAP;AACD,CAFM;;;AAIPD,QAAQ,CAACE,YAAT,GAAwB;EACtBC,KAAK,EAAE,QADe;EAEtBC,UAAU,EAAE;AAFU,CAAxB"}
1
+ {"version":3,"names":["BlurMask","style","respectCTM","props"],"sources":["Blur.tsx"],"sourcesContent":["import React from \"react\";\n\nimport type { BlurMaskFilterProps } from \"../../../dom/types\";\nimport type { SkiaDefaultProps } from \"../../processors/Animations/Animations\";\n\nexport const BlurMask = ({\n style = \"normal\",\n respectCTM = true,\n ...props\n}: SkiaDefaultProps<BlurMaskFilterProps, \"style\" | \"respectCTM\">) => {\n return <skBlurMaskFilter style={style} respectCTM={respectCTM} {...props} />;\n};\n"],"mappings":";;;;;;;AAAA;;;;;;AAKO,MAAMA,QAAQ,GAAG,QAI6C;EAAA,IAJ5C;IACvBC,KAAK,GAAG,QADe;IAEvBC,UAAU,GAAG,IAFU;IAGvB,GAAGC;EAHoB,CAI4C;EACnE,oBAAO;IAAkB,KAAK,EAAEF,KAAzB;IAAgC,UAAU,EAAEC;EAA5C,GAA4DC,KAA5D,EAAP;AACD,CANM"}
@@ -9,12 +9,17 @@ var _react = _interopRequireDefault(require("react"));
9
9
 
10
10
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11
11
 
12
- const DiscretePathEffect = props => {
13
- return /*#__PURE__*/_react.default.createElement("skDiscretePathEffect", props);
12
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
13
+
14
+ const DiscretePathEffect = _ref => {
15
+ let {
16
+ seed = 0,
17
+ ...props
18
+ } = _ref;
19
+ return /*#__PURE__*/_react.default.createElement("skDiscretePathEffect", _extends({
20
+ seed: seed
21
+ }, props));
14
22
  };
15
23
 
16
24
  exports.DiscretePathEffect = DiscretePathEffect;
17
- DiscretePathEffect.defaultProps = {
18
- seed: 0
19
- };
20
25
  //# sourceMappingURL=Discrete.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["DiscretePathEffect","props","defaultProps","seed"],"sources":["Discrete.tsx"],"sourcesContent":["import React from \"react\";\n\nimport type { SkiaProps } from \"../../processors/Animations/Animations\";\nimport type { DiscretePathEffectProps } from \"../../../dom/types\";\n\nexport const DiscretePathEffect = (\n props: SkiaProps<DiscretePathEffectProps>\n) => {\n return <skDiscretePathEffect {...props} />;\n};\n\nDiscretePathEffect.defaultProps = {\n seed: 0,\n};\n"],"mappings":";;;;;;;AAAA;;;;AAKO,MAAMA,kBAAkB,GAC7BC,KADgC,IAE7B;EACH,oBAAO,qDAA0BA,KAA1B,CAAP;AACD,CAJM;;;AAMPD,kBAAkB,CAACE,YAAnB,GAAkC;EAChCC,IAAI,EAAE;AAD0B,CAAlC"}
1
+ {"version":3,"names":["DiscretePathEffect","seed","props"],"sources":["Discrete.tsx"],"sourcesContent":["import React from \"react\";\n\nimport type { SkiaDefaultProps } from \"../../processors/Animations/Animations\";\nimport type { DiscretePathEffectProps } from \"../../../dom/types\";\n\nexport const DiscretePathEffect = ({\n seed = 0,\n ...props\n}: SkiaDefaultProps<DiscretePathEffectProps, \"seed\">) => {\n return <skDiscretePathEffect seed={seed} {...props} />;\n};\n"],"mappings":";;;;;;;AAAA;;;;;;AAKO,MAAMA,kBAAkB,GAAG,QAGuB;EAAA,IAHtB;IACjCC,IAAI,GAAG,CAD0B;IAEjC,GAAGC;EAF8B,CAGsB;EACvD,oBAAO;IAAsB,IAAI,EAAED;EAA5B,GAAsCC,KAAtC,EAAP;AACD,CALM"}
@@ -9,14 +9,21 @@ var _react = _interopRequireDefault(require("react"));
9
9
 
10
10
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11
11
 
12
- const FractalNoise = props => {
13
- return /*#__PURE__*/_react.default.createElement("skFractalNoise", props);
12
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
13
+
14
+ const FractalNoise = _ref => {
15
+ let {
16
+ seed = 0,
17
+ tileWidth = 0,
18
+ tileHeight = 0,
19
+ ...props
20
+ } = _ref;
21
+ return /*#__PURE__*/_react.default.createElement("skFractalNoise", _extends({
22
+ seed: seed,
23
+ tileWidth: tileWidth,
24
+ tileHeight: tileHeight
25
+ }, props));
14
26
  };
15
27
 
16
28
  exports.FractalNoise = FractalNoise;
17
- FractalNoise.defaultProps = {
18
- seed: 0,
19
- tileWidth: 0,
20
- tileHeight: 0
21
- };
22
29
  //# sourceMappingURL=FractalNoise.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["FractalNoise","props","defaultProps","seed","tileWidth","tileHeight"],"sources":["FractalNoise.tsx"],"sourcesContent":["import React from \"react\";\n\nimport type { FractalNoiseProps } from \"../../../dom/types\";\nimport type { SkiaProps } from \"../../processors/Animations/Animations\";\n\nexport const FractalNoise = (props: SkiaProps<FractalNoiseProps>) => {\n return <skFractalNoise {...props} />;\n};\n\nFractalNoise.defaultProps = {\n seed: 0,\n tileWidth: 0,\n tileHeight: 0,\n};\n"],"mappings":";;;;;;;AAAA;;;;AAKO,MAAMA,YAAY,GAAIC,KAAD,IAAyC;EACnE,oBAAO,+CAAoBA,KAApB,CAAP;AACD,CAFM;;;AAIPD,YAAY,CAACE,YAAb,GAA4B;EAC1BC,IAAI,EAAE,CADoB;EAE1BC,SAAS,EAAE,CAFe;EAG1BC,UAAU,EAAE;AAHc,CAA5B"}
1
+ {"version":3,"names":["FractalNoise","seed","tileWidth","tileHeight","props"],"sources":["FractalNoise.tsx"],"sourcesContent":["import React from \"react\";\n\nimport type { FractalNoiseProps } from \"../../../dom/types\";\nimport type { SkiaDefaultProps } from \"../../processors/Animations/Animations\";\n\nexport const FractalNoise = ({\n seed = 0,\n tileWidth = 0,\n tileHeight = 0,\n ...props\n}: SkiaDefaultProps<\n FractalNoiseProps,\n \"seed\" | \"tileHeight\" | \"tileWidth\"\n>) => {\n return (\n <skFractalNoise\n seed={seed}\n tileWidth={tileWidth}\n tileHeight={tileHeight}\n {...props}\n />\n );\n};\n"],"mappings":";;;;;;;AAAA;;;;;;AAKO,MAAMA,YAAY,GAAG,QAQtB;EAAA,IARuB;IAC3BC,IAAI,GAAG,CADoB;IAE3BC,SAAS,GAAG,CAFe;IAG3BC,UAAU,GAAG,CAHc;IAI3B,GAAGC;EAJwB,CAQvB;EACJ,oBACE;IACE,IAAI,EAAEH,IADR;IAEE,SAAS,EAAEC,SAFb;IAGE,UAAU,EAAEC;EAHd,GAIMC,KAJN,EADF;AAQD,CAjBM"}
@@ -9,12 +9,17 @@ var _react = _interopRequireDefault(require("react"));
9
9
 
10
10
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11
11
 
12
- const Shader = props => {
13
- return /*#__PURE__*/_react.default.createElement("skShader", props);
12
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
13
+
14
+ const Shader = _ref => {
15
+ let {
16
+ uniforms = {},
17
+ ...props
18
+ } = _ref;
19
+ return /*#__PURE__*/_react.default.createElement("skShader", _extends({
20
+ uniforms: uniforms
21
+ }, props));
14
22
  };
15
23
 
16
24
  exports.Shader = Shader;
17
- Shader.defaultProps = {
18
- uniforms: []
19
- };
20
25
  //# sourceMappingURL=Shader.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["Shader","props","defaultProps","uniforms"],"sources":["Shader.tsx"],"sourcesContent":["import React from \"react\";\n\nimport type { SkiaProps } from \"../../processors\";\nimport type { ShaderProps } from \"../../../dom/types\";\n\nexport const Shader = (props: SkiaProps<ShaderProps>) => {\n return <skShader {...props} />;\n};\n\nShader.defaultProps = {\n uniforms: [],\n};\n"],"mappings":";;;;;;;AAAA;;;;AAKO,MAAMA,MAAM,GAAIC,KAAD,IAAmC;EACvD,oBAAO,yCAAcA,KAAd,CAAP;AACD,CAFM;;;AAIPD,MAAM,CAACE,YAAP,GAAsB;EACpBC,QAAQ,EAAE;AADU,CAAtB"}
1
+ {"version":3,"names":["Shader","uniforms","props"],"sources":["Shader.tsx"],"sourcesContent":["import React from \"react\";\n\nimport type { SkiaDefaultProps } from \"../../processors\";\nimport type { ShaderProps } from \"../../../dom/types\";\n\nexport const Shader = ({\n uniforms = {},\n ...props\n}: SkiaDefaultProps<ShaderProps, \"uniforms\">) => {\n return <skShader uniforms={uniforms} {...props} />;\n};\n"],"mappings":";;;;;;;AAAA;;;;;;AAKO,MAAMA,MAAM,GAAG,QAG2B;EAAA,IAH1B;IACrBC,QAAQ,GAAG,EADU;IAErB,GAAGC;EAFkB,CAG0B;EAC/C,oBAAO;IAAU,QAAQ,EAAED;EAApB,GAAkCC,KAAlC,EAAP;AACD,CALM"}
@@ -9,14 +9,21 @@ var _react = _interopRequireDefault(require("react"));
9
9
 
10
10
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11
11
 
12
- const Turbulence = props => {
13
- return /*#__PURE__*/_react.default.createElement("skTurbulence", props);
12
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
13
+
14
+ const Turbulence = _ref => {
15
+ let {
16
+ seed = 0,
17
+ tileWidth = 0,
18
+ tileHeight = 0,
19
+ ...props
20
+ } = _ref;
21
+ return /*#__PURE__*/_react.default.createElement("skTurbulence", _extends({
22
+ seed: seed,
23
+ tileWidth: tileWidth,
24
+ tileHeight: tileHeight
25
+ }, props));
14
26
  };
15
27
 
16
28
  exports.Turbulence = Turbulence;
17
- Turbulence.defaultProps = {
18
- seed: 0,
19
- tileWidth: 0,
20
- tileHeight: 0
21
- };
22
29
  //# sourceMappingURL=Turbulence.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["Turbulence","props","defaultProps","seed","tileWidth","tileHeight"],"sources":["Turbulence.tsx"],"sourcesContent":["import React from \"react\";\n\nimport type { TurbulenceProps } from \"../../../dom/types\";\nimport type { SkiaProps } from \"../../processors/Animations/Animations\";\n\nexport const Turbulence = (props: SkiaProps<TurbulenceProps>) => {\n return <skTurbulence {...props} />;\n};\n\nTurbulence.defaultProps = {\n seed: 0,\n tileWidth: 0,\n tileHeight: 0,\n};\n"],"mappings":";;;;;;;AAAA;;;;AAKO,MAAMA,UAAU,GAAIC,KAAD,IAAuC;EAC/D,oBAAO,6CAAkBA,KAAlB,CAAP;AACD,CAFM;;;AAIPD,UAAU,CAACE,YAAX,GAA0B;EACxBC,IAAI,EAAE,CADkB;EAExBC,SAAS,EAAE,CAFa;EAGxBC,UAAU,EAAE;AAHY,CAA1B"}
1
+ {"version":3,"names":["Turbulence","seed","tileWidth","tileHeight","props"],"sources":["Turbulence.tsx"],"sourcesContent":["import React from \"react\";\n\nimport type { TurbulenceProps } from \"../../../dom/types\";\nimport type { SkiaDefaultProps } from \"../../processors/Animations/Animations\";\n\nexport const Turbulence = ({\n seed = 0,\n tileWidth = 0,\n tileHeight = 0,\n ...props\n}: SkiaDefaultProps<TurbulenceProps, \"seed\" | \"tileWidth\" | \"tileHeight\">) => {\n return (\n <skTurbulence\n seed={seed}\n tileWidth={tileWidth}\n tileHeight={tileHeight}\n {...props}\n />\n );\n};\n"],"mappings":";;;;;;;AAAA;;;;;;AAKO,MAAMA,UAAU,GAAG,QAKoD;EAAA,IALnD;IACzBC,IAAI,GAAG,CADkB;IAEzBC,SAAS,GAAG,CAFa;IAGzBC,UAAU,GAAG,CAHY;IAIzB,GAAGC;EAJsB,CAKmD;EAC5E,oBACE;IACE,IAAI,EAAEH,IADR;IAEE,SAAS,EAAEC,SAFb;IAGE,UAAU,EAAEC;EAHd,GAIMC,KAJN,EADF;AAQD,CAdM"}
@@ -14,10 +14,4 @@ const Circle = props => {
14
14
  };
15
15
 
16
16
  exports.Circle = Circle;
17
- Circle.defaultProps = {
18
- c: {
19
- x: 0,
20
- y: 0
21
- }
22
- };
23
17
  //# sourceMappingURL=Circle.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["Circle","props","defaultProps","c","x","y"],"sources":["Circle.tsx"],"sourcesContent":["import React from \"react\";\n\nimport type { SkiaProps } from \"../../processors\";\nimport type { CircleProps } from \"../../../dom/types\";\n\nexport const Circle = (props: SkiaProps<CircleProps>) => {\n return <skCircle {...props} />;\n};\n\nCircle.defaultProps = {\n c: { x: 0, y: 0 },\n};\n"],"mappings":";;;;;;;AAAA;;;;AAKO,MAAMA,MAAM,GAAIC,KAAD,IAAmC;EACvD,oBAAO,yCAAcA,KAAd,CAAP;AACD,CAFM;;;AAIPD,MAAM,CAACE,YAAP,GAAsB;EACpBC,CAAC,EAAE;IAAEC,CAAC,EAAE,CAAL;IAAQC,CAAC,EAAE;EAAX;AADiB,CAAtB"}
1
+ {"version":3,"names":["Circle","props"],"sources":["Circle.tsx"],"sourcesContent":["import React from \"react\";\n\nimport type { SkiaProps } from \"../../processors\";\nimport type { CircleProps } from \"../../../dom/types\";\n\nexport const Circle = (props: SkiaProps<CircleProps>) => {\n return <skCircle {...props} />;\n};\n"],"mappings":";;;;;;;AAAA;;;;AAKO,MAAMA,MAAM,GAAIC,KAAD,IAAmC;EACvD,oBAAO,yCAAcA,KAAd,CAAP;AACD,CAFM"}
@@ -24,7 +24,7 @@ exports.fitbox = fitbox;
24
24
 
25
25
  const FitBox = _ref => {
26
26
  let {
27
- fit,
27
+ fit = "contain",
28
28
  src,
29
29
  dst,
30
30
  children
@@ -36,7 +36,4 @@ const FitBox = _ref => {
36
36
  };
37
37
 
38
38
  exports.FitBox = FitBox;
39
- FitBox.defaultProps = {
40
- fit: "contain"
41
- };
42
39
  //# sourceMappingURL=FitBox.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["fitbox","fit","src","dst","rects","fitRects","rect2rect","FitBox","children","transform","useMemo","defaultProps"],"sources":["FitBox.tsx"],"sourcesContent":["import type { ReactNode } from \"react\";\nimport React, { useMemo } from \"react\";\n\nimport type { Fit } from \"../../../dom/nodes\";\nimport { fitRects, rect2rect } from \"../../../dom/nodes\";\nimport type { SkRect } from \"../../../skia/types\";\nimport { Group } from \"../Group\";\n\ninterface FitProps {\n fit: Fit;\n src: SkRect;\n dst: SkRect;\n children: ReactNode | ReactNode[];\n}\n\nexport const fitbox = (fit: Fit, src: SkRect, dst: SkRect) => {\n const rects = fitRects(fit, src, dst);\n return rect2rect(rects.src, rects.dst);\n};\n\nexport const FitBox = ({ fit, src, dst, children }: FitProps) => {\n const transform = useMemo(() => fitbox(fit, src, dst), [dst, fit, src]);\n return <Group transform={transform}>{children}</Group>;\n};\n\nFitBox.defaultProps = {\n fit: \"contain\",\n};\n"],"mappings":";;;;;;;AACA;;AAGA;;AAEA;;;;;;AASO,MAAMA,MAAM,GAAG,CAACC,GAAD,EAAWC,GAAX,EAAwBC,GAAxB,KAAwC;EAC5D,MAAMC,KAAK,GAAG,IAAAC,eAAA,EAASJ,GAAT,EAAcC,GAAd,EAAmBC,GAAnB,CAAd;EACA,OAAO,IAAAG,gBAAA,EAAUF,KAAK,CAACF,GAAhB,EAAqBE,KAAK,CAACD,GAA3B,CAAP;AACD,CAHM;;;;AAKA,MAAMI,MAAM,GAAG,QAA2C;EAAA,IAA1C;IAAEN,GAAF;IAAOC,GAAP;IAAYC,GAAZ;IAAiBK;EAAjB,CAA0C;EAC/D,MAAMC,SAAS,GAAG,IAAAC,cAAA,EAAQ,MAAMV,MAAM,CAACC,GAAD,EAAMC,GAAN,EAAWC,GAAX,CAApB,EAAqC,CAACA,GAAD,EAAMF,GAAN,EAAWC,GAAX,CAArC,CAAlB;EACA,oBAAO,6BAAC,YAAD;IAAO,SAAS,EAAEO;EAAlB,GAA8BD,QAA9B,CAAP;AACD,CAHM;;;AAKPD,MAAM,CAACI,YAAP,GAAsB;EACpBV,GAAG,EAAE;AADe,CAAtB"}
1
+ {"version":3,"names":["fitbox","fit","src","dst","rects","fitRects","rect2rect","FitBox","children","transform","useMemo"],"sources":["FitBox.tsx"],"sourcesContent":["import type { ReactNode } from \"react\";\nimport React, { useMemo } from \"react\";\n\nimport type { Fit } from \"../../../dom/nodes\";\nimport { fitRects, rect2rect } from \"../../../dom/nodes\";\nimport type { SkRect } from \"../../../skia/types\";\nimport { Group } from \"../Group\";\n\ninterface FitProps {\n fit?: Fit;\n src: SkRect;\n dst: SkRect;\n children: ReactNode | ReactNode[];\n}\n\nexport const fitbox = (fit: Fit, src: SkRect, dst: SkRect) => {\n const rects = fitRects(fit, src, dst);\n return rect2rect(rects.src, rects.dst);\n};\n\nexport const FitBox = ({ fit = \"contain\", src, dst, children }: FitProps) => {\n const transform = useMemo(() => fitbox(fit, src, dst), [dst, fit, src]);\n return <Group transform={transform}>{children}</Group>;\n};\n"],"mappings":";;;;;;;AACA;;AAGA;;AAEA;;;;;;AASO,MAAMA,MAAM,GAAG,CAACC,GAAD,EAAWC,GAAX,EAAwBC,GAAxB,KAAwC;EAC5D,MAAMC,KAAK,GAAG,IAAAC,eAAA,EAASJ,GAAT,EAAcC,GAAd,EAAmBC,GAAnB,CAAd;EACA,OAAO,IAAAG,gBAAA,EAAUF,KAAK,CAACF,GAAhB,EAAqBE,KAAK,CAACD,GAA3B,CAAP;AACD,CAHM;;;;AAKA,MAAMI,MAAM,GAAG,QAAuD;EAAA,IAAtD;IAAEN,GAAG,GAAG,SAAR;IAAmBC,GAAnB;IAAwBC,GAAxB;IAA6BK;EAA7B,CAAsD;EAC3E,MAAMC,SAAS,GAAG,IAAAC,cAAA,EAAQ,MAAMV,MAAM,CAACC,GAAD,EAAMC,GAAN,EAAWC,GAAX,CAApB,EAAqC,CAACA,GAAD,EAAMF,GAAN,EAAWC,GAAX,CAArC,CAAlB;EACA,oBAAO,6BAAC,YAAD;IAAO,SAAS,EAAEO;EAAlB,GAA8BD,QAA9B,CAAP;AACD,CAHM"}
@@ -14,8 +14,4 @@ const Oval = props => {
14
14
  };
15
15
 
16
16
  exports.Oval = Oval;
17
- Oval.defaultProps = {
18
- x: 0,
19
- y: 0
20
- };
21
17
  //# sourceMappingURL=Oval.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["Oval","props","defaultProps","x","y"],"sources":["Oval.tsx"],"sourcesContent":["import React from \"react\";\n\nimport type { OvalProps } from \"../../../dom/types\";\nimport type { SkiaProps } from \"../../processors\";\n\nexport const Oval = (props: SkiaProps<OvalProps>) => {\n return <skOval {...props} />;\n};\n\nOval.defaultProps = {\n x: 0,\n y: 0,\n};\n"],"mappings":";;;;;;;AAAA;;;;AAKO,MAAMA,IAAI,GAAIC,KAAD,IAAiC;EACnD,oBAAO,uCAAYA,KAAZ,CAAP;AACD,CAFM;;;AAIPD,IAAI,CAACE,YAAL,GAAoB;EAClBC,CAAC,EAAE,CADe;EAElBC,CAAC,EAAE;AAFe,CAApB"}
1
+ {"version":3,"names":["Oval","props"],"sources":["Oval.tsx"],"sourcesContent":["import React from \"react\";\n\nimport type { OvalProps } from \"../../../dom/types\";\nimport type { SkiaProps } from \"../../processors\";\n\nexport const Oval = (props: SkiaProps<OvalProps>) => {\n return <skOval {...props} />;\n};\n"],"mappings":";;;;;;;AAAA;;;;AAKO,MAAMA,IAAI,GAAIC,KAAD,IAAiC;EACnD,oBAAO,uCAAYA,KAAZ,CAAP;AACD,CAFM"}
@@ -9,13 +9,19 @@ var _react = _interopRequireDefault(require("react"));
9
9
 
10
10
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11
11
 
12
- const Path = props => {
13
- return /*#__PURE__*/_react.default.createElement("skPath", props);
12
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
13
+
14
+ const Path = _ref => {
15
+ let {
16
+ start = 0,
17
+ end = 1,
18
+ ...props
19
+ } = _ref;
20
+ return /*#__PURE__*/_react.default.createElement("skPath", _extends({
21
+ start: start,
22
+ end: end
23
+ }, props));
14
24
  };
15
25
 
16
26
  exports.Path = Path;
17
- Path.defaultProps = {
18
- start: 0,
19
- end: 1
20
- };
21
27
  //# sourceMappingURL=Path.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["Path","props","defaultProps","start","end"],"sources":["Path.tsx"],"sourcesContent":["import React from \"react\";\n\nimport type { SkiaProps } from \"../../processors\";\nimport type { PathProps } from \"../../../dom/types\";\n\nexport const Path = (props: SkiaProps<PathProps>) => {\n return <skPath {...props} />;\n};\n\nPath.defaultProps = {\n start: 0,\n end: 1,\n};\n"],"mappings":";;;;;;;AAAA;;;;AAKO,MAAMA,IAAI,GAAIC,KAAD,IAAiC;EACnD,oBAAO,uCAAYA,KAAZ,CAAP;AACD,CAFM;;;AAIPD,IAAI,CAACE,YAAL,GAAoB;EAClBC,KAAK,EAAE,CADW;EAElBC,GAAG,EAAE;AAFa,CAApB"}
1
+ {"version":3,"names":["Path","start","end","props"],"sources":["Path.tsx"],"sourcesContent":["import React from \"react\";\n\nimport type { SkiaDefaultProps } from \"../../processors\";\nimport type { PathProps } from \"../../../dom/types\";\n\nexport const Path = ({\n start = 0,\n end = 1,\n ...props\n}: SkiaDefaultProps<PathProps, \"start\" | \"end\">) => {\n return <skPath start={start} end={end} {...props} />;\n};\n"],"mappings":";;;;;;;AAAA;;;;;;AAKO,MAAMA,IAAI,GAAG,QAIgC;EAAA,IAJ/B;IACnBC,KAAK,GAAG,CADW;IAEnBC,GAAG,GAAG,CAFa;IAGnB,GAAGC;EAHgB,CAI+B;EAClD,oBAAO;IAAQ,KAAK,EAAEF,KAAf;IAAsB,GAAG,EAAEC;EAA3B,GAAoCC,KAApC,EAAP;AACD,CANM"}
@@ -9,12 +9,17 @@ var _react = _interopRequireDefault(require("react"));
9
9
 
10
10
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11
11
 
12
- const Points = props => {
13
- return /*#__PURE__*/_react.default.createElement("skPoints", props);
12
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
13
+
14
+ const Points = _ref => {
15
+ let {
16
+ mode = "points",
17
+ ...props
18
+ } = _ref;
19
+ return /*#__PURE__*/_react.default.createElement("skPoints", _extends({
20
+ mode: mode
21
+ }, props));
14
22
  };
15
23
 
16
24
  exports.Points = Points;
17
- Points.defaultProps = {
18
- mode: "points"
19
- };
20
25
  //# sourceMappingURL=Points.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["Points","props","defaultProps","mode"],"sources":["Points.tsx"],"sourcesContent":["import React from \"react\";\n\nimport type { SkiaProps } from \"../../processors/Animations/Animations\";\nimport type { PointsProps } from \"../../../dom/types\";\n\nexport const Points = (props: SkiaProps<PointsProps>) => {\n return <skPoints {...props} />;\n};\n\nPoints.defaultProps = {\n mode: \"points\",\n};\n"],"mappings":";;;;;;;AAAA;;;;AAKO,MAAMA,MAAM,GAAIC,KAAD,IAAmC;EACvD,oBAAO,yCAAcA,KAAd,CAAP;AACD,CAFM;;;AAIPD,MAAM,CAACE,YAAP,GAAsB;EACpBC,IAAI,EAAE;AADc,CAAtB"}
1
+ {"version":3,"names":["Points","mode","props"],"sources":["Points.tsx"],"sourcesContent":["import React from \"react\";\n\nimport type { SkiaDefaultProps } from \"../../processors/Animations/Animations\";\nimport type { PointsProps } from \"../../../dom/types\";\n\nexport const Points = ({\n mode = \"points\",\n ...props\n}: SkiaDefaultProps<PointsProps, \"mode\">) => {\n return <skPoints mode={mode} {...props} />;\n};\n"],"mappings":";;;;;;;AAAA;;;;;;AAKO,MAAMA,MAAM,GAAG,QAGuB;EAAA,IAHtB;IACrBC,IAAI,GAAG,QADc;IAErB,GAAGC;EAFkB,CAGsB;EAC3C,oBAAO;IAAU,IAAI,EAAED;EAAhB,GAA0BC,KAA1B,EAAP;AACD,CALM"}
@@ -14,7 +14,4 @@ const RoundedRect = props => {
14
14
  };
15
15
 
16
16
  exports.RoundedRect = RoundedRect;
17
- RoundedRect.defaultProps = {
18
- r: 0
19
- };
20
17
  //# sourceMappingURL=RoundedRect.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["RoundedRect","props","defaultProps","r"],"sources":["RoundedRect.tsx"],"sourcesContent":["import React from \"react\";\n\nimport type { RoundedRectProps } from \"../../../dom/types\";\nimport type { SkiaProps } from \"../../processors\";\n\nexport const RoundedRect = (props: SkiaProps<RoundedRectProps>) => {\n return <skRRect {...props} />;\n};\n\nRoundedRect.defaultProps = {\n r: 0,\n};\n"],"mappings":";;;;;;;AAAA;;;;AAKO,MAAMA,WAAW,GAAIC,KAAD,IAAwC;EACjE,oBAAO,wCAAaA,KAAb,CAAP;AACD,CAFM;;;AAIPD,WAAW,CAACE,YAAZ,GAA2B;EACzBC,CAAC,EAAE;AADsB,CAA3B"}
1
+ {"version":3,"names":["RoundedRect","props"],"sources":["RoundedRect.tsx"],"sourcesContent":["import React from \"react\";\n\nimport type { RoundedRectProps } from \"../../../dom/types\";\nimport type { SkiaProps } from \"../../processors\";\n\nexport const RoundedRect = (props: SkiaProps<RoundedRectProps>) => {\n return <skRRect {...props} />;\n};\n"],"mappings":";;;;;;;AAAA;;;;AAKO,MAAMA,WAAW,GAAIC,KAAD,IAAwC;EACjE,oBAAO,wCAAaA,KAAb,CAAP;AACD,CAFM"}