@mateuszjs/magic-render 0.1.0-next.21 → 0.1.0-next.23

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 (225) hide show
  1. package/lib/40dc20eab8f7c9f3.ttf +0 -0
  2. package/lib/index.mjs +2 -1
  3. package/lib/index.mjs.LICENSE.txt +1 -0
  4. package/lib/index.mjs.map +1 -1
  5. package/lib/types/WebGPU/canvasSizeObserver.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/getDevice.d.ts +6 -0
  9. package/lib/types/WebGPU/getDevice.d.ts.map +1 -0
  10. package/lib/types/WebGPU/getTexture/createCheckedImageData.d.ts.map +1 -0
  11. package/lib/types/WebGPU/getTexture/generateMimapsArray.d.ts.map +1 -0
  12. package/lib/types/{src/WebGPU → WebGPU}/getTexture/index.d.ts +3 -3
  13. package/lib/types/WebGPU/getTexture/index.d.ts.map +1 -0
  14. package/lib/types/WebGPU/m3.d.ts.map +1 -0
  15. package/lib/types/{src/WebGPU → WebGPU}/pick.d.ts +1 -2
  16. package/lib/types/WebGPU/pick.d.ts.map +1 -0
  17. package/lib/types/WebGPU/programs/blur/getProgram.d.ts +2 -0
  18. package/lib/types/WebGPU/programs/blur/getProgram.d.ts.map +1 -0
  19. package/lib/types/WebGPU/programs/clearComputeDepth/getProgram.d.ts +2 -0
  20. package/lib/types/WebGPU/programs/clearComputeDepth/getProgram.d.ts.map +1 -0
  21. package/lib/types/WebGPU/programs/clearSdf/getProgram.d.ts +2 -0
  22. package/lib/types/WebGPU/programs/clearSdf/getProgram.d.ts.map +1 -0
  23. package/lib/types/WebGPU/programs/combineSdf/getProgram.d.ts +2 -0
  24. package/lib/types/WebGPU/programs/combineSdf/getProgram.d.ts.map +1 -0
  25. package/lib/types/WebGPU/programs/computeShape/getProgram.d.ts +2 -0
  26. package/lib/types/WebGPU/programs/computeShape/getProgram.d.ts.map +1 -0
  27. package/lib/types/WebGPU/programs/drawShape/getProgram.d.ts +2 -0
  28. package/lib/types/WebGPU/programs/drawShape/getProgram.d.ts.map +1 -0
  29. package/lib/types/WebGPU/programs/drawTexture/getProgram.d.ts +2 -0
  30. package/lib/types/WebGPU/programs/drawTexture/getProgram.d.ts.map +1 -0
  31. package/lib/types/WebGPU/programs/drawTriangle/getProgram.d.ts +2 -0
  32. package/lib/types/WebGPU/programs/drawTriangle/getProgram.d.ts.map +1 -0
  33. package/lib/types/WebGPU/programs/initPrograms.d.ts +32 -0
  34. package/lib/types/WebGPU/programs/initPrograms.d.ts.map +1 -0
  35. package/lib/types/WebGPU/programs/pickShape/getProgram.d.ts +2 -0
  36. package/lib/types/WebGPU/programs/pickShape/getProgram.d.ts.map +1 -0
  37. package/lib/types/{src/WebGPU → WebGPU}/programs/pickTexture/getProgram.d.ts +1 -1
  38. package/lib/types/WebGPU/programs/pickTexture/getProgram.d.ts.map +1 -0
  39. package/lib/types/{src/WebGPU → WebGPU}/programs/pickTriangle/getProgram.d.ts +1 -1
  40. package/lib/types/WebGPU/programs/pickTriangle/getProgram.d.ts.map +1 -0
  41. package/lib/types/WebGPU/textureCache.d.ts +3 -0
  42. package/lib/types/WebGPU/textureCache.d.ts.map +1 -0
  43. package/lib/types/consts.d.ts.map +1 -0
  44. package/lib/types/fonts.d.ts +5 -0
  45. package/lib/types/fonts.d.ts.map +1 -0
  46. package/lib/types/getCanvasMatrix.d.ts.map +1 -0
  47. package/lib/types/getCanvasRenderDescriptor.d.ts.map +1 -0
  48. package/lib/types/getDepthTexture.d.ts.map +1 -0
  49. package/lib/types/getMultisampleTexture.d.ts +2 -0
  50. package/lib/types/getMultisampleTexture.d.ts.map +1 -0
  51. package/lib/types/getRenderDescriptor.d.ts.map +1 -0
  52. package/lib/types/index.d.ts +61 -0
  53. package/lib/types/index.d.ts.map +1 -0
  54. package/lib/types/loadingTexture.d.ts +2 -0
  55. package/lib/types/loadingTexture.d.ts.map +1 -0
  56. package/lib/types/pointer.d.ts.map +1 -0
  57. package/lib/types/{src/run.d.ts → run.d.ts} +1 -1
  58. package/lib/types/run.d.ts.map +1 -0
  59. package/lib/types/sanitizeFill.d.ts +2 -0
  60. package/lib/types/sanitizeFill.d.ts.map +1 -0
  61. package/lib/types/svgToShapes/arcToBezier.d.ts +11 -0
  62. package/lib/types/svgToShapes/arcToBezier.d.ts.map +1 -0
  63. package/lib/types/svgToShapes/boundingBox.d.ts +17 -0
  64. package/lib/types/svgToShapes/boundingBox.d.ts.map +1 -0
  65. package/lib/types/svgToShapes/collectShapesData.d.ts +10 -0
  66. package/lib/types/svgToShapes/collectShapesData.d.ts.map +1 -0
  67. package/lib/types/svgToShapes/const.d.ts.map +1 -0
  68. package/lib/types/svgToShapes/createShapes.d.ts +3 -0
  69. package/lib/types/svgToShapes/createShapes.d.ts.map +1 -0
  70. package/lib/types/svgToShapes/definitions.d.ts +43 -0
  71. package/lib/types/svgToShapes/definitions.d.ts.map +1 -0
  72. package/lib/types/svgToShapes/getProps.d.ts +4 -0
  73. package/lib/types/svgToShapes/getProps.d.ts.map +1 -0
  74. package/lib/types/svgToShapes/parseEllipse.d.ts +2 -0
  75. package/lib/types/svgToShapes/parseEllipse.d.ts.map +1 -0
  76. package/lib/types/svgToShapes/parsePathData.d.ts +2 -0
  77. package/lib/types/svgToShapes/parsePathData.d.ts.map +1 -0
  78. package/lib/types/svgToShapes/parseRect.d.ts +2 -0
  79. package/lib/types/svgToShapes/parseRect.d.ts.map +1 -0
  80. package/lib/types/svgToShapes/radialGradient.d.ts +15 -0
  81. package/lib/types/svgToShapes/radialGradient.d.ts.map +1 -0
  82. package/lib/types/svgToShapes/utils.d.ts +9 -0
  83. package/lib/types/svgToShapes/utils.d.ts.map +1 -0
  84. package/lib/types/textures.d.ts +21 -0
  85. package/lib/types/textures.d.ts.map +1 -0
  86. package/lib/types/types.d.ts.map +1 -0
  87. package/lib/types/typing.d.ts +6 -0
  88. package/lib/types/typing.d.ts.map +1 -0
  89. package/lib/types/utils/atNormIndex.d.ts.map +1 -0
  90. package/lib/types/utils/captureCanvasStream.d.ts.map +1 -0
  91. package/lib/types/utils/captureCanvasStreamWasm.d.ts.map +1 -0
  92. package/lib/types/utils/clamp.d.ts.map +1 -0
  93. package/lib/types/utils/debounce.d.ts.map +1 -0
  94. package/lib/types/utils/distancePointToLine.d.ts.map +1 -0
  95. package/lib/types/utils/fitCurve.d.ts.map +1 -0
  96. package/lib/types/utils/getAngle.d.ts.map +1 -0
  97. package/lib/types/utils/getAngleDiff.d.ts.map +1 -0
  98. package/lib/types/utils/getBezierPos.d.ts.map +1 -0
  99. package/lib/types/utils/getBezierTan.d.ts.map +1 -0
  100. package/lib/types/utils/getCurveLength.d.ts.map +1 -0
  101. package/lib/types/utils/getDefaultPoints.d.ts.map +1 -0
  102. package/lib/types/utils/getDistance.d.ts.map +1 -0
  103. package/lib/types/utils/mat4.d.ts.map +1 -0
  104. package/lib/types/utils/normalizeVec2.d.ts.map +1 -0
  105. package/lib/types/utils/resizeArray.d.ts.map +1 -0
  106. package/lib/types/utils/vec3.d.ts.map +1 -0
  107. package/package.json +6 -8
  108. package/lib/e9072ac5eb734c67.png +0 -0
  109. package/lib/types/src/WebGPU/canvasSizeObserver.d.ts.map +0 -1
  110. package/lib/types/src/WebGPU/generatePreview.d.ts +0 -2
  111. package/lib/types/src/WebGPU/generatePreview.d.ts.map +0 -1
  112. package/lib/types/src/WebGPU/getDevice.d.ts +0 -2
  113. package/lib/types/src/WebGPU/getDevice.d.ts.map +0 -1
  114. package/lib/types/src/WebGPU/getTexture/createCheckedImageData.d.ts.map +0 -1
  115. package/lib/types/src/WebGPU/getTexture/generateMimapsArray.d.ts.map +0 -1
  116. package/lib/types/src/WebGPU/getTexture/index.d.ts.map +0 -1
  117. package/lib/types/src/WebGPU/m3.d.ts.map +0 -1
  118. package/lib/types/src/WebGPU/pick.d.ts.map +0 -1
  119. package/lib/types/src/WebGPU/pointer.d.ts.map +0 -1
  120. package/lib/types/src/WebGPU/programs/blur/getProgram.d.ts +0 -2
  121. package/lib/types/src/WebGPU/programs/blur/getProgram.d.ts.map +0 -1
  122. package/lib/types/src/WebGPU/programs/draw/getProgram.d.ts +0 -2
  123. package/lib/types/src/WebGPU/programs/draw/getProgram.d.ts.map +0 -1
  124. package/lib/types/src/WebGPU/programs/draw3dModel/getProgram.d.ts +0 -2
  125. package/lib/types/src/WebGPU/programs/draw3dModel/getProgram.d.ts.map +0 -1
  126. package/lib/types/src/WebGPU/programs/draw3dModelLight/getProgram.d.ts +0 -9
  127. package/lib/types/src/WebGPU/programs/draw3dModelLight/getProgram.d.ts.map +0 -1
  128. package/lib/types/src/WebGPU/programs/draw3dModelTexture/getProgram.d.ts +0 -2
  129. package/lib/types/src/WebGPU/programs/draw3dModelTexture/getProgram.d.ts.map +0 -1
  130. package/lib/types/src/WebGPU/programs/drawBezier/getProgram.d.ts +0 -2
  131. package/lib/types/src/WebGPU/programs/drawBezier/getProgram.d.ts.map +0 -1
  132. package/lib/types/src/WebGPU/programs/drawMSDF/getProgram.d.ts +0 -2
  133. package/lib/types/src/WebGPU/programs/drawMSDF/getProgram.d.ts.map +0 -1
  134. package/lib/types/src/WebGPU/programs/drawShape/getProgram.d.ts +0 -2
  135. package/lib/types/src/WebGPU/programs/drawShape/getProgram.d.ts.map +0 -1
  136. package/lib/types/src/WebGPU/programs/drawTexture/getProgram.d.ts +0 -2
  137. package/lib/types/src/WebGPU/programs/drawTexture/getProgram.d.ts.map +0 -1
  138. package/lib/types/src/WebGPU/programs/drawTriangle/getProgram.d.ts +0 -2
  139. package/lib/types/src/WebGPU/programs/drawTriangle/getProgram.d.ts.map +0 -1
  140. package/lib/types/src/WebGPU/programs/initPrograms.d.ts +0 -26
  141. package/lib/types/src/WebGPU/programs/initPrograms.d.ts.map +0 -1
  142. package/lib/types/src/WebGPU/programs/pickTexture/getProgram.d.ts.map +0 -1
  143. package/lib/types/src/WebGPU/programs/pickTriangle/getProgram.d.ts.map +0 -1
  144. package/lib/types/src/WebGPU/textureCache.d.ts +0 -3
  145. package/lib/types/src/WebGPU/textureCache.d.ts.map +0 -1
  146. package/lib/types/src/__test__/index.test.d.ts +0 -1
  147. package/lib/types/src/__test__/index.test.d.ts.map +0 -1
  148. package/lib/types/src/consts.d.ts.map +0 -1
  149. package/lib/types/src/getCanvasMatrix.d.ts.map +0 -1
  150. package/lib/types/src/getCanvasRenderDescriptor.d.ts.map +0 -1
  151. package/lib/types/src/getDepthTexture.d.ts.map +0 -1
  152. package/lib/types/src/getMultisampleTexture.d.ts +0 -2
  153. package/lib/types/src/getMultisampleTexture.d.ts.map +0 -1
  154. package/lib/types/src/getRenderDescriptor.d.ts.map +0 -1
  155. package/lib/types/src/index.d.ts +0 -25
  156. package/lib/types/src/index.d.ts.map +0 -1
  157. package/lib/types/src/loadingTexture.d.ts +0 -2
  158. package/lib/types/src/loadingTexture.d.ts.map +0 -1
  159. package/lib/types/src/models/Video/MiniatureVideo.d.ts +0 -30
  160. package/lib/types/src/models/Video/MiniatureVideo.d.ts.map +0 -1
  161. package/lib/types/src/run.d.ts.map +0 -1
  162. package/lib/types/src/shapes/const.d.ts.map +0 -1
  163. package/lib/types/src/shapes/createShape.d.ts +0 -3
  164. package/lib/types/src/shapes/createShape.d.ts.map +0 -1
  165. package/lib/types/src/shapes/parseColor.d.ts +0 -2
  166. package/lib/types/src/shapes/parseColor.d.ts.map +0 -1
  167. package/lib/types/src/shapes/parseEllipse.d.ts +0 -3
  168. package/lib/types/src/shapes/parseEllipse.d.ts.map +0 -1
  169. package/lib/types/src/shapes/parsePathData.d.ts +0 -3
  170. package/lib/types/src/shapes/parsePathData.d.ts.map +0 -1
  171. package/lib/types/src/shapes/parseRect.d.ts +0 -3
  172. package/lib/types/src/shapes/parseRect.d.ts.map +0 -1
  173. package/lib/types/src/shapes/types.d.ts +0 -4
  174. package/lib/types/src/shapes/types.d.ts.map +0 -1
  175. package/lib/types/src/textures.d.ts +0 -13
  176. package/lib/types/src/textures.d.ts.map +0 -1
  177. package/lib/types/src/types.d.ts.map +0 -1
  178. package/lib/types/src/utils/atNormIndex.d.ts.map +0 -1
  179. package/lib/types/src/utils/captureCanvasStream.d.ts.map +0 -1
  180. package/lib/types/src/utils/captureCanvasStreamWasm.d.ts.map +0 -1
  181. package/lib/types/src/utils/clamp.d.ts.map +0 -1
  182. package/lib/types/src/utils/debounce.d.ts.map +0 -1
  183. package/lib/types/src/utils/distancePointToLine.d.ts.map +0 -1
  184. package/lib/types/src/utils/fitCurve.d.ts.map +0 -1
  185. package/lib/types/src/utils/getAngle.d.ts.map +0 -1
  186. package/lib/types/src/utils/getAngleDiff.d.ts.map +0 -1
  187. package/lib/types/src/utils/getBezierPos.d.ts.map +0 -1
  188. package/lib/types/src/utils/getBezierTan.d.ts.map +0 -1
  189. package/lib/types/src/utils/getCurveLength.d.ts.map +0 -1
  190. package/lib/types/src/utils/getDefaultPoints.d.ts.map +0 -1
  191. package/lib/types/src/utils/getDistance.d.ts.map +0 -1
  192. package/lib/types/src/utils/mat4.d.ts.map +0 -1
  193. package/lib/types/src/utils/normalizeVec2.d.ts.map +0 -1
  194. package/lib/types/src/utils/resizeArray.d.ts.map +0 -1
  195. package/lib/types/src/utils/vec3.d.ts.map +0 -1
  196. /package/lib/types/{src/WebGPU → WebGPU}/canvasSizeObserver.d.ts +0 -0
  197. /package/lib/types/{src/WebGPU → WebGPU}/getTexture/createCheckedImageData.d.ts +0 -0
  198. /package/lib/types/{src/WebGPU → WebGPU}/getTexture/generateMimapsArray.d.ts +0 -0
  199. /package/lib/types/{src/WebGPU → WebGPU}/m3.d.ts +0 -0
  200. /package/lib/types/{src/consts.d.ts → consts.d.ts} +0 -0
  201. /package/lib/types/{src/getCanvasMatrix.d.ts → getCanvasMatrix.d.ts} +0 -0
  202. /package/lib/types/{src/getCanvasRenderDescriptor.d.ts → getCanvasRenderDescriptor.d.ts} +0 -0
  203. /package/lib/types/{src/getDepthTexture.d.ts → getDepthTexture.d.ts} +0 -0
  204. /package/lib/types/{src/getRenderDescriptor.d.ts → getRenderDescriptor.d.ts} +0 -0
  205. /package/lib/types/{src/WebGPU/pointer.d.ts → pointer.d.ts} +0 -0
  206. /package/lib/types/{src/shapes → svgToShapes}/const.d.ts +0 -0
  207. /package/lib/types/{src/types.d.ts → types.d.ts} +0 -0
  208. /package/lib/types/{src/utils → utils}/atNormIndex.d.ts +0 -0
  209. /package/lib/types/{src/utils → utils}/captureCanvasStream.d.ts +0 -0
  210. /package/lib/types/{src/utils → utils}/captureCanvasStreamWasm.d.ts +0 -0
  211. /package/lib/types/{src/utils → utils}/clamp.d.ts +0 -0
  212. /package/lib/types/{src/utils → utils}/debounce.d.ts +0 -0
  213. /package/lib/types/{src/utils → utils}/distancePointToLine.d.ts +0 -0
  214. /package/lib/types/{src/utils → utils}/fitCurve.d.ts +0 -0
  215. /package/lib/types/{src/utils → utils}/getAngle.d.ts +0 -0
  216. /package/lib/types/{src/utils → utils}/getAngleDiff.d.ts +0 -0
  217. /package/lib/types/{src/utils → utils}/getBezierPos.d.ts +0 -0
  218. /package/lib/types/{src/utils → utils}/getBezierTan.d.ts +0 -0
  219. /package/lib/types/{src/utils → utils}/getCurveLength.d.ts +0 -0
  220. /package/lib/types/{src/utils → utils}/getDefaultPoints.d.ts +0 -0
  221. /package/lib/types/{src/utils → utils}/getDistance.d.ts +0 -0
  222. /package/lib/types/{src/utils → utils}/mat4.d.ts +0 -0
  223. /package/lib/types/{src/utils → utils}/normalizeVec2.d.ts +0 -0
  224. /package/lib/types/{src/utils → utils}/resizeArray.d.ts +0 -0
  225. /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,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: (canvas: HTMLCanvasElement, context: GPUCanvasContext) => Promise<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":"AAGA,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,MAAM,EAAE,iBAAiB,EAAE,OAAO,EAAE,gBAAgB,KAAK,OAAO,CAAC,IAAI,CAAC,EACvF,eAAe,EAAE,CAAC,MAAM,EAAE,iBAAiB,KAAK,IAAI,iBA8BrD"}
@@ -0,0 +1,6 @@
1
+ export default function getDevice(): Promise<{
2
+ device: GPUDevice;
3
+ presentationFormat: GPUTextureFormat;
4
+ storageFormat: GPUTextureFormat;
5
+ }>;
6
+ //# sourceMappingURL=getDevice.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getDevice.d.ts","sourceRoot":"","sources":["../../../src/WebGPU/getDevice.ts"],"names":[],"mappings":"AAAA,wBAA8B,SAAS;;;;GA8BtC"}
@@ -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(device: GPUDevice, presentationFormat: GPUTextureFormat, 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(device: GPUDevice, presentationFormat: GPUTextureFormat, 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":"AAGA,UAAU,OAAO;IACf,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,KAAK,CAAC,E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AI9C,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,UA4BvC"}
@@ -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): (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,IAqDjB,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,CA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AAO,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"}
@@ -1,2 +1,2 @@
1
- export default function getProgram(device: GPUDevice, matrixBuffer: GPUBuffer): (pass: GPURenderPassEncoder, vertexData: DataView, texture: GPUTexture) => void;
1
+ export default function getProgram(device: GPUDevice, matrixBuffer: GPUBuffer): (pass: GPURenderPassEncoder, vertexData: DataView<ArrayBuffer>, texture: GPUTexture) => void;
2
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"}
@@ -1,2 +1,2 @@
1
- export default function getProgram(device: GPUDevice, matrixBuffer: GPUBuffer): (pass: GPURenderPassEncoder, vertexData: DataView) => void;
1
+ export default function getProgram(device: GPUDevice, matrixBuffer: GPUBuffer): (pass: GPURenderPassEncoder, vertexData: DataView<ArrayBuffer>) => void;
2
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,3 @@
1
+ export declare function endCache(): void;
2
+ export declare function startCache(device: GPUDevice, encoder: GPUCommandEncoder, textureId: number, boundingBox: BoundingBox, outputWidth: number, outputHeight: number): void;
3
+ //# sourceMappingURL=textureCache.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"textureCache.d.ts","sourceRoot":"","sources":["../../../src/WebGPU/textureCache.ts"],"names":[],"mappings":"AAUA,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 @@
1
+ {"version":3,"file":"consts.d.ts","sourceRoot":"","sources":["../../src/consts.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd,aAAa,EAAE,GAAG,CAAC;QACnB,gBAAgB,EAAE,MAAM,CAAC;KAC1B;IAED,UAAU,SAAS;QACjB,gBAAgB,EAAE,MAAM,CAAC;KAC1B;CACF;AAED,eAAO,MAAM,QAAQ,SAGlB,CAAA;AAEH,eAAO,MAAM,SAAS,QAAsB,CAAA;AAC5C,eAAO,MAAM,YAAY,IAAI,CAAA;AAC7B,eAAO,MAAM,WAAW,QAA2B,CAAA;AAEnD,eAAO,MAAM,cAAc,KAIY,CAAA;AAEvC,eAAO,MAAM,GAAG,QAA0B,CAAA"}
@@ -0,0 +1,5 @@
1
+ import * as Logic from 'logic/index.zig';
2
+ export declare function loadFont(): Promise<void>;
3
+ export declare function getKerning(charA: number, charB: number): number;
4
+ export declare function getCharData(font_id: number, char_code: number): Logic.SerializedCharDetails;
5
+ //# sourceMappingURL=fonts.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fonts.d.ts","sourceRoot":"","sources":["../../src/fonts.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,KAAK,MAAM,iBAAiB,CAAA;AAOxC,wBAAsB,QAAQ,kBAO7B;AAED,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAO/D;AAED,wBAAgB,WAAW,CAAC,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,KAAK,CAAC,qBAAqB,CAsC3F"}
@@ -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,6BAehE"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getCanvasRenderDescriptor.d.ts","sourceRoot":"","sources":["../../src/getCanvasRenderDescriptor.ts"],"names":[],"mappings":"AAIA,MAAM,CAAC,OAAO,UAAU,yBAAyB,CAAC,OAAO,EAAE,gBAAgB,EAAE,MAAM,EAAE,SAAS,2BAiC7F"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getDepthTexture.d.ts","sourceRoot":"","sources":["../../src/getDepthTexture.ts"],"names":[],"mappings":"AAEA,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,61 @@
1
+ export type SerializedInputImage = {
2
+ id?: number;
3
+ bounds?: PointUV[];
4
+ url: string;
5
+ texture_id?: number;
6
+ };
7
+ export type SerializedInputShape = {
8
+ id?: number;
9
+ paths: Point[][];
10
+ props: ShapeProps;
11
+ sdf_texture_id?: number;
12
+ cache_texture_id?: number | null;
13
+ bounds?: PointUV[];
14
+ };
15
+ export type SerializedInputText = {
16
+ id?: number;
17
+ content: string;
18
+ bounds: PointUV[];
19
+ font_size: number;
20
+ props: ShapeProps;
21
+ };
22
+ export type SerializedInputAsset = SerializedInputImage | SerializedInputShape | SerializedInputText;
23
+ export type SerializedOutputImage = {
24
+ id: number;
25
+ bounds: PointUV[];
26
+ url: string;
27
+ texture_id: number;
28
+ };
29
+ export type SerializedOutputShape = {
30
+ id: number;
31
+ paths: Point[][];
32
+ props: ShapeProps;
33
+ bounds: PointUV[];
34
+ sdf_texture_id: number;
35
+ cache_texture_id: number | null;
36
+ };
37
+ export type SerializedOutputText = {
38
+ id: number;
39
+ content: string;
40
+ bounds: PointUV[];
41
+ font_size: number;
42
+ props: ShapeProps;
43
+ };
44
+ export type SerializedOutputAsset = SerializedOutputImage | SerializedOutputShape | SerializedOutputText;
45
+ export declare enum CreatorTool {
46
+ None = 0,
47
+ DrawShape = 1,
48
+ EditShape = 2
49
+ }
50
+ export interface CreatorAPI {
51
+ addImage: (url: string) => void;
52
+ resetAssets: (assets: SerializedInputAsset[], withSnapshot?: boolean) => void;
53
+ removeAsset: VoidFunction;
54
+ destroy: VoidFunction;
55
+ setTool: (tool: CreatorTool) => void;
56
+ toggleSharedTextEffects: VoidFunction;
57
+ updateAssetProps: (props: Partial<ShapeProps>) => void;
58
+ updateAssetBounds: (bounds: PointUV[]) => void;
59
+ }
60
+ export default function initCreator(canvas: HTMLCanvasElement, uploadTexture: (url: string, onNewUrl: (newUrl: string) => void) => void, onAssetsUpdate: (assets: SerializedOutputAsset[]) => void, onAssetSelect: (assetId: Id) => void, onProcessingUpdate: (inProgress: boolean) => void, onPreviewUpdate: (canvas: HTMLCanvasElement) => void, onUpdateTool: (tool: CreatorTool) => void, onUpdateProps: (bounds: PointUV[] | null, props: Partial<ShapeProps> | null) => void): Promise<CreatorAPI>;
61
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAcA,MAAM,MAAM,oBAAoB,GAAG;IACjC,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,MAAM,CAAC,EAAE,OAAO,EAAE,CAAA;IAClB,GAAG,EAAE,MAAM,CAAA;IACX,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB,CAAA;AAED,MAAM,MAAM,oBAAoB,GAAG;IACjC,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,KAAK,EAAE,KAAK,EAAE,EAAE,CAAA;IAChB,KAAK,EAAE,UAAU,CAA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AAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAA;IAC/B,WAAW,EAAE,CAAC,MAAM,EAAE,oBAAoB,EAAE,EAAE,YAAY,CAAC,EAAE,OAAO,KAAK,IAAI,CAAA;IAC7E,WAAW,EAAE,YAAY,CAAA;IACzB,OAAO,EAAE,YAAY,CAAA;IACrB,OAAO,EAAE,CAAC,IAAI,EAAE,WAAW,KAAK,IAAI,CAAA;IACpC,uBAAuB,EAAE,YAAY,CAAA;IAErC,gBAAgB,EAAE,CAAC,KAAK,EAAE,OAAO,CAAC,UAAU,CAAC,KAAK,IAAI,CAAA;IACtD,iBAAiB,EAAE,CAAC,MAAM,EAAE,OAAO,EAAE,KAAK,IAAI,CAAA;CAC/C;AAID,wBAA8B,WAAW,CACvC,MAAM,EAAE,iBAAiB,EACzB,aAAa,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,KAAK,IAAI,EACxE,cAAc,EAAE,CAAC,MAAM,EAAE,qBAAqB,EAAE,KAAK,IAAI,EACzD,aAAa,EAAE,CAAC,OAAO,EAAE,EAAE,KAAK,IAAI,EACpC,kBAAkB,EAAE,CAAC,UAAU,EAAE,OAAO,KAAK,IAAI,EACjD,eAAe,EAAE,CAAC,MAAM,EAAE,iBAAiB,KAAK,IAAI,EACpD,YAAY,EAAE,CAAC,IAAI,EAAE,WAAW,KAAK,IAAI,EACzC,aAAa,EAAE,CAAC,MAAM,EAAE,OAAO,EAAE,GAAG,IAAI,EAAE,KAAK,EAAE,OAAO,CAAC,UAAU,CAAC,GAAG,IAAI,KAAK,IAAI,GAInF,OAAO,CAAC,UAAU,CAAC,CA8PrB"}
@@ -0,0 +1,2 @@
1
+ export default function getLoadingTexture(device: GPUDevice, presentationFormat: GPUTextureFormat): GPUTexture;
2
+ //# sourceMappingURL=loadingTexture.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"loadingTexture.d.ts","sourceRoot":"","sources":["../../src/loadingTexture.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,OAAO,UAAU,iBAAiB,CACvC,MAAM,EAAE,SAAS,EACjB,kBAAkB,EAAE,gBAAgB,GACnC,UAAU,CA+BZ"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pointer.d.ts","sourceRoot":"","sources":["../../src/pointer.ts"],"names":[],"mappings":"AAeA,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,QAyShC"}
@@ -1,5 +1,5 @@
1
1
  export declare function updateRenderPass(newRenderPass: GPURenderPassEncoder): void;
2
- export default function runCreator(creatorCanvas: HTMLCanvasElement, context: GPUCanvasContext, device: GPUDevice, cleanupPrograms: VoidFunction, presentationFormat: GPUTextureFormat, onEmptyEvents: VoidFunction): {
2
+ export default function runCreator(creatorCanvas: HTMLCanvasElement, context: GPUCanvasContext, device: GPUDevice, onEmptyEvents: VoidFunction): {
3
3
  stopRAF: () => void;
4
4
  capturePreview: (canvas: HTMLCanvasElement, ctx: GPUCanvasContext) => Promise<void>;
5
5
  };
@@ -0,0 +1 @@
1
+ {"version":3,"file":"run.d.ts","sourceRoot":"","sources":["../../src/run.ts"],"names":[],"mappings":"AA2BA,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;;6BA+LK,iBAAiB,OAAO,gBAAgB;EAWzE"}
@@ -0,0 +1,2 @@
1
+ export default function sanitizeFill(fill: SdfEffect['fill']): SdfEffect['fill'];
2
+ //# sourceMappingURL=sanitizeFill.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sanitizeFill.d.ts","sourceRoot":"","sources":["../../src/sanitizeFill.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,IAAI,EAAE,SAAS,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC,MAAM,CAAC,CA0C/E"}
@@ -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,17 @@
1
+ /**
2
+ * Represents a 2D bounding box with minimum and maximum coordinates.
3
+ */
4
+ export declare class BoundingBox {
5
+ min_x: number;
6
+ min_y: number;
7
+ max_x: number;
8
+ max_y: number;
9
+ constructor(points?: Point[]);
10
+ addPoint(p: Point): void;
11
+ addBox(box: BoundingBox): void;
12
+ }
13
+ /**
14
+ * Gets the bounding box for all paths.
15
+ */
16
+ export declare function getBoundingBox(paths: Point[][]): BoundingBox;
17
+ //# sourceMappingURL=boundingBox.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"boundingBox.d.ts","sourceRoot":"","sources":["../../../src/svgToShapes/boundingBox.ts"],"names":[],"mappings":"AAEA;;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,10 @@
1
+ import { Node } from 'svg-parser';
2
+ import { BoundingBox } from './boundingBox';
3
+ import { Defs } from './definitions';
4
+ export interface ShapeData {
5
+ paths: Point[][];
6
+ props: ShapeProps;
7
+ boundingBox: BoundingBox;
8
+ }
9
+ export default function collectShapesData(node: Node | string, defs: Defs, parentTransform?: number[], uiElementType?: UiElementType): ShapeData[];
10
+ //# 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;AAGlD,MAAM,WAAW,SAAS;IACxB,KAAK,EAAE,KAAK,EAAE,EAAE,CAAA;IAChB,KAAK,EAAE,UAAU,CAAA;IACjB,WAAW,EAAE,WAAW,CAAA;CACzB;AAgGD,MAAM,CAAC,OAAO,UAAU,iBAAiB,CACvC,IAAI,EAAE,IAAI,GAAG,MAAM,EACnB,IAAI,EAAE,IAAI,EACV,eAAe,GAAE,MAAM,EAAoB,EAC3C,aAAa,CAAC,EAAE,aAAa,GAC5B,SAAS,EAAE,CAuJb"}
@@ -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,3 @@
1
+ import { ShapeData } from './collectShapesData';
2
+ export default function createShapes(shapesData: ShapeData[], maxY?: number, uiElementType?: UiElementType): void;
3
+ //# sourceMappingURL=createShapes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createShapes.d.ts","sourceRoot":"","sources":["../../../src/svgToShapes/createShapes.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAA;AAE/C,MAAM,CAAC,OAAO,UAAU,YAAY,CAClC,UAAU,EAAE,SAAS,EAAE,EACvB,IAAI,CAAC,EAAE,MAAM,EACb,aAAa,CAAC,EAAE,aAAa,GAC5B,IAAI,CAoBN"}
@@ -0,0 +1,43 @@
1
+ import { Node } from 'svg-parser';
2
+ export type DefStop = {
3
+ offset: number;
4
+ color: Color;
5
+ };
6
+ export type AttrValue = string | number | undefined;
7
+ export type Def = {
8
+ paths?: Point[][];
9
+ stops?: DefStop[];
10
+ href?: string;
11
+ id?: string;
12
+ type?: 'linear-gradient' | 'radial-gradient' | 'gaussian-blur';
13
+ gradientTransform?: number[];
14
+ stdDeviation?: [number, number];
15
+ x1?: AttrValue;
16
+ y1?: AttrValue;
17
+ x2?: AttrValue;
18
+ y2?: AttrValue;
19
+ 'stop-color'?: AttrValue;
20
+ 'stop-opacity'?: AttrValue;
21
+ offset?: AttrValue;
22
+ transform?: AttrValue;
23
+ fill?: AttrValue;
24
+ stroke?: AttrValue;
25
+ filter?: AttrValue;
26
+ opacity?: AttrValue;
27
+ 'fill-opacity'?: AttrValue;
28
+ 'stroke-width'?: AttrValue;
29
+ d?: never;
30
+ cx?: never;
31
+ cy?: never;
32
+ r?: never;
33
+ rx?: never;
34
+ ry?: never;
35
+ x?: never;
36
+ y?: never;
37
+ width?: never;
38
+ height?: never;
39
+ };
40
+ export type Defs = Record<string, Def>;
41
+ export declare function resolveAll(defs: Defs): void;
42
+ export declare function collect(node: Node | string, defs: Defs, insideDefs?: boolean): void;
43
+ //# 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;AAIjC,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;AAMnC,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,IAAI,EAAE,WAAW,GAAG,GAAG,CAwFvD"}
@@ -0,0 +1,2 @@
1
+ export default function parseEllipse(cx: number, cy: number, rx: number, ry: number): Point[];
2
+ //# sourceMappingURL=parseEllipse.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parseEllipse.d.ts","sourceRoot":"","sources":["../../../src/svgToShapes/parseEllipse.ts"],"names":[],"mappings":"AAAA,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,2 @@
1
+ export default function parsePathData(dAttribute: string): Point[][];
2
+ //# sourceMappingURL=parsePathData.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parsePathData.d.ts","sourceRoot":"","sources":["../../../src/svgToShapes/parsePathData.ts"],"names":[],"mappings":"AA8SA,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,UAAU,EAAE,MAAM,GAAG,KAAK,EAAE,EAAE,CAKnE"}
@@ -0,0 +1,2 @@
1
+ export default function parseRect(x: number, y: number, width: number, height: number): Point[];
2
+ //# sourceMappingURL=parseRect.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parseRect.d.ts","sourceRoot":"","sources":["../../../src/svgToShapes/parseRect.ts"],"names":[],"mappings":"AAEA,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"}
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Get the distance and ratio between two points for radial gradient
3
+ * When shape's boundary has aspect ratio different than 1:1,
4
+ * then scale affect radial gradient angle calculations.
5
+ * Thats why this function exists to eliminate that effect.
6
+ * @param center center of the radius gradient
7
+ * @param vx horizontal radius - distance between center of the gradient and further point on horizontal line(after transforming by angle of radial gradient)
8
+ * @param vy vertical radius - distance between center of the gradient and further point on vertical line(after transforming by angle of radial gradient)
9
+ * @returns The horizontal destination point and the ratio to calculate vertical destination point
10
+ */
11
+ export declare function getCorrectDestinationRatio(center: Point, vx: Point, vy: Point): {
12
+ destination: Point;
13
+ ratio: number;
14
+ };
15
+ //# sourceMappingURL=radialGradient.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"radialGradient.d.ts","sourceRoot":"","sources":["../../../src/svgToShapes/radialGradient.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,wBAAgB,0BAA0B,CACxC,MAAM,EAAE,KAAK,EACb,EAAE,EAAE,KAAK,EACT,EAAE,EAAE,KAAK,GACR;IACD,WAAW,EAAE,KAAK,CAAA;IAClB,KAAK,EAAE,MAAM,CAAA;CACd,CA2DA"}
@@ -0,0 +1,9 @@
1
+ import { ElementNode, Node } from 'svg-parser';
2
+ import { AttrValue } from './definitions';
3
+ export declare function isStraightHandle(p: Point): boolean;
4
+ export declare function parseColor(cssColor: string, overrideAlpha?: number): Color;
5
+ export declare function getNum(x: AttrValue, fallback?: number): number;
6
+ export declare function isElementNode(node: string | Node): node is ElementNode;
7
+ export declare const IDENTITY_MATRIX: number[];
8
+ export declare function parseTransform(str: string | undefined, initialMatrix?: number[]): number[];
9
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/svgToShapes/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,IAAI,EAAE,MAAM,YAAY,CAAA;AAC9C,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAIzC,wBAAgB,gBAAgB,CAAC,CAAC,EAAE,KAAK,WAExC;AAGD,wBAAgB,UAAU,CAAC,QAAQ,EAAE,MAAM,EAAE,aAAa,SAAI,GAAG,KAAK,CAoBrE;AAED,wBAAgB,MAAM,CAAC,CAAC,EAAE,SAAS,EAAE,QAAQ,GAAE,MAAU,GAAG,MAAM,CAKjE;AAED,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,IAAI,WAAW,CAEtE;AAED,eAAO,MAAM,eAAe,UAAqB,CAAA;AAgBjD,wBAAgB,cAAc,CAC5B,GAAG,EAAE,MAAM,GAAG,SAAS,EACvB,aAAa,GAAE,MAAM,EAAoB,GACxC,MAAM,EAAE,CAkDV"}
@@ -0,0 +1,21 @@
1
+ export declare function init(_device: GPUDevice, _presentationFormat: GPUTextureFormat, _storageFormat: GPUTextureFormat, _updateProcessing: (loadingTextures: number) => void): void;
2
+ export interface TextureSource {
3
+ url: string;
4
+ texture?: GPUTexture;
5
+ hash?: string;
6
+ data?: Uint8ClampedArray;
7
+ }
8
+ export declare function add(url: string, onLoad?: (width: number, height: number, isNew: boolean) => void): number;
9
+ export declare function getTexture(textureId: number): GPUTexture;
10
+ export declare function getTextureSafe(textureId: number): GPUTexture;
11
+ export declare function getOptionTexture(textureId: number): GPUTexture | undefined;
12
+ export declare function createCacheTexture(): number;
13
+ export declare function createComputeDepthTexture(width: number, height: number): number;
14
+ export declare function createSDF(): number;
15
+ export declare function emptySDF(textureId: number, width: number, height: number): void;
16
+ export declare function update(textureId: number, width: number, height: number): void;
17
+ export declare function setCacheTexture(id: number, texture: GPUTexture): void;
18
+ export declare function getTextureCache(id: number, expectWidth: number, expectHeight: number): GPUTexture;
19
+ export declare function getUrl(textureId: number): string;
20
+ export declare function updateTextureUrl(textureId: number, url: string): void;
21
+ //# sourceMappingURL=textures.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"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M9D;AAED,wBAAgB,eAAe,CAAC,EAAE,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,GAAG,UAAU,CAwBjG;AAED,wBAAgB,MAAM,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAEhD;AA4CD,wBAAgB,gBAAgB,CAAC,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,QAE9D"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,cAAe,SAAQ,KAAK;IAC3C,MAAM,EAAE,gBAAgB,GAAG,WAAW,CAAA;CACvC"}
@@ -0,0 +1,6 @@
1
+ export declare function isEnabled(): boolean;
2
+ export declare function updateContent(text: string): void;
3
+ export declare function updateSelection(start: number, end: number): void;
4
+ export declare function enable(text: string): void;
5
+ export declare function disable(): void;
6
+ //# sourceMappingURL=typing.d.ts.map