abstract-image 9.0.2 → 10.0.2
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 +4 -0
- package/lib/__stories__/react-svg-export/example-1.stories.js +4 -40
- package/lib/__stories__/react-svg-export/example-1.stories.js.map +1 -1
- package/lib/__stories__/svg-export/example-1.stories.js +4 -40
- package/lib/__stories__/svg-export/example-1.stories.js.map +1 -1
- package/lib/exporters/__tests__/dxf2d-export-image.test.d.ts +2 -0
- package/lib/exporters/__tests__/dxf2d-export-image.test.d.ts.map +1 -0
- package/lib/exporters/__tests__/dxf2d-export-image.test.js +26 -0
- package/lib/exporters/__tests__/dxf2d-export-image.test.js.map +1 -0
- package/lib/exporters/__tests__/eps-export-image.test.d.ts +2 -0
- package/lib/exporters/__tests__/eps-export-image.test.d.ts.map +1 -0
- package/lib/exporters/__tests__/eps-export-image.test.js +30 -0
- package/lib/exporters/__tests__/eps-export-image.test.js.map +1 -0
- package/lib/exporters/__tests__/png-export-image.test.d.ts +2 -0
- package/lib/exporters/__tests__/png-export-image.test.d.ts.map +1 -0
- package/lib/exporters/__tests__/png-export-image.test.js +10 -0
- package/lib/exporters/__tests__/png-export-image.test.js.map +1 -0
- package/lib/exporters/__tests__/react-svg-export-image.test.d.ts +2 -0
- package/lib/exporters/__tests__/react-svg-export-image.test.d.ts.map +1 -0
- package/lib/exporters/__tests__/react-svg-export-image.test.js +44 -0
- package/lib/exporters/__tests__/react-svg-export-image.test.js.map +1 -0
- package/lib/exporters/__tests__/svg-export-image.test.d.ts +2 -0
- package/lib/exporters/__tests__/svg-export-image.test.d.ts.map +1 -0
- package/lib/exporters/__tests__/svg-export-image.test.js +37 -0
- package/lib/exporters/__tests__/svg-export-image.test.js.map +1 -0
- package/lib/exporters/__tests__/{dxf2d-export-image/export-test-def.d.ts → tests-dxf2d-export-image/_export-test-def.d.ts} +1 -3
- package/lib/exporters/__tests__/tests-dxf2d-export-image/_export-test-def.d.ts.map +1 -0
- package/lib/exporters/__tests__/tests-dxf2d-export-image/_export-test-def.js +5 -0
- package/lib/exporters/__tests__/tests-dxf2d-export-image/_export-test-def.js.map +1 -0
- package/lib/exporters/__tests__/tests-dxf2d-export-image/dxf2d-ellipse.d.ts +3 -0
- package/lib/exporters/__tests__/tests-dxf2d-export-image/dxf2d-ellipse.d.ts.map +1 -0
- package/lib/exporters/__tests__/{dxf2d-export-image/test-defs → tests-dxf2d-export-image}/dxf2d-ellipse.js +2 -38
- package/lib/exporters/__tests__/tests-dxf2d-export-image/dxf2d-ellipse.js.map +1 -0
- package/lib/exporters/__tests__/tests-dxf2d-export-image/dxf2d-group.d.ts +3 -0
- package/lib/exporters/__tests__/tests-dxf2d-export-image/dxf2d-group.d.ts.map +1 -0
- package/lib/exporters/__tests__/tests-dxf2d-export-image/dxf2d-group.js +138 -0
- package/lib/exporters/__tests__/tests-dxf2d-export-image/dxf2d-group.js.map +1 -0
- package/lib/exporters/__tests__/tests-dxf2d-export-image/dxf2d-line.d.ts +3 -0
- package/lib/exporters/__tests__/tests-dxf2d-export-image/dxf2d-line.d.ts.map +1 -0
- package/lib/exporters/__tests__/tests-dxf2d-export-image/dxf2d-line.js +67 -0
- package/lib/exporters/__tests__/tests-dxf2d-export-image/dxf2d-line.js.map +1 -0
- package/lib/exporters/__tests__/tests-dxf2d-export-image/dxf2d-polygon.d.ts +3 -0
- package/lib/exporters/__tests__/tests-dxf2d-export-image/dxf2d-polygon.d.ts.map +1 -0
- package/lib/exporters/__tests__/tests-dxf2d-export-image/dxf2d-polygon.js +101 -0
- package/lib/exporters/__tests__/tests-dxf2d-export-image/dxf2d-polygon.js.map +1 -0
- package/lib/exporters/__tests__/tests-dxf2d-export-image/dxf2d-polyline.d.ts +3 -0
- package/lib/exporters/__tests__/tests-dxf2d-export-image/dxf2d-polyline.d.ts.map +1 -0
- package/lib/exporters/__tests__/tests-dxf2d-export-image/dxf2d-polyline.js +91 -0
- package/lib/exporters/__tests__/tests-dxf2d-export-image/dxf2d-polyline.js.map +1 -0
- package/lib/exporters/__tests__/tests-dxf2d-export-image/dxf2d-rectangle.d.ts +3 -0
- package/lib/exporters/__tests__/tests-dxf2d-export-image/dxf2d-rectangle.d.ts.map +1 -0
- package/lib/exporters/__tests__/tests-dxf2d-export-image/dxf2d-rectangle.js +111 -0
- package/lib/exporters/__tests__/tests-dxf2d-export-image/dxf2d-rectangle.js.map +1 -0
- package/lib/exporters/__tests__/tests-dxf2d-export-image/dxf2d-text-growth-directions.d.ts +3 -0
- package/lib/exporters/__tests__/tests-dxf2d-export-image/dxf2d-text-growth-directions.d.ts.map +1 -0
- package/lib/exporters/__tests__/tests-dxf2d-export-image/dxf2d-text-growth-directions.js +150 -0
- package/lib/exporters/__tests__/tests-dxf2d-export-image/dxf2d-text-growth-directions.js.map +1 -0
- package/lib/exporters/__tests__/tests-dxf2d-export-image/dxf2d-text.d.ts +3 -0
- package/lib/exporters/__tests__/tests-dxf2d-export-image/dxf2d-text.d.ts.map +1 -0
- package/lib/exporters/__tests__/tests-dxf2d-export-image/dxf2d-text.js +75 -0
- package/lib/exporters/__tests__/tests-dxf2d-export-image/dxf2d-text.js.map +1 -0
- package/lib/exporters/__tests__/{eps-export-image/export-test-def.d.ts → tests-eps-export-image/_export-test-def.d.ts} +1 -3
- package/lib/exporters/__tests__/tests-eps-export-image/_export-test-def.d.ts.map +1 -0
- package/lib/exporters/__tests__/tests-eps-export-image/_export-test-def.js +5 -0
- package/lib/exporters/__tests__/tests-eps-export-image/_export-test-def.js.map +1 -0
- package/lib/exporters/__tests__/tests-eps-export-image/eps-ellipse.d.ts +3 -0
- package/lib/exporters/__tests__/tests-eps-export-image/eps-ellipse.d.ts.map +1 -0
- package/lib/exporters/__tests__/tests-eps-export-image/eps-ellipse.js +36 -0
- package/lib/exporters/__tests__/tests-eps-export-image/eps-ellipse.js.map +1 -0
- package/lib/exporters/__tests__/tests-eps-export-image/eps-empty-text.d.ts +3 -0
- package/lib/exporters/__tests__/tests-eps-export-image/eps-empty-text.d.ts.map +1 -0
- package/lib/exporters/__tests__/tests-eps-export-image/eps-empty-text.js +38 -0
- package/lib/exporters/__tests__/tests-eps-export-image/eps-empty-text.js.map +1 -0
- package/lib/exporters/__tests__/tests-eps-export-image/eps-group.d.ts +3 -0
- package/lib/exporters/__tests__/tests-eps-export-image/eps-group.d.ts.map +1 -0
- package/lib/exporters/__tests__/tests-eps-export-image/eps-group.js +46 -0
- package/lib/exporters/__tests__/tests-eps-export-image/eps-group.js.map +1 -0
- package/lib/exporters/__tests__/tests-eps-export-image/eps-line.d.ts +3 -0
- package/lib/exporters/__tests__/tests-eps-export-image/eps-line.d.ts.map +1 -0
- package/lib/exporters/__tests__/tests-eps-export-image/eps-line.js +32 -0
- package/lib/exporters/__tests__/tests-eps-export-image/eps-line.js.map +1 -0
- package/lib/exporters/__tests__/tests-eps-export-image/eps-polygon.d.ts +3 -0
- package/lib/exporters/__tests__/tests-eps-export-image/eps-polygon.d.ts.map +1 -0
- package/lib/exporters/__tests__/tests-eps-export-image/eps-polygon.js +52 -0
- package/lib/exporters/__tests__/tests-eps-export-image/eps-polygon.js.map +1 -0
- package/lib/exporters/__tests__/tests-eps-export-image/eps-polyline.d.ts +3 -0
- package/lib/exporters/__tests__/tests-eps-export-image/eps-polyline.d.ts.map +1 -0
- package/lib/exporters/__tests__/tests-eps-export-image/eps-polyline.js +46 -0
- package/lib/exporters/__tests__/tests-eps-export-image/eps-polyline.js.map +1 -0
- package/lib/exporters/__tests__/tests-eps-export-image/eps-rectangle.d.ts +3 -0
- package/lib/exporters/__tests__/tests-eps-export-image/eps-rectangle.d.ts.map +1 -0
- package/lib/exporters/__tests__/tests-eps-export-image/eps-rectangle.js +32 -0
- package/lib/exporters/__tests__/tests-eps-export-image/eps-rectangle.js.map +1 -0
- package/lib/exporters/__tests__/tests-eps-export-image/eps-text-growth-directions.d.ts +3 -0
- package/lib/exporters/__tests__/tests-eps-export-image/eps-text-growth-directions.d.ts.map +1 -0
- package/lib/exporters/__tests__/{eps-export-image/test-defs → tests-eps-export-image}/eps-text-growth-directions.js +2 -38
- package/lib/exporters/__tests__/tests-eps-export-image/eps-text-growth-directions.js.map +1 -0
- package/lib/exporters/__tests__/tests-eps-export-image/eps-text-iso-latin1-encoding.d.ts +3 -0
- package/lib/exporters/__tests__/tests-eps-export-image/eps-text-iso-latin1-encoding.d.ts.map +1 -0
- package/lib/exporters/__tests__/tests-eps-export-image/eps-text-iso-latin1-encoding.js +49 -0
- package/lib/exporters/__tests__/tests-eps-export-image/eps-text-iso-latin1-encoding.js.map +1 -0
- package/lib/exporters/__tests__/tests-eps-export-image/eps-text.d.ts +3 -0
- package/lib/exporters/__tests__/tests-eps-export-image/eps-text.d.ts.map +1 -0
- package/lib/exporters/__tests__/tests-eps-export-image/eps-text.js +38 -0
- package/lib/exporters/__tests__/tests-eps-export-image/eps-text.js.map +1 -0
- package/lib/exporters/__tests__/{png-export-image/export-test-def.d.ts → tests-png-export-image/_export-test-def.d.ts} +1 -3
- package/lib/exporters/__tests__/tests-png-export-image/_export-test-def.d.ts.map +1 -0
- package/lib/exporters/__tests__/tests-png-export-image/_export-test-def.js +5 -0
- package/lib/exporters/__tests__/tests-png-export-image/_export-test-def.js.map +1 -0
- package/lib/exporters/__tests__/tests-png-export-image/png-createPNG.d.ts +3 -0
- package/lib/exporters/__tests__/tests-png-export-image/png-createPNG.d.ts.map +1 -0
- package/lib/exporters/__tests__/{png-export-image/test-defs → tests-png-export-image}/png-createPNG.js +2 -38
- package/lib/exporters/__tests__/tests-png-export-image/png-createPNG.js.map +1 -0
- package/lib/exporters/__tests__/tests-png-export-image/png-unsupported.test.d.ts.map +1 -0
- package/lib/exporters/__tests__/{exception → tests-png-export-image}/png-unsupported.test.js +1 -2
- package/lib/exporters/__tests__/tests-png-export-image/png-unsupported.test.js.map +1 -0
- package/lib/exporters/__tests__/{react-svg-export-image/export-test-def.d.ts → tests-react-svg-export-image/_export-test-def.d.ts} +1 -3
- package/lib/exporters/__tests__/tests-react-svg-export-image/_export-test-def.d.ts.map +1 -0
- package/lib/exporters/__tests__/tests-react-svg-export-image/_export-test-def.js +5 -0
- package/lib/exporters/__tests__/tests-react-svg-export-image/_export-test-def.js.map +1 -0
- package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-binary-png.d.ts +3 -0
- package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-binary-png.d.ts.map +1 -0
- package/lib/exporters/__tests__/{react-svg-export-image/test-defs → tests-react-svg-export-image}/react-svg-binary-png.js +2 -38
- package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-binary-png.js.map +1 -0
- package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-binary-url.d.ts +3 -0
- package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-binary-url.d.ts.map +1 -0
- package/lib/exporters/__tests__/{react-svg-export-image/test-defs → tests-react-svg-export-image}/react-svg-binary-url.js +2 -38
- package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-binary-url.js.map +1 -0
- package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-binary.d.ts +3 -0
- package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-binary.d.ts.map +1 -0
- package/lib/exporters/__tests__/{react-svg-export-image/test-defs → tests-react-svg-export-image}/react-svg-binary.js +2 -38
- package/lib/exporters/__tests__/{svg-export-image/test-defs/svg-binary.js.map → tests-react-svg-export-image/react-svg-binary.js.map} +1 -1
- package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-callback.d.ts +3 -0
- package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-callback.d.ts.map +1 -0
- package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-callback.js +34 -0
- package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-callback.js.map +1 -0
- package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-dashed-line.d.ts +3 -0
- package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-dashed-line.d.ts.map +1 -0
- package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-dashed-line.js +12 -0
- package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-dashed-line.js.map +1 -0
- package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-direction-exception.test.d.ts.map +1 -0
- package/lib/exporters/__tests__/{exception → tests-react-svg-export-image}/react-svg-direction-exception.test.js +1 -2
- package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-direction-exception.test.js.map +1 -0
- package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-ellipse.d.ts +3 -0
- package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-ellipse.d.ts.map +1 -0
- package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-ellipse.js +12 -0
- package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-ellipse.js.map +1 -0
- package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-empty-text.d.ts +3 -0
- package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-empty-text.d.ts.map +1 -0
- package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-empty-text.js +12 -0
- package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-empty-text.js.map +1 -0
- package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-group.d.ts +3 -0
- package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-group.d.ts.map +1 -0
- package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-group.js +15 -0
- package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-group.js.map +1 -0
- package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-line.d.ts +3 -0
- package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-line.d.ts.map +1 -0
- package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-line.js +12 -0
- package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-line.js.map +1 -0
- package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-polygon.d.ts +3 -0
- package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-polygon.d.ts.map +1 -0
- package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-polygon.js +18 -0
- package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-polygon.js.map +1 -0
- package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-polyline.d.ts +3 -0
- package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-polyline.d.ts.map +1 -0
- package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-polyline.js +20 -0
- package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-polyline.js.map +1 -0
- package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-rectangle.d.ts +3 -0
- package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-rectangle.d.ts.map +1 -0
- package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-rectangle.js +12 -0
- package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-rectangle.js.map +1 -0
- package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-subimage.d.ts +3 -0
- package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-subimage.d.ts.map +1 -0
- package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-subimage.js +11 -0
- package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-subimage.js.map +1 -0
- package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-text-bold.d.ts +3 -0
- package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-text-bold.d.ts.map +1 -0
- package/lib/exporters/__tests__/{react-svg-export-image/test-defs → tests-react-svg-export-image}/react-svg-text-bold.js +2 -38
- package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-text-bold.js.map +1 -0
- package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-text-growth-directions.d.ts +3 -0
- package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-text-growth-directions.d.ts.map +1 -0
- package/lib/exporters/__tests__/{react-svg-export-image/test-defs → tests-react-svg-export-image}/react-svg-text-growth-directions.js +2 -38
- package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-text-growth-directions.js.map +1 -0
- package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-text-italic.d.ts +3 -0
- package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-text-italic.d.ts.map +1 -0
- package/lib/exporters/__tests__/{react-svg-export-image/test-defs → tests-react-svg-export-image}/react-svg-text-italic.js +2 -38
- package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-text-italic.js.map +1 -0
- package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-text-sub.d.ts +3 -0
- package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-text-sub.d.ts.map +1 -0
- package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-text-sub.js +12 -0
- package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-text-sub.js.map +1 -0
- package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-text.d.ts +3 -0
- package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-text.d.ts.map +1 -0
- package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-text.js +12 -0
- package/lib/exporters/__tests__/tests-react-svg-export-image/react-svg-text.js.map +1 -0
- package/lib/exporters/__tests__/{svg-export-image/export-test-def.d.ts → tests-svg-export-image/_export-test-def.d.ts} +1 -3
- package/lib/exporters/__tests__/tests-svg-export-image/_export-test-def.d.ts.map +1 -0
- package/lib/exporters/__tests__/tests-svg-export-image/_export-test-def.js +5 -0
- package/lib/exporters/__tests__/tests-svg-export-image/_export-test-def.js.map +1 -0
- package/lib/exporters/__tests__/tests-svg-export-image/svg-binary.d.ts +3 -0
- package/lib/exporters/__tests__/tests-svg-export-image/svg-binary.d.ts.map +1 -0
- package/lib/exporters/__tests__/{svg-export-image/test-defs → tests-svg-export-image}/svg-binary.js +2 -38
- package/lib/exporters/__tests__/tests-svg-export-image/svg-binary.js.map +1 -0
- package/lib/exporters/__tests__/tests-svg-export-image/svg-dashed-line.d.ts +3 -0
- package/lib/exporters/__tests__/tests-svg-export-image/svg-dashed-line.d.ts.map +1 -0
- package/lib/exporters/__tests__/tests-svg-export-image/svg-dashed-line.js +12 -0
- package/lib/exporters/__tests__/tests-svg-export-image/svg-dashed-line.js.map +1 -0
- package/lib/exporters/__tests__/tests-svg-export-image/svg-direction-exception.test.d.ts.map +1 -0
- package/lib/exporters/__tests__/{exception → tests-svg-export-image}/svg-direction-exception.test.js +1 -2
- package/lib/exporters/__tests__/tests-svg-export-image/svg-direction-exception.test.js.map +1 -0
- package/lib/exporters/__tests__/tests-svg-export-image/svg-ellipse.d.ts +3 -0
- package/lib/exporters/__tests__/tests-svg-export-image/svg-ellipse.d.ts.map +1 -0
- package/lib/exporters/__tests__/tests-svg-export-image/svg-ellipse.js +12 -0
- package/lib/exporters/__tests__/tests-svg-export-image/svg-ellipse.js.map +1 -0
- package/lib/exporters/__tests__/tests-svg-export-image/svg-empty-text.d.ts +3 -0
- package/lib/exporters/__tests__/tests-svg-export-image/svg-empty-text.d.ts.map +1 -0
- package/lib/exporters/__tests__/tests-svg-export-image/svg-empty-text.js +12 -0
- package/lib/exporters/__tests__/tests-svg-export-image/svg-empty-text.js.map +1 -0
- package/lib/exporters/__tests__/tests-svg-export-image/svg-group.d.ts +3 -0
- package/lib/exporters/__tests__/tests-svg-export-image/svg-group.d.ts.map +1 -0
- package/lib/exporters/__tests__/tests-svg-export-image/svg-group.js +15 -0
- package/lib/exporters/__tests__/tests-svg-export-image/svg-group.js.map +1 -0
- package/lib/exporters/__tests__/tests-svg-export-image/svg-line.d.ts +3 -0
- package/lib/exporters/__tests__/tests-svg-export-image/svg-line.d.ts.map +1 -0
- package/lib/exporters/__tests__/tests-svg-export-image/svg-line.js +12 -0
- package/lib/exporters/__tests__/tests-svg-export-image/svg-line.js.map +1 -0
- package/lib/exporters/__tests__/tests-svg-export-image/svg-polygon.d.ts +3 -0
- package/lib/exporters/__tests__/tests-svg-export-image/svg-polygon.d.ts.map +1 -0
- package/lib/exporters/__tests__/tests-svg-export-image/svg-polygon.js +18 -0
- package/lib/exporters/__tests__/tests-svg-export-image/svg-polygon.js.map +1 -0
- package/lib/exporters/__tests__/tests-svg-export-image/svg-polyline.d.ts +3 -0
- package/lib/exporters/__tests__/tests-svg-export-image/svg-polyline.d.ts.map +1 -0
- package/lib/exporters/__tests__/tests-svg-export-image/svg-polyline.js +20 -0
- package/lib/exporters/__tests__/tests-svg-export-image/svg-polyline.js.map +1 -0
- package/lib/exporters/__tests__/tests-svg-export-image/svg-rectangle.d.ts +3 -0
- package/lib/exporters/__tests__/tests-svg-export-image/svg-rectangle.d.ts.map +1 -0
- package/lib/exporters/__tests__/tests-svg-export-image/svg-rectangle.js +12 -0
- package/lib/exporters/__tests__/tests-svg-export-image/svg-rectangle.js.map +1 -0
- package/lib/exporters/__tests__/tests-svg-export-image/svg-text-bold.d.ts +3 -0
- package/lib/exporters/__tests__/tests-svg-export-image/svg-text-bold.d.ts.map +1 -0
- package/lib/exporters/__tests__/{svg-export-image/test-defs → tests-svg-export-image}/svg-text-bold.js +2 -38
- package/lib/exporters/__tests__/tests-svg-export-image/svg-text-bold.js.map +1 -0
- package/lib/exporters/__tests__/tests-svg-export-image/svg-text-growth-directions.d.ts +3 -0
- package/lib/exporters/__tests__/tests-svg-export-image/svg-text-growth-directions.d.ts.map +1 -0
- package/lib/exporters/__tests__/{svg-export-image/test-defs → tests-svg-export-image}/svg-text-growth-directions.js +2 -38
- package/lib/exporters/__tests__/tests-svg-export-image/svg-text-growth-directions.js.map +1 -0
- package/lib/exporters/__tests__/tests-svg-export-image/svg-text-italic.d.ts +3 -0
- package/lib/exporters/__tests__/tests-svg-export-image/svg-text-italic.d.ts.map +1 -0
- package/lib/exporters/__tests__/{svg-export-image/test-defs → tests-svg-export-image}/svg-text-italic.js +2 -38
- package/lib/exporters/__tests__/tests-svg-export-image/svg-text-italic.js.map +1 -0
- package/lib/exporters/__tests__/tests-svg-export-image/svg-text.d.ts +3 -0
- package/lib/exporters/__tests__/tests-svg-export-image/svg-text.d.ts.map +1 -0
- package/lib/exporters/__tests__/tests-svg-export-image/svg-text.js +12 -0
- package/lib/exporters/__tests__/tests-svg-export-image/svg-text.js.map +1 -0
- package/lib/exporters/dxf2d-export-image.d.ts +1 -1
- package/lib/exporters/dxf2d-export-image.d.ts.map +1 -1
- package/lib/exporters/dxf2d-export-image.js +4 -40
- package/lib/exporters/dxf2d-export-image.js.map +1 -1
- package/lib/exporters/eps-export-image.d.ts +1 -1
- package/lib/exporters/eps-export-image.d.ts.map +1 -1
- package/lib/exporters/eps-export-image.js +1 -4
- package/lib/exporters/eps-export-image.js.map +1 -1
- package/lib/exporters/index.d.ts +3 -3
- package/lib/exporters/index.d.ts.map +1 -1
- package/lib/exporters/index.js +3 -19
- package/lib/exporters/index.js.map +1 -1
- package/lib/exporters/png-export-image.d.ts +1 -1
- package/lib/exporters/png-export-image.d.ts.map +1 -1
- package/lib/exporters/png-export-image.js +1 -4
- package/lib/exporters/png-export-image.js.map +1 -1
- package/lib/exporters/react-svg-export-image.d.ts +1 -1
- package/lib/exporters/react-svg-export-image.d.ts.map +1 -1
- package/lib/exporters/react-svg-export-image.js +11 -43
- package/lib/exporters/react-svg-export-image.js.map +1 -1
- package/lib/exporters/svg-export-image.d.ts +1 -1
- package/lib/exporters/svg-export-image.d.ts.map +1 -1
- package/lib/exporters/svg-export-image.js +54 -43
- package/lib/exporters/svg-export-image.js.map +1 -1
- package/lib/index.d.ts +11 -11
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +11 -27
- package/lib/index.js.map +1 -1
- package/lib/model/__tests__/color/export-test-def.d.ts +1 -3
- package/lib/model/__tests__/color/export-test-def.d.ts.map +1 -1
- package/lib/model/__tests__/color/export-test-def.js +1 -2
- package/lib/model/__tests__/color/export-test-def.js.map +1 -1
- package/lib/model/__tests__/color/export.test.d.ts +1 -2
- package/lib/model/__tests__/color/export.test.d.ts.map +1 -1
- package/lib/model/__tests__/color/export.test.js +7 -12
- package/lib/model/__tests__/color/export.test.js.map +1 -1
- package/lib/model/__tests__/color/test-defs/color-from-string.d.ts +2 -2
- package/lib/model/__tests__/color/test-defs/color-from-string.d.ts.map +1 -1
- package/lib/model/__tests__/color/test-defs/color-from-string.js +2 -38
- package/lib/model/__tests__/color/test-defs/color-from-string.js.map +1 -1
- package/lib/model/__tests__/color/test-defs/color-to-string.d.ts +2 -2
- package/lib/model/__tests__/color/test-defs/color-to-string.d.ts.map +1 -1
- package/lib/model/__tests__/color/test-defs/color-to-string.js +2 -38
- package/lib/model/__tests__/color/test-defs/color-to-string.js.map +1 -1
- package/lib/model/__tests__/color/test-defs/color-undefined-2.d.ts +2 -2
- package/lib/model/__tests__/color/test-defs/color-undefined-2.d.ts.map +1 -1
- package/lib/model/__tests__/color/test-defs/color-undefined-2.js +2 -38
- package/lib/model/__tests__/color/test-defs/color-undefined-2.js.map +1 -1
- package/lib/model/__tests__/color/test-defs/color-undefined.d.ts +2 -2
- package/lib/model/__tests__/color/test-defs/color-undefined.d.ts.map +1 -1
- package/lib/model/__tests__/color/test-defs/color-undefined.js +2 -38
- package/lib/model/__tests__/color/test-defs/color-undefined.js.map +1 -1
- package/lib/model/abstract-image.d.ts +4 -4
- package/lib/model/abstract-image.d.ts.map +1 -1
- package/lib/model/abstract-image.js +2 -5
- package/lib/model/abstract-image.js.map +1 -1
- package/lib/model/color.js +19 -25
- package/lib/model/color.js.map +1 -1
- package/lib/model/component.d.ts +4 -4
- package/lib/model/component.d.ts.map +1 -1
- package/lib/model/component.js +13 -59
- package/lib/model/component.js.map +1 -1
- package/lib/model/dash-style.js +2 -6
- package/lib/model/dash-style.js.map +1 -1
- package/lib/model/index.d.ts +6 -6
- package/lib/model/index.d.ts.map +1 -1
- package/lib/model/index.js +6 -22
- package/lib/model/index.js.map +1 -1
- package/lib/model/point.js +1 -4
- package/lib/model/point.js.map +1 -1
- package/lib/model/size.js +1 -4
- package/lib/model/size.js.map +1 -1
- package/package.json +8 -4
- package/src/__stories__/react-svg-export/example-1.stories.tsx +1 -1
- package/src/__stories__/svg-export/example-1.stories.tsx +1 -1
- package/src/exporters/__tests__/dxf2d-export-image.test.tsx +26 -0
- package/src/exporters/__tests__/eps-export-image.test.tsx +30 -0
- package/src/exporters/__tests__/png-export-image.test.tsx +10 -0
- package/src/exporters/__tests__/react-svg-export-image.test.tsx +44 -0
- package/src/exporters/__tests__/svg-export-image.test.tsx +37 -0
- package/src/exporters/__tests__/{dxf2d-export-image/export-test-def.ts → tests-dxf2d-export-image/_export-test-def.ts} +0 -2
- package/src/exporters/__tests__/{dxf2d-export-image/test-defs → tests-dxf2d-export-image}/dxf2d-ellipse.ts +3 -3
- package/src/exporters/__tests__/{dxf2d-export-image/test-defs → tests-dxf2d-export-image}/dxf2d-group.ts +3 -3
- package/src/exporters/__tests__/{dxf2d-export-image/test-defs → tests-dxf2d-export-image}/dxf2d-line.ts +3 -3
- package/src/exporters/__tests__/{dxf2d-export-image/test-defs → tests-dxf2d-export-image}/dxf2d-polygon.ts +3 -3
- package/src/exporters/__tests__/{dxf2d-export-image/test-defs → tests-dxf2d-export-image}/dxf2d-polyline.ts +3 -3
- package/src/exporters/__tests__/{dxf2d-export-image/test-defs → tests-dxf2d-export-image}/dxf2d-rectangle.ts +3 -3
- package/src/exporters/__tests__/{dxf2d-export-image/test-defs → tests-dxf2d-export-image}/dxf2d-text-growth-directions.ts +3 -3
- package/src/exporters/__tests__/{dxf2d-export-image/test-defs → tests-dxf2d-export-image}/dxf2d-text.ts +3 -3
- package/src/exporters/__tests__/{eps-export-image/export-test-def.ts → tests-eps-export-image/_export-test-def.ts} +0 -2
- package/src/exporters/__tests__/{eps-export-image/test-defs → tests-eps-export-image}/eps-ellipse.ts +3 -3
- package/src/exporters/__tests__/{eps-export-image/test-defs → tests-eps-export-image}/eps-empty-text.ts +3 -3
- package/src/exporters/__tests__/{eps-export-image/test-defs → tests-eps-export-image}/eps-group.ts +3 -3
- package/src/exporters/__tests__/{eps-export-image/test-defs → tests-eps-export-image}/eps-line.ts +3 -3
- package/src/exporters/__tests__/{eps-export-image/test-defs → tests-eps-export-image}/eps-polygon.ts +3 -3
- package/src/exporters/__tests__/{eps-export-image/test-defs → tests-eps-export-image}/eps-polyline.ts +3 -3
- package/src/exporters/__tests__/{eps-export-image/test-defs → tests-eps-export-image}/eps-rectangle.ts +3 -3
- package/src/exporters/__tests__/{eps-export-image/test-defs → tests-eps-export-image}/eps-text-growth-directions.ts +3 -3
- package/src/exporters/__tests__/{eps-export-image/test-defs → tests-eps-export-image}/eps-text-iso-latin1-encoding.ts +3 -3
- package/src/exporters/__tests__/{eps-export-image/test-defs → tests-eps-export-image}/eps-text.ts +3 -3
- package/src/exporters/__tests__/{png-export-image/export-test-def.ts → tests-png-export-image/_export-test-def.ts} +0 -2
- package/src/exporters/__tests__/{png-export-image/test-defs → tests-png-export-image}/png-createPNG.tsx +3 -3
- package/src/exporters/__tests__/{exception → tests-png-export-image}/png-unsupported.test.tsx +2 -1
- package/src/exporters/__tests__/{react-svg-export-image/export-test-def.tsx → tests-react-svg-export-image/_export-test-def.tsx} +0 -2
- package/src/exporters/__tests__/{react-svg-export-image/test-defs → tests-react-svg-export-image}/react-svg-binary-png.tsx +3 -3
- package/src/exporters/__tests__/{react-svg-export-image/test-defs → tests-react-svg-export-image}/react-svg-binary-url.tsx +3 -3
- package/src/exporters/__tests__/{react-svg-export-image/test-defs → tests-react-svg-export-image}/react-svg-binary.tsx +3 -3
- package/src/exporters/__tests__/{react-svg-export-image/test-defs → tests-react-svg-export-image}/react-svg-callback.tsx +3 -3
- package/src/exporters/__tests__/{react-svg-export-image/test-defs → tests-react-svg-export-image}/react-svg-dashed-line.tsx +3 -3
- package/src/exporters/__tests__/{exception → tests-react-svg-export-image}/react-svg-direction-exception.test.tsx +2 -1
- package/src/exporters/__tests__/{react-svg-export-image/test-defs → tests-react-svg-export-image}/react-svg-ellipse.tsx +3 -3
- package/src/exporters/__tests__/{react-svg-export-image/test-defs → tests-react-svg-export-image}/react-svg-empty-text.tsx +3 -3
- package/src/exporters/__tests__/{react-svg-export-image/test-defs → tests-react-svg-export-image}/react-svg-group.tsx +3 -3
- package/src/exporters/__tests__/{react-svg-export-image/test-defs → tests-react-svg-export-image}/react-svg-line.tsx +3 -3
- package/src/exporters/__tests__/{react-svg-export-image/test-defs → tests-react-svg-export-image}/react-svg-polygon.tsx +3 -3
- package/src/exporters/__tests__/{react-svg-export-image/test-defs → tests-react-svg-export-image}/react-svg-polyline.tsx +3 -3
- package/src/exporters/__tests__/{react-svg-export-image/test-defs → tests-react-svg-export-image}/react-svg-rectangle.tsx +3 -3
- package/src/exporters/__tests__/{react-svg-export-image/test-defs → tests-react-svg-export-image}/react-svg-subimage.tsx +3 -3
- package/src/exporters/__tests__/{react-svg-export-image/test-defs → tests-react-svg-export-image}/react-svg-text-bold.tsx +3 -3
- package/src/exporters/__tests__/{react-svg-export-image/test-defs → tests-react-svg-export-image}/react-svg-text-growth-directions.tsx +3 -3
- package/src/exporters/__tests__/{react-svg-export-image/test-defs → tests-react-svg-export-image}/react-svg-text-italic.tsx +3 -3
- package/src/exporters/__tests__/{react-svg-export-image/test-defs → tests-react-svg-export-image}/react-svg-text-sub.tsx +3 -3
- package/src/exporters/__tests__/{react-svg-export-image/test-defs → tests-react-svg-export-image}/react-svg-text.tsx +3 -3
- package/src/exporters/__tests__/{svg-export-image/export-test-def.ts → tests-svg-export-image/_export-test-def.ts} +0 -2
- package/src/exporters/__tests__/{svg-export-image/test-defs → tests-svg-export-image}/svg-binary.tsx +3 -3
- package/src/exporters/__tests__/{svg-export-image/test-defs → tests-svg-export-image}/svg-dashed-line.ts +3 -3
- package/src/exporters/__tests__/{exception → tests-svg-export-image}/svg-direction-exception.test.tsx +2 -1
- package/src/exporters/__tests__/{svg-export-image/test-defs → tests-svg-export-image}/svg-ellipse.ts +3 -3
- package/src/exporters/__tests__/{svg-export-image/test-defs → tests-svg-export-image}/svg-empty-text.ts +3 -3
- package/src/exporters/__tests__/{svg-export-image/test-defs → tests-svg-export-image}/svg-group.ts +3 -3
- package/src/exporters/__tests__/{svg-export-image/test-defs → tests-svg-export-image}/svg-line.ts +3 -3
- package/src/exporters/__tests__/{svg-export-image/test-defs → tests-svg-export-image}/svg-polygon.ts +3 -3
- package/src/exporters/__tests__/{svg-export-image/test-defs → tests-svg-export-image}/svg-polyline.ts +3 -3
- package/src/exporters/__tests__/{svg-export-image/test-defs → tests-svg-export-image}/svg-rectangle.ts +3 -3
- package/src/exporters/__tests__/{svg-export-image/test-defs → tests-svg-export-image}/svg-text-bold.ts +3 -3
- package/src/exporters/__tests__/{svg-export-image/test-defs → tests-svg-export-image}/svg-text-growth-directions.ts +3 -3
- package/src/exporters/__tests__/{svg-export-image/test-defs → tests-svg-export-image}/svg-text-italic.ts +3 -3
- package/src/exporters/__tests__/{svg-export-image/test-defs → tests-svg-export-image}/svg-text.ts +3 -3
- package/src/exporters/dxf2d-export-image.ts +4 -6
- package/src/exporters/eps-export-image.ts +1 -1
- package/src/exporters/index.ts +3 -3
- package/src/exporters/png-export-image.ts +1 -1
- package/src/exporters/react-svg-export-image.tsx +1 -1
- package/src/exporters/svg-export-image.ts +1 -1
- package/src/index.ts +11 -12
- package/src/model/__tests__/color/export-test-def.ts +1 -3
- package/src/model/__tests__/color/export.test.tsx +7 -8
- package/src/model/__tests__/color/test-defs/color-from-string.ts +3 -3
- package/src/model/__tests__/color/test-defs/color-to-string.ts +3 -3
- package/src/model/__tests__/color/test-defs/color-undefined-2.ts +3 -3
- package/src/model/__tests__/color/test-defs/color-undefined.ts +3 -3
- package/src/model/abstract-image.ts +5 -5
- package/src/model/component.ts +4 -4
- package/src/model/index.ts +6 -6
- package/lib/exporters/__tests__/dxf2d-export-image/export-test-def.d.ts.map +0 -1
- package/lib/exporters/__tests__/dxf2d-export-image/export-test-def.js +0 -6
- package/lib/exporters/__tests__/dxf2d-export-image/export-test-def.js.map +0 -1
- package/lib/exporters/__tests__/dxf2d-export-image/export.test.d.ts +0 -3
- package/lib/exporters/__tests__/dxf2d-export-image/export.test.d.ts.map +0 -1
- package/lib/exporters/__tests__/dxf2d-export-image/export.test.js +0 -17
- package/lib/exporters/__tests__/dxf2d-export-image/export.test.js.map +0 -1
- package/lib/exporters/__tests__/dxf2d-export-image/test-defs/dxf2d-ellipse.d.ts +0 -3
- package/lib/exporters/__tests__/dxf2d-export-image/test-defs/dxf2d-ellipse.d.ts.map +0 -1
- package/lib/exporters/__tests__/dxf2d-export-image/test-defs/dxf2d-ellipse.js.map +0 -1
- package/lib/exporters/__tests__/dxf2d-export-image/test-defs/dxf2d-group.d.ts +0 -3
- package/lib/exporters/__tests__/dxf2d-export-image/test-defs/dxf2d-group.d.ts.map +0 -1
- package/lib/exporters/__tests__/dxf2d-export-image/test-defs/dxf2d-group.js +0 -174
- package/lib/exporters/__tests__/dxf2d-export-image/test-defs/dxf2d-group.js.map +0 -1
- package/lib/exporters/__tests__/dxf2d-export-image/test-defs/dxf2d-line.d.ts +0 -3
- package/lib/exporters/__tests__/dxf2d-export-image/test-defs/dxf2d-line.d.ts.map +0 -1
- package/lib/exporters/__tests__/dxf2d-export-image/test-defs/dxf2d-line.js +0 -103
- package/lib/exporters/__tests__/dxf2d-export-image/test-defs/dxf2d-line.js.map +0 -1
- package/lib/exporters/__tests__/dxf2d-export-image/test-defs/dxf2d-polygon.d.ts +0 -3
- package/lib/exporters/__tests__/dxf2d-export-image/test-defs/dxf2d-polygon.d.ts.map +0 -1
- package/lib/exporters/__tests__/dxf2d-export-image/test-defs/dxf2d-polygon.js +0 -137
- package/lib/exporters/__tests__/dxf2d-export-image/test-defs/dxf2d-polygon.js.map +0 -1
- package/lib/exporters/__tests__/dxf2d-export-image/test-defs/dxf2d-polyline.d.ts +0 -3
- package/lib/exporters/__tests__/dxf2d-export-image/test-defs/dxf2d-polyline.d.ts.map +0 -1
- package/lib/exporters/__tests__/dxf2d-export-image/test-defs/dxf2d-polyline.js +0 -127
- package/lib/exporters/__tests__/dxf2d-export-image/test-defs/dxf2d-polyline.js.map +0 -1
- package/lib/exporters/__tests__/dxf2d-export-image/test-defs/dxf2d-rectangle.d.ts +0 -3
- package/lib/exporters/__tests__/dxf2d-export-image/test-defs/dxf2d-rectangle.d.ts.map +0 -1
- package/lib/exporters/__tests__/dxf2d-export-image/test-defs/dxf2d-rectangle.js +0 -147
- package/lib/exporters/__tests__/dxf2d-export-image/test-defs/dxf2d-rectangle.js.map +0 -1
- package/lib/exporters/__tests__/dxf2d-export-image/test-defs/dxf2d-text-growth-directions.d.ts +0 -3
- package/lib/exporters/__tests__/dxf2d-export-image/test-defs/dxf2d-text-growth-directions.d.ts.map +0 -1
- package/lib/exporters/__tests__/dxf2d-export-image/test-defs/dxf2d-text-growth-directions.js +0 -186
- package/lib/exporters/__tests__/dxf2d-export-image/test-defs/dxf2d-text-growth-directions.js.map +0 -1
- package/lib/exporters/__tests__/dxf2d-export-image/test-defs/dxf2d-text.d.ts +0 -3
- package/lib/exporters/__tests__/dxf2d-export-image/test-defs/dxf2d-text.d.ts.map +0 -1
- package/lib/exporters/__tests__/dxf2d-export-image/test-defs/dxf2d-text.js +0 -111
- package/lib/exporters/__tests__/dxf2d-export-image/test-defs/dxf2d-text.js.map +0 -1
- package/lib/exporters/__tests__/eps-export-image/export-test-def.d.ts.map +0 -1
- package/lib/exporters/__tests__/eps-export-image/export-test-def.js +0 -6
- package/lib/exporters/__tests__/eps-export-image/export-test-def.js.map +0 -1
- package/lib/exporters/__tests__/eps-export-image/export.test.d.ts +0 -3
- package/lib/exporters/__tests__/eps-export-image/export.test.d.ts.map +0 -1
- package/lib/exporters/__tests__/eps-export-image/export.test.js +0 -17
- package/lib/exporters/__tests__/eps-export-image/export.test.js.map +0 -1
- package/lib/exporters/__tests__/eps-export-image/test-defs/eps-ellipse.d.ts +0 -3
- package/lib/exporters/__tests__/eps-export-image/test-defs/eps-ellipse.d.ts.map +0 -1
- package/lib/exporters/__tests__/eps-export-image/test-defs/eps-ellipse.js +0 -72
- package/lib/exporters/__tests__/eps-export-image/test-defs/eps-ellipse.js.map +0 -1
- package/lib/exporters/__tests__/eps-export-image/test-defs/eps-empty-text.d.ts +0 -3
- package/lib/exporters/__tests__/eps-export-image/test-defs/eps-empty-text.d.ts.map +0 -1
- package/lib/exporters/__tests__/eps-export-image/test-defs/eps-empty-text.js +0 -74
- package/lib/exporters/__tests__/eps-export-image/test-defs/eps-empty-text.js.map +0 -1
- package/lib/exporters/__tests__/eps-export-image/test-defs/eps-group.d.ts +0 -3
- package/lib/exporters/__tests__/eps-export-image/test-defs/eps-group.d.ts.map +0 -1
- package/lib/exporters/__tests__/eps-export-image/test-defs/eps-group.js +0 -82
- package/lib/exporters/__tests__/eps-export-image/test-defs/eps-group.js.map +0 -1
- package/lib/exporters/__tests__/eps-export-image/test-defs/eps-line.d.ts +0 -3
- package/lib/exporters/__tests__/eps-export-image/test-defs/eps-line.d.ts.map +0 -1
- package/lib/exporters/__tests__/eps-export-image/test-defs/eps-line.js +0 -68
- package/lib/exporters/__tests__/eps-export-image/test-defs/eps-line.js.map +0 -1
- package/lib/exporters/__tests__/eps-export-image/test-defs/eps-polygon.d.ts +0 -3
- package/lib/exporters/__tests__/eps-export-image/test-defs/eps-polygon.d.ts.map +0 -1
- package/lib/exporters/__tests__/eps-export-image/test-defs/eps-polygon.js +0 -88
- package/lib/exporters/__tests__/eps-export-image/test-defs/eps-polygon.js.map +0 -1
- package/lib/exporters/__tests__/eps-export-image/test-defs/eps-polyline.d.ts +0 -3
- package/lib/exporters/__tests__/eps-export-image/test-defs/eps-polyline.d.ts.map +0 -1
- package/lib/exporters/__tests__/eps-export-image/test-defs/eps-polyline.js +0 -82
- package/lib/exporters/__tests__/eps-export-image/test-defs/eps-polyline.js.map +0 -1
- package/lib/exporters/__tests__/eps-export-image/test-defs/eps-rectangle.d.ts +0 -3
- package/lib/exporters/__tests__/eps-export-image/test-defs/eps-rectangle.d.ts.map +0 -1
- package/lib/exporters/__tests__/eps-export-image/test-defs/eps-rectangle.js +0 -68
- package/lib/exporters/__tests__/eps-export-image/test-defs/eps-rectangle.js.map +0 -1
- package/lib/exporters/__tests__/eps-export-image/test-defs/eps-text-growth-directions.d.ts +0 -3
- package/lib/exporters/__tests__/eps-export-image/test-defs/eps-text-growth-directions.d.ts.map +0 -1
- package/lib/exporters/__tests__/eps-export-image/test-defs/eps-text-growth-directions.js.map +0 -1
- package/lib/exporters/__tests__/eps-export-image/test-defs/eps-text-iso-latin1-encoding.d.ts +0 -3
- package/lib/exporters/__tests__/eps-export-image/test-defs/eps-text-iso-latin1-encoding.d.ts.map +0 -1
- package/lib/exporters/__tests__/eps-export-image/test-defs/eps-text-iso-latin1-encoding.js +0 -85
- package/lib/exporters/__tests__/eps-export-image/test-defs/eps-text-iso-latin1-encoding.js.map +0 -1
- package/lib/exporters/__tests__/eps-export-image/test-defs/eps-text.d.ts +0 -3
- package/lib/exporters/__tests__/eps-export-image/test-defs/eps-text.d.ts.map +0 -1
- package/lib/exporters/__tests__/eps-export-image/test-defs/eps-text.js +0 -74
- package/lib/exporters/__tests__/eps-export-image/test-defs/eps-text.js.map +0 -1
- package/lib/exporters/__tests__/exception/png-unsupported.test.d.ts.map +0 -1
- package/lib/exporters/__tests__/exception/png-unsupported.test.js.map +0 -1
- package/lib/exporters/__tests__/exception/react-svg-direction-exception.test.d.ts.map +0 -1
- package/lib/exporters/__tests__/exception/react-svg-direction-exception.test.js.map +0 -1
- package/lib/exporters/__tests__/exception/svg-direction-exception.test.d.ts.map +0 -1
- package/lib/exporters/__tests__/exception/svg-direction-exception.test.js.map +0 -1
- package/lib/exporters/__tests__/png-export-image/export-test-def.d.ts.map +0 -1
- package/lib/exporters/__tests__/png-export-image/export-test-def.js +0 -6
- package/lib/exporters/__tests__/png-export-image/export-test-def.js.map +0 -1
- package/lib/exporters/__tests__/png-export-image/export.test.d.ts +0 -3
- package/lib/exporters/__tests__/png-export-image/export.test.d.ts.map +0 -1
- package/lib/exporters/__tests__/png-export-image/export.test.js +0 -17
- package/lib/exporters/__tests__/png-export-image/export.test.js.map +0 -1
- package/lib/exporters/__tests__/png-export-image/test-defs/png-createPNG.d.ts +0 -3
- package/lib/exporters/__tests__/png-export-image/test-defs/png-createPNG.d.ts.map +0 -1
- package/lib/exporters/__tests__/png-export-image/test-defs/png-createPNG.js.map +0 -1
- package/lib/exporters/__tests__/react-svg-export-image/export-test-def.d.ts.map +0 -1
- package/lib/exporters/__tests__/react-svg-export-image/export-test-def.js +0 -6
- package/lib/exporters/__tests__/react-svg-export-image/export-test-def.js.map +0 -1
- package/lib/exporters/__tests__/react-svg-export-image/export.test.d.ts +0 -3
- package/lib/exporters/__tests__/react-svg-export-image/export.test.d.ts.map +0 -1
- package/lib/exporters/__tests__/react-svg-export-image/export.test.js +0 -17
- package/lib/exporters/__tests__/react-svg-export-image/export.test.js.map +0 -1
- package/lib/exporters/__tests__/react-svg-export-image/test-defs/react-svg-binary-png.d.ts +0 -3
- package/lib/exporters/__tests__/react-svg-export-image/test-defs/react-svg-binary-png.d.ts.map +0 -1
- package/lib/exporters/__tests__/react-svg-export-image/test-defs/react-svg-binary-png.js.map +0 -1
- package/lib/exporters/__tests__/react-svg-export-image/test-defs/react-svg-binary-url.d.ts +0 -3
- package/lib/exporters/__tests__/react-svg-export-image/test-defs/react-svg-binary-url.d.ts.map +0 -1
- package/lib/exporters/__tests__/react-svg-export-image/test-defs/react-svg-binary-url.js.map +0 -1
- package/lib/exporters/__tests__/react-svg-export-image/test-defs/react-svg-binary.d.ts +0 -3
- package/lib/exporters/__tests__/react-svg-export-image/test-defs/react-svg-binary.d.ts.map +0 -1
- package/lib/exporters/__tests__/react-svg-export-image/test-defs/react-svg-binary.js.map +0 -1
- package/lib/exporters/__tests__/react-svg-export-image/test-defs/react-svg-callback.d.ts +0 -3
- package/lib/exporters/__tests__/react-svg-export-image/test-defs/react-svg-callback.d.ts.map +0 -1
- package/lib/exporters/__tests__/react-svg-export-image/test-defs/react-svg-callback.js +0 -70
- package/lib/exporters/__tests__/react-svg-export-image/test-defs/react-svg-callback.js.map +0 -1
- package/lib/exporters/__tests__/react-svg-export-image/test-defs/react-svg-dashed-line.d.ts +0 -3
- package/lib/exporters/__tests__/react-svg-export-image/test-defs/react-svg-dashed-line.d.ts.map +0 -1
- package/lib/exporters/__tests__/react-svg-export-image/test-defs/react-svg-dashed-line.js +0 -48
- package/lib/exporters/__tests__/react-svg-export-image/test-defs/react-svg-dashed-line.js.map +0 -1
- package/lib/exporters/__tests__/react-svg-export-image/test-defs/react-svg-ellipse.d.ts +0 -3
- package/lib/exporters/__tests__/react-svg-export-image/test-defs/react-svg-ellipse.d.ts.map +0 -1
- package/lib/exporters/__tests__/react-svg-export-image/test-defs/react-svg-ellipse.js +0 -48
- package/lib/exporters/__tests__/react-svg-export-image/test-defs/react-svg-ellipse.js.map +0 -1
- package/lib/exporters/__tests__/react-svg-export-image/test-defs/react-svg-empty-text.d.ts +0 -3
- package/lib/exporters/__tests__/react-svg-export-image/test-defs/react-svg-empty-text.d.ts.map +0 -1
- package/lib/exporters/__tests__/react-svg-export-image/test-defs/react-svg-empty-text.js +0 -48
- package/lib/exporters/__tests__/react-svg-export-image/test-defs/react-svg-empty-text.js.map +0 -1
- package/lib/exporters/__tests__/react-svg-export-image/test-defs/react-svg-group.d.ts +0 -3
- package/lib/exporters/__tests__/react-svg-export-image/test-defs/react-svg-group.d.ts.map +0 -1
- package/lib/exporters/__tests__/react-svg-export-image/test-defs/react-svg-group.js +0 -51
- package/lib/exporters/__tests__/react-svg-export-image/test-defs/react-svg-group.js.map +0 -1
- package/lib/exporters/__tests__/react-svg-export-image/test-defs/react-svg-line.d.ts +0 -3
- package/lib/exporters/__tests__/react-svg-export-image/test-defs/react-svg-line.d.ts.map +0 -1
- package/lib/exporters/__tests__/react-svg-export-image/test-defs/react-svg-line.js +0 -48
- package/lib/exporters/__tests__/react-svg-export-image/test-defs/react-svg-line.js.map +0 -1
- package/lib/exporters/__tests__/react-svg-export-image/test-defs/react-svg-polygon.d.ts +0 -3
- package/lib/exporters/__tests__/react-svg-export-image/test-defs/react-svg-polygon.d.ts.map +0 -1
- package/lib/exporters/__tests__/react-svg-export-image/test-defs/react-svg-polygon.js +0 -54
- package/lib/exporters/__tests__/react-svg-export-image/test-defs/react-svg-polygon.js.map +0 -1
- package/lib/exporters/__tests__/react-svg-export-image/test-defs/react-svg-polyline.d.ts +0 -3
- package/lib/exporters/__tests__/react-svg-export-image/test-defs/react-svg-polyline.d.ts.map +0 -1
- package/lib/exporters/__tests__/react-svg-export-image/test-defs/react-svg-polyline.js +0 -56
- package/lib/exporters/__tests__/react-svg-export-image/test-defs/react-svg-polyline.js.map +0 -1
- package/lib/exporters/__tests__/react-svg-export-image/test-defs/react-svg-rectangle.d.ts +0 -3
- package/lib/exporters/__tests__/react-svg-export-image/test-defs/react-svg-rectangle.d.ts.map +0 -1
- package/lib/exporters/__tests__/react-svg-export-image/test-defs/react-svg-rectangle.js +0 -48
- package/lib/exporters/__tests__/react-svg-export-image/test-defs/react-svg-rectangle.js.map +0 -1
- package/lib/exporters/__tests__/react-svg-export-image/test-defs/react-svg-subimage.d.ts +0 -3
- package/lib/exporters/__tests__/react-svg-export-image/test-defs/react-svg-subimage.d.ts.map +0 -1
- package/lib/exporters/__tests__/react-svg-export-image/test-defs/react-svg-subimage.js +0 -47
- package/lib/exporters/__tests__/react-svg-export-image/test-defs/react-svg-subimage.js.map +0 -1
- package/lib/exporters/__tests__/react-svg-export-image/test-defs/react-svg-text-bold.d.ts +0 -3
- package/lib/exporters/__tests__/react-svg-export-image/test-defs/react-svg-text-bold.d.ts.map +0 -1
- package/lib/exporters/__tests__/react-svg-export-image/test-defs/react-svg-text-bold.js.map +0 -1
- package/lib/exporters/__tests__/react-svg-export-image/test-defs/react-svg-text-growth-directions.d.ts +0 -3
- package/lib/exporters/__tests__/react-svg-export-image/test-defs/react-svg-text-growth-directions.d.ts.map +0 -1
- package/lib/exporters/__tests__/react-svg-export-image/test-defs/react-svg-text-growth-directions.js.map +0 -1
- package/lib/exporters/__tests__/react-svg-export-image/test-defs/react-svg-text-italic.d.ts +0 -3
- package/lib/exporters/__tests__/react-svg-export-image/test-defs/react-svg-text-italic.d.ts.map +0 -1
- package/lib/exporters/__tests__/react-svg-export-image/test-defs/react-svg-text-italic.js.map +0 -1
- package/lib/exporters/__tests__/react-svg-export-image/test-defs/react-svg-text-sub.d.ts +0 -3
- package/lib/exporters/__tests__/react-svg-export-image/test-defs/react-svg-text-sub.d.ts.map +0 -1
- package/lib/exporters/__tests__/react-svg-export-image/test-defs/react-svg-text-sub.js +0 -48
- package/lib/exporters/__tests__/react-svg-export-image/test-defs/react-svg-text-sub.js.map +0 -1
- package/lib/exporters/__tests__/react-svg-export-image/test-defs/react-svg-text.d.ts +0 -3
- package/lib/exporters/__tests__/react-svg-export-image/test-defs/react-svg-text.d.ts.map +0 -1
- package/lib/exporters/__tests__/react-svg-export-image/test-defs/react-svg-text.js +0 -48
- package/lib/exporters/__tests__/react-svg-export-image/test-defs/react-svg-text.js.map +0 -1
- package/lib/exporters/__tests__/svg-export-image/export-test-def.d.ts.map +0 -1
- package/lib/exporters/__tests__/svg-export-image/export-test-def.js +0 -6
- package/lib/exporters/__tests__/svg-export-image/export-test-def.js.map +0 -1
- package/lib/exporters/__tests__/svg-export-image/export.test.d.ts +0 -3
- package/lib/exporters/__tests__/svg-export-image/export.test.d.ts.map +0 -1
- package/lib/exporters/__tests__/svg-export-image/export.test.js +0 -17
- package/lib/exporters/__tests__/svg-export-image/export.test.js.map +0 -1
- package/lib/exporters/__tests__/svg-export-image/test-defs/svg-binary.d.ts +0 -3
- package/lib/exporters/__tests__/svg-export-image/test-defs/svg-binary.d.ts.map +0 -1
- package/lib/exporters/__tests__/svg-export-image/test-defs/svg-dashed-line.d.ts +0 -3
- package/lib/exporters/__tests__/svg-export-image/test-defs/svg-dashed-line.d.ts.map +0 -1
- package/lib/exporters/__tests__/svg-export-image/test-defs/svg-dashed-line.js +0 -48
- package/lib/exporters/__tests__/svg-export-image/test-defs/svg-dashed-line.js.map +0 -1
- package/lib/exporters/__tests__/svg-export-image/test-defs/svg-ellipse.d.ts +0 -3
- package/lib/exporters/__tests__/svg-export-image/test-defs/svg-ellipse.d.ts.map +0 -1
- package/lib/exporters/__tests__/svg-export-image/test-defs/svg-ellipse.js +0 -48
- package/lib/exporters/__tests__/svg-export-image/test-defs/svg-ellipse.js.map +0 -1
- package/lib/exporters/__tests__/svg-export-image/test-defs/svg-empty-text.d.ts +0 -3
- package/lib/exporters/__tests__/svg-export-image/test-defs/svg-empty-text.d.ts.map +0 -1
- package/lib/exporters/__tests__/svg-export-image/test-defs/svg-empty-text.js +0 -48
- package/lib/exporters/__tests__/svg-export-image/test-defs/svg-empty-text.js.map +0 -1
- package/lib/exporters/__tests__/svg-export-image/test-defs/svg-group.d.ts +0 -3
- package/lib/exporters/__tests__/svg-export-image/test-defs/svg-group.d.ts.map +0 -1
- package/lib/exporters/__tests__/svg-export-image/test-defs/svg-group.js +0 -51
- package/lib/exporters/__tests__/svg-export-image/test-defs/svg-group.js.map +0 -1
- package/lib/exporters/__tests__/svg-export-image/test-defs/svg-line.d.ts +0 -3
- package/lib/exporters/__tests__/svg-export-image/test-defs/svg-line.d.ts.map +0 -1
- package/lib/exporters/__tests__/svg-export-image/test-defs/svg-line.js +0 -48
- package/lib/exporters/__tests__/svg-export-image/test-defs/svg-line.js.map +0 -1
- package/lib/exporters/__tests__/svg-export-image/test-defs/svg-polygon.d.ts +0 -3
- package/lib/exporters/__tests__/svg-export-image/test-defs/svg-polygon.d.ts.map +0 -1
- package/lib/exporters/__tests__/svg-export-image/test-defs/svg-polygon.js +0 -54
- package/lib/exporters/__tests__/svg-export-image/test-defs/svg-polygon.js.map +0 -1
- package/lib/exporters/__tests__/svg-export-image/test-defs/svg-polyline.d.ts +0 -3
- package/lib/exporters/__tests__/svg-export-image/test-defs/svg-polyline.d.ts.map +0 -1
- package/lib/exporters/__tests__/svg-export-image/test-defs/svg-polyline.js +0 -56
- package/lib/exporters/__tests__/svg-export-image/test-defs/svg-polyline.js.map +0 -1
- package/lib/exporters/__tests__/svg-export-image/test-defs/svg-rectangle.d.ts +0 -3
- package/lib/exporters/__tests__/svg-export-image/test-defs/svg-rectangle.d.ts.map +0 -1
- package/lib/exporters/__tests__/svg-export-image/test-defs/svg-rectangle.js +0 -48
- package/lib/exporters/__tests__/svg-export-image/test-defs/svg-rectangle.js.map +0 -1
- package/lib/exporters/__tests__/svg-export-image/test-defs/svg-text-bold.d.ts +0 -3
- package/lib/exporters/__tests__/svg-export-image/test-defs/svg-text-bold.d.ts.map +0 -1
- package/lib/exporters/__tests__/svg-export-image/test-defs/svg-text-bold.js.map +0 -1
- package/lib/exporters/__tests__/svg-export-image/test-defs/svg-text-growth-directions.d.ts +0 -3
- package/lib/exporters/__tests__/svg-export-image/test-defs/svg-text-growth-directions.d.ts.map +0 -1
- package/lib/exporters/__tests__/svg-export-image/test-defs/svg-text-growth-directions.js.map +0 -1
- package/lib/exporters/__tests__/svg-export-image/test-defs/svg-text-italic.d.ts +0 -3
- package/lib/exporters/__tests__/svg-export-image/test-defs/svg-text-italic.d.ts.map +0 -1
- package/lib/exporters/__tests__/svg-export-image/test-defs/svg-text-italic.js.map +0 -1
- package/lib/exporters/__tests__/svg-export-image/test-defs/svg-text.d.ts +0 -3
- package/lib/exporters/__tests__/svg-export-image/test-defs/svg-text.d.ts.map +0 -1
- package/lib/exporters/__tests__/svg-export-image/test-defs/svg-text.js +0 -48
- package/lib/exporters/__tests__/svg-export-image/test-defs/svg-text.js.map +0 -1
- package/src/exporters/__tests__/dxf2d-export-image/export.test.tsx +0 -13
- package/src/exporters/__tests__/eps-export-image/export.test.tsx +0 -13
- package/src/exporters/__tests__/png-export-image/export.test.tsx +0 -13
- package/src/exporters/__tests__/react-svg-export-image/export.test.tsx +0 -13
- package/src/exporters/__tests__/svg-export-image/export.test.tsx +0 -13
- /package/lib/exporters/__tests__/{exception → tests-png-export-image}/png-unsupported.test.d.ts +0 -0
- /package/lib/exporters/__tests__/{exception → tests-react-svg-export-image}/react-svg-direction-exception.test.d.ts +0 -0
- /package/lib/exporters/__tests__/{exception → tests-svg-export-image}/svg-direction-exception.test.d.ts +0 -0
package/lib/model/dash-style.js
CHANGED
|
@@ -1,12 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.solidLine = void 0;
|
|
4
|
-
exports.createDashStyle = createDashStyle;
|
|
5
|
-
function createDashStyle(dashes, offset = 0) {
|
|
1
|
+
export function createDashStyle(dashes, offset = 0) {
|
|
6
2
|
return {
|
|
7
3
|
dashes: dashes,
|
|
8
4
|
offset: offset,
|
|
9
5
|
};
|
|
10
6
|
}
|
|
11
|
-
|
|
7
|
+
export const solidLine = createDashStyle([]);
|
|
12
8
|
//# sourceMappingURL=dash-style.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dash-style.js","sourceRoot":"","sources":["../../src/model/dash-style.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"dash-style.js","sourceRoot":"","sources":["../../src/model/dash-style.ts"],"names":[],"mappings":"AAKA,MAAM,UAAU,eAAe,CAAC,MAA6B,EAAE,SAAiB,CAAC;IAC/E,OAAO;QACL,MAAM,EAAE,MAAM;QACd,MAAM,EAAE,MAAM;KACf,CAAC;AACJ,CAAC;AAED,MAAM,CAAC,MAAM,SAAS,GAAG,eAAe,CAAC,EAAE,CAAC,CAAC"}
|
package/lib/model/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export * from "./abstract-image";
|
|
2
|
-
export * from "./color";
|
|
3
|
-
export * from "./component";
|
|
4
|
-
export * from "./point";
|
|
5
|
-
export * from "./size";
|
|
6
|
-
export * from "./dash-style";
|
|
1
|
+
export * from "./abstract-image.js";
|
|
2
|
+
export * from "./color.js";
|
|
3
|
+
export * from "./component.js";
|
|
4
|
+
export * from "./point.js";
|
|
5
|
+
export * from "./size.js";
|
|
6
|
+
export * from "./dash-style.js";
|
|
7
7
|
//# sourceMappingURL=index.d.ts.map
|
package/lib/model/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/model/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/model/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,iBAAiB,CAAC"}
|
package/lib/model/index.js
CHANGED
|
@@ -1,23 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
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"), exports);
|
|
18
|
-
__exportStar(require("./color"), exports);
|
|
19
|
-
__exportStar(require("./component"), exports);
|
|
20
|
-
__exportStar(require("./point"), exports);
|
|
21
|
-
__exportStar(require("./size"), exports);
|
|
22
|
-
__exportStar(require("./dash-style"), exports);
|
|
1
|
+
export * from "./abstract-image.js";
|
|
2
|
+
export * from "./color.js";
|
|
3
|
+
export * from "./component.js";
|
|
4
|
+
export * from "./point.js";
|
|
5
|
+
export * from "./size.js";
|
|
6
|
+
export * from "./dash-style.js";
|
|
23
7
|
//# 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":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/model/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,iBAAiB,CAAC"}
|
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":"
|
|
1
|
+
{"version":3,"file":"point.js","sourceRoot":"","sources":["../../src/model/point.ts"],"names":[],"mappings":"AAKA,MAAM,UAAU,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":"
|
|
1
|
+
{"version":3,"file":"size.js","sourceRoot":"","sources":["../../src/model/size.ts"],"names":[],"mappings":"AAKA,MAAM,UAAU,UAAU,CAAC,KAAa,EAAE,MAAc;IACtD,OAAO;QACL,KAAK,EAAE,KAAK;QACZ,MAAM,EAAE,MAAM;KACf,CAAC;AACJ,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "abstract-image",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "10.0.2",
|
|
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
|
+
"exports": {
|
|
11
|
+
".": "./lib/index.js"
|
|
12
|
+
},
|
|
9
13
|
"files": [
|
|
10
14
|
"/lib",
|
|
11
15
|
"/src",
|
|
@@ -20,10 +24,10 @@
|
|
|
20
24
|
"react-dom": "^18.3.1"
|
|
21
25
|
},
|
|
22
26
|
"devDependencies": {
|
|
23
|
-
"@abstract-visuals/test-utils": "1.0.2",
|
|
24
27
|
"@types/base64-js": "^1.3.2",
|
|
25
28
|
"@types/react": "^18.3.3",
|
|
26
|
-
"@types/react-dom": "^18.3.0"
|
|
29
|
+
"@types/react-dom": "^18.3.0",
|
|
30
|
+
"vitest": "^2.1.6"
|
|
27
31
|
},
|
|
28
|
-
"gitHead": "
|
|
32
|
+
"gitHead": "85c576b6d79ac4d7694b2fb065e19ca813f81b5b"
|
|
29
33
|
}
|
|
@@ -0,0 +1,26 @@
|
|
|
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
|
+
|
|
11
|
+
describe("dxf2d-export-image", () => {
|
|
12
|
+
[
|
|
13
|
+
testDxf2dEllipse,
|
|
14
|
+
testDxf2dGroup,
|
|
15
|
+
testDxf2dLine,
|
|
16
|
+
testDxf2dPolygon,
|
|
17
|
+
testDxf2dPolyline,
|
|
18
|
+
testDxf2dRectangle,
|
|
19
|
+
testDxf2dTextGrowthDirections,
|
|
20
|
+
testDxf2dText,
|
|
21
|
+
].forEach((item) => {
|
|
22
|
+
test(item.name, () => {
|
|
23
|
+
expect(item.abstractImage).toEqual(item.expectedImage);
|
|
24
|
+
});
|
|
25
|
+
});
|
|
26
|
+
});
|
|
@@ -0,0 +1,30 @@
|
|
|
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
|
+
|
|
13
|
+
describe("eps-export-image", () => {
|
|
14
|
+
[
|
|
15
|
+
testEpsEllipse,
|
|
16
|
+
testEpsEmptyText,
|
|
17
|
+
testEpsGroup,
|
|
18
|
+
testEpsLine,
|
|
19
|
+
testEpsPolygon,
|
|
20
|
+
testEpsPolyline,
|
|
21
|
+
testEpsRectangle,
|
|
22
|
+
testEpsTextGrowthDirections,
|
|
23
|
+
testEpsIsoLatin1Encoding,
|
|
24
|
+
testEpsText,
|
|
25
|
+
].forEach((item) => {
|
|
26
|
+
test(item.name, () => {
|
|
27
|
+
expect(item.abstractImage).toEqual(item.expectedImage);
|
|
28
|
+
});
|
|
29
|
+
});
|
|
30
|
+
});
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { describe, test, expect } from "vitest";
|
|
2
|
+
import { testPngCreatePng } from "./tests-png-export-image/png-createPNG.js";
|
|
3
|
+
|
|
4
|
+
describe("png-export-image", () => {
|
|
5
|
+
[testPngCreatePng].forEach((item) => {
|
|
6
|
+
test(item.name, () => {
|
|
7
|
+
expect(item.abstractImage).toEqual(item.expectedImage);
|
|
8
|
+
});
|
|
9
|
+
});
|
|
10
|
+
});
|
|
@@ -0,0 +1,44 @@
|
|
|
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
|
+
|
|
20
|
+
describe("react-svg-export-image", () => {
|
|
21
|
+
[
|
|
22
|
+
testReactSvgBinaryPng,
|
|
23
|
+
testReactSvgBinaryUrl,
|
|
24
|
+
testReactSvgBinary,
|
|
25
|
+
testReactSvgCallback,
|
|
26
|
+
testReactSvgDashedLine,
|
|
27
|
+
testReactSvgEllipse,
|
|
28
|
+
testReactSvgEmptyText,
|
|
29
|
+
testReactSvgGroup,
|
|
30
|
+
testReactSvgLine,
|
|
31
|
+
testReactSvgPolygon,
|
|
32
|
+
testReactSvgPolyline,
|
|
33
|
+
testReactSvgSubImage,
|
|
34
|
+
testReactSvgBold,
|
|
35
|
+
testReactSvgTextGrowthDirections,
|
|
36
|
+
testReactSvgItalic,
|
|
37
|
+
testReactSvgSub,
|
|
38
|
+
testReactSvgText,
|
|
39
|
+
].forEach((item) => {
|
|
40
|
+
test(item.name, () => {
|
|
41
|
+
expect(JSON.stringify(item.abstractImage)).toEqual(item.expectedSerializedJsx);
|
|
42
|
+
});
|
|
43
|
+
});
|
|
44
|
+
});
|
|
@@ -0,0 +1,37 @@
|
|
|
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
|
+
|
|
16
|
+
describe("svg-export-image", () => {
|
|
17
|
+
[
|
|
18
|
+
testSvgBinary,
|
|
19
|
+
testSvgDashedLine,
|
|
20
|
+
testSvgDashedLine,
|
|
21
|
+
testSvgEllpise,
|
|
22
|
+
testSvgEmptyText,
|
|
23
|
+
testSvgGroup,
|
|
24
|
+
testSvgLine,
|
|
25
|
+
testSvgPolygon,
|
|
26
|
+
testSvgPolyline,
|
|
27
|
+
testSvgRectangle,
|
|
28
|
+
testSvgTextBold,
|
|
29
|
+
testSvgTextGrowthDirections,
|
|
30
|
+
testSvgTextItalic,
|
|
31
|
+
testSvgText,
|
|
32
|
+
].forEach((item) => {
|
|
33
|
+
test(item.name, () => {
|
|
34
|
+
expect(item.abstractImage).toEqual(item.expectedImage);
|
|
35
|
+
});
|
|
36
|
+
});
|
|
37
|
+
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ExportTestDef } from "
|
|
2
|
-
import * as AbstractImage from "
|
|
1
|
+
import { ExportTestDef } from "./_export-test-def.js";
|
|
2
|
+
import * as AbstractImage from "../../../index.js";
|
|
3
3
|
|
|
4
4
|
const components = [
|
|
5
5
|
AbstractImage.createEllipse(
|
|
@@ -19,7 +19,7 @@ const image = AbstractImage.createAbstractImage(
|
|
|
19
19
|
|
|
20
20
|
const dxf = AbstractImage.dxf2dExportImage(image);
|
|
21
21
|
|
|
22
|
-
export const
|
|
22
|
+
export const testDxf2dEllipse: ExportTestDef = {
|
|
23
23
|
name: "dxf2d ellipse",
|
|
24
24
|
abstractImage: dxf,
|
|
25
25
|
expectedImage: `999
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ExportTestDef } from "
|
|
2
|
-
import * as AbstractImage from "
|
|
1
|
+
import { ExportTestDef } from "./_export-test-def.js";
|
|
2
|
+
import * as AbstractImage from "../../../index.js";
|
|
3
3
|
|
|
4
4
|
const components = [
|
|
5
5
|
AbstractImage.createGroup("group", [
|
|
@@ -36,7 +36,7 @@ const image = AbstractImage.createAbstractImage(
|
|
|
36
36
|
|
|
37
37
|
const dxf = AbstractImage.dxf2dExportImage(image);
|
|
38
38
|
|
|
39
|
-
export const
|
|
39
|
+
export const testDxf2dGroup: ExportTestDef = {
|
|
40
40
|
name: "dxf2d group",
|
|
41
41
|
abstractImage: dxf,
|
|
42
42
|
expectedImage: `999
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ExportTestDef } from "
|
|
2
|
-
import * as AbstractImage from "
|
|
1
|
+
import { ExportTestDef } from "./_export-test-def.js";
|
|
2
|
+
import * as AbstractImage from "../../../index.js";
|
|
3
3
|
|
|
4
4
|
const components = [
|
|
5
5
|
AbstractImage.createLine(
|
|
@@ -18,7 +18,7 @@ const image = AbstractImage.createAbstractImage(
|
|
|
18
18
|
|
|
19
19
|
const dxf = AbstractImage.dxf2dExportImage(image);
|
|
20
20
|
|
|
21
|
-
export const
|
|
21
|
+
export const testDxf2dLine: ExportTestDef = {
|
|
22
22
|
name: "dxf2d line",
|
|
23
23
|
abstractImage: dxf,
|
|
24
24
|
expectedImage: `999
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ExportTestDef } from "
|
|
2
|
-
import * as AbstractImage from "
|
|
1
|
+
import { ExportTestDef } from "./_export-test-def.js";
|
|
2
|
+
import * as AbstractImage from "../../../index.js";
|
|
3
3
|
|
|
4
4
|
const components = [
|
|
5
5
|
AbstractImage.createPolygon(
|
|
@@ -18,7 +18,7 @@ const image = AbstractImage.createAbstractImage(
|
|
|
18
18
|
|
|
19
19
|
const dxf = AbstractImage.dxf2dExportImage(image);
|
|
20
20
|
|
|
21
|
-
export const
|
|
21
|
+
export const testDxf2dPolygon: ExportTestDef = {
|
|
22
22
|
name: "dxf2d polygon",
|
|
23
23
|
abstractImage: dxf,
|
|
24
24
|
expectedImage: `999
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ExportTestDef } from "
|
|
2
|
-
import * as AbstractImage from "
|
|
1
|
+
import { ExportTestDef } from "./_export-test-def.js";
|
|
2
|
+
import * as AbstractImage from "../../../index.js";
|
|
3
3
|
|
|
4
4
|
const components = [
|
|
5
5
|
AbstractImage.createPolyLine(
|
|
@@ -17,7 +17,7 @@ const image = AbstractImage.createAbstractImage(
|
|
|
17
17
|
|
|
18
18
|
const dxf = AbstractImage.dxf2dExportImage(image);
|
|
19
19
|
|
|
20
|
-
export const
|
|
20
|
+
export const testDxf2dPolyline: ExportTestDef = {
|
|
21
21
|
name: "dxf2d polyline",
|
|
22
22
|
abstractImage: dxf,
|
|
23
23
|
expectedImage: `999
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ExportTestDef } from "
|
|
2
|
-
import * as AbstractImage from "
|
|
1
|
+
import { ExportTestDef } from "./_export-test-def.js";
|
|
2
|
+
import * as AbstractImage from "../../../index.js";
|
|
3
3
|
|
|
4
4
|
const components = [
|
|
5
5
|
AbstractImage.createRectangle(
|
|
@@ -19,7 +19,7 @@ const image = AbstractImage.createAbstractImage(
|
|
|
19
19
|
|
|
20
20
|
const dxf = AbstractImage.dxf2dExportImage(image);
|
|
21
21
|
|
|
22
|
-
export const
|
|
22
|
+
export const testDxf2dRectangle: ExportTestDef = {
|
|
23
23
|
name: "dxf2d rectangle",
|
|
24
24
|
abstractImage: dxf,
|
|
25
25
|
expectedImage: `999
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ExportTestDef } from "
|
|
2
|
-
import * as AbstractImage from "
|
|
1
|
+
import { ExportTestDef } from "./_export-test-def.js";
|
|
2
|
+
import * as AbstractImage from "../../../index.js";
|
|
3
3
|
|
|
4
4
|
const components = [
|
|
5
5
|
AbstractImage.createText(
|
|
@@ -72,7 +72,7 @@ const image = AbstractImage.createAbstractImage(
|
|
|
72
72
|
|
|
73
73
|
const dxf = AbstractImage.dxf2dExportImage(image);
|
|
74
74
|
|
|
75
|
-
export const
|
|
75
|
+
export const testDxf2dTextGrowthDirections: ExportTestDef = {
|
|
76
76
|
name: "dxf text growth directions",
|
|
77
77
|
abstractImage: dxf,
|
|
78
78
|
expectedImage: `999
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ExportTestDef } from "
|
|
2
|
-
import * as AbstractImage from "
|
|
1
|
+
import { ExportTestDef } from "./_export-test-def.js";
|
|
2
|
+
import * as AbstractImage from "../../../index.js";
|
|
3
3
|
|
|
4
4
|
const components = [
|
|
5
5
|
AbstractImage.createText(
|
|
@@ -27,7 +27,7 @@ const image = AbstractImage.createAbstractImage(
|
|
|
27
27
|
|
|
28
28
|
const dxf = AbstractImage.dxf2dExportImage(image);
|
|
29
29
|
|
|
30
|
-
export const
|
|
30
|
+
export const testDxf2dText: ExportTestDef = {
|
|
31
31
|
name: "dxf2d text",
|
|
32
32
|
abstractImage: dxf,
|
|
33
33
|
expectedImage: `999
|
package/src/exporters/__tests__/{eps-export-image/test-defs → tests-eps-export-image}/eps-ellipse.ts
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ExportTestDef } from "
|
|
2
|
-
import * as AbstractImage from "
|
|
1
|
+
import { ExportTestDef } from "./_export-test-def.js";
|
|
2
|
+
import * as AbstractImage from "../../../index.js";
|
|
3
3
|
|
|
4
4
|
const components = [
|
|
5
5
|
AbstractImage.createEllipse(
|
|
@@ -19,7 +19,7 @@ const image = AbstractImage.createAbstractImage(
|
|
|
19
19
|
|
|
20
20
|
const eps = AbstractImage.epsExportImage(image);
|
|
21
21
|
|
|
22
|
-
export const
|
|
22
|
+
export const testEpsEllipse: ExportTestDef = {
|
|
23
23
|
name: "eps ellipse",
|
|
24
24
|
abstractImage: eps,
|
|
25
25
|
expectedImage: `%!PS-Adobe-3.0 EPSF-3.0
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ExportTestDef } from "
|
|
2
|
-
import * as AbstractImage from "
|
|
1
|
+
import { ExportTestDef } from "./_export-test-def.js";
|
|
2
|
+
import * as AbstractImage from "../../../index.js";
|
|
3
3
|
|
|
4
4
|
const components = [
|
|
5
5
|
AbstractImage.createText(
|
|
@@ -27,7 +27,7 @@ const image = AbstractImage.createAbstractImage(
|
|
|
27
27
|
|
|
28
28
|
const eps = AbstractImage.epsExportImage(image);
|
|
29
29
|
|
|
30
|
-
export const
|
|
30
|
+
export const testEpsEmptyText: ExportTestDef = {
|
|
31
31
|
name: "eps empty text",
|
|
32
32
|
abstractImage: eps,
|
|
33
33
|
expectedImage: `%!PS-Adobe-3.0 EPSF-3.0
|
package/src/exporters/__tests__/{eps-export-image/test-defs → tests-eps-export-image}/eps-group.ts
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ExportTestDef } from "
|
|
2
|
-
import * as AbstractImage from "
|
|
1
|
+
import { ExportTestDef } from "./_export-test-def.js";
|
|
2
|
+
import * as AbstractImage from "../../../index.js";
|
|
3
3
|
|
|
4
4
|
const components = [
|
|
5
5
|
AbstractImage.createGroup("group", [
|
|
@@ -36,7 +36,7 @@ const image = AbstractImage.createAbstractImage(
|
|
|
36
36
|
|
|
37
37
|
const eps = AbstractImage.epsExportImage(image);
|
|
38
38
|
|
|
39
|
-
export const
|
|
39
|
+
export const testEpsGroup: ExportTestDef = {
|
|
40
40
|
name: "eps group",
|
|
41
41
|
abstractImage: eps,
|
|
42
42
|
expectedImage: `%!PS-Adobe-3.0 EPSF-3.0
|
package/src/exporters/__tests__/{eps-export-image/test-defs → tests-eps-export-image}/eps-line.ts
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ExportTestDef } from "
|
|
2
|
-
import * as AbstractImage from "
|
|
1
|
+
import { ExportTestDef } from "./_export-test-def.js";
|
|
2
|
+
import * as AbstractImage from "../../../index.js";
|
|
3
3
|
|
|
4
4
|
const components = [
|
|
5
5
|
AbstractImage.createLine(
|
|
@@ -18,7 +18,7 @@ const image = AbstractImage.createAbstractImage(
|
|
|
18
18
|
|
|
19
19
|
const eps = AbstractImage.epsExportImage(image);
|
|
20
20
|
|
|
21
|
-
export const
|
|
21
|
+
export const testEpsLine: ExportTestDef = {
|
|
22
22
|
name: "eps line",
|
|
23
23
|
abstractImage: eps,
|
|
24
24
|
expectedImage: `%!PS-Adobe-3.0 EPSF-3.0
|
package/src/exporters/__tests__/{eps-export-image/test-defs → tests-eps-export-image}/eps-polygon.ts
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ExportTestDef } from "
|
|
2
|
-
import * as AbstractImage from "
|
|
1
|
+
import { ExportTestDef } from "./_export-test-def.js";
|
|
2
|
+
import * as AbstractImage from "../../../index.js";
|
|
3
3
|
|
|
4
4
|
const components = [
|
|
5
5
|
AbstractImage.createPolygon(
|
|
@@ -24,7 +24,7 @@ const image = AbstractImage.createAbstractImage(
|
|
|
24
24
|
|
|
25
25
|
const eps = AbstractImage.epsExportImage(image);
|
|
26
26
|
|
|
27
|
-
export const
|
|
27
|
+
export const testEpsPolygon: ExportTestDef = {
|
|
28
28
|
name: "eps polygon",
|
|
29
29
|
abstractImage: eps,
|
|
30
30
|
expectedImage: `%!PS-Adobe-3.0 EPSF-3.0
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ExportTestDef } from "
|
|
2
|
-
import * as AbstractImage from "
|
|
1
|
+
import { ExportTestDef } from "./_export-test-def.js";
|
|
2
|
+
import * as AbstractImage from "../../../index.js";
|
|
3
3
|
|
|
4
4
|
const components = [
|
|
5
5
|
AbstractImage.createPolyLine(
|
|
@@ -25,7 +25,7 @@ const image = AbstractImage.createAbstractImage(
|
|
|
25
25
|
|
|
26
26
|
const eps = AbstractImage.epsExportImage(image);
|
|
27
27
|
|
|
28
|
-
export const
|
|
28
|
+
export const testEpsPolyline: ExportTestDef = {
|
|
29
29
|
name: "eps polyline",
|
|
30
30
|
abstractImage: eps,
|
|
31
31
|
expectedImage: `%!PS-Adobe-3.0 EPSF-3.0
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ExportTestDef } from "
|
|
2
|
-
import * as AbstractImage from "
|
|
1
|
+
import { ExportTestDef } from "./_export-test-def.js";
|
|
2
|
+
import * as AbstractImage from "../../../index.js";
|
|
3
3
|
|
|
4
4
|
const components = [
|
|
5
5
|
AbstractImage.createRectangle(
|
|
@@ -19,7 +19,7 @@ const image = AbstractImage.createAbstractImage(
|
|
|
19
19
|
|
|
20
20
|
const eps = AbstractImage.epsExportImage(image);
|
|
21
21
|
|
|
22
|
-
export const
|
|
22
|
+
export const testEpsRectangle: ExportTestDef = {
|
|
23
23
|
name: "eps rectangle",
|
|
24
24
|
abstractImage: eps,
|
|
25
25
|
expectedImage: `%!PS-Adobe-3.0 EPSF-3.0
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ExportTestDef } from "
|
|
2
|
-
import * as AbstractImage from "
|
|
1
|
+
import { ExportTestDef } from "./_export-test-def.js";
|
|
2
|
+
import * as AbstractImage from "../../../index.js";
|
|
3
3
|
|
|
4
4
|
const components = [
|
|
5
5
|
AbstractImage.createText(
|
|
@@ -72,7 +72,7 @@ const image = AbstractImage.createAbstractImage(
|
|
|
72
72
|
|
|
73
73
|
const eps = AbstractImage.epsExportImage(image);
|
|
74
74
|
|
|
75
|
-
export const
|
|
75
|
+
export const testEpsTextGrowthDirections: ExportTestDef = {
|
|
76
76
|
name: "eps text growth directions",
|
|
77
77
|
abstractImage: eps,
|
|
78
78
|
expectedImage: `%!PS-Adobe-3.0 EPSF-3.0
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ExportTestDef } from "
|
|
2
|
-
import * as AbstractImage from "
|
|
1
|
+
import { ExportTestDef } from "./_export-test-def.js";
|
|
2
|
+
import * as AbstractImage from "../../../index.js";
|
|
3
3
|
|
|
4
4
|
const components = [
|
|
5
5
|
AbstractImage.createText(
|
|
@@ -27,7 +27,7 @@ const image = AbstractImage.createAbstractImage(
|
|
|
27
27
|
|
|
28
28
|
const eps = new TextDecoder("iso-8859-1").decode(AbstractImage.epsExportImage(image, "iso-latin-1-encoding"));
|
|
29
29
|
|
|
30
|
-
export const
|
|
30
|
+
export const testEpsIsoLatin1Encoding: ExportTestDef = {
|
|
31
31
|
name: "eps text",
|
|
32
32
|
abstractImage: eps,
|
|
33
33
|
expectedImage: `%!PS-Adobe-3.0 EPSF-3.0
|