@mateuszjs/magic-render 0.1.0-next.6 → 0.1.0-next.64

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 (232) hide show
  1. package/lib/index.mjs +1 -1
  2. package/lib/index.mjs.map +1 -1
  3. package/lib/types/WebGPU/canvasSizeObserver.d.ts.map +1 -0
  4. package/lib/types/WebGPU/device.d.ts +5 -0
  5. package/lib/types/WebGPU/device.d.ts.map +1 -0
  6. package/lib/types/WebGPU/generatePreview.d.ts +3 -0
  7. package/lib/types/WebGPU/generatePreview.d.ts.map +1 -0
  8. package/lib/types/WebGPU/getTexture/createCheckedImageData.d.ts.map +1 -0
  9. package/lib/types/WebGPU/getTexture/generateMimapsArray.d.ts.map +1 -0
  10. package/lib/types/{src/WebGPU → WebGPU}/getTexture/index.d.ts +3 -3
  11. package/lib/types/WebGPU/getTexture/index.d.ts.map +1 -0
  12. package/lib/types/WebGPU/m3.d.ts.map +1 -0
  13. package/lib/types/{src/WebGPU → WebGPU}/pick.d.ts +1 -2
  14. package/lib/types/WebGPU/pick.d.ts.map +1 -0
  15. package/lib/types/WebGPU/programs/blur/getProgram.d.ts +2 -0
  16. package/lib/types/WebGPU/programs/blur/getProgram.d.ts.map +1 -0
  17. package/lib/types/WebGPU/programs/clearComputeDepth/getProgram.d.ts +2 -0
  18. package/lib/types/WebGPU/programs/clearComputeDepth/getProgram.d.ts.map +1 -0
  19. package/lib/types/WebGPU/programs/clearSdf/getProgram.d.ts +2 -0
  20. package/lib/types/WebGPU/programs/clearSdf/getProgram.d.ts.map +1 -0
  21. package/lib/types/WebGPU/programs/combineSdf/getProgram.d.ts +2 -0
  22. package/lib/types/WebGPU/programs/combineSdf/getProgram.d.ts.map +1 -0
  23. package/lib/types/WebGPU/programs/computeShape/getProgram.d.ts +2 -0
  24. package/lib/types/WebGPU/programs/computeShape/getProgram.d.ts.map +1 -0
  25. package/lib/types/WebGPU/programs/drawShape/getProgram.d.ts +2 -0
  26. package/lib/types/WebGPU/programs/drawShape/getProgram.d.ts.map +1 -0
  27. package/lib/types/WebGPU/programs/drawTexture/getProgram.d.ts +2 -0
  28. package/lib/types/WebGPU/programs/drawTexture/getProgram.d.ts.map +1 -0
  29. package/lib/types/WebGPU/programs/drawTriangle/getProgram.d.ts +2 -0
  30. package/lib/types/WebGPU/programs/drawTriangle/getProgram.d.ts.map +1 -0
  31. package/lib/types/WebGPU/programs/initPrograms.d.ts +32 -0
  32. package/lib/types/WebGPU/programs/initPrograms.d.ts.map +1 -0
  33. package/lib/types/WebGPU/programs/pickShape/getProgram.d.ts +2 -0
  34. package/lib/types/WebGPU/programs/pickShape/getProgram.d.ts.map +1 -0
  35. package/lib/types/WebGPU/programs/pickTexture/getProgram.d.ts +2 -0
  36. package/lib/types/WebGPU/programs/pickTexture/getProgram.d.ts.map +1 -0
  37. package/lib/types/WebGPU/programs/pickTriangle/getProgram.d.ts +2 -0
  38. package/lib/types/WebGPU/programs/pickTriangle/getProgram.d.ts.map +1 -0
  39. package/lib/types/WebGPU/textureCache.d.ts +4 -0
  40. package/lib/types/WebGPU/textureCache.d.ts.map +1 -0
  41. package/lib/types/consts.d.ts +2 -0
  42. package/lib/types/consts.d.ts.map +1 -0
  43. package/lib/types/customPrograms.d.ts +16 -0
  44. package/lib/types/customPrograms.d.ts.map +1 -0
  45. package/lib/types/fonts.d.ts +6 -0
  46. package/lib/types/fonts.d.ts.map +1 -0
  47. package/lib/types/getCanvasMatrix.d.ts +2 -0
  48. package/lib/types/getCanvasMatrix.d.ts.map +1 -0
  49. package/lib/types/{src/getCanvasRenderDescriptor.d.ts → getCanvasRenderDescriptor.d.ts} +1 -0
  50. package/lib/types/getCanvasRenderDescriptor.d.ts.map +1 -0
  51. package/lib/types/{src/getDepthTexture.d.ts → getDepthTexture.d.ts} +1 -0
  52. package/lib/types/getDepthTexture.d.ts.map +1 -0
  53. package/lib/types/getMultisampleTexture.d.ts +2 -0
  54. package/lib/types/getMultisampleTexture.d.ts.map +1 -0
  55. package/lib/types/getRenderDescriptor.d.ts.map +1 -0
  56. package/lib/types/index.d.ts +5 -0
  57. package/lib/types/index.d.ts.map +1 -0
  58. package/lib/types/loadingTexture.d.ts +3 -0
  59. package/lib/types/loadingTexture.d.ts.map +1 -0
  60. package/lib/types/pointer.d.ts +15 -0
  61. package/lib/types/pointer.d.ts.map +1 -0
  62. package/lib/types/run.d.ts +6 -0
  63. package/lib/types/run.d.ts.map +1 -0
  64. package/lib/types/snapshots/convert.d.ts +8 -0
  65. package/lib/types/snapshots/convert.d.ts.map +1 -0
  66. package/lib/types/snapshots/fill.d.ts +4 -0
  67. package/lib/types/snapshots/fill.d.ts.map +1 -0
  68. package/lib/types/snapshots/snapshots.d.ts +6 -0
  69. package/lib/types/snapshots/snapshots.d.ts.map +1 -0
  70. package/lib/types/snapshots/toZigAsset.d.ts +3 -0
  71. package/lib/types/snapshots/toZigAsset.d.ts.map +1 -0
  72. package/lib/types/svgToShapes/addUiElement.d.ts +3 -0
  73. package/lib/types/svgToShapes/addUiElement.d.ts.map +1 -0
  74. package/lib/types/svgToShapes/arcToBezier.d.ts +11 -0
  75. package/lib/types/svgToShapes/arcToBezier.d.ts.map +1 -0
  76. package/lib/types/svgToShapes/boundingBox.d.ts +18 -0
  77. package/lib/types/svgToShapes/boundingBox.d.ts.map +1 -0
  78. package/lib/types/svgToShapes/collectShapesData.d.ts +12 -0
  79. package/lib/types/svgToShapes/collectShapesData.d.ts.map +1 -0
  80. package/lib/types/svgToShapes/const.d.ts +5 -0
  81. package/lib/types/svgToShapes/const.d.ts.map +1 -0
  82. package/lib/types/svgToShapes/definitions.d.ts +44 -0
  83. package/lib/types/svgToShapes/definitions.d.ts.map +1 -0
  84. package/lib/types/svgToShapes/getProps.d.ts +4 -0
  85. package/lib/types/svgToShapes/getProps.d.ts.map +1 -0
  86. package/lib/types/svgToShapes/getShapesAssets.d.ts +5 -0
  87. package/lib/types/svgToShapes/getShapesAssets.d.ts.map +1 -0
  88. package/lib/types/svgToShapes/parseEllipse.d.ts +3 -0
  89. package/lib/types/svgToShapes/parseEllipse.d.ts.map +1 -0
  90. package/lib/types/svgToShapes/parsePathData.d.ts +3 -0
  91. package/lib/types/svgToShapes/parsePathData.d.ts.map +1 -0
  92. package/lib/types/svgToShapes/parseRect.d.ts +3 -0
  93. package/lib/types/svgToShapes/parseRect.d.ts.map +1 -0
  94. package/lib/types/svgToShapes/radialGradient.d.ts +16 -0
  95. package/lib/types/svgToShapes/radialGradient.d.ts.map +1 -0
  96. package/lib/types/svgToShapes/utils.d.ts +10 -0
  97. package/lib/types/svgToShapes/utils.d.ts.map +1 -0
  98. package/lib/types/textures.d.ts +30 -0
  99. package/lib/types/textures.d.ts.map +1 -0
  100. package/lib/types/types.d.ts +166 -0
  101. package/lib/types/types.d.ts.map +1 -0
  102. package/lib/types/typing.d.ts +7 -0
  103. package/lib/types/typing.d.ts.map +1 -0
  104. package/lib/types/utils/assertUnreachable.d.ts +2 -0
  105. package/lib/types/utils/assertUnreachable.d.ts.map +1 -0
  106. package/lib/types/utils/atNormIndex.d.ts.map +1 -0
  107. package/lib/types/utils/captureCanvasStream.d.ts.map +1 -0
  108. package/lib/types/utils/captureCanvasStreamWasm.d.ts.map +1 -0
  109. package/lib/types/utils/clamp.d.ts.map +1 -0
  110. package/lib/types/utils/debounce.d.ts +2 -0
  111. package/lib/types/utils/debounce.d.ts.map +1 -0
  112. package/lib/types/utils/decompressWoff2.d.mts +3 -0
  113. package/lib/types/utils/decompressWoff2.d.mts.map +1 -0
  114. package/lib/types/{src/utils → utils}/distancePointToLine.d.ts +1 -0
  115. package/lib/types/utils/distancePointToLine.d.ts.map +1 -0
  116. package/lib/types/utils/fitCurve.d.ts.map +1 -0
  117. package/lib/types/utils/getAngle.d.ts +3 -0
  118. package/lib/types/utils/getAngle.d.ts.map +1 -0
  119. package/lib/types/utils/getAngleDiff.d.ts.map +1 -0
  120. package/lib/types/{src/utils → utils}/getBezierPos.d.ts +1 -0
  121. package/lib/types/utils/getBezierPos.d.ts.map +1 -0
  122. package/lib/types/{src/utils → utils}/getBezierTan.d.ts +1 -0
  123. package/lib/types/utils/getBezierTan.d.ts.map +1 -0
  124. package/lib/types/{src/utils → utils}/getCurveLength.d.ts +1 -0
  125. package/lib/types/utils/getCurveLength.d.ts.map +1 -0
  126. package/lib/types/utils/getDefaultPoints.d.ts +3 -0
  127. package/lib/types/utils/getDefaultPoints.d.ts.map +1 -0
  128. package/lib/types/utils/getDistance.d.ts +3 -0
  129. package/lib/types/utils/getDistance.d.ts.map +1 -0
  130. package/lib/types/utils/mat4.d.ts.map +1 -0
  131. package/lib/types/utils/normalizeVec2.d.ts +3 -0
  132. package/lib/types/utils/normalizeVec2.d.ts.map +1 -0
  133. package/lib/types/utils/resizeArray.d.ts.map +1 -0
  134. package/lib/types/utils/setCamera.d.ts +2 -0
  135. package/lib/types/utils/setCamera.d.ts.map +1 -0
  136. package/lib/types/utils/throttle.d.ts +2 -0
  137. package/lib/types/utils/throttle.d.ts.map +1 -0
  138. package/lib/types/utils/vec3.d.ts.map +1 -0
  139. package/lib/types.mjs +2 -0
  140. package/lib/types.mjs.map +1 -0
  141. package/package.json +33 -14
  142. package/lib/e9072ac5eb734c67.png +0 -0
  143. package/lib/types/src/WebGPU/canvasSizeObserver.d.ts.map +0 -1
  144. package/lib/types/src/WebGPU/getDevice.d.ts +0 -2
  145. package/lib/types/src/WebGPU/getDevice.d.ts.map +0 -1
  146. package/lib/types/src/WebGPU/getTexture/createCheckedImageData.d.ts.map +0 -1
  147. package/lib/types/src/WebGPU/getTexture/generateMimapsArray.d.ts.map +0 -1
  148. package/lib/types/src/WebGPU/getTexture/index.d.ts.map +0 -1
  149. package/lib/types/src/WebGPU/m3.d.ts.map +0 -1
  150. package/lib/types/src/WebGPU/pick.d.ts.map +0 -1
  151. package/lib/types/src/WebGPU/pointer.d.ts +0 -7
  152. package/lib/types/src/WebGPU/pointer.d.ts.map +0 -1
  153. package/lib/types/src/WebGPU/programs/blur/getProgram.d.ts +0 -2
  154. package/lib/types/src/WebGPU/programs/blur/getProgram.d.ts.map +0 -1
  155. package/lib/types/src/WebGPU/programs/draw/getProgram.d.ts +0 -2
  156. package/lib/types/src/WebGPU/programs/draw/getProgram.d.ts.map +0 -1
  157. package/lib/types/src/WebGPU/programs/draw3dModel/getProgram.d.ts +0 -2
  158. package/lib/types/src/WebGPU/programs/draw3dModel/getProgram.d.ts.map +0 -1
  159. package/lib/types/src/WebGPU/programs/draw3dModelLight/getProgram.d.ts +0 -9
  160. package/lib/types/src/WebGPU/programs/draw3dModelLight/getProgram.d.ts.map +0 -1
  161. package/lib/types/src/WebGPU/programs/draw3dModelTexture/getProgram.d.ts +0 -2
  162. package/lib/types/src/WebGPU/programs/draw3dModelTexture/getProgram.d.ts.map +0 -1
  163. package/lib/types/src/WebGPU/programs/drawBezier/getProgram.d.ts +0 -2
  164. package/lib/types/src/WebGPU/programs/drawBezier/getProgram.d.ts.map +0 -1
  165. package/lib/types/src/WebGPU/programs/drawMSDF/getProgram.d.ts +0 -2
  166. package/lib/types/src/WebGPU/programs/drawMSDF/getProgram.d.ts.map +0 -1
  167. package/lib/types/src/WebGPU/programs/drawTexture/getProgram.d.ts +0 -2
  168. package/lib/types/src/WebGPU/programs/drawTexture/getProgram.d.ts.map +0 -1
  169. package/lib/types/src/WebGPU/programs/drawTriangle/getProgram.d.ts +0 -2
  170. package/lib/types/src/WebGPU/programs/drawTriangle/getProgram.d.ts.map +0 -1
  171. package/lib/types/src/WebGPU/programs/initPrograms.d.ts +0 -22
  172. package/lib/types/src/WebGPU/programs/initPrograms.d.ts.map +0 -1
  173. package/lib/types/src/WebGPU/programs/pickTexture/getProgram.d.ts +0 -2
  174. package/lib/types/src/WebGPU/programs/pickTexture/getProgram.d.ts.map +0 -1
  175. package/lib/types/src/WebGPU/programs/pickTriangle/getProgram.d.ts +0 -2
  176. package/lib/types/src/WebGPU/programs/pickTriangle/getProgram.d.ts.map +0 -1
  177. package/lib/types/src/__test__/index.test.d.ts +0 -1
  178. package/lib/types/src/__test__/index.test.d.ts.map +0 -1
  179. package/lib/types/src/consts.d.ts +0 -16
  180. package/lib/types/src/consts.d.ts.map +0 -1
  181. package/lib/types/src/getCanvasMatrix.d.ts +0 -2
  182. package/lib/types/src/getCanvasMatrix.d.ts.map +0 -1
  183. package/lib/types/src/getCanvasRenderDescriptor.d.ts.map +0 -1
  184. package/lib/types/src/getDepthTexture.d.ts.map +0 -1
  185. package/lib/types/src/getMultisampleTexture.d.ts +0 -2
  186. package/lib/types/src/getMultisampleTexture.d.ts.map +0 -1
  187. package/lib/types/src/getRenderDescriptor.d.ts.map +0 -1
  188. package/lib/types/src/index.d.ts +0 -14
  189. package/lib/types/src/index.d.ts.map +0 -1
  190. package/lib/types/src/models/Video/MiniatureVideo.d.ts +0 -30
  191. package/lib/types/src/models/Video/MiniatureVideo.d.ts.map +0 -1
  192. package/lib/types/src/run.d.ts +0 -5
  193. package/lib/types/src/run.d.ts.map +0 -1
  194. package/lib/types/src/types.d.ts +0 -4
  195. package/lib/types/src/types.d.ts.map +0 -1
  196. package/lib/types/src/utils/atNormIndex.d.ts.map +0 -1
  197. package/lib/types/src/utils/captureCanvasStream.d.ts.map +0 -1
  198. package/lib/types/src/utils/captureCanvasStreamWasm.d.ts.map +0 -1
  199. package/lib/types/src/utils/clamp.d.ts.map +0 -1
  200. package/lib/types/src/utils/distancePointToLine.d.ts.map +0 -1
  201. package/lib/types/src/utils/fitCurve.d.ts.map +0 -1
  202. package/lib/types/src/utils/getAngle.d.ts +0 -2
  203. package/lib/types/src/utils/getAngle.d.ts.map +0 -1
  204. package/lib/types/src/utils/getAngleDiff.d.ts.map +0 -1
  205. package/lib/types/src/utils/getBezierPos.d.ts.map +0 -1
  206. package/lib/types/src/utils/getBezierTan.d.ts.map +0 -1
  207. package/lib/types/src/utils/getCurveLength.d.ts.map +0 -1
  208. package/lib/types/src/utils/getDefaultPoints.d.ts +0 -2
  209. package/lib/types/src/utils/getDefaultPoints.d.ts.map +0 -1
  210. package/lib/types/src/utils/getDistance.d.ts +0 -2
  211. package/lib/types/src/utils/getDistance.d.ts.map +0 -1
  212. package/lib/types/src/utils/getSvgSource.d.ts +0 -2
  213. package/lib/types/src/utils/getSvgSource.d.ts.map +0 -1
  214. package/lib/types/src/utils/mat4.d.ts.map +0 -1
  215. package/lib/types/src/utils/normalizeVec2.d.ts +0 -2
  216. package/lib/types/src/utils/normalizeVec2.d.ts.map +0 -1
  217. package/lib/types/src/utils/resizeArray.d.ts.map +0 -1
  218. package/lib/types/src/utils/vec3.d.ts.map +0 -1
  219. /package/lib/types/{src/WebGPU → WebGPU}/canvasSizeObserver.d.ts +0 -0
  220. /package/lib/types/{src/WebGPU → WebGPU}/getTexture/createCheckedImageData.d.ts +0 -0
  221. /package/lib/types/{src/WebGPU → WebGPU}/getTexture/generateMimapsArray.d.ts +0 -0
  222. /package/lib/types/{src/WebGPU → WebGPU}/m3.d.ts +0 -0
  223. /package/lib/types/{src/getRenderDescriptor.d.ts → getRenderDescriptor.d.ts} +0 -0
  224. /package/lib/types/{src/utils → utils}/atNormIndex.d.ts +0 -0
  225. /package/lib/types/{src/utils → utils}/captureCanvasStream.d.ts +0 -0
  226. /package/lib/types/{src/utils → utils}/captureCanvasStreamWasm.d.ts +0 -0
  227. /package/lib/types/{src/utils → utils}/clamp.d.ts +0 -0
  228. /package/lib/types/{src/utils → utils}/fitCurve.d.ts +0 -0
  229. /package/lib/types/{src/utils → utils}/getAngleDiff.d.ts +0 -0
  230. /package/lib/types/{src/utils → utils}/mat4.d.ts +0 -0
  231. /package/lib/types/{src/utils → utils}/resizeArray.d.ts +0 -0
  232. /package/lib/types/{src/utils → utils}/vec3.d.ts +0 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"canvasSizeObserver.d.ts","sourceRoot":"","sources":["../../../src/WebGPU/canvasSizeObserver.ts"],"names":[],"mappings":"AAUA,MAAM,CAAC,OAAO,UAAU,kBAAkB,CACxC,MAAM,EAAE,iBAAiB,EACzB,MAAM,EAAE,SAAS,EACjB,QAAQ,EAAE,YAAY,QA4BvB"}
@@ -0,0 +1,5 @@
1
+ export declare let device: GPUDevice;
2
+ export declare let presentationFormat: GPUTextureFormat;
3
+ export declare let storageFormat: GPUTextureFormat;
4
+ export default function setup(): Promise<void>;
5
+ //# sourceMappingURL=device.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"device.d.ts","sourceRoot":"","sources":["../../../src/WebGPU/device.ts"],"names":[],"mappings":"AAAA,eAAO,IAAI,MAAM,EAAE,SAAS,CAAA;AAC5B,eAAO,IAAI,kBAAkB,EAAE,gBAAgB,CAAA;AAC/C,eAAO,IAAI,aAAa,EAAE,gBAAgB,CAAA;AAE1C,wBAA8B,KAAK,kBA4BlC"}
@@ -0,0 +1,3 @@
1
+ export default function generatePreview(device: GPUDevice, presentationFormat: GPUTextureFormat, creatorCanvas: HTMLCanvasElement, projectWidth: number, projectHeight: number, scaleFactor: number, // we cannot calcualted it from previewCanvas because it's not added to DOM,
2
+ capturePreview: (previewCtx: GPUCanvasContext, collectAndCleanup: VoidFunction) => void, onPreviewUpdate: (canvas: HTMLCanvasElement) => void): Promise<void>;
3
+ //# sourceMappingURL=generatePreview.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generatePreview.d.ts","sourceRoot":"","sources":["../../../src/WebGPU/generatePreview.ts"],"names":[],"mappings":"AAIA,wBAA8B,eAAe,CAC3C,MAAM,EAAE,SAAS,EACjB,kBAAkB,EAAE,gBAAgB,EACpC,aAAa,EAAE,iBAAiB,EAChC,YAAY,EAAE,MAAM,EACpB,aAAa,EAAE,MAAM,EACrB,WAAW,EAAE,MAAM,EAAE,4EAA4E;AAEjG,cAAc,EAAE,CAAC,UAAU,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,YAAY,KAAK,IAAI,EACvF,eAAe,EAAE,CAAC,MAAM,EAAE,iBAAiB,KAAK,IAAI,iBA6BrD"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createCheckedImageData.d.ts","sourceRoot":"","sources":["../../../../src/WebGPU/getTexture/createCheckedImageData.ts"],"names":[],"mappings":"AAgBA,MAAM,CAAC,OAAO,UAAU,sBAAsB,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,SAAS,CAuBrF"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generateMimapsArray.d.ts","sourceRoot":"","sources":["../../../../src/WebGPU/getTexture/generateMimapsArray.ts"],"names":[],"mappings":"AAIA,UAAU,cAAc;IACtB,cAAc,EAAE,oBAAoB,CAAC;IACrC,eAAe,EAAE,CAAC,CAAC;CACpB;AAED,MAAM,CAAC,OAAO,UAAU,YAAY,CAClC,MAAM,EAAE,SAAS,EACjB,OAAO,EAAE,UAAU,EACnB,cAAc,EAAE,cAAc,QAuH/B"}
@@ -8,10 +8,10 @@ export interface TextureSlice {
8
8
  source: GPUCopyExternalImageSource;
9
9
  fakeMipmaps: boolean;
10
10
  }
11
- export declare function createTextureArray(device: GPUDevice, width: number, height: number, slices: number): GPUTexture;
11
+ export declare function createTextureArray(device: GPUDevice, presentationFormat: GPUTextureFormat, width: number, height: number, slices: number): GPUTexture;
12
12
  export declare function attachSlice(device: GPUDevice, textue2dArray: GPUTexture, width: number, height: number, source: GPUCopyExternalImageSource, sliceIndex: number, options?: Options): void;
13
- export declare function createTextureFromSource(device: GPUDevice, source: TextureSource, options?: Options): GPUTexture;
13
+ export declare function createTextureFromSource(source: TextureSource, options?: Options): GPUTexture;
14
14
  export declare function loadImageBitmap(url: string): Promise<ImageBitmap>;
15
- export declare function createTextureFromImage(device: GPUDevice, url: string, options: Options): Promise<GPUTexture>;
15
+ export declare function createTextureFromImage(url: string, options: Options): Promise<GPUTexture>;
16
16
  export {};
17
17
  //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/WebGPU/getTexture/index.ts"],"names":[],"mappings":"AAIA,UAAU,OAAO;IACf,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,kBAAkB,CAAC,EAAE,MAAM,CAAA;CAC5B;AAED,KAAK,aAAa,GACd,WAAW,GACX,gBAAgB,GAChB,iBAAiB,GACjB,gBAAgB,GAChB,eAAe,CAAA;AAOnB,MAAM,WAAW,YAAY;IAC3B,MAAM,EAAE,0BAA0B,CAAA;IAClC,WAAW,EAAE,OAAO,CAAA;CACrB;AA+BD,wBAAgB,kBAAkB,CAChC,MAAM,EAAE,SAAS,EACjB,kBAAkB,EAAE,gBAAgB,EACpC,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,cAYf;AAGD,wBAAgB,WAAW,CACzB,MAAM,EAAE,SAAS,EACjB,aAAa,EAAE,UAAU,EACzB,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,0BAA0B,EAClC,UAAU,EAAE,MAAM,EAClB,OAAO,GAAE,OAAY,QA0BtB;AAED,wBAAgB,uBAAuB,CAAC,MAAM,EAAE,aAAa,EAAE,OAAO,GAAE,OAAY,cAanF;AAqBD,wBAAsB,eAAe,CAAC,GAAG,EAAE,MAAM,wBAOhD;AAED,wBAAsB,sBAAsB,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,uBAGzE"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"m3.d.ts","sourceRoot":"","sources":["../../../src/WebGPU/m3.ts"],"names":[],"mappings":"AACA,QAAA,MAAM,IAAI;gBACI,YAAY;sBAON,MAAM,UAAU,MAAM;;gBAe5B,YAAY,KAAK,YAAY;0BAmCnB,CAAC,MAAM,EAAE,MAAM,CAAC;6BAOb,MAAM;sBAUb,CAAC,MAAM,EAAE,MAAM,CAAC;iBAOrB,YAAY,eAAe,CAAC,MAAM,EAAE,MAAM,CAAC;cAI9C,YAAY,kBAAkB,MAAM;aAIrC,YAAY,SAAS,CAAC,MAAM,EAAE,MAAM,CAAC;CAG/C,CAAA;AAED,eAAe,IAAI,CAAA"}
@@ -1,7 +1,6 @@
1
1
  export default class PickManager {
2
2
  private pickBuffer;
3
3
  private pickTexture;
4
- private pickDepthTexture;
5
4
  private isPreviousPickDone;
6
5
  constructor(device: GPUDevice);
7
6
  /**
@@ -13,7 +12,7 @@ export default class PickManager {
13
12
  pass: GPURenderPassEncoder;
14
13
  end: VoidFunction;
15
14
  };
16
- createMatrix(canvas: HTMLCanvasElement, canvasMatrix: Float32Array): Float32Array<ArrayBufferLike>;
15
+ createMatrix(canvas: HTMLCanvasElement, canvasMatrix: Float32Array<ArrayBuffer>): Float32Array<ArrayBuffer>;
17
16
  asyncPick(): Promise<void>;
18
17
  }
19
18
  //# sourceMappingURL=pick.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pick.d.ts","sourceRoot":"","sources":["../../../src/WebGPU/pick.ts"],"names":[],"mappings":"AAOA,MAAM,CAAC,OAAO,OAAO,WAAW;IAC9B,OAAO,CAAC,UAAU,CAAW;IAC7B,OAAO,CAAC,WAAW,CAAY;IAE/B,OAAO,CAAC,kBAAkB,CAAO;gBAErB,MAAM,EAAE,SAAS;IAsB7B;;;;OAIG;IACH,YAAY,CAAC,OAAO,EAAE,iBAAiB,GAAG;QAAE,IAAI,EAAE,oBAAoB,CAAC;QAAC,GAAG,EAAE,YAAY,CAAA;KAAE;IAkD3F,YAAY,CAAC,MAAM,EAAE,iBAAiB,EAAE,YAAY,EAAE,YAAY,CAAC,WAAW,CAAC;IAgBzE,SAAS;CAkChB"}
@@ -0,0 +1,2 @@
1
+ export default function getProgram(device: GPUDevice, presentationFormat: GPUTextureFormat): (encoder: GPUCommandEncoder, texture: GPUTexture, iterations: number, filterSizePerPassX: number, filterSizePerPassY: number, sigmaPerPassX: number, sigmaPerPassY: number) => void;
2
+ //# sourceMappingURL=getProgram.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getProgram.d.ts","sourceRoot":"","sources":["../../../../../src/WebGPU/programs/blur/getProgram.ts"],"names":[],"mappings":"AAMA,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,MAAM,EAAE,SAAS,EAAE,kBAAkB,EAAE,gBAAgB,IAoBtF,SAAS,iBAAiB,EAC1B,SAAS,UAAU,EACnB,YAAY,MAAM,EAClB,oBAAoB,MAAM,EAC1B,oBAAoB,MAAM,EAC1B,eAAe,MAAM,EACrB,eAAe,MAAM,UAuFxB"}
@@ -0,0 +1,2 @@
1
+ export default function getClearComputeDepth(device: GPUDevice): (passEncoder: GPUComputePassEncoder, texture: GPUTexture) => void;
2
+ //# sourceMappingURL=getProgram.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getProgram.d.ts","sourceRoot":"","sources":["../../../../../src/WebGPU/programs/clearComputeDepth/getProgram.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,OAAO,UAAU,oBAAoB,CAAC,MAAM,EAAE,SAAS,IAa1B,aAAa,qBAAqB,EAAE,SAAS,UAAU,UAkB1F"}
@@ -0,0 +1,2 @@
1
+ export default function getClearSdf(device: GPUDevice): (passEncoder: GPUComputePassEncoder, texture: GPUTexture) => void;
2
+ //# sourceMappingURL=getProgram.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getProgram.d.ts","sourceRoot":"","sources":["../../../../../src/WebGPU/programs/clearSdf/getProgram.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,MAAM,EAAE,SAAS,IAa1B,aAAa,qBAAqB,EAAE,SAAS,UAAU,UAkBjF"}
@@ -0,0 +1,2 @@
1
+ export default function getCombineSdf(device: GPUDevice): (passEncoder: GPUComputePassEncoder, destinationTex: GPUTexture, sourceTex: GPUTexture, computeDepthTex: GPUTexture, placementData: DataView<ArrayBuffer>) => void;
2
+ //# sourceMappingURL=getProgram.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getProgram.d.ts","sourceRoot":"","sources":["../../../../../src/WebGPU/programs/combineSdf/getProgram.ts"],"names":[],"mappings":"AAGA,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,MAAM,EAAE,SAAS,IAenD,aAAa,qBAAqB,EAClC,gBAAgB,UAAU,EAC1B,WAAW,UAAU,EACrB,iBAAiB,UAAU,EAC3B,eAAe,QAAQ,CAAC,WAAW,CAAC,UAiCvC"}
@@ -0,0 +1,2 @@
1
+ export default function getComputeShape(device: GPUDevice): (passEncoder: GPUComputePassEncoder, curvesDataView: DataView<ArrayBuffer>, texture: GPUTexture) => void;
2
+ //# sourceMappingURL=getProgram.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getProgram.d.ts","sourceRoot":"","sources":["../../../../../src/WebGPU/programs/computeShape/getProgram.ts"],"names":[],"mappings":"AAGA,MAAM,CAAC,OAAO,UAAU,eAAe,CAAC,MAAM,EAAE,SAAS,IAerD,aAAa,qBAAqB,EAClC,gBAAgB,QAAQ,CAAC,WAAW,CAAC,EACrC,SAAS,UAAU,UAuBtB"}
@@ -0,0 +1,2 @@
1
+ export default function getDrawShape(device: GPUDevice, presentationFormat: GPUTextureFormat, fragmentShader: string, uniformSize: number, onCompilation?: (info: GPUCompilationInfo) => void): (passEncoder: GPURenderPassEncoder, sdfTexture: GPUTexture, boundingBoxDataView: DataView<ArrayBuffer>, uniformDataView: DataView<ArrayBuffer>) => void;
2
+ //# sourceMappingURL=getProgram.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getProgram.d.ts","sourceRoot":"","sources":["../../../../../src/WebGPU/programs/drawShape/getProgram.ts"],"names":[],"mappings":"AAGA,MAAM,CAAC,OAAO,UAAU,YAAY,CAClC,MAAM,EAAE,SAAS,EACjB,kBAAkB,EAAE,gBAAgB,EACpC,cAAc,EAAE,MAAM,EACtB,WAAW,EAAE,MAAM,EACnB,aAAa,CAAC,EAAE,CAAC,IAAI,EAAE,kBAAkB,KAAK,IAAI,IAyDhD,aAAa,oBAAoB,EACjC,YAAY,UAAU,EACtB,qBAAqB,QAAQ,CAAC,WAAW,CAAC,EAC1C,iBAAiB,QAAQ,CAAC,WAAW,CAAC,UAkCzC"}
@@ -0,0 +1,2 @@
1
+ export default function getProgram(device: GPUDevice, presentationFormat: GPUTextureFormat): (pass: GPURenderPassEncoder, vertexData: DataView<ArrayBuffer>, texture: GPUTexture) => void;
2
+ //# sourceMappingURL=getProgram.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getProgram.d.ts","sourceRoot":"","sources":["../../../../../src/WebGPU/programs/drawTexture/getProgram.ts"],"names":[],"mappings":"AAIA,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,MAAM,EAAE,SAAS,EAAE,kBAAkB,EAAE,gBAAgB,IAsDtF,MAAM,oBAAoB,EAC1B,YAAY,QAAQ,CAAC,WAAW,CAAC,EACjC,SAAS,UAAU,UA+BtB"}
@@ -0,0 +1,2 @@
1
+ export default function getProgram(device: GPUDevice, presentationFormat: GPUTextureFormat): (pass: GPURenderPassEncoder, vertexData: DataView<ArrayBuffer>) => void;
2
+ //# sourceMappingURL=getProgram.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getProgram.d.ts","sourceRoot":"","sources":["../../../../../src/WebGPU/programs/drawTriangle/getProgram.ts"],"names":[],"mappings":"AAMA,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,MAAM,EAAE,SAAS,EAAE,kBAAkB,EAAE,gBAAgB,IAwD3D,MAAM,oBAAoB,EAAE,YAAY,QAAQ,CAAC,WAAW,CAAC,UAgB3F"}
@@ -0,0 +1,32 @@
1
+ import getDrawTriangle from './drawTriangle/getProgram';
2
+ import getBlur from './blur/getProgram';
3
+ import getDrawtexture from './drawTexture/getProgram';
4
+ import getPickTexture from './pickTexture/getProgram';
5
+ import getPickTriangle from './pickTriangle/getProgram';
6
+ import getDrawShape from './drawShape/getProgram';
7
+ import getPickShape from './pickShape/getProgram';
8
+ import getComputeShape from './computeShape/getProgram';
9
+ import getCombineSdf from './combineSdf/getProgram';
10
+ import getClearComputeDepth from './clearComputeDepth/getProgram';
11
+ import getClearSdf from './clearSdf/getProgram';
12
+ export declare let drawTriangle: ReturnType<typeof getDrawTriangle>;
13
+ export declare let drawBlur: ReturnType<typeof getBlur>;
14
+ export declare let drawTexture: ReturnType<typeof getDrawtexture>;
15
+ export declare let pickTexture: ReturnType<typeof getPickTexture>;
16
+ export declare let pickTriangle: ReturnType<typeof getPickTriangle>;
17
+ export declare let drawSolidShape: ReturnType<typeof getDrawShape>;
18
+ export declare let drawLinearGradientShape: ReturnType<typeof getDrawShape>;
19
+ export declare let drawRadialGradientShape: ReturnType<typeof getDrawShape>;
20
+ export declare let pickShape: ReturnType<typeof getPickShape>;
21
+ export declare let computeShape: ReturnType<typeof getComputeShape>;
22
+ export declare let combineSdf: ReturnType<typeof getCombineSdf>;
23
+ export declare let clearComputeDepth: ReturnType<typeof getClearComputeDepth>;
24
+ export declare let clearSdf: ReturnType<typeof getClearSdf>;
25
+ export declare const canvasMatrix: {
26
+ buffer: GPUBuffer;
27
+ };
28
+ export declare let pickCanvasMatrixBuffer: GPUBuffer;
29
+ export declare function delayedDestroy(gpuObject: GPUBuffer | GPUTexture): void;
30
+ export declare function destroyGpuObjects(): void;
31
+ export default function initPrograms(device: GPUDevice, presentationFormat: GPUTextureFormat): void;
32
+ //# sourceMappingURL=initPrograms.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"initPrograms.d.ts","sourceRoot":"","sources":["../../../../src/WebGPU/programs/initPrograms.ts"],"names":[],"mappings":"AAAA,OAAO,eAAe,MAAM,2BAA2B,CAAA;AACvD,OAAO,OAAO,MAAM,mBAAmB,CAAA;AACvC,OAAO,cAAc,MAAM,0BAA0B,CAAA;AACrD,OAAO,cAAc,MAAM,0BAA0B,CAAA;AACrD,OAAO,eAAe,MAAM,2BAA2B,CAAA;AACvD,OAAO,YAAY,MAAM,wBAAwB,CAAA;AAIjD,OAAO,YAAY,MAAM,wBAAwB,CAAA;AACjD,OAAO,eAAe,MAAM,2BAA2B,CAAA;AACvD,OAAO,aAAa,MAAM,yBAAyB,CAAA;AACnD,OAAO,oBAAoB,MAAM,gCAAgC,CAAA;AACjE,OAAO,WAAW,MAAM,uBAAuB,CAAA;AAE/C,eAAO,IAAI,YAAY,EAAE,UAAU,CAAC,OAAO,eAAe,CAAC,CAAA;AAC3D,eAAO,IAAI,QAAQ,EAAE,UAAU,CAAC,OAAO,OAAO,CAAC,CAAA;AAC/C,eAAO,IAAI,WAAW,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAA;AACzD,eAAO,IAAI,WAAW,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAA;AACzD,eAAO,IAAI,YAAY,EAAE,UAAU,CAAC,OAAO,eAAe,CAAC,CAAA;AAC3D,eAAO,IAAI,cAAc,EAAE,UAAU,CAAC,OAAO,YAAY,CAAC,CAAA;AAC1D,eAAO,IAAI,uBAAuB,EAAE,UAAU,CAAC,OAAO,YAAY,CAAC,CAAA;AACnE,eAAO,IAAI,uBAAuB,EAAE,UAAU,CAAC,OAAO,YAAY,CAAC,CAAA;AACnE,eAAO,IAAI,SAAS,EAAE,UAAU,CAAC,OAAO,YAAY,CAAC,CAAA;AACrD,eAAO,IAAI,YAAY,EAAE,UAAU,CAAC,OAAO,eAAe,CAAC,CAAA;AAC3D,eAAO,IAAI,UAAU,EAAE,UAAU,CAAC,OAAO,aAAa,CAAC,CAAA;AACvD,eAAO,IAAI,iBAAiB,EAAE,UAAU,CAAC,OAAO,oBAAoB,CAAC,CAAA;AACrE,eAAO,IAAI,QAAQ,EAAE,UAAU,CAAC,OAAO,WAAW,CAAC,CAAA;AAEnD,eAAO,MAAM,YAAY,EAAE;IACzB,MAAM,EAAE,SAAS,CAAA;CACyB,CAAA;AAC5C,eAAO,IAAI,sBAAsB,EAAE,SAAS,CAAA;AAI5C,wBAAgB,cAAc,CAAC,SAAS,EAAE,SAAS,GAAG,UAAU,QAE/D;AAED,wBAAgB,iBAAiB,SAGhC;AAED,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,MAAM,EAAE,SAAS,EAAE,kBAAkB,EAAE,gBAAgB,QAqD3F"}
@@ -0,0 +1,2 @@
1
+ export default function getDrawShape(device: GPUDevice, matrixBuffer: GPUBuffer): (pass: GPURenderPassEncoder, vertexData: DataView<ArrayBuffer>, uniformData: DataView<ArrayBuffer>, sdfTexture: GPUTexture) => void;
2
+ //# sourceMappingURL=getProgram.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getProgram.d.ts","sourceRoot":"","sources":["../../../../../src/WebGPU/programs/pickShape/getProgram.ts"],"names":[],"mappings":"AAGA,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,MAAM,EAAE,SAAS,EAAE,YAAY,EAAE,SAAS,IAoC3E,MAAM,oBAAoB,EAC1B,YAAY,QAAQ,CAAC,WAAW,CAAC,EACjC,aAAa,QAAQ,CAAC,WAAW,CAAC,EAClC,YAAY,UAAU,UAmCzB"}
@@ -0,0 +1,2 @@
1
+ export default function getProgram(device: GPUDevice, matrixBuffer: GPUBuffer): (pass: GPURenderPassEncoder, vertexData: DataView<ArrayBuffer>, texture: GPUTexture) => void;
2
+ //# sourceMappingURL=getProgram.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getProgram.d.ts","sourceRoot":"","sources":["../../../../../src/WebGPU/programs/pickTexture/getProgram.ts"],"names":[],"mappings":"AAIA,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,MAAM,EAAE,SAAS,EAAE,YAAY,EAAE,SAAS,IA2CzE,MAAM,oBAAoB,EAC1B,YAAY,QAAQ,CAAC,WAAW,CAAC,EACjC,SAAS,UAAU,UA8BtB"}
@@ -0,0 +1,2 @@
1
+ export default function getProgram(device: GPUDevice, matrixBuffer: GPUBuffer): (pass: GPURenderPassEncoder, vertexData: DataView<ArrayBuffer>) => void;
2
+ //# sourceMappingURL=getProgram.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getProgram.d.ts","sourceRoot":"","sources":["../../../../../src/WebGPU/programs/pickTriangle/getProgram.ts"],"names":[],"mappings":"AAKA,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,MAAM,EAAE,SAAS,EAAE,YAAY,EAAE,SAAS,IAwC9C,MAAM,oBAAoB,EAAE,YAAY,QAAQ,CAAC,WAAW,CAAC,UAuB3F"}
@@ -0,0 +1,4 @@
1
+ import { BoundingBox } from 'types';
2
+ export declare function endCache(): void;
3
+ export declare function startCache(device: GPUDevice, encoder: GPUCommandEncoder, textureId: number, boundingBox: BoundingBox, outputWidth: number, outputHeight: number): void;
4
+ //# sourceMappingURL=textureCache.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"textureCache.d.ts","sourceRoot":"","sources":["../../../src/WebGPU/textureCache.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,WAAW,EAAE,MAAM,OAAO,CAAA;AAMnC,wBAAgB,QAAQ,SAEvB;AAED,wBAAgB,UAAU,CACxB,MAAM,EAAE,SAAS,EACjB,OAAO,EAAE,iBAAiB,EAC1B,SAAS,EAAE,MAAM,EACjB,WAAW,EAAE,WAAW,EACxB,WAAW,EAAE,MAAM,EACnB,YAAY,EAAE,MAAM,GACnB,IAAI,CAoDN"}
@@ -0,0 +1,2 @@
1
+ export declare const NO_ASSET_ID = 0;
2
+ //# sourceMappingURL=consts.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"consts.d.ts","sourceRoot":"","sources":["../../src/consts.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,WAAW,IAAI,CAAA"}
@@ -0,0 +1,16 @@
1
+ import getDrawShape from 'WebGPU/programs/drawShape/getProgram';
2
+ import { Asset, CustomProgramError } from 'types';
3
+ interface CustomProgram {
4
+ code: string;
5
+ callback: ReturnType<typeof getDrawShape>;
6
+ errors: CustomProgramError[];
7
+ }
8
+ declare let updateSnapshot: VoidFunction;
9
+ declare let onProgramUpdate: (programId: number) => void;
10
+ export declare function init(newOnProgramUpdate: typeof onProgramUpdate, newUpdateSnapshot: typeof updateSnapshot): void;
11
+ export declare function getCustomProgramId(id: number | undefined, code: string): number;
12
+ export declare function getCustomProgram(programId: number): CustomProgram;
13
+ export declare function getAssetsWithError(assets: Asset[]): Asset[];
14
+ export declare function getAssetIdsByProgramId(assets: Asset[], programId: number): number[];
15
+ export {};
16
+ //# sourceMappingURL=customPrograms.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"customPrograms.d.ts","sourceRoot":"","sources":["../../src/customPrograms.ts"],"names":[],"mappings":"AAAA,OAAO,YAAY,MAAM,sCAAsC,CAAA;AAG/D,OAAO,EAAE,KAAK,EAAE,kBAAkB,EAAU,MAAM,OAAO,CAAA;AAGzD,UAAU,aAAa;IACrB,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,EAAE,UAAU,CAAC,OAAO,YAAY,CAAC,CAAA;IACzC,MAAM,EAAE,kBAAkB,EAAE,CAAA;CAC7B;AAuBD,QAAA,IAAI,cAAc,EAAE,YAAuB,CAAA;AAC3C,QAAA,IAAI,eAAe,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAe,CAAA;AAE3D,wBAAgB,IAAI,CAClB,kBAAkB,EAAE,OAAO,eAAe,EAC1C,iBAAiB,EAAE,OAAO,cAAc,GACvC,IAAI,CAMN;AAwDD,wBAAgB,kBAAkB,CAAC,EAAE,EAAE,MAAM,GAAG,SAAS,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAkB/E;AAED,wBAAgB,gBAAgB,CAAC,SAAS,EAAE,MAAM,GAAG,aAAa,CAIjE;AAmBD,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,KAAK,EAAE,WASjD;AAED,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,GAAG,MAAM,EAAE,CAiBnF"}
@@ -0,0 +1,6 @@
1
+ import * as Logic from 'logic/index.zig';
2
+ export declare function init(getFontUrlFn: (fontId: number) => string): void;
3
+ export declare function loadFont(fontId: number): Promise<void>;
4
+ export declare function getKerning(fontId: number, charA: number, charB: number): number;
5
+ export declare function getCharData(fontId: number, char_code: number): Logic.SerializedCharDetails;
6
+ //# sourceMappingURL=fonts.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fonts.d.ts","sourceRoot":"","sources":["../../src/fonts.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,KAAK,MAAM,iBAAiB,CAAA;AAYxC,wBAAgB,IAAI,CAAC,YAAY,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,MAAM,QAI5D;AAED,wBAAsB,QAAQ,CAAC,MAAM,EAAE,MAAM,iBAiC5C;AAED,wBAAgB,UAAU,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAa/E;AAED,wBAAgB,WAAW,CAAC,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,KAAK,CAAC,qBAAqB,CA4D1F"}
@@ -0,0 +1,2 @@
1
+ export default function getCanvasMatrix(canvas: HTMLCanvasElement | OffscreenCanvas): Float32Array<ArrayBuffer>;
2
+ //# sourceMappingURL=getCanvasMatrix.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getCanvasMatrix.d.ts","sourceRoot":"","sources":["../../src/getCanvasMatrix.ts"],"names":[],"mappings":"AAGA,MAAM,CAAC,OAAO,UAAU,eAAe,CAAC,MAAM,EAAE,iBAAiB,GAAG,eAAe,6BAelF"}
@@ -1,2 +1,3 @@
1
+ export declare function destroyCanvasTextures(): void;
1
2
  export default function getCanvasRenderDescriptor(context: GPUCanvasContext, device: GPUDevice): GPURenderPassDescriptor;
2
3
  //# sourceMappingURL=getCanvasRenderDescriptor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getCanvasRenderDescriptor.d.ts","sourceRoot":"","sources":["../../src/getCanvasRenderDescriptor.ts"],"names":[],"mappings":"AAIA,wBAAgB,qBAAqB,SAGpC;AAED,MAAM,CAAC,OAAO,UAAU,yBAAyB,CAAC,OAAO,EAAE,gBAAgB,EAAE,MAAM,EAAE,SAAS,2BAiC7F"}
@@ -1,2 +1,3 @@
1
+ export declare function destroy(): void;
1
2
  export default function getDepthTexture(device: GPUDevice, width: number, height: number): GPUTexture;
2
3
  //# sourceMappingURL=getDepthTexture.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getDepthTexture.d.ts","sourceRoot":"","sources":["../../src/getDepthTexture.ts"],"names":[],"mappings":"AAEA,wBAAgB,OAAO,SAGtB;AAED,MAAM,CAAC,OAAO,UAAU,eAAe,CAAC,MAAM,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,cAYvF"}
@@ -0,0 +1,2 @@
1
+ export default function getMultisampleTexture(device: GPUDevice, width: number, height: number, format: GPUTextureFormat, texture?: GPUTexture): GPUTexture;
2
+ //# sourceMappingURL=getMultisampleTexture.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getMultisampleTexture.d.ts","sourceRoot":"","sources":["../../src/getMultisampleTexture.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,OAAO,UAAU,qBAAqB,CAC3C,MAAM,EAAE,SAAS,EACjB,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,gBAAgB,EACxB,OAAO,CAAC,EAAE,UAAU,cAcrB"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getRenderDescriptor.d.ts","sourceRoot":"","sources":["../../src/getRenderDescriptor.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,OAAO,UAAU,mBAAmB,CACzC,OAAO,EAAE,UAAU,EACnB,MAAM,EAAE,SAAS,GAChB,uBAAuB,CAmCzB"}
@@ -0,0 +1,5 @@
1
+ import { CreatorAPI, CreatorTool, Id, ProjectSnapshot } from './types';
2
+ export default function initCreator(initialProjectWidth: number, // we could also set size along setSnapshot, but
3
+ initialProjectHeight: number, // this way we can setup camera, while resetting asset
4
+ canvas: HTMLCanvasElement, uploadTexture: (url: string, onNewUrl: (newUrl: string) => void) => void, onSnapshotUpdate: (snapshot: ProjectSnapshot, commit: boolean) => void, onAssetSelect: (assetId: Id) => void, onIsProcessingFlagUpdate: (inProgress: boolean) => void, onPreviewUpdate: (canvas: HTMLCanvasElement) => void, onUpdateTool: (tool: CreatorTool) => void, getFontUrl: (fontId: number) => string): Promise<CreatorAPI>;
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAYA,OAAO,EAEL,UAAU,EACV,WAAW,EACX,EAAE,EACF,eAAe,EAGhB,MAAM,SAAS,CAAA;AAShB,wBAA8B,WAAW,CACvC,mBAAmB,EAAE,MAAM,EAAE,gDAAgD;AAC7E,oBAAoB,EAAE,MAAM,EAAE,sDAAsD;AAEpF,MAAM,EAAE,iBAAiB,EACzB,aAAa,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,KAAK,IAAI,EACxE,gBAAgB,EAAE,CAAC,QAAQ,EAAE,eAAe,EAAE,MAAM,EAAE,OAAO,KAAK,IAAI,EACtE,aAAa,EAAE,CAAC,OAAO,EAAE,EAAE,KAAK,IAAI,EACpC,wBAAwB,EAAE,CAAC,UAAU,EAAE,OAAO,KAAK,IAAI,EACvD,eAAe,EAAE,CAAC,MAAM,EAAE,iBAAiB,KAAK,IAAI,EACpD,YAAY,EAAE,CAAC,IAAI,EAAE,WAAW,KAAK,IAAI,EACzC,UAAU,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,MAAM,GACrC,OAAO,CAAC,UAAU,CAAC,CAoPrB"}
@@ -0,0 +1,3 @@
1
+ export declare function getLoadingTexture(): GPUTexture;
2
+ export declare function getErrorTexture(): GPUTexture;
3
+ //# sourceMappingURL=loadingTexture.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"loadingTexture.d.ts","sourceRoot":"","sources":["../../src/loadingTexture.ts"],"names":[],"mappings":"AAuBA,wBAAgB,iBAAiB,IAAI,UAAU,CAkB9C;AAED,wBAAgB,eAAe,IAAI,UAAU,CAiB5C"}
@@ -0,0 +1,15 @@
1
+ export declare const camera: {
2
+ x: number;
3
+ y: number;
4
+ zoom: number;
5
+ };
6
+ export declare const pointer: {
7
+ x: number;
8
+ y: number;
9
+ afterPickEventsQueue: Array<{
10
+ requireNewPick: boolean;
11
+ cb: VoidFunction;
12
+ }>;
13
+ };
14
+ export default function initMouseController(canvas: HTMLCanvasElement, onZoom: VoidFunction, onStartProcessing: VoidFunction, abortSignal: AbortSignal): void;
15
+ //# sourceMappingURL=pointer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pointer.d.ts","sourceRoot":"","sources":["../../src/pointer.ts"],"names":[],"mappings":"AAgBA,eAAO,MAAM,MAAM;;;;CAIlB,CAAA;AAED,eAAO,MAAM,OAAO;;;0BAGU,KAAK,CAAC;QAAE,cAAc,EAAE,OAAO,CAAC;QAAC,EAAE,EAAE,YAAY,CAAA;KAAE,CAAC;CAMjF,CAAA;AAED,MAAM,CAAC,OAAO,UAAU,mBAAmB,CACzC,MAAM,EAAE,iBAAiB,EACzB,MAAM,EAAE,YAAY,EACpB,iBAAiB,EAAE,YAAY,EAC/B,WAAW,EAAE,WAAW,QAyVzB"}
@@ -0,0 +1,6 @@
1
+ export declare function updateRenderPass(newRenderPass: GPURenderPassEncoder): void;
2
+ export default function runCreator(creatorCanvas: HTMLCanvasElement, context: GPUCanvasContext, device: GPUDevice, onEmptyEvents: VoidFunction): {
3
+ stopRAF: () => void;
4
+ capturePreview: (previewCtx: GPUCanvasContext, collectAndCleanup: VoidFunction) => void;
5
+ };
6
+ //# sourceMappingURL=run.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"run.d.ts","sourceRoot":"","sources":["../../src/run.ts"],"names":[],"mappings":"AA8BA,wBAAgB,gBAAgB,CAAC,aAAa,EAAE,oBAAoB,QAEnE;AAED,MAAM,CAAC,OAAO,UAAU,UAAU,CAChC,aAAa,EAAE,iBAAiB,EAChC,OAAO,EAAE,gBAAgB,EACzB,MAAM,EAAE,SAAS,EACjB,aAAa,EAAE,YAAY;;iCAqLS,gBAAgB,qBAAqB,YAAY;EAWtF"}
@@ -0,0 +1,8 @@
1
+ import { Effect, PointUV, BasicProps, TypoProps, ZigEffect } from 'types';
2
+ export declare function toBounds(bounds: PointUV[]): PointUV[];
3
+ export declare function toEffects(effects: ZigEffect[]): Effect[];
4
+ export declare function toZigEffects(effects: Effect[]): ZigEffect[];
5
+ export declare function toZigProps(props: BasicProps): BasicProps;
6
+ export declare function toBasicProps(props: BasicProps): BasicProps;
7
+ export declare function toTypoProps(props: TypoProps): TypoProps;
8
+ //# sourceMappingURL=convert.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"convert.d.ts","sourceRoot":"","sources":["../../../src/snapshots/convert.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAEzE,wBAAgB,QAAQ,CAAC,MAAM,EAAE,OAAO,EAAE,GAAG,OAAO,EAAE,CAOrD;AAED,wBAAgB,SAAS,CAAC,OAAO,EAAE,SAAS,EAAE,GAAG,MAAM,EAAE,CAMxD;AAED,wBAAgB,YAAY,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,SAAS,EAAE,CAM3D;AAED,wBAAgB,UAAU,CAAC,KAAK,EAAE,UAAU,GAAG,UAAU,CAQxD;AAGD,wBAAgB,YAAY,CAAC,KAAK,EAAE,UAAU,GAAG,UAAU,CAU1D;AAED,wBAAgB,WAAW,CAAC,KAAK,EAAE,SAAS,GAAG,SAAS,CAOvD"}
@@ -0,0 +1,4 @@
1
+ import { Fill, ZigFill } from 'types';
2
+ export declare function toFill(fill: ZigFill): Fill;
3
+ export declare function toZigFill(fill: Fill): ZigFill;
4
+ //# sourceMappingURL=fill.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fill.d.ts","sourceRoot":"","sources":["../../../src/snapshots/fill.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,OAAO,CAAA;AAGrC,wBAAgB,MAAM,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI,CAsD1C;AAMD,wBAAgB,SAAS,CAAC,IAAI,EAAE,IAAI,GAAG,OAAO,CAmD7C"}
@@ -0,0 +1,6 @@
1
+ import { ProjectSnapshot, ZigProjectSnapshot } from 'types';
2
+ export declare let lastSnapshot: ProjectSnapshot;
3
+ export declare function init(width: number, height: number): void;
4
+ export declare function withSnapshotReady(cb: (snapshot: ProjectSnapshot) => void): void;
5
+ export declare function saveSnapshot(snapshot: ZigProjectSnapshot): void;
6
+ //# sourceMappingURL=snapshots.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"snapshots.d.ts","sourceRoot":"","sources":["../../../src/snapshots/snapshots.ts"],"names":[],"mappings":"AAAA,OAAO,EAAS,eAAe,EAAE,kBAAkB,EAAE,MAAM,OAAO,CAAA;AAMlE,eAAO,IAAI,YAAY,EAAE,eAAe,CAAA;AAGxC,wBAAgB,IAAI,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,QAOjD;AAED,wBAAgB,iBAAiB,CAAC,EAAE,EAAE,CAAC,QAAQ,EAAE,eAAe,KAAK,IAAI,QAMxE;AAED,wBAAgB,YAAY,CAAC,QAAQ,EAAE,kBAAkB,QA0DxD"}
@@ -0,0 +1,3 @@
1
+ import { Asset, ZigAsset } from 'types';
2
+ export default function toZigAsset(asset: Asset): ZigAsset;
3
+ //# sourceMappingURL=toZigAsset.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toZigAsset.d.ts","sourceRoot":"","sources":["../../../src/snapshots/toZigAsset.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAKvC,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,KAAK,EAAE,KAAK,GAAG,QAAQ,CAyCzD"}
@@ -0,0 +1,3 @@
1
+ import { ShapeData } from './collectShapesData';
2
+ export default function addUiElement(shapesData: ShapeData[], uiElementType: UiElementType, maxY?: number): void;
3
+ //# sourceMappingURL=addUiElement.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"addUiElement.d.ts","sourceRoot":"","sources":["../../../src/svgToShapes/addUiElement.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAA;AAE/C,MAAM,CAAC,OAAO,UAAU,YAAY,CAClC,UAAU,EAAE,SAAS,EAAE,EACvB,aAAa,EAAE,aAAa,EAC5B,IAAI,CAAC,EAAE,MAAM,GACZ,IAAI,CAcN"}
@@ -0,0 +1,11 @@
1
+ interface BezierCurve {
2
+ cp1x: number;
3
+ cp1y: number;
4
+ cp2x: number;
5
+ cp2y: number;
6
+ x: number;
7
+ y: number;
8
+ }
9
+ export default function arcToBezier(x1: number, y1: number, rx: number, ry: number, angle: number, largeArcFlag: number, sweepFlag: number, x2: number, y2: number): BezierCurve[];
10
+ export {};
11
+ //# sourceMappingURL=arcToBezier.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"arcToBezier.d.ts","sourceRoot":"","sources":["../../../src/svgToShapes/arcToBezier.ts"],"names":[],"mappings":"AAAA,UAAU,WAAW;IACnB,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,CAAC,EAAE,MAAM,CAAA;IACT,CAAC,EAAE,MAAM,CAAA;CACV;AAGD,MAAM,CAAC,OAAO,UAAU,WAAW,CACjC,EAAE,EAAE,MAAM,EACV,EAAE,EAAE,MAAM,EACV,EAAE,EAAE,MAAM,EACV,EAAE,EAAE,MAAM,EACV,KAAK,EAAE,MAAM,EACb,YAAY,EAAE,MAAM,EACpB,SAAS,EAAE,MAAM,EACjB,EAAE,EAAE,MAAM,EACV,EAAE,EAAE,MAAM,GACT,WAAW,EAAE,CAgIf"}
@@ -0,0 +1,18 @@
1
+ import { Point } from 'types';
2
+ /**
3
+ * Represents a 2D bounding box with minimum and maximum coordinates.
4
+ */
5
+ export declare class BoundingBox {
6
+ min_x: number;
7
+ min_y: number;
8
+ max_x: number;
9
+ max_y: number;
10
+ constructor(points?: Point[]);
11
+ addPoint(p: Point): void;
12
+ addBox(box: BoundingBox): void;
13
+ }
14
+ /**
15
+ * Gets the bounding box for all paths.
16
+ */
17
+ export declare function getBoundingBox(paths: Point[][]): BoundingBox;
18
+ //# sourceMappingURL=boundingBox.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"boundingBox.d.ts","sourceRoot":"","sources":["../../../src/svgToShapes/boundingBox.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAA;AAG7B;;GAEG;AACH,qBAAa,WAAW;IACtB,KAAK,EAAE,MAAM,CAAW;IACxB,KAAK,EAAE,MAAM,CAAW;IACxB,KAAK,EAAE,MAAM,CAAY;IACzB,KAAK,EAAE,MAAM,CAAY;gBAEb,MAAM,CAAC,EAAE,KAAK,EAAE;IAM5B,QAAQ,CAAC,CAAC,EAAE,KAAK;IAOjB,MAAM,CAAC,GAAG,EAAE,WAAW;CAMxB;AA2FD;;GAEG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE,GAAG,WAAW,CAS5D"}
@@ -0,0 +1,12 @@
1
+ import { Node } from 'svg-parser';
2
+ import { BoundingBox } from './boundingBox';
3
+ import { Defs } from './definitions';
4
+ import { Point, Effect, BasicProps } from 'types';
5
+ export interface ShapeData {
6
+ paths: Point[][];
7
+ props: BasicProps;
8
+ effects: Effect[];
9
+ boundingBox: BoundingBox;
10
+ }
11
+ export default function collectShapesData(node: Node | string, defs: Defs, parentTransform?: number[]): ShapeData[];
12
+ //# sourceMappingURL=collectShapesData.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"collectShapesData.d.ts","sourceRoot":"","sources":["../../../src/svgToShapes/collectShapesData.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAA;AACjC,OAAO,EAAE,WAAW,EAAkB,MAAM,eAAe,CAAA;AAU3D,OAAO,EAAO,IAAI,EAAW,MAAM,eAAe,CAAA;AAElD,OAAO,EAAE,KAAK,EAAQ,MAAM,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAEvD,MAAM,WAAW,SAAS;IACxB,KAAK,EAAE,KAAK,EAAE,EAAE,CAAA;IAChB,KAAK,EAAE,UAAU,CAAA;IACjB,OAAO,EAAE,MAAM,EAAE,CAAA;IACjB,WAAW,EAAE,WAAW,CAAA;CACzB;AA4FD,MAAM,CAAC,OAAO,UAAU,iBAAiB,CACvC,IAAI,EAAE,IAAI,GAAG,MAAM,EACnB,IAAI,EAAE,IAAI,EACV,eAAe,GAAE,MAAM,EAAoB,GAC1C,SAAS,EAAE,CAuJb"}
@@ -0,0 +1,5 @@
1
+ export declare const STRAIGHT_LINE_HANDLE: {
2
+ x: number;
3
+ y: number;
4
+ };
5
+ //# sourceMappingURL=const.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"const.d.ts","sourceRoot":"","sources":["../../../src/svgToShapes/const.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,oBAAoB;;;CAAoB,CAAA"}
@@ -0,0 +1,44 @@
1
+ import { Node } from 'svg-parser';
2
+ import { Color, Point } from 'types';
3
+ export type DefStop = {
4
+ offset: number;
5
+ color: Color;
6
+ };
7
+ export type AttrValue = string | number | undefined;
8
+ export type Def = {
9
+ paths?: Point[][];
10
+ stops?: DefStop[];
11
+ href?: string;
12
+ id?: string;
13
+ type?: 'linear-gradient' | 'radial-gradient' | 'gaussian-blur';
14
+ gradientTransform?: number[];
15
+ stdDeviation?: [number, number];
16
+ x1?: AttrValue;
17
+ y1?: AttrValue;
18
+ x2?: AttrValue;
19
+ y2?: AttrValue;
20
+ 'stop-color'?: AttrValue;
21
+ 'stop-opacity'?: AttrValue;
22
+ offset?: AttrValue;
23
+ transform?: AttrValue;
24
+ fill?: AttrValue;
25
+ stroke?: AttrValue;
26
+ filter?: AttrValue;
27
+ opacity?: AttrValue;
28
+ 'fill-opacity'?: AttrValue;
29
+ 'stroke-width'?: AttrValue;
30
+ d?: never;
31
+ cx?: never;
32
+ cy?: never;
33
+ r?: never;
34
+ rx?: never;
35
+ ry?: never;
36
+ x?: never;
37
+ y?: never;
38
+ width?: never;
39
+ height?: never;
40
+ };
41
+ export type Defs = Record<string, Def>;
42
+ export declare function resolveAll(defs: Defs): void;
43
+ export declare function collect(node: Node | string, defs: Defs, insideDefs?: boolean): void;
44
+ //# sourceMappingURL=definitions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"definitions.d.ts","sourceRoot":"","sources":["../../../src/svgToShapes/definitions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAA;AAGjC,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,OAAO,CAAA;AAEpC,MAAM,MAAM,OAAO,GAAG;IACpB,MAAM,EAAE,MAAM,CAAA;IACd,KAAK,EAAE,KAAK,CAAA;CACb,CAAA;AAKD,MAAM,MAAM,SAAS,GAAG,MAAM,GAAG,MAAM,GAAG,SAAS,CAAA;AAEnD,MAAM,MAAM,GAAG,GAAG;IAChB,KAAK,CAAC,EAAE,KAAK,EAAE,EAAE,CAAA;IACjB,KAAK,CAAC,EAAE,OAAO,EAAE,CAAA;IACjB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,IAAI,CAAC,EAAE,iBAAiB,GAAG,iBAAiB,GAAG,eAAe,CAAA;IAC9D,iBAAiB,CAAC,EAAE,MAAM,EAAE,CAAA;IAC5B,YAAY,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAC/B,EAAE,CAAC,EAAE,SAAS,CAAA;IACd,EAAE,CAAC,EAAE,SAAS,CAAA;IACd,EAAE,CAAC,EAAE,SAAS,CAAA;IACd,EAAE,CAAC,EAAE,SAAS,CAAA;IACd,YAAY,CAAC,EAAE,SAAS,CAAA;IACxB,cAAc,CAAC,EAAE,SAAS,CAAA;IAC1B,MAAM,CAAC,EAAE,SAAS,CAAA;IAClB,SAAS,CAAC,EAAE,SAAS,CAAA;IACrB,IAAI,CAAC,EAAE,SAAS,CAAA;IAChB,MAAM,CAAC,EAAE,SAAS,CAAA;IAClB,MAAM,CAAC,EAAE,SAAS,CAAA;IAClB,OAAO,CAAC,EAAE,SAAS,CAAA;IACnB,cAAc,CAAC,EAAE,SAAS,CAAA;IAC1B,cAAc,CAAC,EAAE,SAAS,CAAA;IAC1B,CAAC,CAAC,EAAE,KAAK,CAAA;IACT,EAAE,CAAC,EAAE,KAAK,CAAA;IACV,EAAE,CAAC,EAAE,KAAK,CAAA;IACV,CAAC,CAAC,EAAE,KAAK,CAAA;IACT,EAAE,CAAC,EAAE,KAAK,CAAA;IACV,EAAE,CAAC,EAAE,KAAK,CAAA;IACV,CAAC,CAAC,EAAE,KAAK,CAAA;IACT,CAAC,CAAC,EAAE,KAAK,CAAA;IACT,KAAK,CAAC,EAAE,KAAK,CAAA;IACb,MAAM,CAAC,EAAE,KAAK,CAAA;CACf,CAAA;AAED,MAAM,MAAM,IAAI,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;AAEtC,wBAAgB,UAAU,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI,CAQ3C;AAyBD,wBAAgB,OAAO,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,UAAU,UAAQ,GAAG,IAAI,CA2CjF"}
@@ -0,0 +1,4 @@
1
+ import { ElementNode } from 'svg-parser';
2
+ import { Def } from './definitions';
3
+ export default function getProps(node: ElementNode): Def;
4
+ //# sourceMappingURL=getProps.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getProps.d.ts","sourceRoot":"","sources":["../../../src/svgToShapes/getProps.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,WAAW,EAAE,MAAM,YAAY,CAAA;AAC9C,OAAO,EAAE,GAAG,EAAE,MAAM,eAAe,CAAA;AAOnC,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,IAAI,EAAE,WAAW,GAAG,GAAG,CAwFvD"}
@@ -0,0 +1,5 @@
1
+ import { PointUV, Asset } from 'types';
2
+ import { ShapeData } from './collectShapesData';
3
+ export declare const DEFAULT_BOUNDS: PointUV[];
4
+ export default function getShapesZigAssets(shapesData: ShapeData[], maxY?: number): Asset[];
5
+ //# sourceMappingURL=getShapesAssets.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getShapesAssets.d.ts","sourceRoot":"","sources":["../../../src/svgToShapes/getShapesAssets.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAA;AACtC,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAA;AAK/C,eAAO,MAAM,cAAc,EAAE,OAAO,EAKnC,CAAA;AAED,MAAM,CAAC,OAAO,UAAU,kBAAkB,CAAC,UAAU,EAAE,SAAS,EAAE,EAAE,IAAI,CAAC,EAAE,MAAM,GAAG,KAAK,EAAE,CAuB1F"}
@@ -0,0 +1,3 @@
1
+ import { Point } from 'types';
2
+ export default function parseEllipse(cx: number, cy: number, rx: number, ry: number): Point[];
3
+ //# sourceMappingURL=parseEllipse.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parseEllipse.d.ts","sourceRoot":"","sources":["../../../src/svgToShapes/parseEllipse.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAA;AAE7B,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,KAAK,EAAE,CAyC5F"}
@@ -0,0 +1,3 @@
1
+ import { Point } from 'types';
2
+ export default function parsePathData(dAttribute: string): Point[][];
3
+ //# sourceMappingURL=parsePathData.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parsePathData.d.ts","sourceRoot":"","sources":["../../../src/svgToShapes/parsePathData.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAA;AAuT7B,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,UAAU,EAAE,MAAM,GAAG,KAAK,EAAE,EAAE,CAKnE"}
@@ -0,0 +1,3 @@
1
+ import { Point } from 'types';
2
+ export default function parseRect(x: number, y: number, width: number, height: number): Point[];
3
+ //# sourceMappingURL=parseRect.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parseRect.d.ts","sourceRoot":"","sources":["../../../src/svgToShapes/parseRect.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAA;AAG7B,MAAM,CAAC,OAAO,UAAU,SAAS,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,KAAK,EAAE,CAwB9F"}