@mateuszjs/magic-render 0.1.0-next.4 → 0.1.0-next.40

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 (215) hide show
  1. package/lib/40dc20eab8f7c9f3.ttf +0 -0
  2. package/lib/index.mjs +1 -1
  3. package/lib/index.mjs.map +1 -1
  4. package/lib/types/WebGPU/canvasSizeObserver.d.ts.map +1 -0
  5. package/lib/types/WebGPU/generatePreview.d.ts +3 -0
  6. package/lib/types/WebGPU/generatePreview.d.ts.map +1 -0
  7. package/lib/types/WebGPU/getDevice.d.ts +6 -0
  8. package/lib/types/WebGPU/getDevice.d.ts.map +1 -0
  9. package/lib/types/WebGPU/getTexture/createCheckedImageData.d.ts.map +1 -0
  10. package/lib/types/WebGPU/getTexture/generateMimapsArray.d.ts.map +1 -0
  11. package/lib/types/{src/WebGPU → WebGPU}/getTexture/index.d.ts +3 -3
  12. package/lib/types/WebGPU/getTexture/index.d.ts.map +1 -0
  13. package/lib/types/WebGPU/m3.d.ts.map +1 -0
  14. package/lib/types/{src/WebGPU → WebGPU}/pick.d.ts +1 -2
  15. package/lib/types/WebGPU/pick.d.ts.map +1 -0
  16. package/lib/types/WebGPU/programs/blur/getProgram.d.ts +2 -0
  17. package/lib/types/WebGPU/programs/blur/getProgram.d.ts.map +1 -0
  18. package/lib/types/WebGPU/programs/clearComputeDepth/getProgram.d.ts +2 -0
  19. package/lib/types/WebGPU/programs/clearComputeDepth/getProgram.d.ts.map +1 -0
  20. package/lib/types/WebGPU/programs/clearSdf/getProgram.d.ts +2 -0
  21. package/lib/types/WebGPU/programs/clearSdf/getProgram.d.ts.map +1 -0
  22. package/lib/types/WebGPU/programs/combineSdf/getProgram.d.ts +2 -0
  23. package/lib/types/WebGPU/programs/combineSdf/getProgram.d.ts.map +1 -0
  24. package/lib/types/WebGPU/programs/computeShape/getProgram.d.ts +2 -0
  25. package/lib/types/WebGPU/programs/computeShape/getProgram.d.ts.map +1 -0
  26. package/lib/types/WebGPU/programs/drawShape/getProgram.d.ts +2 -0
  27. package/lib/types/WebGPU/programs/drawShape/getProgram.d.ts.map +1 -0
  28. package/lib/types/WebGPU/programs/drawTexture/getProgram.d.ts +2 -0
  29. package/lib/types/WebGPU/programs/drawTexture/getProgram.d.ts.map +1 -0
  30. package/lib/types/WebGPU/programs/drawTriangle/getProgram.d.ts +2 -0
  31. package/lib/types/WebGPU/programs/drawTriangle/getProgram.d.ts.map +1 -0
  32. package/lib/types/WebGPU/programs/initPrograms.d.ts +32 -0
  33. package/lib/types/WebGPU/programs/initPrograms.d.ts.map +1 -0
  34. package/lib/types/WebGPU/programs/pickShape/getProgram.d.ts +2 -0
  35. package/lib/types/WebGPU/programs/pickShape/getProgram.d.ts.map +1 -0
  36. package/lib/types/WebGPU/programs/pickTexture/getProgram.d.ts +2 -0
  37. package/lib/types/WebGPU/programs/pickTexture/getProgram.d.ts.map +1 -0
  38. package/lib/types/WebGPU/programs/pickTriangle/getProgram.d.ts +2 -0
  39. package/lib/types/WebGPU/programs/pickTriangle/getProgram.d.ts.map +1 -0
  40. package/lib/types/WebGPU/textureCache.d.ts +4 -0
  41. package/lib/types/WebGPU/textureCache.d.ts.map +1 -0
  42. package/lib/types/fonts.d.ts +5 -0
  43. package/lib/types/fonts.d.ts.map +1 -0
  44. package/lib/types/getCanvasMatrix.d.ts +2 -0
  45. package/lib/types/getCanvasMatrix.d.ts.map +1 -0
  46. package/lib/types/{src/getCanvasRenderDescriptor.d.ts → getCanvasRenderDescriptor.d.ts} +1 -0
  47. package/lib/types/getCanvasRenderDescriptor.d.ts.map +1 -0
  48. package/lib/types/{src/getDepthTexture.d.ts → getDepthTexture.d.ts} +1 -0
  49. package/lib/types/getDepthTexture.d.ts.map +1 -0
  50. package/lib/types/getMultisampleTexture.d.ts +2 -0
  51. package/lib/types/getMultisampleTexture.d.ts.map +1 -0
  52. package/lib/types/getRenderDescriptor.d.ts.map +1 -0
  53. package/lib/types/index.d.ts +16 -0
  54. package/lib/types/index.d.ts.map +1 -0
  55. package/lib/types/loadingTexture.d.ts +3 -0
  56. package/lib/types/loadingTexture.d.ts.map +1 -0
  57. package/lib/types/pointer.d.ts +15 -0
  58. package/lib/types/pointer.d.ts.map +1 -0
  59. package/lib/types/run.d.ts +6 -0
  60. package/lib/types/run.d.ts.map +1 -0
  61. package/lib/types/sanitizeFill.d.ts +3 -0
  62. package/lib/types/sanitizeFill.d.ts.map +1 -0
  63. package/lib/types/svgToShapes/addUiElement.d.ts +3 -0
  64. package/lib/types/svgToShapes/addUiElement.d.ts.map +1 -0
  65. package/lib/types/svgToShapes/arcToBezier.d.ts +11 -0
  66. package/lib/types/svgToShapes/arcToBezier.d.ts.map +1 -0
  67. package/lib/types/svgToShapes/boundingBox.d.ts +18 -0
  68. package/lib/types/svgToShapes/boundingBox.d.ts.map +1 -0
  69. package/lib/types/svgToShapes/collectShapesData.d.ts +11 -0
  70. package/lib/types/svgToShapes/collectShapesData.d.ts.map +1 -0
  71. package/lib/types/svgToShapes/const.d.ts +5 -0
  72. package/lib/types/svgToShapes/const.d.ts.map +1 -0
  73. package/lib/types/svgToShapes/definitions.d.ts +44 -0
  74. package/lib/types/svgToShapes/definitions.d.ts.map +1 -0
  75. package/lib/types/svgToShapes/getProps.d.ts +4 -0
  76. package/lib/types/svgToShapes/getProps.d.ts.map +1 -0
  77. package/lib/types/svgToShapes/getShapesZigAssets.d.ts +5 -0
  78. package/lib/types/svgToShapes/getShapesZigAssets.d.ts.map +1 -0
  79. package/lib/types/svgToShapes/parseEllipse.d.ts +3 -0
  80. package/lib/types/svgToShapes/parseEllipse.d.ts.map +1 -0
  81. package/lib/types/svgToShapes/parsePathData.d.ts +3 -0
  82. package/lib/types/svgToShapes/parsePathData.d.ts.map +1 -0
  83. package/lib/types/svgToShapes/parseRect.d.ts +3 -0
  84. package/lib/types/svgToShapes/parseRect.d.ts.map +1 -0
  85. package/lib/types/svgToShapes/radialGradient.d.ts +16 -0
  86. package/lib/types/svgToShapes/radialGradient.d.ts.map +1 -0
  87. package/lib/types/svgToShapes/utils.d.ts +10 -0
  88. package/lib/types/svgToShapes/utils.d.ts.map +1 -0
  89. package/lib/types/textures.d.ts +30 -0
  90. package/lib/types/textures.d.ts.map +1 -0
  91. package/lib/types/types.d.ts +121 -0
  92. package/lib/types/types.d.ts.map +1 -0
  93. package/lib/types/typing.d.ts +6 -0
  94. package/lib/types/typing.d.ts.map +1 -0
  95. package/lib/types/utils/atNormIndex.d.ts.map +1 -0
  96. package/lib/types/utils/captureCanvasStream.d.ts.map +1 -0
  97. package/lib/types/utils/captureCanvasStreamWasm.d.ts.map +1 -0
  98. package/lib/types/utils/clamp.d.ts.map +1 -0
  99. package/lib/types/utils/debounce.d.ts +2 -0
  100. package/lib/types/utils/debounce.d.ts.map +1 -0
  101. package/lib/types/{src/utils → utils}/distancePointToLine.d.ts +1 -0
  102. package/lib/types/utils/distancePointToLine.d.ts.map +1 -0
  103. package/lib/types/utils/fitCurve.d.ts.map +1 -0
  104. package/lib/types/utils/getAngle.d.ts +3 -0
  105. package/lib/types/utils/getAngle.d.ts.map +1 -0
  106. package/lib/types/utils/getAngleDiff.d.ts.map +1 -0
  107. package/lib/types/{src/utils → utils}/getBezierPos.d.ts +1 -0
  108. package/lib/types/utils/getBezierPos.d.ts.map +1 -0
  109. package/lib/types/{src/utils → utils}/getBezierTan.d.ts +1 -0
  110. package/lib/types/utils/getBezierTan.d.ts.map +1 -0
  111. package/lib/types/{src/utils → utils}/getCurveLength.d.ts +1 -0
  112. package/lib/types/utils/getCurveLength.d.ts.map +1 -0
  113. package/lib/types/utils/getDefaultPoints.d.ts +3 -0
  114. package/lib/types/utils/getDefaultPoints.d.ts.map +1 -0
  115. package/lib/types/utils/getDistance.d.ts +3 -0
  116. package/lib/types/utils/getDistance.d.ts.map +1 -0
  117. package/lib/types/utils/mat4.d.ts.map +1 -0
  118. package/lib/types/utils/normalizeVec2.d.ts +3 -0
  119. package/lib/types/utils/normalizeVec2.d.ts.map +1 -0
  120. package/lib/types/utils/resizeArray.d.ts.map +1 -0
  121. package/lib/types/utils/setCamera.d.ts +2 -0
  122. package/lib/types/utils/setCamera.d.ts.map +1 -0
  123. package/lib/types/utils/throttle.d.ts +2 -0
  124. package/lib/types/utils/throttle.d.ts.map +1 -0
  125. package/lib/types/utils/vec3.d.ts.map +1 -0
  126. package/package.json +13 -10
  127. package/lib/efb91b2d75cccaa6.png +0 -0
  128. package/lib/types/src/WebGPU/canvasSizeObserver.d.ts.map +0 -1
  129. package/lib/types/src/WebGPU/getDevice.d.ts +0 -2
  130. package/lib/types/src/WebGPU/getDevice.d.ts.map +0 -1
  131. package/lib/types/src/WebGPU/getTexture/createCheckedImageData.d.ts.map +0 -1
  132. package/lib/types/src/WebGPU/getTexture/generateMimapsArray.d.ts.map +0 -1
  133. package/lib/types/src/WebGPU/getTexture/index.d.ts.map +0 -1
  134. package/lib/types/src/WebGPU/m3.d.ts.map +0 -1
  135. package/lib/types/src/WebGPU/pick.d.ts.map +0 -1
  136. package/lib/types/src/WebGPU/pointer.d.ts +0 -6
  137. package/lib/types/src/WebGPU/pointer.d.ts.map +0 -1
  138. package/lib/types/src/WebGPU/programs/blur/getProgram.d.ts +0 -2
  139. package/lib/types/src/WebGPU/programs/blur/getProgram.d.ts.map +0 -1
  140. package/lib/types/src/WebGPU/programs/draw/getProgram.d.ts +0 -2
  141. package/lib/types/src/WebGPU/programs/draw/getProgram.d.ts.map +0 -1
  142. package/lib/types/src/WebGPU/programs/draw3dModel/getProgram.d.ts +0 -2
  143. package/lib/types/src/WebGPU/programs/draw3dModel/getProgram.d.ts.map +0 -1
  144. package/lib/types/src/WebGPU/programs/draw3dModelLight/getProgram.d.ts +0 -9
  145. package/lib/types/src/WebGPU/programs/draw3dModelLight/getProgram.d.ts.map +0 -1
  146. package/lib/types/src/WebGPU/programs/draw3dModelTexture/getProgram.d.ts +0 -2
  147. package/lib/types/src/WebGPU/programs/draw3dModelTexture/getProgram.d.ts.map +0 -1
  148. package/lib/types/src/WebGPU/programs/drawBezier/getProgram.d.ts +0 -2
  149. package/lib/types/src/WebGPU/programs/drawBezier/getProgram.d.ts.map +0 -1
  150. package/lib/types/src/WebGPU/programs/drawMSDF/getProgram.d.ts +0 -2
  151. package/lib/types/src/WebGPU/programs/drawMSDF/getProgram.d.ts.map +0 -1
  152. package/lib/types/src/WebGPU/programs/drawTexture/getProgram.d.ts +0 -2
  153. package/lib/types/src/WebGPU/programs/drawTexture/getProgram.d.ts.map +0 -1
  154. package/lib/types/src/WebGPU/programs/drawTriangle/getProgram.d.ts +0 -2
  155. package/lib/types/src/WebGPU/programs/drawTriangle/getProgram.d.ts.map +0 -1
  156. package/lib/types/src/WebGPU/programs/initPrograms.d.ts +0 -22
  157. package/lib/types/src/WebGPU/programs/initPrograms.d.ts.map +0 -1
  158. package/lib/types/src/WebGPU/programs/pickTexture/getProgram.d.ts +0 -2
  159. package/lib/types/src/WebGPU/programs/pickTexture/getProgram.d.ts.map +0 -1
  160. package/lib/types/src/WebGPU/programs/pickTriangle/getProgram.d.ts +0 -2
  161. package/lib/types/src/WebGPU/programs/pickTriangle/getProgram.d.ts.map +0 -1
  162. package/lib/types/src/__test__/index.test.d.ts +0 -1
  163. package/lib/types/src/__test__/index.test.d.ts.map +0 -1
  164. package/lib/types/src/consts.d.ts +0 -16
  165. package/lib/types/src/consts.d.ts.map +0 -1
  166. package/lib/types/src/getCanvasMatrix.d.ts +0 -2
  167. package/lib/types/src/getCanvasMatrix.d.ts.map +0 -1
  168. package/lib/types/src/getCanvasRenderDescriptor.d.ts.map +0 -1
  169. package/lib/types/src/getDepthTexture.d.ts.map +0 -1
  170. package/lib/types/src/getRenderDescriptor.d.ts.map +0 -1
  171. package/lib/types/src/index.d.ts +0 -14
  172. package/lib/types/src/index.d.ts.map +0 -1
  173. package/lib/types/src/models/Video/MiniatureVideo.d.ts +0 -30
  174. package/lib/types/src/models/Video/MiniatureVideo.d.ts.map +0 -1
  175. package/lib/types/src/run.d.ts +0 -5
  176. package/lib/types/src/run.d.ts.map +0 -1
  177. package/lib/types/src/types.d.ts +0 -4
  178. package/lib/types/src/types.d.ts.map +0 -1
  179. package/lib/types/src/utils/atNormIndex.d.ts.map +0 -1
  180. package/lib/types/src/utils/captureCanvasStream.d.ts.map +0 -1
  181. package/lib/types/src/utils/captureCanvasStreamWasm.d.ts.map +0 -1
  182. package/lib/types/src/utils/clamp.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 +0 -2
  186. package/lib/types/src/utils/getAngle.d.ts.map +0 -1
  187. package/lib/types/src/utils/getAngleDiff.d.ts.map +0 -1
  188. package/lib/types/src/utils/getBezierPos.d.ts.map +0 -1
  189. package/lib/types/src/utils/getBezierTan.d.ts.map +0 -1
  190. package/lib/types/src/utils/getCurveLength.d.ts.map +0 -1
  191. package/lib/types/src/utils/getDefaultPoints.d.ts +0 -2
  192. package/lib/types/src/utils/getDefaultPoints.d.ts.map +0 -1
  193. package/lib/types/src/utils/getDistance.d.ts +0 -2
  194. package/lib/types/src/utils/getDistance.d.ts.map +0 -1
  195. package/lib/types/src/utils/getSvgSource.d.ts +0 -2
  196. package/lib/types/src/utils/getSvgSource.d.ts.map +0 -1
  197. package/lib/types/src/utils/mat4.d.ts.map +0 -1
  198. package/lib/types/src/utils/normalizeVec2.d.ts +0 -2
  199. package/lib/types/src/utils/normalizeVec2.d.ts.map +0 -1
  200. package/lib/types/src/utils/resizeArray.d.ts.map +0 -1
  201. package/lib/types/src/utils/vec3.d.ts.map +0 -1
  202. /package/lib/types/{src/WebGPU → WebGPU}/canvasSizeObserver.d.ts +0 -0
  203. /package/lib/types/{src/WebGPU → WebGPU}/getTexture/createCheckedImageData.d.ts +0 -0
  204. /package/lib/types/{src/WebGPU → WebGPU}/getTexture/generateMimapsArray.d.ts +0 -0
  205. /package/lib/types/{src/WebGPU → WebGPU}/m3.d.ts +0 -0
  206. /package/lib/types/{src/getRenderDescriptor.d.ts → getRenderDescriptor.d.ts} +0 -0
  207. /package/lib/types/{src/utils → utils}/atNormIndex.d.ts +0 -0
  208. /package/lib/types/{src/utils → utils}/captureCanvasStream.d.ts +0 -0
  209. /package/lib/types/{src/utils → utils}/captureCanvasStreamWasm.d.ts +0 -0
  210. /package/lib/types/{src/utils → utils}/clamp.d.ts +0 -0
  211. /package/lib/types/{src/utils → utils}/fitCurve.d.ts +0 -0
  212. /package/lib/types/{src/utils → utils}/getAngleDiff.d.ts +0 -0
  213. /package/lib/types/{src/utils → utils}/mat4.d.ts +0 -0
  214. /package/lib/types/{src/utils → utils}/resizeArray.d.ts +0 -0
  215. /package/lib/types/{src/utils → utils}/vec3.d.ts +0 -0
@@ -0,0 +1,30 @@
1
+ import { ZigAsset } from 'types';
2
+ export declare function init(_device: GPUDevice, _presentationFormat: GPUTextureFormat, _storageFormat: GPUTextureFormat, _updateProcessing: (loadingTextures: number) => void): void;
3
+ export interface TextureSource {
4
+ url: string;
5
+ texture?: GPUTexture;
6
+ hash?: string;
7
+ data?: Uint8ClampedArray;
8
+ }
9
+ interface ImageExtractedData {
10
+ width: number;
11
+ height: number;
12
+ isNewTexture?: boolean;
13
+ shapeAssets?: ZigAsset[];
14
+ error?: unknown;
15
+ }
16
+ export declare function add(url: string, onLoad?: (data: ImageExtractedData) => void): number;
17
+ export declare function getTexture(textureId: number): GPUTexture;
18
+ export declare function getTextureSafe(textureId: number): GPUTexture;
19
+ export declare function getOptionTexture(textureId: number): GPUTexture | undefined;
20
+ export declare function createCacheTexture(): number;
21
+ export declare function createComputeDepthTexture(width: number, height: number): number;
22
+ export declare function createSDF(): number;
23
+ export declare function emptySDF(textureId: number, width: number, height: number): void;
24
+ export declare function update(textureId: number, width: number, height: number): void;
25
+ export declare function setCacheTexture(id: number, texture: GPUTexture): void;
26
+ export declare function getTextureCache(id: number, expectWidth: number, expectHeight: number): GPUTexture;
27
+ export declare function getUrl(textureId: number): string;
28
+ export declare function updateTextureUrl(textureId: number, url: string): void;
29
+ export {};
30
+ //# sourceMappingURL=textures.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"textures.d.ts","sourceRoot":"","sources":["../../src/textures.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAgChC,wBAAgB,IAAI,CAClB,OAAO,EAAE,SAAS,EAClB,mBAAmB,EAAE,gBAAgB,EACrC,cAAc,EAAE,gBAAgB,EAChC,iBAAiB,EAAE,CAAC,eAAe,EAAE,MAAM,KAAK,IAAI,GACnD,IAAI,CAWN;AAcD,MAAM,WAAW,aAAa;IAC5B,GAAG,EAAE,MAAM,CAAA;IACX,OAAO,CAAC,EAAE,UAAU,CAAA;IACpB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,iBAAiB,CAAA;CACzB;AAED,UAAU,kBAAkB;IAC1B,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,MAAM,CAAA;IACd,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,WAAW,CAAC,EAAE,QAAQ,EAAE,CAAA;IACxB,KAAK,CAAC,EAAE,OAAO,CAAA;CAChB;AAED,wBAAgB,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,CAAC,IAAI,EAAE,kBAAkB,KAAK,IAAI,GAAG,MAAM,CAmBpF;AAgED,wBAAgB,UAAU,CAAC,SAAS,EAAE,MAAM,GAAG,UAAU,CAIxD;AAED,wBAAgB,cAAc,CAAC,SAAS,EAAE,MAAM,GAAG,UAAU,CAE5D;AAED,wBAAgB,gBAAgB,CAAC,SAAS,EAAE,MAAM,GAAG,UAAU,GAAG,SAAS,CAE1E;AAED,wBAAgB,kBAAkB,IAAI,MAAM,CAI3C;AAED,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,CAY/E;AAED,wBAAgB,SAAS,IAAI,MAAM,CAYlC;AAED,wBAAgB,QAAQ,CAAC,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,IAAI,CAW/E;AAED,wBAAgB,MAAM,CAAC,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,IAAI,CAkB7E;AAED,wBAAgB,eAAe,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,QAM9D;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,121 @@
1
+ export interface HTMLInputEvent extends Event {
2
+ target: HTMLInputElement & EventTarget;
3
+ }
4
+ export interface Point {
5
+ x: number;
6
+ y: number;
7
+ }
8
+ export interface PointUV {
9
+ x: number;
10
+ y: number;
11
+ u: number;
12
+ v: number;
13
+ }
14
+ export interface BoundingBox {
15
+ min_x: number;
16
+ min_y: number;
17
+ max_x: number;
18
+ max_y: number;
19
+ }
20
+ export type Color = [number, number, number, number];
21
+ export type Id = [number, number, number, number];
22
+ export type GradientStop = {
23
+ color: Color;
24
+ offset: number;
25
+ };
26
+ export type LinearGradient = {
27
+ start: Point;
28
+ end: Point;
29
+ stops: GradientStop[];
30
+ };
31
+ export type RadialGradient = {
32
+ radius_ratio: number;
33
+ stops: GradientStop[];
34
+ center: Point;
35
+ destination: Point;
36
+ };
37
+ export type SdfEffect = {
38
+ dist_start: number;
39
+ dist_end: number;
40
+ fill: {
41
+ linear: LinearGradient;
42
+ } | {
43
+ radial: RadialGradient;
44
+ } | {
45
+ solid: Color;
46
+ };
47
+ };
48
+ export type ShapeProps = {
49
+ sdf_effects: SdfEffect[];
50
+ filter: {
51
+ gaussianBlur: Point;
52
+ } | null;
53
+ opacity: number;
54
+ };
55
+ export type SerializedImage = {
56
+ id?: number;
57
+ bounds?: PointUV[];
58
+ url: string;
59
+ texture_id?: number;
60
+ };
61
+ export type SerializedShape = {
62
+ id?: number;
63
+ paths: Point[][];
64
+ props: ShapeProps;
65
+ bounds: PointUV[];
66
+ sdf_texture_id?: number;
67
+ cache_texture_id?: number | null;
68
+ };
69
+ export type SerializedText = {
70
+ id?: number;
71
+ content: string;
72
+ bounds: PointUV[];
73
+ font_size: number;
74
+ props: ShapeProps;
75
+ };
76
+ export type SerializedAsset = SerializedImage | SerializedShape | SerializedText;
77
+ export declare enum CreatorTool {
78
+ SelectAsset = 0,
79
+ DrawBezierCurve = 1,
80
+ SelectNode = 2,
81
+ Text = 3
82
+ }
83
+ type ImageAsset = {
84
+ id: number;
85
+ bounds: PointUV[];
86
+ texture_id: number;
87
+ };
88
+ type ShapeAsset = {
89
+ id: number;
90
+ paths: Point[][];
91
+ props: ShapeProps;
92
+ bounds: PointUV[];
93
+ sdf_texture_id: number;
94
+ cache_texture_id: number | null;
95
+ };
96
+ type TextAsset = {
97
+ id: number;
98
+ content: string | null;
99
+ bounds: PointUV[];
100
+ font_size: number;
101
+ props: ShapeProps;
102
+ };
103
+ export type ZigAsset = {
104
+ img: ImageAsset;
105
+ } | {
106
+ shape: ShapeAsset;
107
+ } | {
108
+ text: TextAsset;
109
+ };
110
+ export interface ZigProjectSnapshot {
111
+ width: number;
112
+ height: number;
113
+ assets: ZigAsset[];
114
+ }
115
+ export interface ProjectSnapshot {
116
+ width: number;
117
+ height: number;
118
+ assets: SerializedAsset[];
119
+ }
120
+ export {};
121
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,c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KAAK,EAAE,KAAK,EAAE,EAAE,CAAA;IAChB,KAAK,EAAE,UAAU,CAAA;IACjB,MAAM,EAAE,OAAO,EAAE,CAAA;IACjB,cAAc,EAAE,MAAM,CAAA;IACtB,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAA;CAChC,CAAA;AAED,KAAK,SAAS,GAAG;IACf,EAAE,EAAE,MAAM,CAAA;IACV,OAAO,EAAE,MAAM,GAAG,IAAI,CAAA;IACtB,MAAM,EAAE,OAAO,EAAE,CAAA;IACjB,SAAS,EAAE,MAAM,CAAA;IACjB,KAAK,EAAE,UAAU,CAAA;CAClB,CAAA;AAED,MAAM,MAAM,QAAQ,GAAG;IAAE,GAAG,EAAE,UAAU,CAAA;CAAE,GAAG;IAAE,KAAK,EAAE,UAAU,CAAA;CAAE,GAAG;IAAE,IAAI,EAAE,SAAS,CAAA;CAAE,CAAA;AAExF,MAAM,WAAW,kBAAkB;IACjC,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,QAAQ,EAAE,CAAA;CACnB;AAED,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,eAAe,EAAE,CAAA;CAC1B"}
@@ -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
@@ -0,0 +1 @@
1
+ {"version":3,"file":"typing.d.ts","sourceRoot":"","sources":["../../src/typing.ts"],"names":[],"mappings":"AAOA,wBAAgB,SAAS,IAAI,OAAO,CAEnC;AAmCD,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAkBhD;AAED,wBAAgB,eAAe,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,IAAI,CAKhE;AAqBD,wBAAgB,MAAM,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAoBzC;AAED,wBAAgB,OAAO,IAAI,IAAI,CAK9B"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"atNormIndex.d.ts","sourceRoot":"","sources":["../../../src/utils/atNormIndex.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,GAAG,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,MAAM,UAUnE"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"captureCanvasStream.d.ts","sourceRoot":"","sources":["../../../src/utils/captureCanvasStream.ts"],"names":[],"mappings":"AACA,MAAM,CAAC,OAAO,UAAU,uBAAuB,CAAC,UAAU,EAAE,iBAAiB,cAW5E"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"captureCanvasStreamWasm.d.ts","sourceRoot":"","sources":["../../../src/utils/captureCanvasStreamWasm.ts"],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"clamp.d.ts","sourceRoot":"","sources":["../../../src/utils/clamp.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,OAAO,UAAU,KAAK,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,UAEpE"}
@@ -0,0 +1,2 @@
1
+ export default function debounce(callback: Function, ms: number): (...args: unknown[]) => void;
2
+ //# sourceMappingURL=debounce.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"debounce.d.ts","sourceRoot":"","sources":["../../../src/utils/debounce.ts"],"names":[],"mappings":"AACA,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,QAAQ,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,IAErD,GAAG,MAAM,OAAO,EAAE,UAM3B"}
@@ -1,2 +1,3 @@
1
+ import { Point } from 'types';
1
2
  export default function distancePointToLine(p: Point, l1: Point, l2: Point): number;
2
3
  //# sourceMappingURL=distancePointToLine.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"distancePointToLine.d.ts","sourceRoot":"","sources":["../../../src/utils/distancePointToLine.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAA;AAE7B,MAAM,CAAC,OAAO,UAAU,mBAAmB,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE,KAAK,UAKzE"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fitCurve.d.ts","sourceRoot":"","sources":["../../../src/utils/fitCurve.js"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH;;;;;;GAMG;AAEH,yCALW,KAAK,CAAC,KAAK,QAAQ,CAAC,qBAElB,KAAK,CAAC,KAAK,CAAC,KAAK,QAAQ,CAAC,CAAC,CAmBvC"}
@@ -0,0 +1,3 @@
1
+ import { Point } from 'types';
2
+ export default function getAngle(from: Point, to: Point): number;
3
+ //# sourceMappingURL=getAngle.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getAngle.d.ts","sourceRoot":"","sources":["../../../src/utils/getAngle.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAA;AAE7B,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,EAAE,KAAK,UAEtD"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getAngleDiff.d.ts","sourceRoot":"","sources":["../../../src/utils/getAngleDiff.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAMxE"}
@@ -1,2 +1,3 @@
1
+ import { Point } from 'types';
1
2
  export default function getBezierPos(p1: Point, p2: Point, p3: Point, p4: Point, t: number): Point;
2
3
  //# sourceMappingURL=getBezierPos.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getBezierPos.d.ts","sourceRoot":"","sources":["../../../src/utils/getBezierPos.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAA;AAE7B,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,MAAM,GAAG,KAAK,CAkBjG"}
@@ -1,2 +1,3 @@
1
+ import { Point } from 'types';
1
2
  export default function getBezierTan(p1: Point, p2: Point, p3: Point, p4: Point, t: number): Point;
2
3
  //# sourceMappingURL=getBezierTan.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getBezierTan.d.ts","sourceRoot":"","sources":["../../../src/utils/getBezierTan.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAA;AAG7B,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,MAAM,GAAG,KAAK,CASjG"}
@@ -1,2 +1,3 @@
1
+ import { Point } from 'types';
1
2
  export default function getCurveLength(p1: Point, p2: Point, p3: Point, p4: Point, precision: number): number[];
2
3
  //# sourceMappingURL=getCurveLength.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getCurveLength.d.ts","sourceRoot":"","sources":["../../../src/utils/getCurveLength.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAA;AAO7B,MAAM,CAAC,OAAO,UAAU,cAAc,CACpC,EAAE,EAAE,KAAK,EACT,EAAE,EAAE,KAAK,EACT,EAAE,EAAE,KAAK,EACT,EAAE,EAAE,KAAK,EACT,SAAS,EAAE,MAAM,GAChB,MAAM,EAAE,CAYV"}
@@ -0,0 +1,3 @@
1
+ import { PointUV } from 'types';
2
+ export default function getDefaultPoints(texWidth: number, texHeight: number, projectWidth: number, projectHeight: number): PointUV[];
3
+ //# sourceMappingURL=getDefaultPoints.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getDefaultPoints.d.ts","sourceRoot":"","sources":["../../../src/utils/getDefaultPoints.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAA;AAE/B,MAAM,CAAC,OAAO,UAAU,gBAAgB,CACtC,QAAQ,EAAE,MAAM,EAChB,SAAS,EAAE,MAAM,EACjB,YAAY,EAAE,MAAM,EACpB,aAAa,EAAE,MAAM,GACpB,OAAO,EAAE,CAUX"}
@@ -0,0 +1,3 @@
1
+ import { Point } from 'types';
2
+ export default function getDistance(p1: Point, p2: Point): number;
3
+ //# sourceMappingURL=getDistance.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getDistance.d.ts","sourceRoot":"","sources":["../../../src/utils/getDistance.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAA;AAE7B,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE,KAAK,UAEvD"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mat4.d.ts","sourceRoot":"","sources":["../../../src/utils/mat4.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,IAAI;sBACU,MAAM,UAAU,MAAM,SAAS,MAAM,OAAO,YAAY;uCAKvC,MAAM,UAAU,MAAM,SAAS,MAAM,QAAQ,MAAM;gBA2B1E,MAAM,SAAS,MAAM,UAAU,MAAM,OAAO,MAAM,QAAQ,MAAM,OAAO,MAAM;;gBAgC7E,YAAY,KAAK,YAAY;mBAyD1B,MAAM,EAAE,GAAG,YAAY,UAAU,MAAM,EAAE,MAAM,MAAM,EAAE;eAa3D,YAAY;iBAwFV,YAAY;aAShB,YAAY,GAAG,MAAM,EAAE,UAAU,MAAM,EAAE,MAAM,MAAM,EAAE;gBAapD,MAAM,EAAE,GAAG,YAAY,UAAU,MAAM,EAAE,MAAM,MAAM,EAAE,QAAQ,YAAY;8BAI7D,MAAM,EAAE;8BAQR,MAAM;8BAUN,MAAM;8BAUN,MAAM;0BAUV,MAAM,EAAE;iBAQjB,YAAY,eAAe,MAAM,EAAE,QAAQ,YAAY;eAIzD,YAAY,kBAAkB,MAAM,QAAQ,YAAY;eAIxD,YAAY,kBAAkB,MAAM,QAAQ,YAAY;eAIxD,YAAY,kBAAkB,MAAM,QAAQ,YAAY;aAI1D,YAAY,SAAS,MAAM,EAAE,QAAQ,YAAY;CAG3D,CAAA;AAED,eAAe,IAAI,CAAA"}
@@ -0,0 +1,3 @@
1
+ import { Point } from 'types';
2
+ export default function normalizeVec2(vec: Point): Point;
3
+ //# sourceMappingURL=normalizeVec2.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"normalizeVec2.d.ts","sourceRoot":"","sources":["../../../src/utils/normalizeVec2.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAA;AAE7B,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,GAAG,EAAE,KAAK,GAAG,KAAK,CAMvD"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resizeArray.d.ts","sourceRoot":"","sources":["../../../src/utils/resizeArray.ts"],"names":[],"mappings":"AAIA,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,GAAG,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,MAAM,YASnE"}
@@ -0,0 +1,2 @@
1
+ export default function setCamera(projectWidth: number, projectHeight: number, mode: 'fit' | 'fill', canvas: HTMLCanvasElement, padding?: number): void;
2
+ //# sourceMappingURL=setCamera.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"setCamera.d.ts","sourceRoot":"","sources":["../../../src/utils/setCamera.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,OAAO,UAAU,SAAS,CAC/B,YAAY,EAAE,MAAM,EACpB,aAAa,EAAE,MAAM,EACrB,IAAI,EAAE,KAAK,GAAG,MAAM,EACpB,MAAM,EAAE,iBAAiB,EACzB,OAAO,SAAI,QAWZ"}
@@ -0,0 +1,2 @@
1
+ export default function throttle<T extends (...args: never[]) => void>(func: T, limit: number): (...args: Parameters<T>) => void;
2
+ //# sourceMappingURL=throttle.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"throttle.d.ts","sourceRoot":"","sources":["../../../src/utils/throttle.ts"],"names":[],"mappings":"AAGA,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,KAAK,EAAE,KAAK,IAAI,EACnE,IAAI,EAAE,CAAC,EACP,KAAK,EAAE,MAAM,GACZ,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC,CAAC,CAAC,KAAK,IAAI,CAmBlC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vec3.d.ts","sourceRoot":"","sources":["../../../src/utils/vec3.ts"],"names":[],"mappings":"AACA,QAAA,MAAM,IAAI;aACC,MAAM,EAAE,GAAG,YAAY,KAAK,MAAM,EAAE,GAAG,YAAY;gBAYhD,MAAM,EAAE,GAAG,YAAY,KAAK,MAAM,EAAE,GAAG,YAAY;iBAQjD,MAAM,EAAE,GAAG,YAAY;CAetC,CAAA;AAED,eAAe,IAAI,CAAA"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mateuszjs/magic-render",
3
3
  "description": "Initial version of visual editor",
4
- "version": "0.1.0-next.4",
4
+ "version": "0.1.0-next.40",
5
5
  "author": "Mateusz Walendzik",
6
6
  "engines": {
7
7
  "node": ">=20.8.1"
@@ -21,11 +21,10 @@
21
21
  },
22
22
  "scripts": {
23
23
  "start": "export NODE_ENV=development && webpack serve --mode development",
24
- "build": "npm run generate-msdf && rm -rf lib lib-test && export NODE_ENV=production && webpack && tsc --project tsconfig.build.json --emitDeclarationOnly ",
24
+ "build": "rm -rf lib lib-test && export NODE_ENV=production && tsc --project tsconfig.build.json --emitDeclarationOnly && webpack",
25
25
  "test": "node --experimental-vm-modules node_modules/jest/bin/jest.js",
26
26
  "test-e2e": "npx playwright test",
27
- "format": "eslint --fix \"src/**/*.{ts,js}\" \"integration-tests/**/*.{ts,js}\"",
28
- "generate-msdf": "node msdf/generate-msdf.js"
27
+ "format": "eslint --fix \"src/**/*.{ts,js}\" \"integration-tests/**/*.{ts,js}\""
29
28
  },
30
29
  "devDependencies": {
31
30
  "@eslint/eslintrc": "^3.3.1",
@@ -35,15 +34,15 @@
35
34
  "@tsconfig/recommended": "^1.0.8",
36
35
  "@types/jest": "^29.5.14",
37
36
  "@types/node": "^22.13.9",
38
- "@webgpu/types": "^0.1.54",
37
+ "@types/opentype.js": "^1.3.8",
38
+ "@types/svg-parser": "^2.0.6",
39
+ "@webgpu/types": "^0.1.65",
39
40
  "eslint": "^9.28.0",
40
41
  "html-webpack-plugin": "^5.6.3",
42
+ "http-server": "^14.1.1",
41
43
  "jest": "^29.7.0",
42
44
  "jest-environment-jsdom": "^29.7.0",
43
- "msdf-bmfont-xml": "^2.7.0",
44
45
  "semantic-release": "^24.2.3",
45
- "svg2ttf": "^6.0.3",
46
- "svgicons2svgfont": "^15.0.1",
47
46
  "ts-jest": "^29.2.6",
48
47
  "ts-loader": "^9.5.2",
49
48
  "ts-node": "^10.9.2",
@@ -53,7 +52,7 @@
53
52
  "webpack-bundle-analyzer": "^4.10.2",
54
53
  "webpack-cli": "^6.0.1",
55
54
  "webpack-dev-server": "^5.2.0",
56
- "zigar-loader": "^0.14.0"
55
+ "zigar-loader": "^0.14.1"
57
56
  },
58
57
  "types": "./lib/types/index.d.ts",
59
58
  "main": "./lib/index.mjs",
@@ -69,5 +68,9 @@
69
68
  "homepage": "https://github.com/mateuszJS/magic-render#readme",
70
69
  "files": [
71
70
  "lib/**/*"
72
- ]
71
+ ],
72
+ "dependencies": {
73
+ "opentype.js": "^1.3.4",
74
+ "svg-parser": "^2.0.4"
75
+ }
73
76
  }
Binary file
@@ -1 +0,0 @@
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,QAgBvB"}
@@ -1,2 +0,0 @@
1
- export default function getDevice(): Promise<GPUDevice>;
2
- //# sourceMappingURL=getDevice.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getDevice.d.ts","sourceRoot":"","sources":["../../../../src/WebGPU/getDevice.ts"],"names":[],"mappings":"AAAA,wBAA8B,SAAS,uBAuBtC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"createCheckedImageData.d.ts","sourceRoot":"","sources":["../../../../../src/WebGPU/getTexture/createCheckedImageData.ts"],"names":[],"mappings":"AAiBA,MAAM,CAAC,OAAO,UAAU,sBAAsB,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,SAAS,CAwBrF"}
@@ -1 +0,0 @@
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"}
@@ -1 +0,0 @@
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,K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AM,CAAC;CAG/C,CAAA;AAED,eAAe,IAAI,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"pick.d.ts","sourceRoot":"","sources":["../../../../src/WebGPU/pick.ts"],"names":[],"mappings":"AAMA,MAAM,CAAC,OAAO,OAAO,WAAW;IAC9B,OAAO,CAAC,UAAU,CAAW;IAC7B,OAAO,CAAC,WAAW,CAAY;IAC/B,OAAO,CAAC,gBAAgB,CAAY;IACpC,OAAO,CAAC,kBAAkB,CAAO;gBAErB,MAAM,EAAE,SAAS;IAmB7B;;;;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;IAkB5D,SAAS;CAchB"}
@@ -1,6 +0,0 @@
1
- export declare const pointer: {
2
- x: number;
3
- y: number;
4
- };
5
- export default function initMouseController(canvas: HTMLCanvasElement): void;
6
- //# sourceMappingURL=pointer.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"pointer.d.ts","sourceRoot":"","sources":["../../../../src/WebGPU/pointer.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,OAAO;;;CAAiB,CAAA;AAErC,MAAM,CAAC,OAAO,UAAU,mBAAmB,CAAC,MAAM,EAAE,iBAAiB,QA4BpE"}
@@ -1,2 +0,0 @@
1
- export default function getProgram(device: GPUDevice): (texture: GPUTexture, commandEncoder: GPUCommandEncoder) => GPUTexture;
2
- //# sourceMappingURL=getProgram.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getProgram.d.ts","sourceRoot":"","sources":["../../../../../../src/WebGPU/programs/blur/getProgram.ts"],"names":[],"mappings":"AAKA,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,MAAM,EAAE,SAAS,IAehD,SAAS,UAAU,EACnB,gBAAgB,iBAAiB,KAChC,UAAU,CA2Kd"}
@@ -1,2 +0,0 @@
1
- export default function getProgram(device: GPUDevice, presentationFormat: GPUTextureFormat): (pass: GPURenderPassEncoder, worldProjectionMatrix: Float32Array, vertexData: Float32Array) => void;
2
- //# sourceMappingURL=getProgram.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getProgram.d.ts","sourceRoot":"","sources":["../../../../../../src/WebGPU/programs/draw/getProgram.ts"],"names":[],"mappings":"AAIA,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,MAAM,EAAE,SAAS,EAAE,kBAAkB,EAAE,gBAAgB,IA6CtF,MAAM,oBAAoB,EAC1B,uBAAuB,YAAY,EACnC,YAAY,YAAY,UA0B3B"}
@@ -1,2 +0,0 @@
1
- export default function getProgram(device: GPUDevice, presentationFormat: GPUTextureFormat): (pass: GPURenderPassEncoder, matrix: Float32Array, vertexData: Float32Array, indexData: Uint32Array) => void;
2
- //# sourceMappingURL=getProgram.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getProgram.d.ts","sourceRoot":"","sources":["../../../../../../src/WebGPU/programs/draw3dModel/getProgram.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,MAAM,EAAE,SAAS,EAAE,kBAAkB,EAAE,gBAAgB,IAwCtF,MAAM,oBAAoB,EAC1B,QAAQ,YAAY,EACpB,YAAY,YAAY,EACxB,WAAW,WAAW,UAmDzB"}
@@ -1,9 +0,0 @@
1
- interface Uniforms {
2
- worldViewProjection: Float32Array;
3
- normalMatrix: Float32Array;
4
- lightColor: Float32Array;
5
- lightDirection: Float32Array;
6
- }
7
- export default function getProgram(device: GPUDevice, presentationFormat: GPUTextureFormat): (pass: GPURenderPassEncoder, uniform: Uniforms, vertexData: Float32Array, indexData: Uint32Array) => void;
8
- export {};
9
- //# sourceMappingURL=getProgram.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getProgram.d.ts","sourceRoot":"","sources":["../../../../../../src/WebGPU/programs/draw3dModelLight/getProgram.ts"],"names":[],"mappings":"AAEA,UAAU,QAAQ;IAChB,mBAAmB,EAAE,YAAY,CAAC;IAClC,YAAY,EAAE,YAAY,CAAC;IAC3B,UAAU,EAAE,YAAY,CAAC;IACzB,cAAc,EAAE,YAAY,CAAA;CAC7B;AAED,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,MAAM,EAAE,SAAS,EAAE,kBAAkB,EAAE,gBAAgB,IAyCtF,MAAM,oBAAoB,EAC1B,SAAS,QAAQ,EACjB,YAAY,YAAY,EACxB,WAAW,WAAW,UAqEzB"}
@@ -1,2 +0,0 @@
1
- export default function getProgram(device: GPUDevice, presentationFormat: GPUTextureFormat): (pass: GPURenderPassEncoder, matrix: Float32Array, texture: GPUTexture, vertexData: Float32Array, indexData: Uint32Array) => void;
2
- //# sourceMappingURL=getProgram.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getProgram.d.ts","sourceRoot":"","sources":["../../../../../../src/WebGPU/programs/draw3dModelTexture/getProgram.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,MAAM,EAAE,SAAS,EAAE,kBAAkB,EAAE,gBAAgB,IAoCtF,MAAM,oBAAoB,EAC1B,QAAQ,YAAY,EACpB,SAAS,UAAU,EACnB,YAAY,YAAY,EACxB,WAAW,WAAW,UAwDzB"}
@@ -1,2 +0,0 @@
1
- export default function getProgram(device: GPUDevice, presentationFormat: GPUTextureFormat): (pass: GPURenderPassEncoder, matrix: Float32Array, pointsData: Float32Array, tData: Float32Array, dirData: Float32Array, segmentIndexData: Uint32Array, zoom: number) => void;
2
- //# sourceMappingURL=getProgram.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getProgram.d.ts","sourceRoot":"","sources":["../../../../../../src/WebGPU/programs/drawBezier/getProgram.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,MAAM,EAAE,SAAS,EAAE,kBAAkB,EAAE,gBAAgB,IAiDtF,MAAM,oBAAoB,EAC1B,QAAQ,YAAY,EACpB,YAAY,YAAY,EACxB,OAAO,YAAY,EACnB,SAAS,YAAY,EACrB,kBAAkB,WAAW,EAC7B,MAAM,MAAM,UAoFf"}
@@ -1,2 +0,0 @@
1
- export default function getProgram(device: GPUDevice, presentationFormat: GPUTextureFormat): (pass: GPURenderPassEncoder, worldProjectionMatrix: Float32Array, vertexData: Float32Array, texture: GPUTexture) => void;
2
- //# sourceMappingURL=getProgram.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getProgram.d.ts","sourceRoot":"","sources":["../../../../../../src/WebGPU/programs/drawMSDF/getProgram.ts"],"names":[],"mappings":"AAKA,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,MAAM,EAAE,SAAS,EAAE,kBAAkB,EAAE,gBAAgB,IA8EtF,MAAM,oBAAoB,EAC1B,uBAAuB,YAAY,EACnC,YAAY,YAAY,EACxB,SAAS,UAAU,UAgCtB"}
@@ -1,2 +0,0 @@
1
- export default function getProgram(device: GPUDevice, presentationFormat: GPUTextureFormat): (pass: GPURenderPassEncoder, worldProjectionMatrix: Float32Array, vertexData: Float32Array<ArrayBufferLike>, texture: GPUTexture) => void;
2
- //# sourceMappingURL=getProgram.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getProgram.d.ts","sourceRoot":"","sources":["../../../../../../src/WebGPU/programs/drawTexture/getProgram.ts"],"names":[],"mappings":"AAKA,MAAM,CAAC,OAAO,UAAU,UAAU,CAChC,MAAM,EAAE,SAAS,EACjB,kBAAkB,EAAE,gBAAgB,IAqElC,MAAM,oBAAoB,EAC1B,uBAAuB,YAAY,EACnC,YAAY,YAAY,CAAC,eAAe,CAAC,EACzC,SAAS,UAAU,UAgCtB"}
@@ -1,2 +0,0 @@
1
- export default function getProgram(device: GPUDevice, presentationFormat: GPUTextureFormat): (pass: GPURenderPassEncoder, worldProjectionMatrix: Float32Array, vertexData: Float32Array<ArrayBufferLike>) => void;
2
- //# sourceMappingURL=getProgram.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getProgram.d.ts","sourceRoot":"","sources":["../../../../../../src/WebGPU/programs/drawTriangle/getProgram.ts"],"names":[],"mappings":"AAKA,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,MAAM,EAAE,SAAS,EAAE,kBAAkB,EAAE,gBAAgB,IA2DtF,MAAM,oBAAoB,EAC1B,uBAAuB,YAAY,EACnC,YAAY,YAAY,CAAC,eAAe,CAAC,UA4B5C"}
@@ -1,22 +0,0 @@
1
- import getDrawTriangle from './drawTriangle/getProgram';
2
- import getDrawBezier from './drawBezier/getProgram';
3
- import getDraw3dModelTexture from './draw3dModelTexture/getProgram';
4
- import getDraw3dModel from './draw3dModel/getProgram';
5
- import getDraw3dModelLight from './draw3dModelLight/getProgram';
6
- import getBlur from './blur/getProgram';
7
- import getDrawtexture from './drawTexture/getProgram';
8
- import getPickTexture from './pickTexture/getProgram';
9
- import getPickTriangle from './pickTriangle/getProgram';
10
- import getDrawMSDF from './drawMSDF/getProgram';
11
- export declare let drawTriangle: ReturnType<typeof getDrawTriangle>;
12
- export declare let drawBezier: ReturnType<typeof getDrawBezier>;
13
- export declare let draw3dModel: ReturnType<typeof getDraw3dModel>;
14
- export declare let draw3dModelTexture: ReturnType<typeof getDraw3dModelTexture>;
15
- export declare let draw3dModelLight: ReturnType<typeof getDraw3dModelLight>;
16
- export declare let drawBlur: ReturnType<typeof getBlur>;
17
- export declare let drawTexture: ReturnType<typeof getDrawtexture>;
18
- export declare let pickTexture: ReturnType<typeof getPickTexture>;
19
- export declare let pickTriangle: ReturnType<typeof getPickTriangle>;
20
- export declare let drawMSDF: ReturnType<typeof getDrawMSDF>;
21
- export default function initPrograms(device: GPUDevice, presentationFormat: GPUTextureFormat): void;
22
- //# sourceMappingURL=initPrograms.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"initPrograms.d.ts","sourceRoot":"","sources":["../../../../../src/WebGPU/programs/initP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evice): (pass: GPURenderPassEncoder, worldProjectionMatrix: Float32Array, vertexData: Float32Array<ArrayBufferLike>, texture: GPUTexture) => void;
2
- //# sourceMappingURL=getProgram.d.ts.map
@@ -1 +0,0 @@
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,IA6DhD,MAAM,oBAAoB,EAC1B,uBAAuB,YAAY,EACnC,YAAY,YAAY,CAAC,eAAe,CAAC,EACzC,SAAS,UAAU,UAgCtB"}
@@ -1,2 +0,0 @@
1
- export default function getProgram(device: GPUDevice): (pass: GPURenderPassEncoder, worldProjectionMatrix: Float32Array, vertexData: Float32Array<ArrayBufferLike>) => void;
2
- //# sourceMappingURL=getProgram.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getProgram.d.ts","sourceRoot":"","sources":["../../../../../../src/WebGPU/programs/pickTriangle/getProgram.ts"],"names":[],"mappings":"AAIA,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,MAAM,EAAE,SAAS,IA4DhD,MAAM,oBAAoB,EAC1B,uBAAuB,YAAY,EACnC,YAAY,YAAY,CAAC,eAAe,CAAC,UA0B5C"}
@@ -1 +0,0 @@
1
- //# sourceMappingURL=index.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.test.d.ts","sourceRoot":"","sources":["../../../../src/__test__/index.test.ts"],"names":[],"mappings":""}
@@ -1,16 +0,0 @@
1
- declare global {
2
- interface Window {
3
- DocumentTouch: any;
4
- msMaxTouchPoints: number;
5
- }
6
- interface Navigator {
7
- msMaxTouchPoints: number;
8
- }
9
- }
10
- export declare const isMobile: boolean;
11
- export declare const MINI_SIZE: number;
12
- export declare const MS_PER_PIXEL = 5;
13
- export declare const MS_PER_MINI: number;
14
- export declare const isTouchCapable: any;
15
- export declare const dpr: number;
16
- //# sourceMappingURL=consts.d.ts.map
@@ -1 +0,0 @@
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"}
@@ -1,2 +0,0 @@
1
- export default function getCanvasMatrix(canvas: HTMLCanvasElement): Float32Array<ArrayBuffer>;
2
- //# sourceMappingURL=getCanvasMatrix.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getCanvasMatrix.d.ts","sourceRoot":"","sources":["../../../src/getCanvasMatrix.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,OAAO,UAAU,eAAe,CAAC,MAAM,EAAE,iBAAiB,6BAWhE"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"getCanvasRenderDescriptor.d.ts","sourceRoot":"","sources":["../../../src/getCanvasRenderDescriptor.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,OAAO,UAAU,yBAAyB,CAAC,OAAO,EAAE,gBAAgB,EAAE,MAAM,EAAE,SAAS,2BAwB7F"}
@@ -1 +0,0 @@
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,cAcvF"}
@@ -1 +0,0 @@
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,CAkCzB"}