abstract-image 10.0.2 → 10.0.4
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/CHANGELOG.md +1 -1
- package/lib/__stories__/react-svg-export/example-1.stories.js +40 -4
- package/lib/__stories__/react-svg-export/example-1.stories.js.map +1 -1
- package/lib/__stories__/svg-export/example-1.stories.js +40 -4
- package/lib/__stories__/svg-export/example-1.stories.js.map +1 -1
- package/lib/exporters/dxf2d-export-image.js +38 -2
- package/lib/exporters/dxf2d-export-image.js.map +1 -1
- package/lib/exporters/eps-export-image.js +4 -1
- package/lib/exporters/eps-export-image.js.map +1 -1
- package/lib/exporters/index.js +19 -3
- package/lib/exporters/index.js.map +1 -1
- package/lib/exporters/png-export-image.js +4 -1
- package/lib/exporters/png-export-image.js.map +1 -1
- package/lib/exporters/react-svg-export-image.js +40 -4
- package/lib/exporters/react-svg-export-image.js.map +1 -1
- package/lib/exporters/svg-export-image.js +38 -2
- package/lib/exporters/svg-export-image.js.map +1 -1
- package/lib/index.js +27 -11
- package/lib/index.js.map +1 -1
- package/lib/model/abstract-image.js +4 -1
- package/lib/model/abstract-image.js.map +1 -1
- package/lib/model/color.js +25 -19
- package/lib/model/color.js.map +1 -1
- package/lib/model/component.js +59 -13
- package/lib/model/component.js.map +1 -1
- package/lib/model/dash-style.js +6 -2
- package/lib/model/dash-style.js.map +1 -1
- package/lib/model/index.js +22 -6
- package/lib/model/index.js.map +1 -1
- package/lib/model/point.js +4 -1
- package/lib/model/point.js.map +1 -1
- package/lib/model/size.js +4 -1
- package/lib/model/size.js.map +1 -1
- package/package.json +5 -4
- package/lib/exporters/__tests__/dxf2d-export-image.test.d.ts +0 -2
- package/lib/exporters/__tests__/dxf2d-export-image.test.d.ts.map +0 -1
- package/lib/exporters/__tests__/dxf2d-export-image.test.js +0 -26
- package/lib/exporters/__tests__/dxf2d-export-image.test.js.map +0 -1
- package/lib/exporters/__tests__/eps-export-image.test.d.ts +0 -2
- package/lib/exporters/__tests__/eps-export-image.test.d.ts.map +0 -1
- package/lib/exporters/__tests__/eps-export-image.test.js +0 -30
- package/lib/exporters/__tests__/eps-export-image.test.js.map +0 -1
- package/lib/exporters/__tests__/png-export-image.test.d.ts +0 -2
- package/lib/exporters/__tests__/png-export-image.test.d.ts.map +0 -1
- package/lib/exporters/__tests__/png-export-image.test.js +0 -10
- package/lib/exporters/__tests__/png-export-image.test.js.map +0 -1
- package/lib/exporters/__tests__/react-svg-export-image.test.d.ts +0 -2
- package/lib/exporters/__tests__/react-svg-export-image.test.d.ts.map +0 -1
- package/lib/exporters/__tests__/react-svg-export-image.test.js +0 -44
- package/lib/exporters/__tests__/react-svg-export-image.test.js.map +0 -1
- package/lib/exporters/__tests__/svg-export-image.test.d.ts +0 -2
- package/lib/exporters/__tests__/svg-export-image.test.d.ts.map +0 -1
- package/lib/exporters/__tests__/svg-export-image.test.js +0 -37
- package/lib/exporters/__tests__/svg-export-image.test.js.map +0 -1
- package/lib/exporters/__tests__/tests-dxf2d-export-image/_export-test-def.d.ts +0 -9
- package/lib/exporters/__tests__/tests-dxf2d-export-image/_export-test-def.d.ts.map +0 -1
- package/lib/exporters/__tests__/tests-dxf2d-export-image/_export-test-def.js +0 -5
- package/lib/exporters/__tests__/tests-dxf2d-export-image/_export-test-def.js.map +0 -1
- package/lib/exporters/__tests__/tests-dxf2d-export-image/dxf2d-ellipse.d.ts +0 -3
- package/lib/exporters/__tests__/tests-dxf2d-export-image/dxf2d-ellipse.d.ts.map +0 -1
- package/lib/exporters/__tests__/tests-dxf2d-export-image/dxf2d-ellipse.js +0 -391
- package/lib/exporters/__tests__/tests-dxf2d-export-image/dxf2d-ellipse.js.map +0 -1
- package/lib/exporters/__tests__/tests-dxf2d-export-image/dxf2d-group.d.ts +0 -3
- package/lib/exporters/__tests__/tests-dxf2d-export-image/dxf2d-group.d.ts.map +0 -1
- package/lib/exporters/__tests__/tests-dxf2d-export-image/dxf2d-group.js +0 -138
- package/lib/exporters/__tests__/tests-dxf2d-export-image/dxf2d-group.js.map +0 -1
- package/lib/exporters/__tests__/tests-dxf2d-export-image/dxf2d-line.d.ts +0 -3
- package/lib/exporters/__tests__/tests-dxf2d-export-image/dxf2d-line.d.ts.map +0 -1
- package/lib/exporters/__tests__/tests-dxf2d-export-image/dxf2d-line.js +0 -67
- package/lib/exporters/__tests__/tests-dxf2d-export-image/dxf2d-line.js.map +0 -1
- package/lib/exporters/__tests__/tests-dxf2d-export-image/dxf2d-polygon.d.ts +0 -3
- package/lib/exporters/__tests__/tests-dxf2d-export-image/dxf2d-polygon.d.ts.map +0 -1
- package/lib/exporters/__tests__/tests-dxf2d-export-image/dxf2d-polygon.js +0 -101
- package/lib/exporters/__tests__/tests-dxf2d-export-image/dxf2d-polygon.js.map +0 -1
- package/lib/exporters/__tests__/tests-dxf2d-export-image/dxf2d-polyline.d.ts +0 -3
- package/lib/exporters/__tests__/tests-dxf2d-export-image/dxf2d-polyline.d.ts.map +0 -1
- package/lib/exporters/__tests__/tests-dxf2d-export-image/dxf2d-polyline.js +0 -91
- package/lib/exporters/__tests__/tests-dxf2d-export-image/dxf2d-polyline.js.map +0 -1
- package/lib/exporters/__tests__/tests-dxf2d-export-image/dxf2d-rectangle.d.ts +0 -3
- package/lib/exporters/__tests__/tests-dxf2d-export-image/dxf2d-rectangle.d.ts.map +0 -1
- package/lib/exporters/__tests__/tests-dxf2d-export-image/dxf2d-rectangle.js +0 -111
- package/lib/exporters/__tests__/tests-dxf2d-export-image/dxf2d-rectangle.js.map +0 -1
- package/lib/exporters/__tests__/tests-dxf2d-export-image/dxf2d-text-growth-directions.d.ts +0 -3
- package/lib/exporters/__tests__/tests-dxf2d-export-image/dxf2d-text-growth-directions.d.ts.map +0 -1
- package/lib/exporters/__tests__/tests-dxf2d-export-image/dxf2d-text-growth-directions.js +0 -150
- package/lib/exporters/__tests__/tests-dxf2d-export-image/dxf2d-text-growth-directions.js.map +0 -1
- package/lib/exporters/__tests__/tests-dxf2d-export-image/dxf2d-text.d.ts +0 -3
- package/lib/exporters/__tests__/tests-dxf2d-export-image/dxf2d-text.d.ts.map +0 -1
- package/lib/exporters/__tests__/tests-dxf2d-export-image/dxf2d-text.js +0 -75
- package/lib/exporters/__tests__/tests-dxf2d-export-image/dxf2d-text.js.map +0 -1
- package/lib/exporters/__tests__/tests-eps-export-image/_export-test-def.d.ts +0 -9
- package/lib/exporters/__tests__/tests-eps-export-image/_export-test-def.d.ts.map +0 -1
- package/lib/exporters/__tests__/tests-eps-export-image/_export-test-def.js +0 -5
- package/lib/exporters/__tests__/tests-eps-export-image/_export-test-def.js.map +0 -1
- package/lib/exporters/__tests__/tests-eps-export-image/eps-ellipse.d.ts +0 -3
- package/lib/exporters/__tests__/tests-eps-export-image/eps-ellipse.d.ts.map +0 -1
- package/lib/exporters/__tests__/tests-eps-export-image/eps-ellipse.js +0 -36
- package/lib/exporters/__tests__/tests-eps-export-image/eps-ellipse.js.map +0 -1
- package/lib/exporters/__tests__/tests-eps-export-image/eps-empty-text.d.ts +0 -3
- package/lib/exporters/__tests__/tests-eps-export-image/eps-empty-text.d.ts.map +0 -1
- package/lib/exporters/__tests__/tests-eps-export-image/eps-empty-text.js +0 -38
- package/lib/exporters/__tests__/tests-eps-export-image/eps-empty-text.js.map +0 -1
- package/lib/exporters/__tests__/tests-eps-export-image/eps-group.d.ts +0 -3
- package/lib/exporters/__tests__/tests-eps-export-image/eps-group.d.ts.map +0 -1
- package/lib/exporters/__tests__/tests-eps-export-image/eps-group.js +0 -46
- package/lib/exporters/__tests__/tests-eps-export-image/eps-group.js.map +0 -1
- package/lib/exporters/__tests__/tests-eps-export-image/eps-line.d.ts +0 -3
- package/lib/exporters/__tests__/tests-eps-export-image/eps-line.d.ts.map +0 -1
- package/lib/exporters/__tests__/tests-eps-export-image/eps-line.js +0 -32
- package/lib/exporters/__tests__/tests-eps-export-image/eps-line.js.map +0 -1
- package/lib/exporters/__tests__/tests-eps-export-image/eps-polygon.d.ts +0 -3
- package/lib/exporters/__tests__/tests-eps-export-image/eps-polygon.d.ts.map +0 -1
- package/lib/exporters/__tests__/tests-eps-export-image/eps-polygon.js +0 -52
- package/lib/exporters/__tests__/tests-eps-export-image/eps-polygon.js.map +0 -1
- package/lib/exporters/__tests__/tests-eps-export-image/eps-polyline.d.ts +0 -3
- package/lib/exporters/__tests__/tests-eps-export-image/eps-polyline.d.ts.map +0 -1
- package/lib/exporters/__tests__/tests-eps-export-image/eps-polyline.js +0 -46
- package/lib/exporters/__tests__/tests-eps-export-image/eps-polyline.js.map +0 -1
- package/lib/exporters/__tests__/tests-eps-export-image/eps-rectangle.d.ts +0 -3
- package/lib/exporters/__tests__/tests-eps-export-image/eps-rectangle.d.ts.map +0 -1
- package/lib/exporters/__tests__/tests-eps-export-image/eps-rectangle.js +0 -32
- package/lib/exporters/__tests__/tests-eps-export-image/eps-rectangle.js.map +0 -1
- package/lib/exporters/__tests__/tests-eps-export-image/eps-text-growth-directions.d.ts +0 -3
- package/lib/exporters/__tests__/tests-eps-export-image/eps-text-growth-directions.d.ts.map +0 -1
- package/lib/exporters/__tests__/tests-eps-export-image/eps-text-growth-directions.js +0 -74
- package/lib/exporters/__tests__/tests-eps-export-image/eps-text-growth-directions.js.map +0 -1
- package/lib/exporters/__tests__/tests-eps-export-image/eps-text-iso-latin1-encoding.d.ts +0 -3
- package/lib/exporters/__tests__/tests-eps-export-image/eps-text-iso-latin1-encoding.d.ts.map +0 -1
- package/lib/exporters/__tests__/tests-eps-export-image/eps-text-iso-latin1-encoding.js +0 -49
- package/lib/exporters/__tests__/tests-eps-export-image/eps-text-iso-latin1-encoding.js.map +0 -1
- package/lib/exporters/__tests__/tests-eps-export-image/eps-text.d.ts +0 -3
- package/lib/exporters/__tests__/tests-eps-export-image/eps-text.d.ts.map +0 -1
- package/lib/exporters/__tests__/tests-eps-export-image/eps-text.js +0 -38
- package/lib/exporters/__tests__/tests-eps-export-image/eps-text.js.map +0 -1
- package/lib/exporters/__tests__/tests-png-export-image/_export-test-def.d.ts +0 -9
- package/lib/exporters/__tests__/tests-png-export-image/_export-test-def.d.ts.map +0 -1
- package/lib/exporters/__tests__/tests-png-export-image/_export-test-def.js +0 -5
- package/lib/exporters/__tests__/tests-png-export-image/_export-test-def.js.map +0 -1
- package/lib/exporters/__tests__/tests-png-export-image/png-createPNG.d.ts +0 -3
- package/lib/exporters/__tests__/tests-png-export-image/png-createPNG.d.ts.map +0 -1
- package/lib/exporters/__tests__/tests-png-export-image/png-createPNG.js +0 -11
- package/lib/exporters/__tests__/tests-png-export-image/png-createPNG.js.map +0 -1
- package/lib/exporters/__tests__/tests-png-export-image/png-unsupported.test.d.ts +0 -2
- package/lib/exporters/__tests__/tests-png-export-image/png-unsupported.test.d.ts.map +0 -1
- package/lib/exporters/__tests__/tests-png-export-image/png-unsupported.test.js +0 -26
- package/lib/exporters/__tests__/tests-png-export-image/png-unsupported.test.js.map +0 -1
- package/lib/exporters/__tests__/tests-react-svg-export-image/_export-test-def.d.ts +0 -10
- package/lib/exporters/__tests__/tests-react-svg-export-image/_export-test-def.d.ts.map +0 -1
- package/lib/exporters/__tests__/tests-react-svg-export-image/_export-test-def.js +0 -5
- package/lib/exporters/__tests__/tests-react-svg-export-image/_export-test-def.js.map +0 -1
- package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-binary-png.d.ts +0 -3
- package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-binary-png.d.ts.map +0 -1
- package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-binary-png.js +0 -11
- package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-binary-png.js.map +0 -1
- package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-binary-url.d.ts +0 -3
- package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-binary-url.d.ts.map +0 -1
- package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-binary-url.js +0 -11
- package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-binary-url.js.map +0 -1
- package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-binary.d.ts +0 -3
- package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-binary.d.ts.map +0 -1
- package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-binary.js +0 -11
- package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-binary.js.map +0 -1
- package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-callback.d.ts +0 -3
- package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-callback.d.ts.map +0 -1
- package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-callback.js +0 -34
- package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-callback.js.map +0 -1
- package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-dashed-line.d.ts +0 -3
- package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-dashed-line.d.ts.map +0 -1
- package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-dashed-line.js +0 -12
- package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-dashed-line.js.map +0 -1
- package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-direction-exception.test.d.ts +0 -2
- package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-direction-exception.test.d.ts.map +0 -1
- package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-direction-exception.test.js +0 -60
- package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-direction-exception.test.js.map +0 -1
- package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-ellipse.d.ts +0 -3
- package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-ellipse.d.ts.map +0 -1
- package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-ellipse.js +0 -12
- package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-ellipse.js.map +0 -1
- package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-empty-text.d.ts +0 -3
- package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-empty-text.d.ts.map +0 -1
- package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-empty-text.js +0 -12
- package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-empty-text.js.map +0 -1
- package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-group.d.ts +0 -3
- package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-group.d.ts.map +0 -1
- package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-group.js +0 -15
- package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-group.js.map +0 -1
- package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-line.d.ts +0 -3
- package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-line.d.ts.map +0 -1
- package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-line.js +0 -12
- package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-line.js.map +0 -1
- package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-polygon.d.ts +0 -3
- package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-polygon.d.ts.map +0 -1
- package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-polygon.js +0 -18
- package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-polygon.js.map +0 -1
- package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-polyline.d.ts +0 -3
- package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-polyline.d.ts.map +0 -1
- package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-polyline.js +0 -20
- package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-polyline.js.map +0 -1
- package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-rectangle.d.ts +0 -3
- package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-rectangle.d.ts.map +0 -1
- package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-rectangle.js +0 -12
- package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-rectangle.js.map +0 -1
- package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-subimage.d.ts +0 -3
- package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-subimage.d.ts.map +0 -1
- package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-subimage.js +0 -11
- package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-subimage.js.map +0 -1
- package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-text-bold.d.ts +0 -3
- package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-text-bold.d.ts.map +0 -1
- package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-text-bold.js +0 -13
- package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-text-bold.js.map +0 -1
- package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-text-growth-directions.d.ts +0 -3
- package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-text-growth-directions.d.ts.map +0 -1
- package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-text-growth-directions.js +0 -15
- package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-text-growth-directions.js.map +0 -1
- package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-text-italic.d.ts +0 -3
- package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-text-italic.d.ts.map +0 -1
- package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-text-italic.js +0 -14
- package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-text-italic.js.map +0 -1
- package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-text-sub.d.ts +0 -3
- package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-text-sub.d.ts.map +0 -1
- package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-text-sub.js +0 -12
- package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-text-sub.js.map +0 -1
- package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-text.d.ts +0 -3
- package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-text.d.ts.map +0 -1
- package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-text.js +0 -12
- package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-text.js.map +0 -1
- package/lib/exporters/__tests__/tests-svg-export-image/_export-test-def.d.ts +0 -9
- package/lib/exporters/__tests__/tests-svg-export-image/_export-test-def.d.ts.map +0 -1
- package/lib/exporters/__tests__/tests-svg-export-image/_export-test-def.js +0 -5
- package/lib/exporters/__tests__/tests-svg-export-image/_export-test-def.js.map +0 -1
- package/lib/exporters/__tests__/tests-svg-export-image/svg-binary.d.ts +0 -3
- package/lib/exporters/__tests__/tests-svg-export-image/svg-binary.d.ts.map +0 -1
- package/lib/exporters/__tests__/tests-svg-export-image/svg-binary.js +0 -12
- package/lib/exporters/__tests__/tests-svg-export-image/svg-binary.js.map +0 -1
- package/lib/exporters/__tests__/tests-svg-export-image/svg-dashed-line.d.ts +0 -3
- package/lib/exporters/__tests__/tests-svg-export-image/svg-dashed-line.d.ts.map +0 -1
- package/lib/exporters/__tests__/tests-svg-export-image/svg-dashed-line.js +0 -12
- package/lib/exporters/__tests__/tests-svg-export-image/svg-dashed-line.js.map +0 -1
- package/lib/exporters/__tests__/tests-svg-export-image/svg-direction-exception.test.d.ts +0 -2
- package/lib/exporters/__tests__/tests-svg-export-image/svg-direction-exception.test.d.ts.map +0 -1
- package/lib/exporters/__tests__/tests-svg-export-image/svg-direction-exception.test.js +0 -65
- package/lib/exporters/__tests__/tests-svg-export-image/svg-direction-exception.test.js.map +0 -1
- package/lib/exporters/__tests__/tests-svg-export-image/svg-ellipse.d.ts +0 -3
- package/lib/exporters/__tests__/tests-svg-export-image/svg-ellipse.d.ts.map +0 -1
- package/lib/exporters/__tests__/tests-svg-export-image/svg-ellipse.js +0 -12
- package/lib/exporters/__tests__/tests-svg-export-image/svg-ellipse.js.map +0 -1
- package/lib/exporters/__tests__/tests-svg-export-image/svg-empty-text.d.ts +0 -3
- package/lib/exporters/__tests__/tests-svg-export-image/svg-empty-text.d.ts.map +0 -1
- package/lib/exporters/__tests__/tests-svg-export-image/svg-empty-text.js +0 -12
- package/lib/exporters/__tests__/tests-svg-export-image/svg-empty-text.js.map +0 -1
- package/lib/exporters/__tests__/tests-svg-export-image/svg-group.d.ts +0 -3
- package/lib/exporters/__tests__/tests-svg-export-image/svg-group.d.ts.map +0 -1
- package/lib/exporters/__tests__/tests-svg-export-image/svg-group.js +0 -15
- package/lib/exporters/__tests__/tests-svg-export-image/svg-group.js.map +0 -1
- package/lib/exporters/__tests__/tests-svg-export-image/svg-line.d.ts +0 -3
- package/lib/exporters/__tests__/tests-svg-export-image/svg-line.d.ts.map +0 -1
- package/lib/exporters/__tests__/tests-svg-export-image/svg-line.js +0 -12
- package/lib/exporters/__tests__/tests-svg-export-image/svg-line.js.map +0 -1
- package/lib/exporters/__tests__/tests-svg-export-image/svg-polygon.d.ts +0 -3
- package/lib/exporters/__tests__/tests-svg-export-image/svg-polygon.d.ts.map +0 -1
- package/lib/exporters/__tests__/tests-svg-export-image/svg-polygon.js +0 -18
- package/lib/exporters/__tests__/tests-svg-export-image/svg-polygon.js.map +0 -1
- package/lib/exporters/__tests__/tests-svg-export-image/svg-polyline.d.ts +0 -3
- package/lib/exporters/__tests__/tests-svg-export-image/svg-polyline.d.ts.map +0 -1
- package/lib/exporters/__tests__/tests-svg-export-image/svg-polyline.js +0 -20
- package/lib/exporters/__tests__/tests-svg-export-image/svg-polyline.js.map +0 -1
- package/lib/exporters/__tests__/tests-svg-export-image/svg-rectangle.d.ts +0 -3
- package/lib/exporters/__tests__/tests-svg-export-image/svg-rectangle.d.ts.map +0 -1
- package/lib/exporters/__tests__/tests-svg-export-image/svg-rectangle.js +0 -12
- package/lib/exporters/__tests__/tests-svg-export-image/svg-rectangle.js.map +0 -1
- package/lib/exporters/__tests__/tests-svg-export-image/svg-text-bold.d.ts +0 -3
- package/lib/exporters/__tests__/tests-svg-export-image/svg-text-bold.d.ts.map +0 -1
- package/lib/exporters/__tests__/tests-svg-export-image/svg-text-bold.js +0 -13
- package/lib/exporters/__tests__/tests-svg-export-image/svg-text-bold.js.map +0 -1
- package/lib/exporters/__tests__/tests-svg-export-image/svg-text-growth-directions.d.ts +0 -3
- package/lib/exporters/__tests__/tests-svg-export-image/svg-text-growth-directions.d.ts.map +0 -1
- package/lib/exporters/__tests__/tests-svg-export-image/svg-text-growth-directions.js +0 -15
- package/lib/exporters/__tests__/tests-svg-export-image/svg-text-growth-directions.js.map +0 -1
- package/lib/exporters/__tests__/tests-svg-export-image/svg-text-italic.d.ts +0 -3
- package/lib/exporters/__tests__/tests-svg-export-image/svg-text-italic.d.ts.map +0 -1
- package/lib/exporters/__tests__/tests-svg-export-image/svg-text-italic.js +0 -14
- package/lib/exporters/__tests__/tests-svg-export-image/svg-text-italic.js.map +0 -1
- package/lib/exporters/__tests__/tests-svg-export-image/svg-text.d.ts +0 -3
- package/lib/exporters/__tests__/tests-svg-export-image/svg-text.d.ts.map +0 -1
- package/lib/exporters/__tests__/tests-svg-export-image/svg-text.js +0 -12
- package/lib/exporters/__tests__/tests-svg-export-image/svg-text.js.map +0 -1
- package/lib/model/__tests__/color/export-test-def.d.ts +0 -10
- package/lib/model/__tests__/color/export-test-def.d.ts.map +0 -1
- package/lib/model/__tests__/color/export-test-def.js +0 -5
- package/lib/model/__tests__/color/export-test-def.js.map +0 -1
- package/lib/model/__tests__/color/export.test.d.ts +0 -2
- package/lib/model/__tests__/color/export.test.d.ts.map +0 -1
- package/lib/model/__tests__/color/export.test.js +0 -13
- package/lib/model/__tests__/color/export.test.js.map +0 -1
- package/lib/model/__tests__/color/test-defs/color-from-string.d.ts +0 -3
- package/lib/model/__tests__/color/test-defs/color-from-string.d.ts.map +0 -1
- package/lib/model/__tests__/color/test-defs/color-from-string.js +0 -43
- package/lib/model/__tests__/color/test-defs/color-from-string.js.map +0 -1
- package/lib/model/__tests__/color/test-defs/color-to-string.d.ts +0 -3
- package/lib/model/__tests__/color/test-defs/color-to-string.d.ts.map +0 -1
- package/lib/model/__tests__/color/test-defs/color-to-string.js +0 -32
- package/lib/model/__tests__/color/test-defs/color-to-string.js.map +0 -1
- package/lib/model/__tests__/color/test-defs/color-undefined-2.d.ts +0 -3
- package/lib/model/__tests__/color/test-defs/color-undefined-2.d.ts.map +0 -1
- package/lib/model/__tests__/color/test-defs/color-undefined-2.js +0 -7
- package/lib/model/__tests__/color/test-defs/color-undefined-2.js.map +0 -1
- package/lib/model/__tests__/color/test-defs/color-undefined.d.ts +0 -3
- package/lib/model/__tests__/color/test-defs/color-undefined.d.ts.map +0 -1
- package/lib/model/__tests__/color/test-defs/color-undefined.js +0 -7
- package/lib/model/__tests__/color/test-defs/color-undefined.js.map +0 -1
- package/src/exporters/__tests__/dxf2d-export-image.test.tsx +0 -26
- package/src/exporters/__tests__/eps-export-image.test.tsx +0 -30
- package/src/exporters/__tests__/images/diffusers.png +0 -0
- package/src/exporters/__tests__/png-export-image.test.tsx +0 -10
- package/src/exporters/__tests__/react-svg-export-image.test.tsx +0 -44
- package/src/exporters/__tests__/svg-export-image.test.tsx +0 -37
- package/src/exporters/__tests__/tests-dxf2d-export-image/_export-test-def.ts +0 -9
- package/src/exporters/__tests__/tests-dxf2d-export-image/dxf2d-ellipse.ts +0 -405
- package/src/exporters/__tests__/tests-dxf2d-export-image/dxf2d-group.ts +0 -166
- package/src/exporters/__tests__/tests-dxf2d-export-image/dxf2d-line.ts +0 -80
- package/src/exporters/__tests__/tests-dxf2d-export-image/dxf2d-polygon.ts +0 -114
- package/src/exporters/__tests__/tests-dxf2d-export-image/dxf2d-polyline.ts +0 -103
- package/src/exporters/__tests__/tests-dxf2d-export-image/dxf2d-rectangle.ts +0 -125
- package/src/exporters/__tests__/tests-dxf2d-export-image/dxf2d-text-growth-directions.ts +0 -214
- package/src/exporters/__tests__/tests-dxf2d-export-image/dxf2d-text.ts +0 -97
- package/src/exporters/__tests__/tests-eps-export-image/_export-test-def.ts +0 -9
- package/src/exporters/__tests__/tests-eps-export-image/eps-ellipse.ts +0 -50
- package/src/exporters/__tests__/tests-eps-export-image/eps-empty-text.ts +0 -60
- package/src/exporters/__tests__/tests-eps-export-image/eps-group.ts +0 -74
- package/src/exporters/__tests__/tests-eps-export-image/eps-line.ts +0 -45
- package/src/exporters/__tests__/tests-eps-export-image/eps-polygon.ts +0 -65
- package/src/exporters/__tests__/tests-eps-export-image/eps-polyline.ts +0 -58
- package/src/exporters/__tests__/tests-eps-export-image/eps-rectangle.ts +0 -46
- package/src/exporters/__tests__/tests-eps-export-image/eps-text-growth-directions.ts +0 -138
- package/src/exporters/__tests__/tests-eps-export-image/eps-text-iso-latin1-encoding.ts +0 -71
- package/src/exporters/__tests__/tests-eps-export-image/eps-text.ts +0 -60
- package/src/exporters/__tests__/tests-png-export-image/_export-test-def.ts +0 -9
- package/src/exporters/__tests__/tests-png-export-image/png-createPNG.tsx +0 -26
- package/src/exporters/__tests__/tests-png-export-image/png-unsupported.test.tsx +0 -30
- package/src/exporters/__tests__/tests-react-svg-export-image/_export-test-def.tsx +0 -11
- package/src/exporters/__tests__/tests-react-svg-export-image/react-svg-binary-png.tsx +0 -27
- package/src/exporters/__tests__/tests-react-svg-export-image/react-svg-binary-url.tsx +0 -27
- package/src/exporters/__tests__/tests-react-svg-export-image/react-svg-binary.tsx +0 -26
- package/src/exporters/__tests__/tests-react-svg-export-image/react-svg-callback.tsx +0 -61
- package/src/exporters/__tests__/tests-react-svg-export-image/react-svg-dashed-line.tsx +0 -28
- package/src/exporters/__tests__/tests-react-svg-export-image/react-svg-direction-exception.test.tsx +0 -69
- package/src/exporters/__tests__/tests-react-svg-export-image/react-svg-ellipse.tsx +0 -28
- package/src/exporters/__tests__/tests-react-svg-export-image/react-svg-empty-text.tsx +0 -35
- package/src/exporters/__tests__/tests-react-svg-export-image/react-svg-group.tsx +0 -44
- package/src/exporters/__tests__/tests-react-svg-export-image/react-svg-line.tsx +0 -26
- package/src/exporters/__tests__/tests-react-svg-export-image/react-svg-polygon.tsx +0 -32
- package/src/exporters/__tests__/tests-react-svg-export-image/react-svg-polyline.tsx +0 -33
- package/src/exporters/__tests__/tests-react-svg-export-image/react-svg-rectangle.tsx +0 -27
- package/src/exporters/__tests__/tests-react-svg-export-image/react-svg-subimage.tsx +0 -36
- package/src/exporters/__tests__/tests-react-svg-export-image/react-svg-text-bold.tsx +0 -50
- package/src/exporters/__tests__/tests-react-svg-export-image/react-svg-text-growth-directions.tsx +0 -80
- package/src/exporters/__tests__/tests-react-svg-export-image/react-svg-text-italic.tsx +0 -65
- package/src/exporters/__tests__/tests-react-svg-export-image/react-svg-text-sub.tsx +0 -35
- package/src/exporters/__tests__/tests-react-svg-export-image/react-svg-text.tsx +0 -35
- package/src/exporters/__tests__/tests-svg-export-image/_export-test-def.ts +0 -9
- package/src/exporters/__tests__/tests-svg-export-image/svg-binary.tsx +0 -25
- package/src/exporters/__tests__/tests-svg-export-image/svg-dashed-line.ts +0 -28
- package/src/exporters/__tests__/tests-svg-export-image/svg-direction-exception.test.tsx +0 -68
- package/src/exporters/__tests__/tests-svg-export-image/svg-ellipse.ts +0 -27
- package/src/exporters/__tests__/tests-svg-export-image/svg-empty-text.ts +0 -34
- package/src/exporters/__tests__/tests-svg-export-image/svg-group.ts +0 -44
- package/src/exporters/__tests__/tests-svg-export-image/svg-line.ts +0 -26
- package/src/exporters/__tests__/tests-svg-export-image/svg-polygon.ts +0 -32
- package/src/exporters/__tests__/tests-svg-export-image/svg-polyline.ts +0 -33
- package/src/exporters/__tests__/tests-svg-export-image/svg-rectangle.ts +0 -27
- package/src/exporters/__tests__/tests-svg-export-image/svg-text-bold.ts +0 -50
- package/src/exporters/__tests__/tests-svg-export-image/svg-text-growth-directions.ts +0 -80
- package/src/exporters/__tests__/tests-svg-export-image/svg-text-italic.ts +0 -65
- package/src/exporters/__tests__/tests-svg-export-image/svg-text.ts +0 -35
- package/src/model/__tests__/color/export-test-def.ts +0 -11
- package/src/model/__tests__/color/export.test.tsx +0 -13
- package/src/model/__tests__/color/test-defs/color-from-string.ts +0 -46
- package/src/model/__tests__/color/test-defs/color-to-string.ts +0 -35
- package/src/model/__tests__/color/test-defs/color-undefined-2.ts +0 -8
- package/src/model/__tests__/color/test-defs/color-undefined.ts +0 -8
package/lib/model/color.js
CHANGED
|
@@ -1,12 +1,18 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.lightBlue = exports.yellow = exports.white = exports.transparent = exports.red = exports.purple = exports.orange = exports.magenta = exports.lightGray = exports.green = exports.gray = exports.darkGray = exports.cyan = exports.brown = exports.blue = exports.black = void 0;
|
|
4
|
+
exports.fromArgb = fromArgb;
|
|
5
|
+
exports.toString6Hex = toString6Hex;
|
|
6
|
+
exports.fromString = fromString;
|
|
7
|
+
function fromArgb(a, r, g, b) {
|
|
2
8
|
return { a: a, r: r, g: g, b: b };
|
|
3
9
|
}
|
|
4
|
-
|
|
10
|
+
function toString6Hex(color) {
|
|
5
11
|
return (("00" + color.r.toString(16)).substr(-2) +
|
|
6
12
|
("00" + color.g.toString(16)).substr(-2) +
|
|
7
13
|
("00" + color.b.toString(16)).substr(-2));
|
|
8
14
|
}
|
|
9
|
-
|
|
15
|
+
function fromString(s) {
|
|
10
16
|
if (s === null || s === undefined || s.length !== 9 || s[0] !== "#") {
|
|
11
17
|
return undefined;
|
|
12
18
|
}
|
|
@@ -19,20 +25,20 @@ export function fromString(s) {
|
|
|
19
25
|
}
|
|
20
26
|
return fromArgb(a, r, g, b);
|
|
21
27
|
}
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
28
|
+
exports.black = fromArgb(0xff, 0, 0, 0);
|
|
29
|
+
exports.blue = fromArgb(0xff, 0x00, 0x00, 0xff);
|
|
30
|
+
exports.brown = fromArgb(0xff, 0xa5, 0x2a, 0x2a);
|
|
31
|
+
exports.cyan = fromArgb(0xff, 0x00, 0xff, 0xff);
|
|
32
|
+
exports.darkGray = fromArgb(0xff, 0xa9, 0xa9, 0xa9);
|
|
33
|
+
exports.gray = fromArgb(0xff, 0x80, 0x80, 0x80);
|
|
34
|
+
exports.green = fromArgb(0xff, 0x00, 0x80, 0x00);
|
|
35
|
+
exports.lightGray = fromArgb(0xff, 0xd3, 0xd3, 0xd3);
|
|
36
|
+
exports.magenta = fromArgb(0xff, 0xff, 0x00, 0xff);
|
|
37
|
+
exports.orange = fromArgb(0xff, 0xff, 0xa5, 0x00);
|
|
38
|
+
exports.purple = fromArgb(0xff, 0x80, 0x00, 0x80);
|
|
39
|
+
exports.red = fromArgb(0xff, 0xff, 0x00, 0x00);
|
|
40
|
+
exports.transparent = fromArgb(0x00, 0xff, 0xff, 0xff);
|
|
41
|
+
exports.white = fromArgb(0xff, 0xff, 0xff, 0xff);
|
|
42
|
+
exports.yellow = fromArgb(0xff, 0xff, 0xff, 0x00);
|
|
43
|
+
exports.lightBlue = fromArgb(0xff, 0xad, 0xd8, 0xe6);
|
|
38
44
|
//# sourceMappingURL=color.js.map
|
package/lib/model/color.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"color.js","sourceRoot":"","sources":["../../src/model/color.ts"],"names":[],"mappings":"AAOA,
|
|
1
|
+
{"version":3,"file":"color.js","sourceRoot":"","sources":["../../src/model/color.ts"],"names":[],"mappings":";;;AAOA,4BAEC;AAED,oCAMC;AAED,gCAeC;AA3BD,SAAgB,QAAQ,CAAC,CAAS,EAAE,CAAS,EAAE,CAAS,EAAE,CAAS;IACjE,OAAO,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC;AACpC,CAAC;AAED,SAAgB,YAAY,CAAC,KAAY;IACvC,OAAO,CACL,CAAC,IAAI,GAAG,KAAK,CAAC,CAAC,CAAC,Q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I,CAAC,CAAC;AACtD,QAAA,KAAK,GAAU,QAAQ,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;AAChD,QAAA,MAAM,GAAU,QAAQ,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;AACjD,QAAA,SAAS,GAAU,QAAQ,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC"}
|
package/lib/model/component.js
CHANGED
|
@@ -1,13 +1,59 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.createGroup = createGroup;
|
|
37
|
+
exports.createBinaryImage = createBinaryImage;
|
|
38
|
+
exports.createEllipse = createEllipse;
|
|
39
|
+
exports.createLine = createLine;
|
|
40
|
+
exports.createPolyLine = createPolyLine;
|
|
41
|
+
exports.createPolygon = createPolygon;
|
|
42
|
+
exports.createRectangle = createRectangle;
|
|
43
|
+
exports.corners = corners;
|
|
44
|
+
exports.createText = createText;
|
|
45
|
+
exports.createSubImage = createSubImage;
|
|
46
|
+
exports.embedAbstractImage = embedAbstractImage;
|
|
47
|
+
const Point = __importStar(require("./point.js"));
|
|
48
|
+
const DashStyle = __importStar(require("./dash-style.js"));
|
|
49
|
+
function createGroup(name, children) {
|
|
4
50
|
return {
|
|
5
51
|
type: "group",
|
|
6
52
|
name: name,
|
|
7
53
|
children: children,
|
|
8
54
|
};
|
|
9
55
|
}
|
|
10
|
-
|
|
56
|
+
function createBinaryImage(topLeft, bottomRight, format, data, id) {
|
|
11
57
|
return {
|
|
12
58
|
type: "binaryimage",
|
|
13
59
|
topLeft: topLeft,
|
|
@@ -17,7 +63,7 @@ export function createBinaryImage(topLeft, bottomRight, format, data, id) {
|
|
|
17
63
|
id: id,
|
|
18
64
|
};
|
|
19
65
|
}
|
|
20
|
-
|
|
66
|
+
function createEllipse(topLeft, bottomRight, strokeColor, strokeThickness, fillColor, id, strokeDashStyle = DashStyle.solidLine) {
|
|
21
67
|
return {
|
|
22
68
|
type: "ellipse",
|
|
23
69
|
topLeft: topLeft,
|
|
@@ -29,7 +75,7 @@ export function createEllipse(topLeft, bottomRight, strokeColor, strokeThickness
|
|
|
29
75
|
id: id,
|
|
30
76
|
};
|
|
31
77
|
}
|
|
32
|
-
|
|
78
|
+
function createLine(start, end, strokeColor, strokeThickness, id, strokeDashStyle = DashStyle.solidLine) {
|
|
33
79
|
return {
|
|
34
80
|
type: "line",
|
|
35
81
|
start: start,
|
|
@@ -40,7 +86,7 @@ export function createLine(start, end, strokeColor, strokeThickness, id, strokeD
|
|
|
40
86
|
id: id,
|
|
41
87
|
};
|
|
42
88
|
}
|
|
43
|
-
|
|
89
|
+
function createPolyLine(points, strokeColor, strokeThickness, id, strokeDashStyle = DashStyle.solidLine) {
|
|
44
90
|
return {
|
|
45
91
|
type: "polyline",
|
|
46
92
|
points: points,
|
|
@@ -50,7 +96,7 @@ export function createPolyLine(points, strokeColor, strokeThickness, id, strokeD
|
|
|
50
96
|
id: id,
|
|
51
97
|
};
|
|
52
98
|
}
|
|
53
|
-
|
|
99
|
+
function createPolygon(points, strokeColor, strokeThickness, fillColor, id, strokeDashStyle = DashStyle.solidLine) {
|
|
54
100
|
return {
|
|
55
101
|
type: "polygon",
|
|
56
102
|
points: points,
|
|
@@ -61,7 +107,7 @@ export function createPolygon(points, strokeColor, strokeThickness, fillColor, i
|
|
|
61
107
|
id: id,
|
|
62
108
|
};
|
|
63
109
|
}
|
|
64
|
-
|
|
110
|
+
function createRectangle(topLeft, bottomRight, strokeColor, strokeThickness, fillColor, id, strokeDashStyle = DashStyle.solidLine, radius) {
|
|
65
111
|
return {
|
|
66
112
|
type: "rectangle",
|
|
67
113
|
topLeft: topLeft,
|
|
@@ -74,7 +120,7 @@ export function createRectangle(topLeft, bottomRight, strokeColor, strokeThickne
|
|
|
74
120
|
radius,
|
|
75
121
|
};
|
|
76
122
|
}
|
|
77
|
-
|
|
123
|
+
function corners(rectangle) {
|
|
78
124
|
return [
|
|
79
125
|
rectangle.topLeft,
|
|
80
126
|
Point.createPoint(rectangle.bottomRight.x, rectangle.topLeft.y),
|
|
@@ -82,7 +128,7 @@ export function corners(rectangle) {
|
|
|
82
128
|
Point.createPoint(rectangle.topLeft.x, rectangle.bottomRight.y),
|
|
83
129
|
];
|
|
84
130
|
}
|
|
85
|
-
|
|
131
|
+
function createText(position, text, fontFamily, fontSize, textColor, fontWeight, clockwiseRotationDegrees, textAlignment, horizontalGrowthDirection, verticalGrowthDirection, strokeThickness, strokeColor, italic, id) {
|
|
86
132
|
return {
|
|
87
133
|
type: "text",
|
|
88
134
|
position,
|
|
@@ -101,10 +147,10 @@ export function createText(position, text, fontFamily, fontSize, textColor, font
|
|
|
101
147
|
id,
|
|
102
148
|
};
|
|
103
149
|
}
|
|
104
|
-
|
|
150
|
+
function createSubImage(topLeft, image) {
|
|
105
151
|
return { type: "subimage", topLeft, image };
|
|
106
152
|
}
|
|
107
|
-
|
|
153
|
+
function embedAbstractImage(topLeft, name, image) {
|
|
108
154
|
return createSubImage(topLeft, createGroup(name, image.components));
|
|
109
155
|
}
|
|
110
156
|
//# sourceMappingURL=component.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"component.js","sourceRoot":"","sources":["../../src/model/component.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"component.js","sourceRoot":"","sources":["../../src/model/component.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAaA,kCAMC;AA6BD,8CAeC;AAaD,sCAmBC;AAYD,gCAiBC;AAWD,wCAeC;AAYD,sCAiBC;AAcD,0CAqBC;AAED,0BAOC;AA0BD,gCAiCC;AAQD,wCAEC;AAED,gDAEC;AAxSD,kDAAoC;AAEpC,2DAA6C;AAW7C,SAAgB,WAAW,CAAC,IAAY,EAAE,QAA0B;IAClE,OAAO;QACL,IAAI,EAAE,OAAO;QACb,IAAI,EAAE,IAAI;QACV,QAAQ,EAAE,QAAQ;KACnB,CAAC;AACJ,CAAC;AA6BD,SAAgB,iBAAiB,CAC/B,OAAoB,EACpB,WAAwB,EACxB,MAAoB,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AQ;QACR,SAAS;QACT,UAAU;QACV,wBAAwB;QACxB,aAAa;QACb,yBAAyB;QACzB,uBAAuB;QACvB,eAAe;QACf,WAAW;QACX,MAAM;QACN,EAAE;KACH,CAAC;AACJ,CAAC;AAQD,SAAgB,cAAc,CAAC,OAAoB,EAAE,KAAgB;IACnE,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;AAC9C,CAAC;AAED,SAAgB,kBAAkB,CAAC,OAAoB,EAAE,IAAY,EAAE,KAAkC;IACvG,OAAO,cAAc,CAAC,OAAO,EAAE,WAAW,CAAC,IAAI,EAAE,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC;AACtE,CAAC"}
|
package/lib/model/dash-style.js
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.solidLine = void 0;
|
|
4
|
+
exports.createDashStyle = createDashStyle;
|
|
5
|
+
function createDashStyle(dashes, offset = 0) {
|
|
2
6
|
return {
|
|
3
7
|
dashes: dashes,
|
|
4
8
|
offset: offset,
|
|
5
9
|
};
|
|
6
10
|
}
|
|
7
|
-
|
|
11
|
+
exports.solidLine = createDashStyle([]);
|
|
8
12
|
//# sourceMappingURL=dash-style.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dash-style.js","sourceRoot":"","sources":["../../src/model/dash-style.ts"],"names":[],"mappings":"AAKA,
|
|
1
|
+
{"version":3,"file":"dash-style.js","sourceRoot":"","sources":["../../src/model/dash-style.ts"],"names":[],"mappings":";;;AAKA,0CAKC;AALD,SAAgB,eAAe,CAAC,MAA6B,EAAE,SAAiB,CAAC;IAC/E,OAAO;QACL,MAAM,EAAE,MAAM;QACd,MAAM,EAAE,MAAM;KACf,CAAC;AACJ,CAAC;AAEY,QAAA,SAAS,GAAG,eAAe,CAAC,EAAE,CAAC,CAAC"}
|
package/lib/model/index.js
CHANGED
|
@@ -1,7 +1,23 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./abstract-image.js"), exports);
|
|
18
|
+
__exportStar(require("./color.js"), exports);
|
|
19
|
+
__exportStar(require("./component.js"), exports);
|
|
20
|
+
__exportStar(require("./point.js"), exports);
|
|
21
|
+
__exportStar(require("./size.js"), exports);
|
|
22
|
+
__exportStar(require("./dash-style.js"), exports);
|
|
7
23
|
//# sourceMappingURL=index.js.map
|
package/lib/model/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/model/index.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/model/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAoC;AACpC,6CAA2B;AAC3B,iDAA+B;AAC/B,6CAA2B;AAC3B,4CAA0B;AAC1B,kDAAgC"}
|
package/lib/model/point.js
CHANGED
package/lib/model/point.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"point.js","sourceRoot":"","sources":["../../src/model/point.ts"],"names":[],"mappings":"AAKA,
|
|
1
|
+
{"version":3,"file":"point.js","sourceRoot":"","sources":["../../src/model/point.ts"],"names":[],"mappings":";;AAKA,kCAKC;AALD,SAAgB,WAAW,CAAC,CAAS,EAAE,CAAS;IAC9C,OAAO;QACL,CAAC,EAAE,CAAC;QACJ,CAAC,EAAE,CAAC;KACL,CAAC;AACJ,CAAC"}
|
package/lib/model/size.js
CHANGED
package/lib/model/size.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"size.js","sourceRoot":"","sources":["../../src/model/size.ts"],"names":[],"mappings":"AAKA,
|
|
1
|
+
{"version":3,"file":"size.js","sourceRoot":"","sources":["../../src/model/size.ts"],"names":[],"mappings":";;AAKA,gCAKC;AALD,SAAgB,UAAU,CAAC,KAAa,EAAE,MAAc;IACtD,OAAO;QACL,KAAK,EAAE,KAAK;QACZ,MAAM,EAAE,MAAM;KACf,CAAC;AACJ,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "abstract-image",
|
|
3
|
-
"version": "10.0.
|
|
3
|
+
"version": "10.0.4",
|
|
4
4
|
"description": "Dynamically create images using code or JSX and render to any format",
|
|
5
5
|
"repository": "https://github.com/dividab/abstract-visuals/tree/master/packages/abstract-image",
|
|
6
6
|
"main": "lib/index.js",
|
|
7
7
|
"types": "lib/index",
|
|
8
8
|
"license": "MIT",
|
|
9
|
-
"type": "module",
|
|
10
9
|
"exports": {
|
|
11
10
|
".": "./lib/index.js"
|
|
12
11
|
},
|
|
@@ -16,7 +15,8 @@
|
|
|
16
15
|
"package.json",
|
|
17
16
|
"CHANGELOG.md",
|
|
18
17
|
"LICENSE",
|
|
19
|
-
"README.md"
|
|
18
|
+
"README.md",
|
|
19
|
+
"!/**/__tests__"
|
|
20
20
|
],
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"base64-js": "^1.5.1",
|
|
@@ -27,7 +27,8 @@
|
|
|
27
27
|
"@types/base64-js": "^1.3.2",
|
|
28
28
|
"@types/react": "^18.3.3",
|
|
29
29
|
"@types/react-dom": "^18.3.0",
|
|
30
|
+
"vite": "^6.0.1",
|
|
30
31
|
"vitest": "^2.1.6"
|
|
31
32
|
},
|
|
32
|
-
"gitHead": "
|
|
33
|
+
"gitHead": "f5e5031c14f2770c3912e8c0bebdb897e26a22e0"
|
|
33
34
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dxf2d-export-image.test.d.ts","sourceRoot":"","sources":["../../../src/exporters/__tests__/dxf2d-export-image.test.tsx"],"names":[],"mappings":""}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { describe, test, expect } from "vitest";
|
|
2
|
-
import { testDxf2dPolyline } from "./tests-dxf2d-export-image/dxf2d-polyline.js";
|
|
3
|
-
import { testDxf2dRectangle } from "./tests-dxf2d-export-image/dxf2d-rectangle.js";
|
|
4
|
-
import { testDxf2dEllipse } from "./tests-dxf2d-export-image/dxf2d-ellipse.js";
|
|
5
|
-
import { testDxf2dGroup } from "./tests-dxf2d-export-image/dxf2d-group.js";
|
|
6
|
-
import { testDxf2dTextGrowthDirections } from "./tests-dxf2d-export-image/dxf2d-text-growth-directions.js";
|
|
7
|
-
import { testDxf2dLine } from "./tests-dxf2d-export-image/dxf2d-line.js";
|
|
8
|
-
import { testDxf2dPolygon } from "./tests-dxf2d-export-image/dxf2d-polygon.js";
|
|
9
|
-
import { testDxf2dText } from "./tests-dxf2d-export-image/dxf2d-text.js";
|
|
10
|
-
describe("dxf2d-export-image", () => {
|
|
11
|
-
[
|
|
12
|
-
testDxf2dEllipse,
|
|
13
|
-
testDxf2dGroup,
|
|
14
|
-
testDxf2dLine,
|
|
15
|
-
testDxf2dPolygon,
|
|
16
|
-
testDxf2dPolyline,
|
|
17
|
-
testDxf2dRectangle,
|
|
18
|
-
testDxf2dTextGrowthDirections,
|
|
19
|
-
testDxf2dText,
|
|
20
|
-
].forEach((item) => {
|
|
21
|
-
test(item.name, () => {
|
|
22
|
-
expect(item.abstractImage).toEqual(item.expectedImage);
|
|
23
|
-
});
|
|
24
|
-
});
|
|
25
|
-
});
|
|
26
|
-
//# sourceMappingURL=dxf2d-export-image.test.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dxf2d-export-image.test.js","sourceRoot":"","sources":["../../../src/exporters/__tests__/dxf2d-export-image.test.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAChD,OAAO,EAAE,iBAAiB,EAAE,MAAM,8CAA8C,CAAC;AACjF,OAAO,EAAE,kBAAkB,EAAE,MAAM,+CAA+C,CAAC;AACnF,OAAO,EAAE,gBAAgB,EAAE,MAAM,6CAA6C,CAAC;AAC/E,OAAO,EAAE,cAAc,EAAE,MAAM,2CAA2C,CAAC;AAC3E,OAAO,EAAE,6BAA6B,EAAE,MAAM,4DAA4D,CAAC;AAC3G,OAAO,EAAE,aAAa,EAAE,MAAM,0CAA0C,CAAC;AACzE,OAAO,EAAE,gBAAgB,EAAE,MAAM,6CAA6C,CAAC;AAC/E,OAAO,EAAE,aAAa,EAAE,MAAM,0CAA0C,CAAC;AAEzE,QAAQ,CAAC,oBAAoB,EAAE,GAAG,EAAE;IAClC;QACE,gBAAgB;QAChB,cAAc;QACd,aAAa;QACb,gBAAgB;QAChB,iBAAiB;QACjB,kBAAkB;QAClB,6BAA6B;QAC7B,aAAa;KACd,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE;QACjB,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,GAAG,EAAE;YACnB,MAAM,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;QACzD,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"eps-export-image.test.d.ts","sourceRoot":"","sources":["../../../src/exporters/__tests__/eps-export-image.test.tsx"],"names":[],"mappings":""}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { describe, test, expect } from "vitest";
|
|
2
|
-
import { testEpsEllipse } from "./tests-eps-export-image/eps-ellipse.js";
|
|
3
|
-
import { testEpsEmptyText } from "./tests-eps-export-image/eps-empty-text.js";
|
|
4
|
-
import { testEpsGroup } from "./tests-eps-export-image/eps-group.js";
|
|
5
|
-
import { testEpsIsoLatin1Encoding } from "./tests-eps-export-image/eps-text-iso-latin1-encoding.js";
|
|
6
|
-
import { testEpsTextGrowthDirections } from "./tests-eps-export-image/eps-text-growth-directions.js";
|
|
7
|
-
import { testEpsText } from "./tests-eps-export-image/eps-text.js";
|
|
8
|
-
import { testEpsLine } from "./tests-eps-export-image/eps-line.js";
|
|
9
|
-
import { testEpsPolygon } from "./tests-eps-export-image/eps-polygon.js";
|
|
10
|
-
import { testEpsRectangle } from "./tests-eps-export-image/eps-rectangle.js";
|
|
11
|
-
import { testEpsPolyline } from "./tests-eps-export-image/eps-polyline.js";
|
|
12
|
-
describe("eps-export-image", () => {
|
|
13
|
-
[
|
|
14
|
-
testEpsEllipse,
|
|
15
|
-
testEpsEmptyText,
|
|
16
|
-
testEpsGroup,
|
|
17
|
-
testEpsLine,
|
|
18
|
-
testEpsPolygon,
|
|
19
|
-
testEpsPolyline,
|
|
20
|
-
testEpsRectangle,
|
|
21
|
-
testEpsTextGrowthDirections,
|
|
22
|
-
testEpsIsoLatin1Encoding,
|
|
23
|
-
testEpsText,
|
|
24
|
-
].forEach((item) => {
|
|
25
|
-
test(item.name, () => {
|
|
26
|
-
expect(item.abstractImage).toEqual(item.expectedImage);
|
|
27
|
-
});
|
|
28
|
-
});
|
|
29
|
-
});
|
|
30
|
-
//# sourceMappingURL=eps-export-image.test.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"eps-export-image.test.js","sourceRoot":"","sources":["../../../src/exporters/__tests__/eps-export-image.test.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAChD,OAAO,EAAE,cAAc,EAAE,MAAM,yCAAyC,CAAC;AACzE,OAAO,EAAE,gBAAgB,EAAE,MAAM,4CAA4C,CAAC;AAC9E,OAAO,EAAE,YAAY,EAAE,MAAM,uCAAuC,CAAC;AACrE,OAAO,EAAE,wBAAwB,EAAE,MAAM,0DAA0D,CAAC;AACpG,OAAO,EAAE,2BAA2B,EAAE,MAAM,wDAAwD,CAAC;AACrG,OAAO,EAAE,WAAW,EAAE,MAAM,sCAAsC,CAAC;AACnE,OAAO,EAAE,WAAW,EAAE,MAAM,sCAAsC,CAAC;AACnE,OAAO,EAAE,cAAc,EAAE,MAAM,yCAAyC,CAAC;AACzE,OAAO,EAAE,gBAAgB,EAAE,MAAM,2CAA2C,CAAC;AAC7E,OAAO,EAAE,eAAe,EAAE,MAAM,0CAA0C,CAAC;AAE3E,QAAQ,CAAC,kBAAkB,EAAE,GAAG,EAAE;IAChC;QACE,cAAc;QACd,gBAAgB;QAChB,YAAY;QACZ,WAAW;QACX,cAAc;QACd,eAAe;QACf,gBAAgB;QAChB,2BAA2B;QAC3B,wBAAwB;QACxB,WAAW;KACZ,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE;QACjB,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,GAAG,EAAE;YACnB,MAAM,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;QACzD,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"png-export-image.test.d.ts","sourceRoot":"","sources":["../../../src/exporters/__tests__/png-export-image.test.tsx"],"names":[],"mappings":""}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { describe, test, expect } from "vitest";
|
|
2
|
-
import { testPngCreatePng } from "./tests-png-export-image/png-createPNG.js";
|
|
3
|
-
describe("png-export-image", () => {
|
|
4
|
-
[testPngCreatePng].forEach((item) => {
|
|
5
|
-
test(item.name, () => {
|
|
6
|
-
expect(item.abstractImage).toEqual(item.expectedImage);
|
|
7
|
-
});
|
|
8
|
-
});
|
|
9
|
-
});
|
|
10
|
-
//# sourceMappingURL=png-export-image.test.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"png-export-image.test.js","sourceRoot":"","sources":["../../../src/exporters/__tests__/png-export-image.test.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAChD,OAAO,EAAE,gBAAgB,EAAE,MAAM,2CAA2C,CAAC;AAE7E,QAAQ,CAAC,kBAAkB,EAAE,GAAG,EAAE;IAChC,CAAC,gBAAgB,CAAC,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE;QAClC,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,GAAG,EAAE;YACnB,MAAM,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;QACzD,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"react-svg-export-image.test.d.ts","sourceRoot":"","sources":["../../../src/exporters/__tests__/react-svg-export-image.test.tsx"],"names":[],"mappings":""}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { describe, test, expect } from "vitest";
|
|
2
|
-
import { testReactSvgBinaryPng } from "./tests-react-svg-export-image/react-svg-binary-png.js";
|
|
3
|
-
import { testReactSvgBinaryUrl } from "./tests-react-svg-export-image/react-svg-binary-url.js";
|
|
4
|
-
import { testReactSvgBinary } from "./tests-react-svg-export-image/react-svg-binary.js";
|
|
5
|
-
import { testReactSvgCallback } from "./tests-react-svg-export-image/react-svg-callback.js";
|
|
6
|
-
import { testReactSvgBold } from "./tests-react-svg-export-image/react-svg-text-bold.js";
|
|
7
|
-
import { testReactSvgDashedLine } from "./tests-react-svg-export-image/react-svg-dashed-line.js";
|
|
8
|
-
import { testReactSvgEllipse } from "./tests-react-svg-export-image/react-svg-ellipse.js";
|
|
9
|
-
import { testReactSvgEmptyText } from "./tests-react-svg-export-image/react-svg-empty-text.js";
|
|
10
|
-
import { testReactSvgGroup } from "./tests-react-svg-export-image/react-svg-group.js";
|
|
11
|
-
import { testReactSvgLine } from "./tests-react-svg-export-image/react-svg-line.js";
|
|
12
|
-
import { testReactSvgPolygon } from "./tests-react-svg-export-image/react-svg-polygon.js";
|
|
13
|
-
import { testReactSvgPolyline } from "./tests-react-svg-export-image/react-svg-polyline.js";
|
|
14
|
-
import { testReactSvgSubImage } from "./tests-react-svg-export-image/react-svg-subimage.js";
|
|
15
|
-
import { testReactSvgTextGrowthDirections } from "./tests-react-svg-export-image/react-svg-text-growth-directions.js";
|
|
16
|
-
import { testReactSvgItalic } from "./tests-react-svg-export-image/react-svg-text-italic.js";
|
|
17
|
-
import { testReactSvgSub } from "./tests-react-svg-export-image/react-svg-text-sub.js";
|
|
18
|
-
import { testReactSvgText } from "./tests-react-svg-export-image/react-svg-text.js";
|
|
19
|
-
describe("react-svg-export-image", () => {
|
|
20
|
-
[
|
|
21
|
-
testReactSvgBinaryPng,
|
|
22
|
-
testReactSvgBinaryUrl,
|
|
23
|
-
testReactSvgBinary,
|
|
24
|
-
testReactSvgCallback,
|
|
25
|
-
testReactSvgDashedLine,
|
|
26
|
-
testReactSvgEllipse,
|
|
27
|
-
testReactSvgEmptyText,
|
|
28
|
-
testReactSvgGroup,
|
|
29
|
-
testReactSvgLine,
|
|
30
|
-
testReactSvgPolygon,
|
|
31
|
-
testReactSvgPolyline,
|
|
32
|
-
testReactSvgSubImage,
|
|
33
|
-
testReactSvgBold,
|
|
34
|
-
testReactSvgTextGrowthDirections,
|
|
35
|
-
testReactSvgItalic,
|
|
36
|
-
testReactSvgSub,
|
|
37
|
-
testReactSvgText,
|
|
38
|
-
].forEach((item) => {
|
|
39
|
-
test(item.name, () => {
|
|
40
|
-
expect(JSON.stringify(item.abstractImage)).toEqual(item.expectedSerializedJsx);
|
|
41
|
-
});
|
|
42
|
-
});
|
|
43
|
-
});
|
|
44
|
-
//# sourceMappingURL=react-svg-export-image.test.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"react-svg-export-image.test.js","sourceRoot":"","sources":["../../../src/exporters/__tests__/react-svg-export-image.test.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAChD,OAAO,EAAE,qBAAqB,EAAE,MAAM,wDAAwD,CAAC;AAC/F,OAAO,EAAE,qBAAqB,EAAE,MAAM,wDAAwD,CAAC;AAC/F,OAAO,EAAE,kBAAkB,EAAE,MAAM,oDAAoD,CAAC;AACxF,OAAO,EAAE,oBAAoB,EAAE,MAAM,sDAAsD,CAAC;AAC5F,OAAO,EAAE,gBAAgB,EAAE,MAAM,uDAAuD,CAAC;AACzF,OAAO,EAAE,sBAAsB,EAAE,MAAM,yDAAyD,CAAC;AACjG,OAAO,EAAE,mBAAmB,EAAE,MAAM,qDAAqD,CAAC;AAC1F,OAAO,EAAE,qBAAqB,EAAE,MAAM,wDAAwD,CAAC;AAC/F,OAAO,EAAE,iBAAiB,EAAE,MAAM,mDAAmD,CAAC;AACtF,OAAO,EAAE,gBAAgB,EAAE,MAAM,kDAAkD,CAAC;AACpF,OAAO,EAAE,mBAAmB,EAAE,MAAM,qDAAqD,CAAC;AAC1F,OAAO,EAAE,oBAAoB,EAAE,MAAM,sDAAsD,CAAC;AAC5F,OAAO,EAAE,oBAAoB,EAAE,MAAM,sDAAsD,CAAC;AAC5F,OAAO,EAAE,gCAAgC,EAAE,MAAM,oEAAoE,CAAC;AACtH,OAAO,EAAE,kBAAkB,EAAE,MAAM,yDAAyD,CAAC;AAC7F,OAAO,EAAE,eAAe,EAAE,MAAM,sDAAsD,CAAC;AACvF,OAAO,EAAE,gBAAgB,EAAE,MAAM,kDAAkD,CAAC;AAEpF,QAAQ,CAAC,wBAAwB,EAAE,GAAG,EAAE;IACtC;QACE,qBAAqB;QACrB,qBAAqB;QACrB,kBAAkB;QAClB,oBAAoB;QACpB,sBAAsB;QACtB,mBAAmB;QACnB,qBAAqB;QACrB,iBAAiB;QACjB,gBAAgB;QAChB,mBAAmB;QACnB,oBAAoB;QACpB,oBAAoB;QACpB,gBAAgB;QAChB,gCAAgC;QAChC,kBAAkB;QAClB,eAAe;QACf,gBAAgB;KACjB,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE;QACjB,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,GAAG,EAAE;YACnB,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,qBAAqB,CAAC,CAAC;QACjF,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"svg-export-image.test.d.ts","sourceRoot":"","sources":["../../../src/exporters/__tests__/svg-export-image.test.tsx"],"names":[],"mappings":""}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { describe, test, expect } from "vitest";
|
|
2
|
-
import { testSvgBinary } from "./tests-svg-export-image/svg-binary.js";
|
|
3
|
-
import { testSvgDashedLine } from "./tests-svg-export-image/svg-dashed-line.js";
|
|
4
|
-
import { testSvgEllpise } from "./tests-svg-export-image/svg-ellipse.js";
|
|
5
|
-
import { testSvgEmptyText } from "./tests-svg-export-image/svg-empty-text.js";
|
|
6
|
-
import { testSvgGroup } from "./tests-svg-export-image/svg-group.js";
|
|
7
|
-
import { testSvgLine } from "./tests-svg-export-image/svg-line.js";
|
|
8
|
-
import { testSvgPolygon } from "./tests-svg-export-image/svg-polygon.js";
|
|
9
|
-
import { testSvgPolyline } from "./tests-svg-export-image/svg-polyline.js";
|
|
10
|
-
import { testSvgRectangle } from "./tests-svg-export-image/svg-rectangle.js";
|
|
11
|
-
import { testSvgTextBold } from "./tests-svg-export-image/svg-text-bold.js";
|
|
12
|
-
import { testSvgTextGrowthDirections } from "./tests-svg-export-image/svg-text-growth-directions.js";
|
|
13
|
-
import { testSvgTextItalic } from "./tests-svg-export-image/svg-text-italic.js";
|
|
14
|
-
import { testSvgText } from "./tests-svg-export-image/svg-text.js";
|
|
15
|
-
describe("svg-export-image", () => {
|
|
16
|
-
[
|
|
17
|
-
testSvgBinary,
|
|
18
|
-
testSvgDashedLine,
|
|
19
|
-
testSvgDashedLine,
|
|
20
|
-
testSvgEllpise,
|
|
21
|
-
testSvgEmptyText,
|
|
22
|
-
testSvgGroup,
|
|
23
|
-
testSvgLine,
|
|
24
|
-
testSvgPolygon,
|
|
25
|
-
testSvgPolyline,
|
|
26
|
-
testSvgRectangle,
|
|
27
|
-
testSvgTextBold,
|
|
28
|
-
testSvgTextGrowthDirections,
|
|
29
|
-
testSvgTextItalic,
|
|
30
|
-
testSvgText,
|
|
31
|
-
].forEach((item) => {
|
|
32
|
-
test(item.name, () => {
|
|
33
|
-
expect(item.abstractImage).toEqual(item.expectedImage);
|
|
34
|
-
});
|
|
35
|
-
});
|
|
36
|
-
});
|
|
37
|
-
//# sourceMappingURL=svg-export-image.test.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"svg-export-image.test.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C;QACzD,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Defines a data-type that represents a single test for the Docx render function
|
|
3
|
-
*/
|
|
4
|
-
export type ExportTestDef = {
|
|
5
|
-
readonly name: string;
|
|
6
|
-
readonly abstractImage: string;
|
|
7
|
-
readonly expectedImage: string;
|
|
8
|
-
};
|
|
9
|
-
//# sourceMappingURL=_export-test-def.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"_export-test-def.d.ts","sourceRoot":"","sources":["../../../../src/exporters/__tests__/tests-dxf2d-export-image/_export-test-def.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,MAAM,MAAM,aAAa,GAAG;IAC1B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;IAC/B,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;CAChC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"_export-test-def.js","sourceRoot":"","sources":["../../../../src/exporters/__tests__/tests-dxf2d-export-image/_export-test-def.ts"],"names":[],"mappings":"AAAA;;GAEG"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dxf2d-ellipse.d.ts","sourceRoot":"","sources":["../../../../src/exporters/__tests__/tests-dxf2d-export-image/dxf2d-ellipse.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAqBtD,eAAO,MAAM,gBAAgB,EAAE,aA+X9B,CAAC"}
|