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
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import * as AbstractImage from "../../../index.js";
|
|
2
|
+
const components = [
|
|
3
|
+
AbstractImage.createLine(AbstractImage.createPoint(200, 0), AbstractImage.createPoint(200, 400), AbstractImage.green, 1),
|
|
4
|
+
];
|
|
5
|
+
const image = AbstractImage.createAbstractImage(AbstractImage.createPoint(0, 0), AbstractImage.createSize(400, 400), AbstractImage.white, components);
|
|
6
|
+
const dxf = AbstractImage.dxf2dExportImage(image);
|
|
7
|
+
export const testDxf2dLine = {
|
|
8
|
+
name: "dxf2d line",
|
|
9
|
+
abstractImage: dxf,
|
|
10
|
+
expectedImage: `999
|
|
11
|
+
ELIGO DXF GENERATOR
|
|
12
|
+
0
|
|
13
|
+
SECTION
|
|
14
|
+
2
|
|
15
|
+
HEADER
|
|
16
|
+
9
|
|
17
|
+
$ACADVER
|
|
18
|
+
1
|
|
19
|
+
AC1009
|
|
20
|
+
9
|
|
21
|
+
$INSBASE
|
|
22
|
+
10
|
|
23
|
+
0.0
|
|
24
|
+
20
|
|
25
|
+
0.0
|
|
26
|
+
30
|
|
27
|
+
0.0
|
|
28
|
+
9
|
|
29
|
+
$EXTMIN
|
|
30
|
+
10
|
|
31
|
+
0.0
|
|
32
|
+
20
|
|
33
|
+
0.0
|
|
34
|
+
9
|
|
35
|
+
$EXTMAX
|
|
36
|
+
10
|
|
37
|
+
400
|
|
38
|
+
20
|
|
39
|
+
400
|
|
40
|
+
0
|
|
41
|
+
ENDSEC
|
|
42
|
+
0
|
|
43
|
+
SECTION
|
|
44
|
+
2
|
|
45
|
+
ENTITIES
|
|
46
|
+
0
|
|
47
|
+
LINE
|
|
48
|
+
8
|
|
49
|
+
Lines
|
|
50
|
+
10
|
|
51
|
+
200
|
|
52
|
+
20
|
|
53
|
+
400
|
|
54
|
+
30
|
|
55
|
+
0.0
|
|
56
|
+
11
|
|
57
|
+
200
|
|
58
|
+
21
|
|
59
|
+
0
|
|
60
|
+
31
|
|
61
|
+
0.0
|
|
62
|
+
0
|
|
63
|
+
ENDSEC
|
|
64
|
+
0
|
|
65
|
+
EOF`,
|
|
66
|
+
};
|
|
67
|
+
//# sourceMappingURL=dxf2d-line.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dxf2d-line.js","sourceRoot":"","sources":["../../../../src/exporters/__tests__/tests-dxf2d-export-image/dxf2d-line.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,aAAa,MAAM,mBAAmB,CAAC;AAEnD,MAAM,UAAU,GAAG;IACjB,aAAa,CAAC,UAAU,CACtB,aAAa,CAAC,WAAW,CAAC,GAAG,EAAE,CAAC,CAAC,EACjC,aAAa,CAAC,WAAW,CAAC,GAAG,EAAE,GAAG,CAAC,EACnC,aAAa,CAAC,KAAK,EACnB,CAAC,CACF;CACF,CAAC;AACF,MAAM,KAAK,GAAG,aAAa,CAAC,mBAAmB,CAC7C,aAAa,CAAC,WAAW,CAAC,CAAC,EAAE,CAAC,CAAC,EAC/B,aAAa,CAAC,UAAU,CAAC,GAAG,EAAE,GAAG,CAAC,EAClC,aAAa,CAAC,KAAK,EACnB,UAAU,CACX,CAAC;AAEF,MAAM,GAAG,GAAG,aAAa,CAAC,gBAAgB,CAAC,KAAK,CAAC,CAAC;AAElD,MAAM,CAAC,MAAM,aAAa,GAAkB;IAC1C,IAAI,EAAE,YAAY;IAClB,aAAa,EAAE,GAAG;IAClB,aAAa,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAuDb;CACH,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dxf2d-polygon.d.ts","sourceRoot":"","sources":["../../../../src/exporters/__tests__/tests-dxf2d-export-image/dxf2d-polygon.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAoBtD,eAAO,MAAM,gBAAgB,EAAE,aA6F9B,CAAC"}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import * as AbstractImage from "../../../index.js";
|
|
2
|
+
const components = [
|
|
3
|
+
AbstractImage.createPolygon([AbstractImage.createPoint(200, 250), AbstractImage.createPoint(250, 250), AbstractImage.createPoint(200, 200)], AbstractImage.yellow, 2, AbstractImage.gray),
|
|
4
|
+
];
|
|
5
|
+
const image = AbstractImage.createAbstractImage(AbstractImage.createPoint(0, 0), AbstractImage.createSize(400, 400), AbstractImage.white, components);
|
|
6
|
+
const dxf = AbstractImage.dxf2dExportImage(image);
|
|
7
|
+
export const testDxf2dPolygon = {
|
|
8
|
+
name: "dxf2d polygon",
|
|
9
|
+
abstractImage: dxf,
|
|
10
|
+
expectedImage: `999
|
|
11
|
+
ELIGO DXF GENERATOR
|
|
12
|
+
0
|
|
13
|
+
SECTION
|
|
14
|
+
2
|
|
15
|
+
HEADER
|
|
16
|
+
9
|
|
17
|
+
$ACADVER
|
|
18
|
+
1
|
|
19
|
+
AC1009
|
|
20
|
+
9
|
|
21
|
+
$INSBASE
|
|
22
|
+
10
|
|
23
|
+
0.0
|
|
24
|
+
20
|
|
25
|
+
0.0
|
|
26
|
+
30
|
|
27
|
+
0.0
|
|
28
|
+
9
|
|
29
|
+
$EXTMIN
|
|
30
|
+
10
|
|
31
|
+
0.0
|
|
32
|
+
20
|
|
33
|
+
0.0
|
|
34
|
+
9
|
|
35
|
+
$EXTMAX
|
|
36
|
+
10
|
|
37
|
+
400
|
|
38
|
+
20
|
|
39
|
+
400
|
|
40
|
+
0
|
|
41
|
+
ENDSEC
|
|
42
|
+
0
|
|
43
|
+
SECTION
|
|
44
|
+
2
|
|
45
|
+
ENTITIES
|
|
46
|
+
0
|
|
47
|
+
POLYLINE
|
|
48
|
+
8
|
|
49
|
+
0
|
|
50
|
+
66
|
|
51
|
+
1
|
|
52
|
+
0
|
|
53
|
+
VERTEX
|
|
54
|
+
8
|
|
55
|
+
0
|
|
56
|
+
10
|
|
57
|
+
200
|
|
58
|
+
20
|
|
59
|
+
150
|
|
60
|
+
30
|
|
61
|
+
0.0
|
|
62
|
+
0
|
|
63
|
+
VERTEX
|
|
64
|
+
8
|
|
65
|
+
0
|
|
66
|
+
10
|
|
67
|
+
250
|
|
68
|
+
20
|
|
69
|
+
150
|
|
70
|
+
30
|
|
71
|
+
0.0
|
|
72
|
+
0
|
|
73
|
+
VERTEX
|
|
74
|
+
8
|
|
75
|
+
0
|
|
76
|
+
10
|
|
77
|
+
200
|
|
78
|
+
20
|
|
79
|
+
200
|
|
80
|
+
30
|
|
81
|
+
0.0
|
|
82
|
+
0
|
|
83
|
+
VERTEX
|
|
84
|
+
8
|
|
85
|
+
0
|
|
86
|
+
10
|
|
87
|
+
200
|
|
88
|
+
20
|
|
89
|
+
150
|
|
90
|
+
30
|
|
91
|
+
0.0
|
|
92
|
+
0
|
|
93
|
+
SEQEND
|
|
94
|
+
8
|
|
95
|
+
0
|
|
96
|
+
0
|
|
97
|
+
ENDSEC
|
|
98
|
+
0
|
|
99
|
+
EOF`,
|
|
100
|
+
};
|
|
101
|
+
//# sourceMappingURL=dxf2d-polygon.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dxf2d-polygon.js","sourceRoot":"","sources":["../../../../src/exporters/__tests__/tests-dxf2d-export-image/dxf2d-polygon.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,aAAa,MAAM,mBAAmB,CAAC;AAEnD,MAAM,UAAU,GAAG;IACjB,aAAa,CAAC,aAAa,CACzB,CAAC,aAAa,CAAC,WAAW,CAAC,GAAG,EAAE,GAAG,CAAC,EAAE,aAAa,CAAC,WAAW,CAAC,GAAG,EAAE,GAAG,CAAC,EAAE,aAAa,CAAC,WAAW,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,EAC/G,aAAa,CAAC,MAAM,EACpB,CAAC,EACD,aAAa,CAAC,IAAI,CACnB;CACF,CAAC;AACF,MAAM,KAAK,GAAG,aAAa,CAAC,mBAAmB,CAC7C,aAAa,CAAC,WAAW,CAAC,CAAC,EAAE,CAAC,CAAC,EAC/B,aAAa,CAAC,UAAU,CAAC,GAAG,EAAE,GAAG,CAAC,EAClC,aAAa,CAAC,KAAK,EACnB,UAAU,CACX,CAAC;AAEF,MAAM,GAAG,GAAG,aAAa,CAAC,gBAAgB,CAAC,KAAK,CAAC,CAAC;AAElD,MAAM,CAAC,MAAM,gBAAgB,GAAkB;IAC7C,IAAI,EAAE,eAAe;IACrB,aAAa,EAAE,GAAG;IAClB,aAAa,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAyFb;CACH,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dxf2d-polyline.d.ts","sourceRoot":"","sources":["../../../../src/exporters/__tests__/tests-dxf2d-export-image/dxf2d-polyline.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAmBtD,eAAO,MAAM,iBAAiB,EAAE,aAmF/B,CAAC"}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import * as AbstractImage from "../../../index.js";
|
|
2
|
+
const components = [
|
|
3
|
+
AbstractImage.createPolyLine([AbstractImage.createPoint(10, 10), AbstractImage.createPoint(390, 390), AbstractImage.createPoint(390, 10)], AbstractImage.brown, 2),
|
|
4
|
+
];
|
|
5
|
+
const image = AbstractImage.createAbstractImage(AbstractImage.createPoint(0, 0), AbstractImage.createSize(400, 400), AbstractImage.white, components);
|
|
6
|
+
const dxf = AbstractImage.dxf2dExportImage(image);
|
|
7
|
+
export const testDxf2dPolyline = {
|
|
8
|
+
name: "dxf2d polyline",
|
|
9
|
+
abstractImage: dxf,
|
|
10
|
+
expectedImage: `999
|
|
11
|
+
ELIGO DXF GENERATOR
|
|
12
|
+
0
|
|
13
|
+
SECTION
|
|
14
|
+
2
|
|
15
|
+
HEADER
|
|
16
|
+
9
|
|
17
|
+
$ACADVER
|
|
18
|
+
1
|
|
19
|
+
AC1009
|
|
20
|
+
9
|
|
21
|
+
$INSBASE
|
|
22
|
+
10
|
|
23
|
+
0.0
|
|
24
|
+
20
|
|
25
|
+
0.0
|
|
26
|
+
30
|
|
27
|
+
0.0
|
|
28
|
+
9
|
|
29
|
+
$EXTMIN
|
|
30
|
+
10
|
|
31
|
+
0.0
|
|
32
|
+
20
|
|
33
|
+
0.0
|
|
34
|
+
9
|
|
35
|
+
$EXTMAX
|
|
36
|
+
10
|
|
37
|
+
400
|
|
38
|
+
20
|
|
39
|
+
400
|
|
40
|
+
0
|
|
41
|
+
ENDSEC
|
|
42
|
+
0
|
|
43
|
+
SECTION
|
|
44
|
+
2
|
|
45
|
+
ENTITIES
|
|
46
|
+
0
|
|
47
|
+
POLYLINE
|
|
48
|
+
8
|
|
49
|
+
0
|
|
50
|
+
66
|
|
51
|
+
1
|
|
52
|
+
0
|
|
53
|
+
VERTEX
|
|
54
|
+
8
|
|
55
|
+
0
|
|
56
|
+
10
|
|
57
|
+
10
|
|
58
|
+
20
|
|
59
|
+
390
|
|
60
|
+
30
|
|
61
|
+
0.0
|
|
62
|
+
0
|
|
63
|
+
VERTEX
|
|
64
|
+
8
|
|
65
|
+
0
|
|
66
|
+
10
|
|
67
|
+
390
|
|
68
|
+
20
|
|
69
|
+
10
|
|
70
|
+
30
|
|
71
|
+
0.0
|
|
72
|
+
0
|
|
73
|
+
VERTEX
|
|
74
|
+
8
|
|
75
|
+
0
|
|
76
|
+
10
|
|
77
|
+
390
|
|
78
|
+
20
|
|
79
|
+
390
|
|
80
|
+
30
|
|
81
|
+
0.0
|
|
82
|
+
0
|
|
83
|
+
SEQEND
|
|
84
|
+
8
|
|
85
|
+
0
|
|
86
|
+
0
|
|
87
|
+
ENDSEC
|
|
88
|
+
0
|
|
89
|
+
EOF`,
|
|
90
|
+
};
|
|
91
|
+
//# sourceMappingURL=dxf2d-polyline.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dxf2d-polyline.js","sourceRoot":"","sources":["../../../../src/exporters/__tests__/tests-dxf2d-export-image/dxf2d-polyline.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,aAAa,MAAM,mBAAmB,CAAC;AAEnD,MAAM,UAAU,GAAG;IACjB,aAAa,CAAC,cAAc,CAC1B,CAAC,aAAa,CAAC,WAAW,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,aAAa,CAAC,WAAW,CAAC,GAAG,EAAE,GAAG,CAAC,EAAE,aAAa,CAAC,WAAW,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,EAC5G,aAAa,CAAC,KAAK,EACnB,CAAC,CACF;CACF,CAAC;AACF,MAAM,KAAK,GAAG,aAAa,CAAC,mBAAmB,CAC7C,aAAa,CAAC,WAAW,CAAC,CAAC,EAAE,CAAC,CAAC,EAC/B,aAAa,CAAC,UAAU,CAAC,GAAG,EAAE,GAAG,CAAC,EAClC,aAAa,CAAC,KAAK,EACnB,UAAU,CACX,CAAC;AAEF,MAAM,GAAG,GAAG,aAAa,CAAC,gBAAgB,CAAC,KAAK,CAAC,CAAC;AAElD,MAAM,CAAC,MAAM,iBAAiB,GAAkB;IAC9C,IAAI,EAAE,gBAAgB;IACtB,aAAa,EAAE,GAAG;IAClB,aAAa,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA+Eb;CACH,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dxf2d-rectangle.d.ts","sourceRoot":"","sources":["../../../../src/exporters/__tests__/tests-dxf2d-export-image/dxf2d-rectangle.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAqBtD,eAAO,MAAM,kBAAkB,EAAE,aAuGhC,CAAC"}
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import * as AbstractImage from "../../../index.js";
|
|
2
|
+
const components = [
|
|
3
|
+
AbstractImage.createRectangle(AbstractImage.createPoint(10, 50), AbstractImage.createPoint(40, 80), AbstractImage.blue, 2, AbstractImage.red),
|
|
4
|
+
];
|
|
5
|
+
const image = AbstractImage.createAbstractImage(AbstractImage.createPoint(0, 0), AbstractImage.createSize(400, 400), AbstractImage.white, components);
|
|
6
|
+
const dxf = AbstractImage.dxf2dExportImage(image);
|
|
7
|
+
export const testDxf2dRectangle = {
|
|
8
|
+
name: "dxf2d rectangle",
|
|
9
|
+
abstractImage: dxf,
|
|
10
|
+
expectedImage: `999
|
|
11
|
+
ELIGO DXF GENERATOR
|
|
12
|
+
0
|
|
13
|
+
SECTION
|
|
14
|
+
2
|
|
15
|
+
HEADER
|
|
16
|
+
9
|
|
17
|
+
$ACADVER
|
|
18
|
+
1
|
|
19
|
+
AC1009
|
|
20
|
+
9
|
|
21
|
+
$INSBASE
|
|
22
|
+
10
|
|
23
|
+
0.0
|
|
24
|
+
20
|
|
25
|
+
0.0
|
|
26
|
+
30
|
|
27
|
+
0.0
|
|
28
|
+
9
|
|
29
|
+
$EXTMIN
|
|
30
|
+
10
|
|
31
|
+
0.0
|
|
32
|
+
20
|
|
33
|
+
0.0
|
|
34
|
+
9
|
|
35
|
+
$EXTMAX
|
|
36
|
+
10
|
|
37
|
+
400
|
|
38
|
+
20
|
|
39
|
+
400
|
|
40
|
+
0
|
|
41
|
+
ENDSEC
|
|
42
|
+
0
|
|
43
|
+
SECTION
|
|
44
|
+
2
|
|
45
|
+
ENTITIES
|
|
46
|
+
0
|
|
47
|
+
POLYLINE
|
|
48
|
+
8
|
|
49
|
+
0
|
|
50
|
+
66
|
|
51
|
+
1
|
|
52
|
+
0
|
|
53
|
+
VERTEX
|
|
54
|
+
8
|
|
55
|
+
0
|
|
56
|
+
10
|
|
57
|
+
10
|
|
58
|
+
20
|
|
59
|
+
350
|
|
60
|
+
30
|
|
61
|
+
0.0
|
|
62
|
+
0
|
|
63
|
+
VERTEX
|
|
64
|
+
8
|
|
65
|
+
0
|
|
66
|
+
10
|
|
67
|
+
40
|
|
68
|
+
20
|
|
69
|
+
350
|
|
70
|
+
30
|
|
71
|
+
0.0
|
|
72
|
+
0
|
|
73
|
+
VERTEX
|
|
74
|
+
8
|
|
75
|
+
0
|
|
76
|
+
10
|
|
77
|
+
40
|
|
78
|
+
20
|
|
79
|
+
320
|
|
80
|
+
30
|
|
81
|
+
0.0
|
|
82
|
+
0
|
|
83
|
+
VERTEX
|
|
84
|
+
8
|
|
85
|
+
0
|
|
86
|
+
10
|
|
87
|
+
10
|
|
88
|
+
20
|
|
89
|
+
320
|
|
90
|
+
30
|
|
91
|
+
0.0
|
|
92
|
+
0
|
|
93
|
+
VERTEX
|
|
94
|
+
8
|
|
95
|
+
0
|
|
96
|
+
10
|
|
97
|
+
10
|
|
98
|
+
20
|
|
99
|
+
350
|
|
100
|
+
30
|
|
101
|
+
0.0
|
|
102
|
+
0
|
|
103
|
+
SEQEND
|
|
104
|
+
8
|
|
105
|
+
0
|
|
106
|
+
0
|
|
107
|
+
ENDSEC
|
|
108
|
+
0
|
|
109
|
+
EOF`,
|
|
110
|
+
};
|
|
111
|
+
//# sourceMappingURL=dxf2d-rectangle.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dxf2d-rectangle.js","sourceRoot":"","sources":["../../../../src/exporters/__tests__/tests-dxf2d-export-image/dxf2d-rectangle.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,aAAa,MAAM,mBAAmB,CAAC;AAEnD,MAAM,UAAU,GAAG;IACjB,aAAa,CAAC,eAAe,CAC3B,aAAa,CAAC,WAAW,CAAC,EAAE,EAAE,EAAE,CAAC,EACjC,aAAa,CAAC,WAAW,CAAC,EAAE,EAAE,EAAE,CAAC,EACjC,aAAa,CAAC,IAAI,EAClB,CAAC,EACD,aAAa,CAAC,GAAG,CAClB;CACF,CAAC;AACF,MAAM,KAAK,GAAG,aAAa,CAAC,mBAAmB,CAC7C,aAAa,CAAC,WAAW,CAAC,CAAC,EAAE,CAAC,CAAC,EAC/B,aAAa,CAAC,UAAU,CAAC,GAAG,EAAE,GAAG,CAAC,EAClC,aAAa,CAAC,KAAK,EACnB,UAAU,CACX,CAAC;AAEF,MAAM,GAAG,GAAG,aAAa,CAAC,gBAAgB,CAAC,KAAK,CAAC,CAAC;AAElD,MAAM,CAAC,MAAM,kBAAkB,GAAkB;IAC/C,IAAI,EAAE,iBAAiB;IACvB,aAAa,EAAE,GAAG;IAClB,aAAa,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAmGb;CACH,CAAC"}
|
package/lib/exporters/__tests__/tests-dxf2d-export-image/dxf2d-text-growth-directions.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dxf2d-text-growth-directions.d.ts","sourceRoot":"","sources":["../../../../src/exporters/__tests__/tests-dxf2d-export-image/dxf2d-text-growth-directions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AA0EtD,eAAO,MAAM,6BAA6B,EAAE,aA2I3C,CAAC"}
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
import * as AbstractImage from "../../../index.js";
|
|
2
|
+
const components = [
|
|
3
|
+
AbstractImage.createText(AbstractImage.createPoint(10, 10), "Hello World", "Arial", 12, AbstractImage.black, "bold", 0, "center", "left", "up", 2, AbstractImage.red, false),
|
|
4
|
+
AbstractImage.createText(AbstractImage.createPoint(10, 30), "Hello World", "Arial", 12, AbstractImage.black, "bold", 0, "center", "uniform", "uniform", 2, AbstractImage.red, false),
|
|
5
|
+
AbstractImage.createText(AbstractImage.createPoint(10, 50), "Hello World", "Arial", 12, AbstractImage.black, "bold", 0, "left", "right", "down", 2, AbstractImage.red, false),
|
|
6
|
+
AbstractImage.createText(AbstractImage.createPoint(10, 70), "Hello World", "Arial", 12, AbstractImage.black, "bold", 0, "right", "right", "down", 2, AbstractImage.red, false),
|
|
7
|
+
];
|
|
8
|
+
const image = AbstractImage.createAbstractImage(AbstractImage.createPoint(0, 0), AbstractImage.createSize(400, 400), AbstractImage.white, components);
|
|
9
|
+
const dxf = AbstractImage.dxf2dExportImage(image);
|
|
10
|
+
export const testDxf2dTextGrowthDirections = {
|
|
11
|
+
name: "dxf text growth directions",
|
|
12
|
+
abstractImage: dxf,
|
|
13
|
+
expectedImage: `999
|
|
14
|
+
ELIGO DXF GENERATOR
|
|
15
|
+
0
|
|
16
|
+
SECTION
|
|
17
|
+
2
|
|
18
|
+
HEADER
|
|
19
|
+
9
|
|
20
|
+
$ACADVER
|
|
21
|
+
1
|
|
22
|
+
AC1009
|
|
23
|
+
9
|
|
24
|
+
$INSBASE
|
|
25
|
+
10
|
|
26
|
+
0.0
|
|
27
|
+
20
|
|
28
|
+
0.0
|
|
29
|
+
30
|
|
30
|
+
0.0
|
|
31
|
+
9
|
|
32
|
+
$EXTMIN
|
|
33
|
+
10
|
|
34
|
+
0.0
|
|
35
|
+
20
|
|
36
|
+
0.0
|
|
37
|
+
9
|
|
38
|
+
$EXTMAX
|
|
39
|
+
10
|
|
40
|
+
400
|
|
41
|
+
20
|
|
42
|
+
400
|
|
43
|
+
0
|
|
44
|
+
ENDSEC
|
|
45
|
+
0
|
|
46
|
+
SECTION
|
|
47
|
+
2
|
|
48
|
+
ENTITIES
|
|
49
|
+
0
|
|
50
|
+
TEXT
|
|
51
|
+
8
|
|
52
|
+
Text
|
|
53
|
+
10
|
|
54
|
+
10
|
|
55
|
+
20
|
|
56
|
+
390
|
|
57
|
+
30
|
|
58
|
+
0.0
|
|
59
|
+
11
|
|
60
|
+
10
|
|
61
|
+
21
|
|
62
|
+
390
|
|
63
|
+
31
|
|
64
|
+
0.0
|
|
65
|
+
40
|
|
66
|
+
10
|
|
67
|
+
1
|
|
68
|
+
Hello World
|
|
69
|
+
72
|
|
70
|
+
2
|
|
71
|
+
73
|
|
72
|
+
0
|
|
73
|
+
0
|
|
74
|
+
TEXT
|
|
75
|
+
8
|
|
76
|
+
Text
|
|
77
|
+
10
|
|
78
|
+
10
|
|
79
|
+
20
|
|
80
|
+
370
|
|
81
|
+
30
|
|
82
|
+
0.0
|
|
83
|
+
11
|
|
84
|
+
10
|
|
85
|
+
21
|
|
86
|
+
370
|
|
87
|
+
31
|
|
88
|
+
0.0
|
|
89
|
+
40
|
|
90
|
+
10
|
|
91
|
+
1
|
|
92
|
+
Hello World
|
|
93
|
+
72
|
|
94
|
+
1
|
|
95
|
+
73
|
|
96
|
+
2
|
|
97
|
+
0
|
|
98
|
+
TEXT
|
|
99
|
+
8
|
|
100
|
+
Text
|
|
101
|
+
10
|
|
102
|
+
10
|
|
103
|
+
20
|
|
104
|
+
350
|
|
105
|
+
30
|
|
106
|
+
0.0
|
|
107
|
+
11
|
|
108
|
+
10
|
|
109
|
+
21
|
|
110
|
+
350
|
|
111
|
+
31
|
|
112
|
+
0.0
|
|
113
|
+
40
|
|
114
|
+
10
|
|
115
|
+
1
|
|
116
|
+
Hello World
|
|
117
|
+
72
|
|
118
|
+
0
|
|
119
|
+
73
|
|
120
|
+
3
|
|
121
|
+
0
|
|
122
|
+
TEXT
|
|
123
|
+
8
|
|
124
|
+
Text
|
|
125
|
+
10
|
|
126
|
+
10
|
|
127
|
+
20
|
|
128
|
+
330
|
|
129
|
+
30
|
|
130
|
+
0.0
|
|
131
|
+
11
|
|
132
|
+
10
|
|
133
|
+
21
|
|
134
|
+
330
|
|
135
|
+
31
|
|
136
|
+
0.0
|
|
137
|
+
40
|
|
138
|
+
10
|
|
139
|
+
1
|
|
140
|
+
Hello World
|
|
141
|
+
72
|
|
142
|
+
0
|
|
143
|
+
73
|
|
144
|
+
3
|
|
145
|
+
0
|
|
146
|
+
ENDSEC
|
|
147
|
+
0
|
|
148
|
+
EOF`,
|
|
149
|
+
};
|
|
150
|
+
//# sourceMappingURL=dxf2d-text-growth-directions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dxf2d-text-growth-directions.js","sourceRoot":"","sources":["../../../../src/exporters/__tests__/tests-dxf2d-export-image/dxf2d-text-growth-directions.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,aAAa,MAAM,mBAAmB,CAAC;AAEnD,MAAM,UAAU,GAAG;IACjB,aAAa,CAAC,UAAU,CACtB,aAAa,CAAC,WAAW,CAAC,EAAE,EAAE,EAAE,CAAC,EACjC,aAAa,EACb,OAAO,EACP,EAAE,EACF,aAAa,CAAC,KAAK,EACnB,MAAM,EACN,CAAC,EACD,QAAQ,EACR,MAAM,EACN,IAAI,EACJ,CAAC,EACD,aAAa,CAAC,GAAG,EACjB,KAAK,CACN;IACD,aAAa,CAAC,UAAU,CACtB,aAAa,CAAC,WAAW,CAAC,EAAE,EAAE,EAAE,CAAC,EACjC,aAAa,EACb,OAAO,EACP,EAAE,EACF,aAAa,CAAC,KAAK,EACnB,MAAM,EACN,CAAC,EACD,QAAQ,EACR,SAAS,EACT,SAAS,EACT,CAAC,EACD,aAAa,CAAC,GAAG,EACjB,KAAK,CACN;IACD,aAAa,CAAC,UAAU,CACtB,aAAa,CAAC,WAAW,CAAC,EAAE,EAAE,EAAE,CAAC,EACjC,aAAa,EACb,OAAO,EACP,EAAE,EACF,aAAa,CAAC,KAAK,EACnB,MAAM,EACN,CAAC,EACD,MAAM,EACN,OAAO,EACP,MAAM,EACN,CAAC,EACD,aAAa,CAAC,GAAG,EACjB,KAAK,CACN;IACD,aAAa,CAAC,UAAU,CACtB,aAAa,CAAC,WAAW,CAAC,EAAE,EAAE,EAAE,CAAC,EACjC,aAAa,EACb,OAAO,EACP,EAAE,EACF,aAAa,CAAC,KAAK,EACnB,MAAM,EACN,CAAC,EACD,OAAO,EACP,OAAO,EACP,MAAM,EACN,CAAC,EACD,aAAa,CAAC,GAAG,EACjB,KAAK,CACN;CACF,CAAC;AACF,MAAM,KAAK,GAAG,aAAa,CAAC,mBAAmB,CAC7C,aAAa,CAAC,WAAW,CAAC,CAAC,EAAE,CAAC,CAAC,EAC/B,aAAa,CAAC,UAAU,CAAC,GAAG,EAAE,GAAG,CAAC,EAClC,aAAa,CAAC,KAAK,EACnB,UAAU,CACX,CAAC;AAEF,MAAM,GAAG,GAAG,aAAa,CAAC,gBAAgB,CAAC,KAAK,CAAC,CAAC;AAElD,MAAM,CAAC,MAAM,6BAA6B,GAAkB;IAC1D,IAAI,EAAE,4BAA4B;IAClC,aAAa,EAAE,GAAG;IAClB,aAAa,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAuIb;CACH,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dxf2d-text.d.ts","sourceRoot":"","sources":["../../../../src/exporters/__tests__/tests-dxf2d-export-image/dxf2d-text.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AA6BtD,eAAO,MAAM,aAAa,EAAE,aAmE3B,CAAC"}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import * as AbstractImage from "../../../index.js";
|
|
2
|
+
const components = [
|
|
3
|
+
AbstractImage.createText(AbstractImage.createPoint(200, 200), "Test", "Helvetica", 12, AbstractImage.black, "normal", 0, "center", "uniform", "uniform", 0, AbstractImage.black, false),
|
|
4
|
+
];
|
|
5
|
+
const image = AbstractImage.createAbstractImage(AbstractImage.createPoint(0, 0), AbstractImage.createSize(400, 400), AbstractImage.white, components);
|
|
6
|
+
const dxf = AbstractImage.dxf2dExportImage(image);
|
|
7
|
+
export const testDxf2dText = {
|
|
8
|
+
name: "dxf2d text",
|
|
9
|
+
abstractImage: dxf,
|
|
10
|
+
expectedImage: `999
|
|
11
|
+
ELIGO DXF GENERATOR
|
|
12
|
+
0
|
|
13
|
+
SECTION
|
|
14
|
+
2
|
|
15
|
+
HEADER
|
|
16
|
+
9
|
|
17
|
+
$ACADVER
|
|
18
|
+
1
|
|
19
|
+
AC1009
|
|
20
|
+
9
|
|
21
|
+
$INSBASE
|
|
22
|
+
10
|
|
23
|
+
0.0
|
|
24
|
+
20
|
|
25
|
+
0.0
|
|
26
|
+
30
|
|
27
|
+
0.0
|
|
28
|
+
9
|
|
29
|
+
$EXTMIN
|
|
30
|
+
10
|
|
31
|
+
0.0
|
|
32
|
+
20
|
|
33
|
+
0.0
|
|
34
|
+
9
|
|
35
|
+
$EXTMAX
|
|
36
|
+
10
|
|
37
|
+
400
|
|
38
|
+
20
|
|
39
|
+
400
|
|
40
|
+
0
|
|
41
|
+
ENDSEC
|
|
42
|
+
0
|
|
43
|
+
SECTION
|
|
44
|
+
2
|
|
45
|
+
ENTITIES
|
|
46
|
+
0
|
|
47
|
+
TEXT
|
|
48
|
+
8
|
|
49
|
+
Text
|
|
50
|
+
10
|
|
51
|
+
200
|
|
52
|
+
20
|
|
53
|
+
200
|
|
54
|
+
30
|
|
55
|
+
0.0
|
|
56
|
+
11
|
|
57
|
+
200
|
|
58
|
+
21
|
|
59
|
+
200
|
|
60
|
+
31
|
|
61
|
+
0.0
|
|
62
|
+
40
|
|
63
|
+
10
|
|
64
|
+
1
|
|
65
|
+
Test
|
|
66
|
+
72
|
|
67
|
+
1
|
|
68
|
+
73
|
|
69
|
+
2
|
|
70
|
+
0
|
|
71
|
+
ENDSEC
|
|
72
|
+
0
|
|
73
|
+
EOF`,
|
|
74
|
+
};
|
|
75
|
+
//# sourceMappingURL=dxf2d-text.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dxf2d-text.js","sourceRoot":"","sources":["../../../../src/exporters/__tests__/tests-dxf2d-export-image/dxf2d-text.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,aAAa,MAAM,mBAAmB,CAAC;AAEnD,MAAM,UAAU,GAAG;IACjB,aAAa,CAAC,UAAU,CACtB,aAAa,CAAC,WAAW,CAAC,GAAG,EAAE,GAAG,CAAC,EACnC,MAAM,EACN,WAAW,EACX,EAAE,EACF,aAAa,CAAC,KAAK,EACnB,QAAQ,EACR,CAAC,EACD,QAAQ,EACR,SAAS,EACT,SAAS,EACT,CAAC,EACD,aAAa,CAAC,KAAK,EACnB,KAAK,CACN;CACF,CAAC;AACF,MAAM,KAAK,GAAG,aAAa,CAAC,mBAAmB,CAC7C,aAAa,CAAC,WAAW,CAAC,CAAC,EAAE,CAAC,CAAC,EAC/B,aAAa,CAAC,UAAU,CAAC,GAAG,EAAE,GAAG,CAAC,EAClC,aAAa,CAAC,KAAK,EACnB,UAAU,CACX,CAAC;AAEF,MAAM,GAAG,GAAG,aAAa,CAAC,gBAAgB,CAAC,KAAK,CAAC,CAAC;AAElD,MAAM,CAAC,MAAM,aAAa,GAAkB;IAC1C,IAAI,EAAE,YAAY;IAClB,aAAa,EAAE,GAAG;IAClB,aAAa,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA+Db;CACH,CAAC"}
|
|
@@ -3,9 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export type ExportTestDef = {
|
|
5
5
|
readonly name: string;
|
|
6
|
-
readonly only?: boolean;
|
|
7
|
-
readonly skip?: boolean;
|
|
8
6
|
readonly abstractImage: string;
|
|
9
7
|
readonly expectedImage: string;
|
|
10
8
|
};
|
|
11
|
-
//# sourceMappingURL=
|
|
9
|
+
//# sourceMappingURL=_export-test-def.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_export-test-def.d.ts","sourceRoot":"","sources":["../../../../src/exporters/__tests__/tests-eps-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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_export-test-def.js","sourceRoot":"","sources":["../../../../src/exporters/__tests__/tests-eps-export-image/_export-test-def.ts"],"names":[],"mappings":"AAAA;;GAEG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"eps-ellipse.d.ts","sourceRoot":"","sources":["../../../../src/exporters/__tests__/tests-eps-export-image/eps-ellipse.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAqBtD,eAAO,MAAM,cAAc,EAAE,aA4B5B,CAAC"}
|