@mateuszjs/magic-render 0.1.0-next.7 → 0.1.0-next.70
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.
- package/README.md +29 -0
- package/lib/index.mjs +1 -1
- package/lib/index.mjs.map +1 -1
- package/lib/types/WebGPU/TimingHelper.d.ts +14 -0
- package/lib/types/WebGPU/TimingHelper.d.ts.map +1 -0
- package/lib/types/WebGPU/canvasSizeObserver.d.ts.map +1 -0
- package/lib/types/WebGPU/device.d.ts +5 -0
- package/lib/types/WebGPU/device.d.ts.map +1 -0
- package/lib/types/WebGPU/generatePreview.d.ts +2 -0
- package/lib/types/WebGPU/generatePreview.d.ts.map +1 -0
- package/lib/types/WebGPU/getTexture/createCheckedImageData.d.ts.map +1 -0
- package/lib/types/WebGPU/getTexture/generateMimapsArray.d.ts.map +1 -0
- package/lib/types/WebGPU/getTexture/index.d.ts +14 -0
- package/lib/types/WebGPU/getTexture/index.d.ts.map +1 -0
- package/lib/types/WebGPU/m3.d.ts.map +1 -0
- package/lib/types/{src/WebGPU → WebGPU}/pick.d.ts +1 -2
- package/lib/types/WebGPU/pick.d.ts.map +1 -0
- package/lib/types/WebGPU/programs/blur/getProgram.d.ts +2 -0
- package/lib/types/WebGPU/programs/blur/getProgram.d.ts.map +1 -0
- package/lib/types/WebGPU/programs/clearComputeDepth/getProgram.d.ts +2 -0
- package/lib/types/WebGPU/programs/clearComputeDepth/getProgram.d.ts.map +1 -0
- package/lib/types/WebGPU/programs/clearSdf/getProgram.d.ts +2 -0
- package/lib/types/WebGPU/programs/clearSdf/getProgram.d.ts.map +1 -0
- package/lib/types/WebGPU/programs/combineSdf/getProgram.d.ts +2 -0
- package/lib/types/WebGPU/programs/combineSdf/getProgram.d.ts.map +1 -0
- package/lib/types/WebGPU/programs/computeShape/getProgram.d.ts +2 -0
- package/lib/types/WebGPU/programs/computeShape/getProgram.d.ts.map +1 -0
- package/lib/types/WebGPU/programs/computeShape/workers-deprecated/createWorker.d.ts +4 -0
- package/lib/types/WebGPU/programs/computeShape/workers-deprecated/createWorker.d.ts.map +1 -0
- package/lib/types/WebGPU/programs/computeShape/workers-deprecated/worker.d.ts +2 -0
- package/lib/types/WebGPU/programs/computeShape/workers-deprecated/worker.d.ts.map +1 -0
- package/lib/types/WebGPU/programs/drawShape/getProgram.d.ts +2 -0
- package/lib/types/WebGPU/programs/drawShape/getProgram.d.ts.map +1 -0
- package/lib/types/WebGPU/programs/drawTexture/getProgram.d.ts +2 -0
- package/lib/types/WebGPU/programs/drawTexture/getProgram.d.ts.map +1 -0
- package/lib/types/WebGPU/programs/drawTriangle/getProgram.d.ts +2 -0
- package/lib/types/WebGPU/programs/drawTriangle/getProgram.d.ts.map +1 -0
- package/lib/types/WebGPU/programs/initPrograms.d.ts +32 -0
- package/lib/types/WebGPU/programs/initPrograms.d.ts.map +1 -0
- package/lib/types/WebGPU/programs/pickShape/getProgram.d.ts +2 -0
- package/lib/types/WebGPU/programs/pickShape/getProgram.d.ts.map +1 -0
- package/lib/types/WebGPU/programs/pickTexture/getProgram.d.ts +2 -0
- package/lib/types/WebGPU/programs/pickTexture/getProgram.d.ts.map +1 -0
- package/lib/types/WebGPU/programs/pickTriangle/getProgram.d.ts +2 -0
- package/lib/types/WebGPU/programs/pickTriangle/getProgram.d.ts.map +1 -0
- package/lib/types/WebGPU/textureCache.d.ts +4 -0
- package/lib/types/WebGPU/textureCache.d.ts.map +1 -0
- package/lib/types/consts.d.ts +2 -0
- package/lib/types/consts.d.ts.map +1 -0
- package/lib/types/customPrograms.d.ts +16 -0
- package/lib/types/customPrograms.d.ts.map +1 -0
- package/lib/types/fonts.d.ts +6 -0
- package/lib/types/fonts.d.ts.map +1 -0
- package/lib/types/getCanvasMatrix.d.ts +2 -0
- package/lib/types/getCanvasMatrix.d.ts.map +1 -0
- package/lib/types/{src/getCanvasRenderDescriptor.d.ts → getCanvasRenderDescriptor.d.ts} +1 -0
- package/lib/types/getCanvasRenderDescriptor.d.ts.map +1 -0
- package/lib/types/{src/getDepthTexture.d.ts → getDepthTexture.d.ts} +1 -0
- package/lib/types/getDepthTexture.d.ts.map +1 -0
- package/lib/types/getMultisampleTexture.d.ts +2 -0
- package/lib/types/getMultisampleTexture.d.ts.map +1 -0
- package/lib/types/getRenderDescriptor.d.ts.map +1 -0
- package/lib/types/index.d.ts +3 -0
- package/lib/types/index.d.ts.map +1 -0
- package/lib/types/loadingTexture.d.ts +3 -0
- package/lib/types/loadingTexture.d.ts.map +1 -0
- package/lib/types/pointer.d.ts +17 -0
- package/lib/types/pointer.d.ts.map +1 -0
- package/lib/types/run.d.ts +6 -0
- package/lib/types/run.d.ts.map +1 -0
- package/lib/types/snapshots/convert.d.ts +8 -0
- package/lib/types/snapshots/convert.d.ts.map +1 -0
- package/lib/types/snapshots/fill.d.ts +4 -0
- package/lib/types/snapshots/fill.d.ts.map +1 -0
- package/lib/types/snapshots/snapshots.d.ts +6 -0
- package/lib/types/snapshots/snapshots.d.ts.map +1 -0
- package/lib/types/snapshots/toZigAsset.d.ts +3 -0
- package/lib/types/snapshots/toZigAsset.d.ts.map +1 -0
- package/lib/types/svgToShapes/addUiElement.d.ts +3 -0
- package/lib/types/svgToShapes/addUiElement.d.ts.map +1 -0
- package/lib/types/svgToShapes/arcToBezier.d.ts +11 -0
- package/lib/types/svgToShapes/arcToBezier.d.ts.map +1 -0
- package/lib/types/svgToShapes/boundingBox.d.ts +18 -0
- package/lib/types/svgToShapes/boundingBox.d.ts.map +1 -0
- package/lib/types/svgToShapes/collectShapesData.d.ts +12 -0
- package/lib/types/svgToShapes/collectShapesData.d.ts.map +1 -0
- package/lib/types/svgToShapes/const.d.ts +5 -0
- package/lib/types/svgToShapes/const.d.ts.map +1 -0
- package/lib/types/svgToShapes/definitions.d.ts +44 -0
- package/lib/types/svgToShapes/definitions.d.ts.map +1 -0
- package/lib/types/svgToShapes/getProps.d.ts +4 -0
- package/lib/types/svgToShapes/getProps.d.ts.map +1 -0
- package/lib/types/svgToShapes/getShapesAssets.d.ts +5 -0
- package/lib/types/svgToShapes/getShapesAssets.d.ts.map +1 -0
- package/lib/types/svgToShapes/parseEllipse.d.ts +3 -0
- package/lib/types/svgToShapes/parseEllipse.d.ts.map +1 -0
- package/lib/types/svgToShapes/parsePathData.d.ts +3 -0
- package/lib/types/svgToShapes/parsePathData.d.ts.map +1 -0
- package/lib/types/svgToShapes/parseRect.d.ts +3 -0
- package/lib/types/svgToShapes/parseRect.d.ts.map +1 -0
- package/lib/types/svgToShapes/radialGradient.d.ts +16 -0
- package/lib/types/svgToShapes/radialGradient.d.ts.map +1 -0
- package/lib/types/svgToShapes/utils.d.ts +10 -0
- package/lib/types/svgToShapes/utils.d.ts.map +1 -0
- package/lib/types/textures.d.ts +29 -0
- package/lib/types/textures.d.ts.map +1 -0
- package/lib/types/types.d.ts +181 -0
- package/lib/types/types.d.ts.map +1 -0
- package/lib/types/typing.d.ts +7 -0
- package/lib/types/typing.d.ts.map +1 -0
- package/lib/types/utils/assertUnreachable.d.ts +2 -0
- package/lib/types/utils/assertUnreachable.d.ts.map +1 -0
- package/lib/types/utils/atNormIndex.d.ts.map +1 -0
- package/lib/types/utils/captureCanvasStream.d.ts.map +1 -0
- package/lib/types/utils/captureCanvasStreamWasm.d.ts.map +1 -0
- package/lib/types/utils/clamp.d.ts.map +1 -0
- package/lib/types/utils/debounce.d.ts +2 -0
- package/lib/types/utils/debounce.d.ts.map +1 -0
- package/lib/types/utils/decompressWoff2.d.mts +3 -0
- package/lib/types/utils/decompressWoff2.d.mts.map +1 -0
- package/lib/types/{src/utils → utils}/distancePointToLine.d.ts +1 -0
- package/lib/types/utils/distancePointToLine.d.ts.map +1 -0
- package/lib/types/utils/downloadCanvas.d.ts +2 -0
- package/lib/types/utils/downloadCanvas.d.ts.map +1 -0
- package/lib/types/utils/fitCurve.d.ts.map +1 -0
- package/lib/types/utils/getAngle.d.ts +3 -0
- package/lib/types/utils/getAngle.d.ts.map +1 -0
- package/lib/types/utils/getAngleDiff.d.ts.map +1 -0
- package/lib/types/{src/utils → utils}/getBezierPos.d.ts +1 -0
- package/lib/types/utils/getBezierPos.d.ts.map +1 -0
- package/lib/types/{src/utils → utils}/getBezierTan.d.ts +1 -0
- package/lib/types/utils/getBezierTan.d.ts.map +1 -0
- package/lib/types/{src/utils → utils}/getCurveLength.d.ts +1 -0
- package/lib/types/utils/getCurveLength.d.ts.map +1 -0
- package/lib/types/utils/getDefaultPoints.d.ts +3 -0
- package/lib/types/utils/getDefaultPoints.d.ts.map +1 -0
- package/lib/types/utils/getDistance.d.ts +3 -0
- package/lib/types/utils/getDistance.d.ts.map +1 -0
- package/lib/types/utils/mat4.d.ts.map +1 -0
- package/lib/types/utils/normalizeVec2.d.ts +3 -0
- package/lib/types/utils/normalizeVec2.d.ts.map +1 -0
- package/lib/types/utils/resizeArray.d.ts.map +1 -0
- package/lib/types/utils/setCamera.d.ts +2 -0
- package/lib/types/utils/setCamera.d.ts.map +1 -0
- package/lib/types/utils/throttle.d.ts +2 -0
- package/lib/types/utils/throttle.d.ts.map +1 -0
- package/lib/types/utils/vec3.d.ts.map +1 -0
- package/lib/types.mjs +2 -0
- package/lib/types.mjs.map +1 -0
- package/package.json +34 -15
- package/lib/e9072ac5eb734c67.png +0 -0
- package/lib/types/src/WebGPU/canvasSizeObserver.d.ts.map +0 -1
- package/lib/types/src/WebGPU/getDevice.d.ts +0 -2
- package/lib/types/src/WebGPU/getDevice.d.ts.map +0 -1
- package/lib/types/src/WebGPU/getTexture/createCheckedImageData.d.ts.map +0 -1
- package/lib/types/src/WebGPU/getTexture/generateMimapsArray.d.ts.map +0 -1
- package/lib/types/src/WebGPU/getTexture/index.d.ts +0 -17
- package/lib/types/src/WebGPU/getTexture/index.d.ts.map +0 -1
- package/lib/types/src/WebGPU/m3.d.ts.map +0 -1
- package/lib/types/src/WebGPU/pick.d.ts.map +0 -1
- package/lib/types/src/WebGPU/pointer.d.ts +0 -10
- package/lib/types/src/WebGPU/pointer.d.ts.map +0 -1
- package/lib/types/src/WebGPU/programs/blur/getProgram.d.ts +0 -2
- package/lib/types/src/WebGPU/programs/blur/getProgram.d.ts.map +0 -1
- package/lib/types/src/WebGPU/programs/draw/getProgram.d.ts +0 -2
- package/lib/types/src/WebGPU/programs/draw/getProgram.d.ts.map +0 -1
- package/lib/types/src/WebGPU/programs/draw3dModel/getProgram.d.ts +0 -2
- package/lib/types/src/WebGPU/programs/draw3dModel/getProgram.d.ts.map +0 -1
- package/lib/types/src/WebGPU/programs/draw3dModelLight/getProgram.d.ts +0 -9
- package/lib/types/src/WebGPU/programs/draw3dModelLight/getProgram.d.ts.map +0 -1
- package/lib/types/src/WebGPU/programs/draw3dModelTexture/getProgram.d.ts +0 -2
- package/lib/types/src/WebGPU/programs/draw3dModelTexture/getProgram.d.ts.map +0 -1
- package/lib/types/src/WebGPU/programs/drawBezier/getProgram.d.ts +0 -2
- package/lib/types/src/WebGPU/programs/drawBezier/getProgram.d.ts.map +0 -1
- package/lib/types/src/WebGPU/programs/drawMSDF/getProgram.d.ts +0 -2
- package/lib/types/src/WebGPU/programs/drawMSDF/getProgram.d.ts.map +0 -1
- package/lib/types/src/WebGPU/programs/drawTexture/getProgram.d.ts +0 -2
- package/lib/types/src/WebGPU/programs/drawTexture/getProgram.d.ts.map +0 -1
- package/lib/types/src/WebGPU/programs/drawTriangle/getProgram.d.ts +0 -2
- package/lib/types/src/WebGPU/programs/drawTriangle/getProgram.d.ts.map +0 -1
- package/lib/types/src/WebGPU/programs/initPrograms.d.ts +0 -22
- package/lib/types/src/WebGPU/programs/initPrograms.d.ts.map +0 -1
- package/lib/types/src/WebGPU/programs/pickTexture/getProgram.d.ts +0 -2
- package/lib/types/src/WebGPU/programs/pickTexture/getProgram.d.ts.map +0 -1
- package/lib/types/src/WebGPU/programs/pickTriangle/getProgram.d.ts +0 -2
- package/lib/types/src/WebGPU/programs/pickTriangle/getProgram.d.ts.map +0 -1
- package/lib/types/src/__test__/index.test.d.ts +0 -1
- package/lib/types/src/__test__/index.test.d.ts.map +0 -1
- package/lib/types/src/consts.d.ts +0 -16
- package/lib/types/src/consts.d.ts.map +0 -1
- package/lib/types/src/getCanvasMatrix.d.ts +0 -2
- package/lib/types/src/getCanvasMatrix.d.ts.map +0 -1
- package/lib/types/src/getCanvasRenderDescriptor.d.ts.map +0 -1
- package/lib/types/src/getDepthTexture.d.ts.map +0 -1
- package/lib/types/src/getMultisampleTexture.d.ts +0 -2
- package/lib/types/src/getMultisampleTexture.d.ts.map +0 -1
- package/lib/types/src/getRenderDescriptor.d.ts.map +0 -1
- package/lib/types/src/index.d.ts +0 -14
- package/lib/types/src/index.d.ts.map +0 -1
- package/lib/types/src/models/Video/MiniatureVideo.d.ts +0 -30
- package/lib/types/src/models/Video/MiniatureVideo.d.ts.map +0 -1
- package/lib/types/src/run.d.ts +0 -5
- package/lib/types/src/run.d.ts.map +0 -1
- package/lib/types/src/types.d.ts +0 -4
- package/lib/types/src/types.d.ts.map +0 -1
- package/lib/types/src/utils/atNormIndex.d.ts.map +0 -1
- package/lib/types/src/utils/captureCanvasStream.d.ts.map +0 -1
- package/lib/types/src/utils/captureCanvasStreamWasm.d.ts.map +0 -1
- package/lib/types/src/utils/clamp.d.ts.map +0 -1
- package/lib/types/src/utils/distancePointToLine.d.ts.map +0 -1
- package/lib/types/src/utils/fitCurve.d.ts.map +0 -1
- package/lib/types/src/utils/getAngle.d.ts +0 -2
- package/lib/types/src/utils/getAngle.d.ts.map +0 -1
- package/lib/types/src/utils/getAngleDiff.d.ts.map +0 -1
- package/lib/types/src/utils/getBezierPos.d.ts.map +0 -1
- package/lib/types/src/utils/getBezierTan.d.ts.map +0 -1
- package/lib/types/src/utils/getCurveLength.d.ts.map +0 -1
- package/lib/types/src/utils/getDefaultPoints.d.ts +0 -2
- package/lib/types/src/utils/getDefaultPoints.d.ts.map +0 -1
- package/lib/types/src/utils/getDistance.d.ts +0 -2
- package/lib/types/src/utils/getDistance.d.ts.map +0 -1
- package/lib/types/src/utils/getSvgSource.d.ts +0 -2
- package/lib/types/src/utils/getSvgSource.d.ts.map +0 -1
- package/lib/types/src/utils/mat4.d.ts.map +0 -1
- package/lib/types/src/utils/normalizeVec2.d.ts +0 -2
- package/lib/types/src/utils/normalizeVec2.d.ts.map +0 -1
- package/lib/types/src/utils/resizeArray.d.ts.map +0 -1
- package/lib/types/src/utils/vec3.d.ts.map +0 -1
- /package/lib/types/{src/WebGPU → WebGPU}/canvasSizeObserver.d.ts +0 -0
- /package/lib/types/{src/WebGPU → WebGPU}/getTexture/createCheckedImageData.d.ts +0 -0
- /package/lib/types/{src/WebGPU → WebGPU}/getTexture/generateMimapsArray.d.ts +0 -0
- /package/lib/types/{src/WebGPU → WebGPU}/m3.d.ts +0 -0
- /package/lib/types/{src/getRenderDescriptor.d.ts → getRenderDescriptor.d.ts} +0 -0
- /package/lib/types/{src/utils → utils}/atNormIndex.d.ts +0 -0
- /package/lib/types/{src/utils → utils}/captureCanvasStream.d.ts +0 -0
- /package/lib/types/{src/utils → utils}/captureCanvasStreamWasm.d.ts +0 -0
- /package/lib/types/{src/utils → utils}/clamp.d.ts +0 -0
- /package/lib/types/{src/utils → utils}/fitCurve.d.ts +0 -0
- /package/lib/types/{src/utils → utils}/getAngleDiff.d.ts +0 -0
- /package/lib/types/{src/utils → utils}/mat4.d.ts +0 -0
- /package/lib/types/{src/utils → utils}/resizeArray.d.ts +0 -0
- /package/lib/types/{src/utils → utils}/vec3.d.ts +0 -0
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export class TimingHelper {
|
|
2
|
+
constructor(device: any);
|
|
3
|
+
beginRenderPass(encoder: any, descriptor?: {}): any;
|
|
4
|
+
beginComputePass(encoder: any, descriptor?: {}): any;
|
|
5
|
+
getResult(): Promise<number | undefined>;
|
|
6
|
+
#private;
|
|
7
|
+
}
|
|
8
|
+
export class NonNegativeRollingAverage {
|
|
9
|
+
constructor(numSamples?: number);
|
|
10
|
+
addSample(v: any): void;
|
|
11
|
+
get(): number;
|
|
12
|
+
#private;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=TimingHelper.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TimingHelper.d.ts","sourceRoot":"","sources":["../../../src/WebGPU/TimingHelper.js"],"names":[],"mappings":"AAmBA;IAWE,yBAaC;IA0CD,oDAEC;IAED,qDAEC;IAuCD,yCAwBC;;CACF;AAED;IAKE,iCAEC;IACD,wBAQC;IACD,cAEC;;CACF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"canvasSizeObserver.d.ts","sourceRoot":"","sources":["../../../src/WebGPU/canvasSizeObserver.ts"],"names":[],"mappings":"AAYA,MAAM,CAAC,OAAO,UAAU,kBAAkB,CACxC,MAAM,EAAE,iBAAiB,EACzB,MAAM,EAAE,SAAS,EACjB,QAAQ,EAAE,YAAY,QA2CvB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"device.d.ts","sourceRoot":"","sources":["../../../src/WebGPU/device.ts"],"names":[],"mappings":"AAAA,eAAO,IAAI,MAAM,EAAE,SAAS,CAAA;AAC5B,eAAO,IAAI,kBAAkB,EAAE,gBAAgB,CAAA;AAC/C,eAAO,IAAI,aAAa,EAAE,gBAAgB,CAAA;AAE1C,wBAA8B,KAAK,kBA6BlC"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export default function generatePreview(device: GPUDevice, presentationFormat: GPUTextureFormat, creatorCanvas: HTMLCanvasElement, projectWidth: number, projectHeight: number, outputWidth: number, outputHeight: number, capturePreview: (previewCtx: GPUCanvasContext, collectAndCleanup: VoidFunction) => void, onPreviewUpdate: (canvas: HTMLCanvasElement) => void): Promise<void>;
|
|
2
|
+
//# sourceMappingURL=generatePreview.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generatePreview.d.ts","sourceRoot":"","sources":["../../../src/WebGPU/generatePreview.ts"],"names":[],"mappings":"AAIA,wBAA8B,eAAe,CAC3C,MAAM,EAAE,SAAS,EACjB,kBAAkB,EAAE,gBAAgB,EACpC,aAAa,EAAE,iBAAiB,EAChC,YAAY,EAAE,MAAM,EACpB,aAAa,EAAE,MAAM,EACrB,WAAW,EAAE,MAAM,EACnB,YAAY,EAAE,MAAM,EACpB,cAAc,EAAE,CAAC,UAAU,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,YAAY,KAAK,IAAI,EACvF,eAAe,EAAE,CAAC,MAAM,EAAE,iBAAiB,KAAK,IAAI,iBA8BrD"}
|
|
@@ -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"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
interface Options {
|
|
2
|
+
mips?: boolean;
|
|
3
|
+
flipY?: boolean;
|
|
4
|
+
depthOrArrayLayers?: number;
|
|
5
|
+
}
|
|
6
|
+
export interface TextureSlice {
|
|
7
|
+
source: GPUCopyExternalImageSource;
|
|
8
|
+
fakeMipmaps: boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare function createTextureArray(device: GPUDevice, presentationFormat: GPUTextureFormat, width: number, height: number, slices: number): GPUTexture;
|
|
11
|
+
export declare function attachSlice(device: GPUDevice, textue2dArray: GPUTexture, width: number, height: number, source: GPUCopyExternalImageSource, sliceIndex: number, options?: Options): void;
|
|
12
|
+
export declare function createTextureFromSource(source: ImageBitmap, options?: Options): GPUTexture;
|
|
13
|
+
export {};
|
|
14
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/WebGPU/getTexture/index.ts"],"names":[],"mappings":"AAIA,UAAU,OAAO;IACf,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,kBAAkB,CAAC,EAAE,MAAM,CAAA;CAC5B;AAcD,MAAM,WAAW,YAAY;IAC3B,MAAM,EAAE,0BAA0B,CAAA;IAClC,WAAW,EAAE,OAAO,CAAA;CACrB;AA+BD,wBAAgB,kBAAkB,CAChC,MAAM,EAAE,SAAS,EACjB,kBAAkB,EAAE,gBAAgB,EACpC,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,cAYf;AAGD,wBAAgB,WAAW,CACzB,MAAM,EAAE,SAAS,EACjB,aAAa,EAAE,UAAU,EACzB,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,0BAA0B,EAClC,UAAU,EAAE,MAAM,EAClB,OAAO,GAAE,OAAY,QA0BtB;AAQD,wBAAgB,uBAAuB,CAAC,MAAM,EAAE,WAAW,EAAE,OAAO,GAAE,OAAY,cAajF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"m3.d.ts","sourceRoot":"","sources":["../../../src/WebGPU/m3.ts"],"names":[],"mappings":"AACA,QAAA,MAAM,IAAI;gBACI,YAAY;sBAON,MAAM,UAAU,MAAM;;gBAe5B,YAAY,KAAK,YAAY;0BAmCnB,CAAC,MAAM,EAAE,MAAM,CAAC;6BAOb,MAAM;sBAUb,CAAC,MAAM,EAAE,MAAM,CAAC;iBAOrB,YAAY,eAAe,CAAC,MAAM,EAAE,MAAM,CAAC;cAI9C,YAAY,kBAAkB,MAAM;aAIrC,YAAY,SAAS,CAAC,MAAM,EAAE,MAAM,CAAC;CAG/C,CAAA;AAED,eAAe,IAAI,CAAA"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
export default class PickManager {
|
|
2
2
|
private pickBuffer;
|
|
3
3
|
private pickTexture;
|
|
4
|
-
private pickDepthTexture;
|
|
5
4
|
private isPreviousPickDone;
|
|
6
5
|
constructor(device: GPUDevice);
|
|
7
6
|
/**
|
|
@@ -13,7 +12,7 @@ export default class PickManager {
|
|
|
13
12
|
pass: GPURenderPassEncoder;
|
|
14
13
|
end: VoidFunction;
|
|
15
14
|
};
|
|
16
|
-
createMatrix(canvas: HTMLCanvasElement, canvasMatrix: Float32Array): Float32Array<
|
|
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 @@
|
|
|
1
|
+
{"version":3,"file":"getProgram.d.ts","sourceRoot":"","sources":["../../../../../src/WebGPU/programs/clearComputeDepth/getProgram.ts"],"names":[],"mappings":"AAIA,MAAM,CAAC,OAAO,UAAU,oBAAoB,CAAC,MAAM,EAAE,SAAS,IAa1B,aAAa,qBAAqB,EAAE,SAAS,UAAU,UAmB1F"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getProgram.d.ts","sourceRoot":"","sources":["../../../../../src/WebGPU/programs/clearSdf/getProgram.ts"],"names":[],"mappings":"AAIA,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,MAAM,EAAE,SAAS,IAa1B,aAAa,qBAAqB,EAAE,SAAS,UAAU,UAmBjF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getProgram.d.ts","sourceRoot":"","sources":["../../../../../src/WebGPU/programs/combineSdf/getProgram.ts"],"names":[],"mappings":"AAKA,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,UAqCvC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getProgram.d.ts","sourceRoot":"","sources":["../../../../../src/WebGPU/programs/computeShape/getProgram.ts"],"names":[],"mappings":"AAKA,MAAM,CAAC,OAAO,UAAU,eAAe,CAAC,MAAM,EAAE,SAAS,IAerD,aAAa,qBAAqB,EAClC,gBAAgB,QAAQ,CAAC,WAAW,CAAC,EACrC,SAAS,UAAU,UA0BtB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createWorker.d.ts","sourceRoot":"","sources":["../../../../../../src/WebGPU/programs/computeShape/workers-deprecated/createWorker.ts"],"names":[],"mappings":"AAcA,wBAAgB,wBAAwB,CAAC,aAAa,EAAE,YAAY;4BAyBxC,QAAQ,CAAC,WAAW,CAAC,SAAS,MAAM,UAAU,MAAM,MAAM,MAAM;EAoB3F"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"worker.d.ts","sourceRoot":"","sources":["../../../../../../src/WebGPU/programs/computeShape/workers-deprecated/worker.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export default function getDrawShape(device: GPUDevice, presentationFormat: GPUTextureFormat, fragmentShader: string, uniformSize: number, isTest: boolean, onCompilation?: (info: GPUCompilationInfo) => void): (passEncoder: GPURenderPassEncoder, sdfTexture: GPUTexture, boundingBoxDataView: DataView<ArrayBuffer>, uniformDataView: DataView<ArrayBuffer>) => void;
|
|
2
|
+
//# sourceMappingURL=getProgram.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getProgram.d.ts","sourceRoot":"","sources":["../../../../../src/WebGPU/programs/drawShape/getProgram.ts"],"names":[],"mappings":"AAIA,MAAM,CAAC,OAAO,UAAU,YAAY,CAClC,MAAM,EAAE,SAAS,EACjB,kBAAkB,EAAE,gBAAgB,EACpC,cAAc,EAAE,MAAM,EACtB,WAAW,EAAE,MAAM,EACnB,MAAM,EAAE,OAAO,EACf,aAAa,CAAC,EAAE,CAAC,IAAI,EAAE,kBAAkB,KAAK,IAAI,IAyDhD,aAAa,oBAAoB,EACjC,YAAY,UAAU,EACtB,qBAAqB,QAAQ,CAAC,WAAW,CAAC,EAC1C,iBAAiB,QAAQ,CAAC,WAAW,CAAC,UAkCzC"}
|
|
@@ -0,0 +1 @@
|
|
|
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 @@
|
|
|
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, isTest: boolean): void;
|
|
32
|
+
//# sourceMappingURL=initPrograms.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"initPrograms.d.ts","sourceRoot":"","sources":["../../../../src/WebGPU/programs/initPrograms.ts"],"names":[],"mappings":"AAAA,OAAO,eAAe,MAAM,2BAA2B,CAAA;AACvD,OAAO,OAAO,MAAM,mBAAmB,CAAA;AACvC,OAAO,cAAc,MAAM,0BAA0B,CAAA;AACrD,OAAO,cAAc,MAAM,0BAA0B,CAAA;AACrD,OAAO,eAAe,MAAM,2BAA2B,CAAA;AACvD,OAAO,YAAY,MAAM,wBAAwB,CAAA;AAIjD,OAAO,YAAY,MAAM,wBAAwB,CAAA;AACjD,OAAO,eAAe,MAAM,2BAA2B,CAAA;AACvD,OAAO,aAAa,MAAM,yBAAyB,CAAA;AACnD,OAAO,oBAAoB,MAAM,gCAAgC,CAAA;AACjE,OAAO,WAAW,MAAM,uBAAuB,CAAA;AAE/C,eAAO,IAAI,YAAY,EAAE,UAAU,CAAC,OAAO,eAAe,CAAC,CAAA;AAC3D,eAAO,IAAI,QAAQ,EAAE,UAAU,CAAC,OAAO,OAAO,CAAC,CAAA;AAC/C,eAAO,IAAI,WAAW,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAA;AACzD,eAAO,IAAI,WAAW,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAA;AACzD,eAAO,IAAI,YAAY,EAAE,UAAU,CAAC,OAAO,eAAe,CAAC,CAAA;AAC3D,eAAO,IAAI,cAAc,EAAE,UAAU,CAAC,OAAO,YAAY,CAAC,CAAA;AAC1D,eAAO,IAAI,uBAAuB,EAAE,UAAU,CAAC,OAAO,YAAY,CAAC,CAAA;AACnE,eAAO,IAAI,uBAAuB,EAAE,UAAU,CAAC,OAAO,YAAY,CAAC,CAAA;AACnE,eAAO,IAAI,SAAS,EAAE,UAAU,CAAC,OAAO,YAAY,CAAC,CAAA;AACrD,eAAO,IAAI,YAAY,EAAE,UAAU,CAAC,OAAO,eAAe,CAAC,CAAA;AAC3D,eAAO,IAAI,UAAU,EAAE,UAAU,CAAC,OAAO,aAAa,CAAC,CAAA;AACvD,eAAO,IAAI,iBAAiB,EAAE,UAAU,CAAC,OAAO,oBAAoB,CAAC,CAAA;AACrE,eAAO,IAAI,QAAQ,EAAE,UAAU,CAAC,OAAO,WAAW,CAAC,CAAA;AAEnD,eAAO,MAAM,YAAY,EAAE;IACzB,MAAM,EAAE,SAAS,CAAA;CACyB,CAAA;AAC5C,eAAO,IAAI,sBAAsB,EAAE,SAAS,CAAA;AAI5C,wBAAgB,cAAc,CAAC,SAAS,EAAE,SAAS,GAAG,UAAU,QAE/D;AAED,wBAAgB,iBAAiB,SAGhC;AAED,MAAM,CAAC,OAAO,UAAU,YAAY,CAClC,MAAM,EAAE,SAAS,EACjB,kBAAkB,EAAE,gBAAgB,EACpC,MAAM,EAAE,OAAO,QAyDhB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getProgram.d.ts","sourceRoot":"","sources":["../../../../../src/WebGPU/programs/pickShape/getProgram.ts"],"names":[],"mappings":"AAGA,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,MAAM,EAAE,SAAS,EAAE,YAAY,EAAE,SAAS,IAoC3E,MAAM,oBAAoB,EAC1B,YAAY,QAAQ,CAAC,WAAW,CAAC,EACjC,aAAa,QAAQ,CAAC,WAAW,CAAC,EAClC,YAAY,UAAU,UAmCzB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getProgram.d.ts","sourceRoot":"","sources":["../../../../../src/WebGPU/programs/pickTexture/getProgram.ts"],"names":[],"mappings":"AAKA,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,UA+BtB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getProgram.d.ts","sourceRoot":"","sources":["../../../../../src/WebGPU/programs/pickTriangle/getProgram.ts"],"names":[],"mappings":"AAMA,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,MAAM,EAAE,SAAS,EAAE,YAAY,EAAE,SAAS,IAwC9C,MAAM,oBAAoB,EAAE,YAAY,QAAQ,CAAC,WAAW,CAAC,UAwB3F"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { BoundingBox } from 'types';
|
|
2
|
+
export declare function endCache(): void;
|
|
3
|
+
export declare function startCache(device: GPUDevice, encoder: GPUCommandEncoder, textureId: number, boundingBox: BoundingBox, outputWidth: number, outputHeight: number): void;
|
|
4
|
+
//# sourceMappingURL=textureCache.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"textureCache.d.ts","sourceRoot":"","sources":["../../../src/WebGPU/textureCache.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,WAAW,EAAE,MAAM,OAAO,CAAA;AAMnC,wBAAgB,QAAQ,SAEvB;AAED,wBAAgB,UAAU,CACxB,MAAM,EAAE,SAAS,EACjB,OAAO,EAAE,iBAAiB,EAC1B,SAAS,EAAE,MAAM,EACjB,WAAW,EAAE,WAAW,EACxB,WAAW,EAAE,MAAM,EACnB,YAAY,EAAE,MAAM,GACnB,IAAI,CAoDN"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"consts.d.ts","sourceRoot":"","sources":["../../src/consts.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,WAAW,IAAI,CAAA"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import getDrawShape from 'WebGPU/programs/drawShape/getProgram';
|
|
2
|
+
import { Asset, CustomProgramError } from 'types';
|
|
3
|
+
interface CustomProgram {
|
|
4
|
+
code: string;
|
|
5
|
+
callback: ReturnType<typeof getDrawShape>;
|
|
6
|
+
errors: CustomProgramError[];
|
|
7
|
+
}
|
|
8
|
+
declare let updateSnapshot: VoidFunction;
|
|
9
|
+
declare let onProgramUpdate: (programId: number) => void;
|
|
10
|
+
export declare function init(newOnProgramUpdate: typeof onProgramUpdate, newUpdateSnapshot: typeof updateSnapshot): void;
|
|
11
|
+
export declare function getCustomProgramId(id: number | undefined, code: string): number;
|
|
12
|
+
export declare function getCustomProgram(programId: number): CustomProgram;
|
|
13
|
+
export declare function getAssetsWithError(assets: Asset[]): Asset[];
|
|
14
|
+
export declare function getAssetIdsByProgramId(assets: Asset[], programId: number): number[];
|
|
15
|
+
export {};
|
|
16
|
+
//# sourceMappingURL=customPrograms.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"customPrograms.d.ts","sourceRoot":"","sources":["../../src/customPrograms.ts"],"names":[],"mappings":"AAAA,OAAO,YAAY,MAAM,sCAAsC,CAAA;AAG/D,OAAO,EAAE,KAAK,EAAE,kBAAkB,EAAU,MAAM,OAAO,CAAA;AAGzD,UAAU,aAAa;IACrB,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,EAAE,UAAU,CAAC,OAAO,YAAY,CAAC,CAAA;IACzC,MAAM,EAAE,kBAAkB,EAAE,CAAA;CAC7B;AAuBD,QAAA,IAAI,cAAc,EAAE,YAAuB,CAAA;AAC3C,QAAA,IAAI,eAAe,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAe,CAAA;AAE3D,wBAAgB,IAAI,CAClB,kBAAkB,EAAE,OAAO,eAAe,EAC1C,iBAAiB,EAAE,OAAO,cAAc,GACvC,IAAI,CAMN;AA0DD,wBAAgB,kBAAkB,CAAC,EAAE,EAAE,MAAM,GAAG,SAAS,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAkB/E;AAED,wBAAgB,gBAAgB,CAAC,SAAS,EAAE,MAAM,GAAG,aAAa,CAIjE;AAmBD,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,KAAK,EAAE,WASjD;AAED,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,GAAG,MAAM,EAAE,CAiBnF"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as Logic from 'logic/index.zig';
|
|
2
|
+
export declare function init(getFontUrlFn: (fontId: number) => string): void;
|
|
3
|
+
export declare function loadFont(fontId: number): Promise<void>;
|
|
4
|
+
export declare function getKerning(fontId: number, charA: number, charB: number): number;
|
|
5
|
+
export declare function getCharData(fontId: number, char_code: number): Logic.SerializedCharDetails;
|
|
6
|
+
//# sourceMappingURL=fonts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fonts.d.ts","sourceRoot":"","sources":["../../src/fonts.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,KAAK,MAAM,iBAAiB,CAAA;AAYxC,wBAAgB,IAAI,CAAC,YAAY,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,MAAM,QAI5D;AAED,wBAAsB,QAAQ,CAAC,MAAM,EAAE,MAAM,iBAiC5C;AAED,wBAAgB,UAAU,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAa/E;AAED,wBAAgB,WAAW,CAAC,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,KAAK,CAAC,qBAAqB,CA8D1F"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getCanvasMatrix.d.ts","sourceRoot":"","sources":["../../src/getCanvasMatrix.ts"],"names":[],"mappings":"AAGA,MAAM,CAAC,OAAO,UAAU,eAAe,CAAC,MAAM,EAAE,iBAAiB,GAAG,eAAe,6BAelF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getCanvasRenderDescriptor.d.ts","sourceRoot":"","sources":["../../src/getCanvasRenderDescriptor.ts"],"names":[],"mappings":"AAIA,wBAAgB,qBAAqB,SAGpC;AAED,MAAM,CAAC,OAAO,UAAU,yBAAyB,CAAC,OAAO,EAAE,gBAAgB,EAAE,MAAM,EAAE,SAAS,2BAiC7F"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getDepthTexture.d.ts","sourceRoot":"","sources":["../../src/getDepthTexture.ts"],"names":[],"mappings":"AAEA,wBAAgB,OAAO,SAGtB;AAED,MAAM,CAAC,OAAO,UAAU,eAAe,CAAC,MAAM,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,cAYvF"}
|
|
@@ -0,0 +1 @@
|
|
|
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 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAYA,OAAO,EAAS,UAAU,EAAE,YAAY,EAAoC,MAAM,SAAS,CAAA;AAU3F,wBAA8B,WAAW,CAAC,EAAE,MAAM,EAAE,GAAG,KAAK,EAAE,EAAE,YAAY,GAAG,OAAO,CAAC,UAAU,CAAC,CA0QjG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"loadingTexture.d.ts","sourceRoot":"","sources":["../../src/loadingTexture.ts"],"names":[],"mappings":"AAuBA,wBAAgB,iBAAiB,IAAI,UAAU,CAkB9C;AAED,wBAAgB,eAAe,IAAI,UAAU,CAiB5C"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare function getWorldPointer(canvasHeight: number): [number, number];
|
|
2
|
+
export declare const camera: {
|
|
3
|
+
x: number;
|
|
4
|
+
y: number;
|
|
5
|
+
zoom: number;
|
|
6
|
+
redrawNeeded: boolean;
|
|
7
|
+
};
|
|
8
|
+
export declare const pointer: {
|
|
9
|
+
x: number;
|
|
10
|
+
y: number;
|
|
11
|
+
afterPickEventsQueue: Array<{
|
|
12
|
+
requireNewPick: boolean;
|
|
13
|
+
cb: VoidFunction;
|
|
14
|
+
}>;
|
|
15
|
+
};
|
|
16
|
+
export default function initMouseController(canvas: HTMLCanvasElement, onZoom: VoidFunction, onStartProcessing: VoidFunction, abortSignal: AbortSignal): void;
|
|
17
|
+
//# sourceMappingURL=pointer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pointer.d.ts","sourceRoot":"","sources":["../../src/pointer.ts"],"names":[],"mappings":"AAeA,wBAAgB,eAAe,CAAC,YAAY,EAAE,MAAM,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAKtE;AAED,eAAO,MAAM,MAAM;;;;;CAKlB,CAAA;AAED,eAAO,MAAM,OAAO;;;0BAGU,KAAK,CAAC;QAAE,cAAc,EAAE,OAAO,CAAC;QAAC,EAAE,EAAE,YAAY,CAAA;KAAE,CAAC;CAOjF,CAAA;AAED,MAAM,CAAC,OAAO,UAAU,mBAAmB,CACzC,MAAM,EAAE,iBAAiB,EACzB,MAAM,EAAE,YAAY,EACpB,iBAAiB,EAAE,YAAY,EAC/B,WAAW,EAAE,WAAW,QAoWzB"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare function updateRenderPass(newRenderPass: GPURenderPassEncoder): void;
|
|
2
|
+
export default function runCreator(creatorCanvas: HTMLCanvasElement, context: GPUCanvasContext, device: GPUDevice, onEmptyEvents: VoidFunction): {
|
|
3
|
+
stopRAF: () => void;
|
|
4
|
+
capturePreview: (previewCtx: GPUCanvasContext, collectAndCleanup: VoidFunction) => void;
|
|
5
|
+
};
|
|
6
|
+
//# sourceMappingURL=run.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"run.d.ts","sourceRoot":"","sources":["../../src/run.ts"],"names":[],"mappings":"AA+BA,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;;iCAoMS,gBAAgB,qBAAqB,YAAY;EAWtF"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Effect, PointUV, BasicProps, TypoProps, ZigEffect } from 'types';
|
|
2
|
+
export declare function toBounds(bounds: PointUV[]): PointUV[];
|
|
3
|
+
export declare function toEffects(effects: ZigEffect[]): Effect[];
|
|
4
|
+
export declare function toZigEffects(effects: Effect[]): ZigEffect[];
|
|
5
|
+
export declare function toZigProps(props: BasicProps): BasicProps;
|
|
6
|
+
export declare function toBasicProps(props: BasicProps): BasicProps;
|
|
7
|
+
export declare function toTypoProps(props: TypoProps): TypoProps;
|
|
8
|
+
//# sourceMappingURL=convert.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"convert.d.ts","sourceRoot":"","sources":["../../../src/snapshots/convert.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAEzE,wBAAgB,QAAQ,CAAC,MAAM,EAAE,OAAO,EAAE,GAAG,OAAO,EAAE,CAOrD;AAED,wBAAgB,SAAS,CAAC,OAAO,EAAE,SAAS,EAAE,GAAG,MAAM,EAAE,CAMxD;AAED,wBAAgB,YAAY,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,SAAS,EAAE,CAM3D;AAED,wBAAgB,UAAU,CAAC,KAAK,EAAE,UAAU,GAAG,UAAU,CAQxD;AAGD,wBAAgB,YAAY,CAAC,KAAK,EAAE,UAAU,GAAG,UAAU,CAU1D;AAED,wBAAgB,WAAW,CAAC,KAAK,EAAE,SAAS,GAAG,SAAS,CAMvD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fill.d.ts","sourceRoot":"","sources":["../../../src/snapshots/fill.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,OAAO,CAAA;AAGrC,wBAAgB,MAAM,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI,CAsD1C;AAMD,wBAAgB,SAAS,CAAC,IAAI,EAAE,IAAI,GAAG,OAAO,CAmD7C"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ProjectSnapshot, ZigProjectSnapshot } from 'types';
|
|
2
|
+
export declare let lastSnapshot: ProjectSnapshot;
|
|
3
|
+
export declare function init(width: number, height: number): void;
|
|
4
|
+
export declare function withSnapshotReady(cb: (snapshot: ProjectSnapshot) => void): void;
|
|
5
|
+
export declare function saveSnapshot(snapshot: ZigProjectSnapshot): void;
|
|
6
|
+
//# sourceMappingURL=snapshots.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"snapshots.d.ts","sourceRoot":"","sources":["../../../src/snapshots/snapshots.ts"],"names":[],"mappings":"AAAA,OAAO,EAAS,eAAe,EAAE,kBAAkB,EAAE,MAAM,OAAO,CAAA;AAMlE,eAAO,IAAI,YAAY,EAAE,eAAe,CAAA;AAGxC,wBAAgB,IAAI,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,QAOjD;AAED,wBAAgB,iBAAiB,CAAC,EAAE,EAAE,CAAC,QAAQ,EAAE,eAAe,KAAK,IAAI,QAMxE;AAED,wBAAgB,YAAY,CAAC,QAAQ,EAAE,kBAAkB,QA2DxD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toZigAsset.d.ts","sourceRoot":"","sources":["../../../src/snapshots/toZigAsset.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAKvC,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,KAAK,EAAE,KAAK,GAAG,QAAQ,CA0CzD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"addUiElement.d.ts","sourceRoot":"","sources":["../../../src/svgToShapes/addUiElement.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAA;AAE/C,MAAM,CAAC,OAAO,UAAU,YAAY,CAClC,UAAU,EAAE,SAAS,EAAE,EACvB,aAAa,EAAE,aAAa,EAC5B,IAAI,CAAC,EAAE,MAAM,GACZ,IAAI,CAcN"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
interface BezierCurve {
|
|
2
|
+
cp1x: number;
|
|
3
|
+
cp1y: number;
|
|
4
|
+
cp2x: number;
|
|
5
|
+
cp2y: number;
|
|
6
|
+
x: number;
|
|
7
|
+
y: number;
|
|
8
|
+
}
|
|
9
|
+
export default function arcToBezier(x1: number, y1: number, rx: number, ry: number, angle: number, largeArcFlag: number, sweepFlag: number, x2: number, y2: number): BezierCurve[];
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=arcToBezier.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"arcToBezier.d.ts","sourceRoot":"","sources":["../../../src/svgToShapes/arcToBezier.ts"],"names":[],"mappings":"AAAA,UAAU,WAAW;IACnB,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,CAAC,EAAE,MAAM,CAAA;IACT,CAAC,EAAE,MAAM,CAAA;CACV;AAGD,MAAM,CAAC,OAAO,UAAU,WAAW,CACjC,EAAE,EAAE,MAAM,EACV,EAAE,EAAE,MAAM,EACV,EAAE,EAAE,MAAM,EACV,EAAE,EAAE,MAAM,EACV,KAAK,EAAE,MAAM,EACb,YAAY,EAAE,MAAM,EACpB,SAAS,EAAE,MAAM,EACjB,EAAE,EAAE,MAAM,EACV,EAAE,EAAE,MAAM,GACT,WAAW,EAAE,CAgIf"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Point } from 'types';
|
|
2
|
+
/**
|
|
3
|
+
* Represents a 2D bounding box with minimum and maximum coordinates.
|
|
4
|
+
*/
|
|
5
|
+
export declare class BoundingBox {
|
|
6
|
+
min_x: number;
|
|
7
|
+
min_y: number;
|
|
8
|
+
max_x: number;
|
|
9
|
+
max_y: number;
|
|
10
|
+
constructor(points?: Point[]);
|
|
11
|
+
addPoint(p: Point): void;
|
|
12
|
+
addBox(box: BoundingBox): void;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Gets the bounding box for all paths.
|
|
16
|
+
*/
|
|
17
|
+
export declare function getBoundingBox(paths: Point[][]): BoundingBox;
|
|
18
|
+
//# sourceMappingURL=boundingBox.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"boundingBox.d.ts","sourceRoot":"","sources":["../../../src/svgToShapes/boundingBox.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAA;AAG7B;;GAEG;AACH,qBAAa,WAAW;IACtB,KAAK,EAAE,MAAM,CAAW;IACxB,KAAK,EAAE,MAAM,CAAW;IACxB,KAAK,EAAE,MAAM,CAAY;IACzB,KAAK,EAAE,MAAM,CAAY;gBAEb,MAAM,CAAC,EAAE,KAAK,EAAE;IAM5B,QAAQ,CAAC,CAAC,EAAE,KAAK;IAOjB,MAAM,CAAC,GAAG,EAAE,WAAW;CAMxB;AA2FD;;GAEG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE,GAAG,WAAW,CAS5D"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Node } from 'svg-parser';
|
|
2
|
+
import { BoundingBox } from './boundingBox';
|
|
3
|
+
import { Defs } from './definitions';
|
|
4
|
+
import { Point, Effect, BasicProps } from 'types';
|
|
5
|
+
export interface ShapeData {
|
|
6
|
+
paths: Point[][];
|
|
7
|
+
props: BasicProps;
|
|
8
|
+
effects: Effect[];
|
|
9
|
+
boundingBox: BoundingBox;
|
|
10
|
+
}
|
|
11
|
+
export default function collectShapesData(node: Node | string, defs: Defs, parentTransform?: number[]): ShapeData[];
|
|
12
|
+
//# sourceMappingURL=collectShapesData.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"collectShapesData.d.ts","sourceRoot":"","sources":["../../../src/svgToShapes/collectShapesData.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAA;AACjC,OAAO,EAAE,WAAW,EAAkB,MAAM,eAAe,CAAA;AAU3D,OAAO,EAAO,IAAI,EAAW,MAAM,eAAe,CAAA;AAElD,OAAO,EAAE,KAAK,EAAQ,MAAM,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAEvD,MAAM,WAAW,SAAS;IACxB,KAAK,EAAE,KAAK,EAAE,EAAE,CAAA;IAChB,KAAK,EAAE,UAAU,CAAA;IACjB,OAAO,EAAE,MAAM,EAAE,CAAA;IACjB,WAAW,EAAE,WAAW,CAAA;CACzB;AA4FD,MAAM,CAAC,OAAO,UAAU,iBAAiB,CACvC,IAAI,EAAE,IAAI,GAAG,MAAM,EACnB,IAAI,EAAE,IAAI,EACV,eAAe,GAAE,MAAM,EAAoB,GAC1C,SAAS,EAAE,CAuJb"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"const.d.ts","sourceRoot":"","sources":["../../../src/svgToShapes/const.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,oBAAoB;;;CAAoB,CAAA"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { Node } from 'svg-parser';
|
|
2
|
+
import { Color, Point } from 'types';
|
|
3
|
+
export type DefStop = {
|
|
4
|
+
offset: number;
|
|
5
|
+
color: Color;
|
|
6
|
+
};
|
|
7
|
+
export type AttrValue = string | number | undefined;
|
|
8
|
+
export type Def = {
|
|
9
|
+
paths?: Point[][];
|
|
10
|
+
stops?: DefStop[];
|
|
11
|
+
href?: string;
|
|
12
|
+
id?: string;
|
|
13
|
+
type?: 'linear-gradient' | 'radial-gradient' | 'gaussian-blur';
|
|
14
|
+
gradientTransform?: number[];
|
|
15
|
+
stdDeviation?: [number, number];
|
|
16
|
+
x1?: AttrValue;
|
|
17
|
+
y1?: AttrValue;
|
|
18
|
+
x2?: AttrValue;
|
|
19
|
+
y2?: AttrValue;
|
|
20
|
+
'stop-color'?: AttrValue;
|
|
21
|
+
'stop-opacity'?: AttrValue;
|
|
22
|
+
offset?: AttrValue;
|
|
23
|
+
transform?: AttrValue;
|
|
24
|
+
fill?: AttrValue;
|
|
25
|
+
stroke?: AttrValue;
|
|
26
|
+
filter?: AttrValue;
|
|
27
|
+
opacity?: AttrValue;
|
|
28
|
+
'fill-opacity'?: AttrValue;
|
|
29
|
+
'stroke-width'?: AttrValue;
|
|
30
|
+
d?: never;
|
|
31
|
+
cx?: never;
|
|
32
|
+
cy?: never;
|
|
33
|
+
r?: never;
|
|
34
|
+
rx?: never;
|
|
35
|
+
ry?: never;
|
|
36
|
+
x?: never;
|
|
37
|
+
y?: never;
|
|
38
|
+
width?: never;
|
|
39
|
+
height?: never;
|
|
40
|
+
};
|
|
41
|
+
export type Defs = Record<string, Def>;
|
|
42
|
+
export declare function resolveAll(defs: Defs): void;
|
|
43
|
+
export declare function collect(node: Node | string, defs: Defs, insideDefs?: boolean): void;
|
|
44
|
+
//# sourceMappingURL=definitions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"definitions.d.ts","sourceRoot":"","sources":["../../../src/svgToShapes/definitions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAA;AAGjC,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,OAAO,CAAA;AAEpC,MAAM,MAAM,OAAO,GAAG;IACpB,MAAM,EAAE,MAAM,CAAA;IACd,KAAK,EAAE,KAAK,CAAA;CACb,CAAA;AAKD,MAAM,MAAM,SAAS,GAAG,MAAM,GAAG,MAAM,GAAG,SAAS,CAAA;AAEnD,MAAM,MAAM,GAAG,GAAG;IAChB,KAAK,CAAC,EAAE,KAAK,EAAE,EAAE,CAAA;IACjB,KAAK,CAAC,EAAE,OAAO,EAAE,CAAA;IACjB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,IAAI,CAAC,EAAE,iBAAiB,GAAG,iBAAiB,GAAG,eAAe,CAAA;IAC9D,iBAAiB,CAAC,EAAE,MAAM,EAAE,CAAA;IAC5B,YAAY,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAC/B,EAAE,CAAC,EAAE,SAAS,CAAA;IACd,EAAE,CAAC,EAAE,SAAS,CAAA;IACd,EAAE,CAAC,EAAE,SAAS,CAAA;IACd,EAAE,CAAC,EAAE,SAAS,CAAA;IACd,YAAY,CAAC,EAAE,SAAS,CAAA;IACxB,cAAc,CAAC,EAAE,SAAS,CAAA;IAC1B,MAAM,CAAC,EAAE,SAAS,CAAA;IAClB,SAAS,CAAC,EAAE,SAAS,CAAA;IACrB,IAAI,CAAC,EAAE,SAAS,CAAA;IAChB,MAAM,CAAC,EAAE,SAAS,CAAA;IAClB,MAAM,CAAC,EAAE,SAAS,CAAA;IAClB,OAAO,CAAC,EAAE,SAAS,CAAA;IACnB,cAAc,CAAC,EAAE,SAAS,CAAA;IAC1B,cAAc,CAAC,EAAE,SAAS,CAAA;IAC1B,CAAC,CAAC,EAAE,KAAK,CAAA;IACT,EAAE,CAAC,EAAE,KAAK,CAAA;IACV,EAAE,CAAC,EAAE,KAAK,CAAA;IACV,CAAC,CAAC,EAAE,KAAK,CAAA;IACT,EAAE,CAAC,EAAE,KAAK,CAAA;IACV,EAAE,CAAC,EAAE,KAAK,CAAA;IACV,CAAC,CAAC,EAAE,KAAK,CAAA;IACT,CAAC,CAAC,EAAE,KAAK,CAAA;IACT,KAAK,CAAC,EAAE,KAAK,CAAA;IACb,MAAM,CAAC,EAAE,KAAK,CAAA;CACf,CAAA;AAED,MAAM,MAAM,IAAI,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;AAEtC,wBAAgB,UAAU,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI,CAQ3C;AAyBD,wBAAgB,OAAO,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,UAAU,UAAQ,GAAG,IAAI,CA2CjF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getProps.d.ts","sourceRoot":"","sources":["../../../src/svgToShapes/getProps.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,WAAW,EAAE,MAAM,YAAY,CAAA;AAC9C,OAAO,EAAE,GAAG,EAAE,MAAM,eAAe,CAAA;AAOnC,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,IAAI,EAAE,WAAW,GAAG,GAAG,CAwFvD"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { PointUV, Asset } from 'types';
|
|
2
|
+
import { ShapeData } from './collectShapesData';
|
|
3
|
+
export declare const DEFAULT_BOUNDS: PointUV[];
|
|
4
|
+
export default function getShapesZigAssets(shapesData: ShapeData[], maxY?: number): Asset[];
|
|
5
|
+
//# sourceMappingURL=getShapesAssets.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getShapesAssets.d.ts","sourceRoot":"","sources":["../../../src/svgToShapes/getShapesAssets.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAA;AACtC,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAA;AAK/C,eAAO,MAAM,cAAc,EAAE,OAAO,EAKnC,CAAA;AAED,MAAM,CAAC,OAAO,UAAU,kBAAkB,CAAC,UAAU,EAAE,SAAS,EAAE,EAAE,IAAI,CAAC,EAAE,MAAM,GAAG,KAAK,EAAE,CAuB1F"}
|