@mlightcad/cad-simple-viewer 1.7.0 → 1.7.1
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/LICENSE +21 -21
- package/README.md +185 -180
- package/dist/cad-simple-viewer.js +17061 -12706
- package/dist/cad-simple-viewer.umd.cjs +981 -114
- package/dist/mtext-renderer-worker.js +1908 -1765
- package/icons.ts +7 -7
- package/lib/app/AcApContext.d.ts.map +1 -1
- package/lib/app/AcApContext.js +4 -3
- package/lib/app/AcApContext.js.map +1 -1
- package/lib/app/AcApDocManager.d.ts +38 -18
- package/lib/app/AcApDocManager.d.ts.map +1 -1
- package/lib/app/AcApDocManager.js +59 -45
- package/lib/app/AcApDocManager.js.map +1 -1
- package/lib/app/AcApOpenDatabaseOptions.d.ts +17 -1
- package/lib/app/AcApOpenDatabaseOptions.d.ts.map +1 -1
- package/lib/app/AcApOpenDatabaseOptions.js +1 -1
- package/lib/app/AcApOpenDatabaseOptions.js.map +1 -1
- package/lib/app/AcApOpenFileProgressController.d.ts +4 -2
- package/lib/app/AcApOpenFileProgressController.d.ts.map +1 -1
- package/lib/app/AcApOpenFileProgressController.js +4 -2
- package/lib/app/AcApOpenFileProgressController.js.map +1 -1
- package/lib/app/index.d.ts +1 -0
- package/lib/app/index.d.ts.map +1 -1
- package/lib/app/index.js +1 -0
- package/lib/app/index.js.map +1 -1
- package/lib/app/notification/AcApNotificationEventBridge.d.ts +130 -0
- package/lib/app/notification/AcApNotificationEventBridge.d.ts.map +1 -0
- package/lib/app/notification/AcApNotificationEventBridge.js +309 -0
- package/lib/app/notification/AcApNotificationEventBridge.js.map +1 -0
- package/lib/app/notification/AcApNotificationService.d.ts +185 -0
- package/lib/app/notification/AcApNotificationService.d.ts.map +1 -0
- package/lib/app/notification/AcApNotificationService.js +271 -0
- package/lib/app/notification/AcApNotificationService.js.map +1 -0
- package/lib/app/notification/AcApNotificationStore.d.ts +147 -0
- package/lib/app/notification/AcApNotificationStore.d.ts.map +1 -0
- package/lib/app/notification/AcApNotificationStore.js +345 -0
- package/lib/app/notification/AcApNotificationStore.js.map +1 -0
- package/lib/app/notification/AcApNotificationTypes.d.ts +195 -0
- package/lib/app/notification/AcApNotificationTypes.d.ts.map +1 -0
- package/lib/app/notification/AcApNotificationTypes.js +78 -0
- package/lib/app/notification/AcApNotificationTypes.js.map +1 -0
- package/lib/app/notification/index.d.ts +13 -0
- package/lib/app/notification/index.d.ts.map +1 -0
- package/lib/app/notification/index.js +13 -0
- package/lib/app/notification/index.js.map +1 -0
- package/lib/command/AcApInstallDrawStyleSessionAccessory.js +11 -7
- package/lib/command/AcApInstallDrawStyleSessionAccessory.js.map +1 -1
- package/lib/command/AcApSwitchBgCmd.d.ts.map +1 -1
- package/lib/command/AcApSwitchBgCmd.js +7 -2
- package/lib/command/AcApSwitchBgCmd.js.map +1 -1
- package/lib/command/AcApToolbarDocBind.d.ts +19 -0
- package/lib/command/AcApToolbarDocBind.d.ts.map +1 -0
- package/lib/command/AcApToolbarDocBind.js +62 -0
- package/lib/command/AcApToolbarDocBind.js.map +1 -0
- package/lib/command/convert/AcApConvertToBmpCmd.d.ts +14 -0
- package/lib/command/convert/AcApConvertToBmpCmd.d.ts.map +1 -0
- package/lib/command/convert/AcApConvertToBmpCmd.js +34 -0
- package/lib/command/convert/AcApConvertToBmpCmd.js.map +1 -0
- package/lib/command/convert/AcApConvertToJpgCmd.d.ts +14 -0
- package/lib/command/convert/AcApConvertToJpgCmd.d.ts.map +1 -0
- package/lib/command/convert/AcApConvertToJpgCmd.js +34 -0
- package/lib/command/convert/AcApConvertToJpgCmd.js.map +1 -0
- package/lib/command/convert/AcApConvertToPngCmd.d.ts +4 -36
- package/lib/command/convert/AcApConvertToPngCmd.d.ts.map +1 -1
- package/lib/command/convert/AcApConvertToPngCmd.js +4 -138
- package/lib/command/convert/AcApConvertToPngCmd.js.map +1 -1
- package/lib/command/convert/AcApConvertToRasterImageCmd.d.ts +40 -0
- package/lib/command/convert/AcApConvertToRasterImageCmd.d.ts.map +1 -0
- package/lib/command/convert/AcApConvertToRasterImageCmd.js +161 -0
- package/lib/command/convert/AcApConvertToRasterImageCmd.js.map +1 -0
- package/lib/command/convert/{AcApPngConvertor.d.ts → AcApRasterImageConvertor.d.ts} +36 -12
- package/lib/command/convert/AcApRasterImageConvertor.d.ts.map +1 -0
- package/lib/command/convert/{AcApPngConvertor.js → AcApRasterImageConvertor.js} +163 -32
- package/lib/command/convert/AcApRasterImageConvertor.js.map +1 -0
- package/lib/command/convert/index.d.ts +4 -1
- package/lib/command/convert/index.d.ts.map +1 -1
- package/lib/command/convert/index.js +4 -1
- package/lib/command/convert/index.js.map +1 -1
- package/lib/command/index.d.ts +2 -0
- package/lib/command/index.d.ts.map +1 -1
- package/lib/command/index.js +2 -0
- package/lib/command/index.js.map +1 -1
- package/lib/command/markup/AcApMarkupCalloutCmd.d.ts.map +1 -1
- package/lib/command/markup/AcApMarkupCalloutCmd.js +51 -1
- package/lib/command/markup/AcApMarkupCalloutCmd.js.map +1 -1
- package/lib/command/markup/AcApMarkupCmdUtil.d.ts +5 -0
- package/lib/command/markup/AcApMarkupCmdUtil.d.ts.map +1 -1
- package/lib/command/markup/AcApMarkupCmdUtil.js +27 -9
- package/lib/command/markup/AcApMarkupCmdUtil.js.map +1 -1
- package/lib/command/markup/AcApMarkupShapeCallout.d.ts.map +1 -1
- package/lib/command/markup/AcApMarkupShapeCallout.js +49 -1
- package/lib/command/markup/AcApMarkupShapeCallout.js.map +1 -1
- package/lib/editor/global/AcEdUiLayout.d.ts +6 -0
- package/lib/editor/global/AcEdUiLayout.d.ts.map +1 -1
- package/lib/editor/global/AcEdUiLayout.js +6 -0
- package/lib/editor/global/AcEdUiLayout.js.map +1 -1
- package/lib/editor/input/ui/AcEdCanvasTouchCalloutGuard.d.ts +31 -0
- package/lib/editor/input/ui/AcEdCanvasTouchCalloutGuard.d.ts.map +1 -0
- package/lib/editor/input/ui/AcEdCanvasTouchCalloutGuard.js +67 -0
- package/lib/editor/input/ui/AcEdCanvasTouchCalloutGuard.js.map +1 -0
- package/lib/editor/input/ui/AcEdFloatingInput.d.ts +2 -0
- package/lib/editor/input/ui/AcEdFloatingInput.d.ts.map +1 -1
- package/lib/editor/input/ui/AcEdFloatingInput.js +13 -2
- package/lib/editor/input/ui/AcEdFloatingInput.js.map +1 -1
- package/lib/editor/input/ui/AcEdFloatingInputTypes.d.ts +6 -0
- package/lib/editor/input/ui/AcEdFloatingInputTypes.d.ts.map +1 -1
- package/lib/editor/input/ui/AcEdInputManager.d.ts.map +1 -1
- package/lib/editor/input/ui/AcEdInputManager.js +47 -7
- package/lib/editor/input/ui/AcEdInputManager.js.map +1 -1
- package/lib/editor/input/ui/AcEdMobileBoxGesture.d.ts.map +1 -1
- package/lib/editor/input/ui/AcEdMobileBoxGesture.js +2 -0
- package/lib/editor/input/ui/AcEdMobileBoxGesture.js.map +1 -1
- package/lib/editor/input/ui/AcEdMobileCommandChrome.d.ts +18 -4
- package/lib/editor/input/ui/AcEdMobileCommandChrome.d.ts.map +1 -1
- package/lib/editor/input/ui/AcEdMobileCommandChrome.js +14 -0
- package/lib/editor/input/ui/AcEdMobileCommandChrome.js.map +1 -1
- package/lib/editor/input/ui/AcEdSessionAccessoryController.d.ts +10 -2
- package/lib/editor/input/ui/AcEdSessionAccessoryController.d.ts.map +1 -1
- package/lib/editor/input/ui/AcEdSessionAccessoryController.js +15 -4
- package/lib/editor/input/ui/AcEdSessionAccessoryController.js.map +1 -1
- package/lib/editor/input/ui/AcEdTouchPointTiming.d.ts +1 -1
- package/lib/editor/input/ui/AcEdTouchPointTiming.d.ts.map +1 -1
- package/lib/editor/input/ui/AcEdTouchPointTiming.js +1 -1
- package/lib/editor/input/ui/AcEdTouchPointTiming.js.map +1 -1
- package/lib/editor/input/ui/index.d.ts +1 -0
- package/lib/editor/input/ui/index.d.ts.map +1 -1
- package/lib/editor/input/ui/index.js +1 -0
- package/lib/editor/input/ui/index.js.map +1 -1
- package/lib/editor/view/AcEdBaseView.d.ts +12 -0
- package/lib/editor/view/AcEdBaseView.d.ts.map +1 -1
- package/lib/editor/view/AcEdBaseView.js +19 -9
- package/lib/editor/view/AcEdBaseView.js.map +1 -1
- package/lib/editor/view/AcEdSelectionBoxIntersect.d.ts +36 -0
- package/lib/editor/view/AcEdSelectionBoxIntersect.d.ts.map +1 -0
- package/lib/editor/view/AcEdSelectionBoxIntersect.js +113 -0
- package/lib/editor/view/AcEdSelectionBoxIntersect.js.map +1 -0
- package/lib/editor/view/index.d.ts +1 -0
- package/lib/editor/view/index.d.ts.map +1 -1
- package/lib/editor/view/index.js +1 -0
- package/lib/editor/view/index.js.map +1 -1
- package/lib/i18n/AcApI18n.d.ts +2 -1
- package/lib/i18n/AcApI18n.d.ts.map +1 -1
- package/lib/i18n/AcApI18n.js +4 -1
- package/lib/i18n/AcApI18n.js.map +1 -1
- package/lib/i18n/ar/command.d.ts +9 -0
- package/lib/i18n/ar/command.d.ts.map +1 -1
- package/lib/i18n/ar/command.js +1 -1
- package/lib/i18n/ar/command.js.map +1 -1
- package/lib/i18n/ar/jig.d.ts +47 -0
- package/lib/i18n/ar/jig.d.ts.map +1 -1
- package/lib/i18n/ar/jig.js +17 -1
- package/lib/i18n/ar/jig.js.map +1 -1
- package/lib/i18n/ar/main.d.ts +30 -0
- package/lib/i18n/ar/main.d.ts.map +1 -1
- package/lib/i18n/ar/main.js +34 -4
- package/lib/i18n/ar/main.js.map +1 -1
- package/lib/i18n/cs/command.d.ts +9 -0
- package/lib/i18n/cs/command.d.ts.map +1 -1
- package/lib/i18n/cs/command.js +9 -0
- package/lib/i18n/cs/command.js.map +1 -1
- package/lib/i18n/cs/jig.d.ts +47 -0
- package/lib/i18n/cs/jig.d.ts.map +1 -1
- package/lib/i18n/cs/jig.js +47 -0
- package/lib/i18n/cs/jig.js.map +1 -1
- package/lib/i18n/cs/main.d.ts +30 -0
- package/lib/i18n/cs/main.d.ts.map +1 -1
- package/lib/i18n/cs/main.js +34 -4
- package/lib/i18n/cs/main.js.map +1 -1
- package/lib/i18n/en/command.d.ts +9 -0
- package/lib/i18n/en/command.d.ts.map +1 -1
- package/lib/i18n/en/command.js +9 -0
- package/lib/i18n/en/command.js.map +1 -1
- package/lib/i18n/en/jig.d.ts +47 -0
- package/lib/i18n/en/jig.d.ts.map +1 -1
- package/lib/i18n/en/jig.js +47 -0
- package/lib/i18n/en/jig.js.map +1 -1
- package/lib/i18n/en/main.d.ts +30 -0
- package/lib/i18n/en/main.d.ts.map +1 -1
- package/lib/i18n/en/main.js +34 -4
- package/lib/i18n/en/main.js.map +1 -1
- package/lib/i18n/index.d.ts +2 -2
- package/lib/i18n/index.d.ts.map +1 -1
- package/lib/i18n/index.js.map +1 -1
- package/lib/i18n/tr/command.d.ts +9 -0
- package/lib/i18n/tr/command.d.ts.map +1 -1
- package/lib/i18n/tr/command.js +9 -0
- package/lib/i18n/tr/command.js.map +1 -1
- package/lib/i18n/tr/jig.d.ts +47 -0
- package/lib/i18n/tr/jig.d.ts.map +1 -1
- package/lib/i18n/tr/jig.js +47 -0
- package/lib/i18n/tr/jig.js.map +1 -1
- package/lib/i18n/tr/main.d.ts +30 -0
- package/lib/i18n/tr/main.d.ts.map +1 -1
- package/lib/i18n/tr/main.js +34 -4
- package/lib/i18n/tr/main.js.map +1 -1
- package/lib/i18n/zh/command.d.ts +9 -0
- package/lib/i18n/zh/command.d.ts.map +1 -1
- package/lib/i18n/zh/command.js +9 -0
- package/lib/i18n/zh/command.js.map +1 -1
- package/lib/i18n/zh/jig.d.ts +47 -0
- package/lib/i18n/zh/jig.d.ts.map +1 -1
- package/lib/i18n/zh/jig.js +47 -0
- package/lib/i18n/zh/jig.js.map +1 -1
- package/lib/i18n/zh/main.d.ts +30 -0
- package/lib/i18n/zh/main.d.ts.map +1 -1
- package/lib/i18n/zh/main.js +34 -4
- package/lib/i18n/zh/main.js.map +1 -1
- package/lib/spatialIndex/AcTrHierarchicalSpatialIndex.d.ts +6 -0
- package/lib/spatialIndex/AcTrHierarchicalSpatialIndex.d.ts.map +1 -1
- package/lib/spatialIndex/AcTrHierarchicalSpatialIndex.js +10 -0
- package/lib/spatialIndex/AcTrHierarchicalSpatialIndex.js.map +1 -1
- package/lib/spatialIndex/AcTrLinearSpatialIndex.d.ts +4 -0
- package/lib/spatialIndex/AcTrLinearSpatialIndex.d.ts.map +1 -1
- package/lib/spatialIndex/AcTrLinearSpatialIndex.js +9 -0
- package/lib/spatialIndex/AcTrLinearSpatialIndex.js.map +1 -1
- package/lib/spatialIndex/AcTrRBushSpatialIndex.d.ts +4 -0
- package/lib/spatialIndex/AcTrRBushSpatialIndex.d.ts.map +1 -1
- package/lib/spatialIndex/AcTrRBushSpatialIndex.js +9 -0
- package/lib/spatialIndex/AcTrRBushSpatialIndex.js.map +1 -1
- package/lib/ui/AcUiDefaultNotificationUi.d.ts +167 -0
- package/lib/ui/AcUiDefaultNotificationUi.d.ts.map +1 -0
- package/lib/ui/AcUiDefaultNotificationUi.js +603 -0
- package/lib/ui/AcUiDefaultNotificationUi.js.map +1 -0
- package/lib/ui/AcUiDrawStyle.d.ts +2 -1
- package/lib/ui/AcUiDrawStyle.d.ts.map +1 -1
- package/lib/ui/AcUiDrawStyle.js +2 -1
- package/lib/ui/AcUiDrawStyle.js.map +1 -1
- package/lib/ui/AcUiDrawStyleSessionAccessory.d.ts.map +1 -1
- package/lib/ui/AcUiDrawStyleSessionAccessory.js +5 -1
- package/lib/ui/AcUiDrawStyleSessionAccessory.js.map +1 -1
- package/lib/ui/AcUiMobileSessionPanel.d.ts +73 -8
- package/lib/ui/AcUiMobileSessionPanel.d.ts.map +1 -1
- package/lib/ui/AcUiMobileSessionPanel.js +314 -49
- package/lib/ui/AcUiMobileSessionPanel.js.map +1 -1
- package/lib/ui/AcUiShortCutToolbar.d.ts +24 -0
- package/lib/ui/AcUiShortCutToolbar.d.ts.map +1 -1
- package/lib/ui/AcUiShortCutToolbar.js +73 -5
- package/lib/ui/AcUiShortCutToolbar.js.map +1 -1
- package/lib/ui/index.d.ts +2 -0
- package/lib/ui/index.d.ts.map +1 -1
- package/lib/ui/index.js +2 -0
- package/lib/ui/index.js.map +1 -1
- package/lib/ui/toolbar/AcUiDropdownMenu.d.ts +48 -0
- package/lib/ui/toolbar/AcUiDropdownMenu.d.ts.map +1 -0
- package/lib/ui/toolbar/AcUiDropdownMenu.js +116 -0
- package/lib/ui/toolbar/AcUiDropdownMenu.js.map +1 -0
- package/lib/ui/toolbar/AcUiSubToolbar.d.ts +125 -0
- package/lib/ui/toolbar/AcUiSubToolbar.d.ts.map +1 -0
- package/lib/ui/toolbar/AcUiSubToolbar.js +625 -0
- package/lib/ui/toolbar/AcUiSubToolbar.js.map +1 -0
- package/lib/ui/toolbar/AcUiToolbar.d.ts +446 -0
- package/lib/ui/toolbar/AcUiToolbar.d.ts.map +1 -0
- package/lib/ui/toolbar/AcUiToolbar.js +1550 -0
- package/lib/ui/toolbar/AcUiToolbar.js.map +1 -0
- package/lib/ui/toolbar/AcUiToolbarStyles.d.ts +20 -0
- package/lib/ui/toolbar/AcUiToolbarStyles.d.ts.map +1 -0
- package/lib/ui/toolbar/AcUiToolbarStyles.js +34 -0
- package/lib/ui/toolbar/AcUiToolbarStyles.js.map +1 -0
- package/lib/ui/toolbar/acuiWrapPackLayout.d.ts +19 -0
- package/lib/ui/toolbar/acuiWrapPackLayout.d.ts.map +1 -0
- package/lib/ui/toolbar/acuiWrapPackLayout.js +36 -0
- package/lib/ui/toolbar/acuiWrapPackLayout.js.map +1 -0
- package/lib/ui/toolbar/index.d.ts +19 -0
- package/lib/ui/toolbar/index.d.ts.map +1 -0
- package/lib/ui/toolbar/index.js +15 -0
- package/lib/ui/toolbar/index.js.map +1 -0
- package/lib/ui/toolbar/resolveToolbarChrome.d.ts +14 -0
- package/lib/ui/toolbar/resolveToolbarChrome.d.ts.map +1 -0
- package/lib/ui/toolbar/resolveToolbarChrome.js +35 -0
- package/lib/ui/toolbar/resolveToolbarChrome.js.map +1 -0
- package/lib/ui/toolbar/resolveToolbarItemState.d.ts +63 -0
- package/lib/ui/toolbar/resolveToolbarItemState.d.ts.map +1 -0
- package/lib/ui/toolbar/resolveToolbarItemState.js +171 -0
- package/lib/ui/toolbar/resolveToolbarItemState.js.map +1 -0
- package/lib/ui/toolbar/toolbarItemUtils.d.ts +62 -0
- package/lib/ui/toolbar/toolbarItemUtils.d.ts.map +1 -0
- package/lib/ui/toolbar/toolbarItemUtils.js +184 -0
- package/lib/ui/toolbar/toolbarItemUtils.js.map +1 -0
- package/lib/ui/toolbar/types.d.ts +268 -0
- package/lib/ui/toolbar/types.d.ts.map +1 -0
- package/lib/ui/toolbar/types.js +8 -0
- package/lib/ui/toolbar/types.js.map +1 -0
- package/lib/ui-html-entry.d.ts +8 -1
- package/lib/ui-html-entry.d.ts.map +1 -1
- package/lib/ui-html-entry.js +6 -1
- package/lib/ui-html-entry.js.map +1 -1
- package/lib/util/AcApAnalyzeUnsupportedDrawing.d.ts +53 -0
- package/lib/util/AcApAnalyzeUnsupportedDrawing.d.ts.map +1 -0
- package/lib/util/AcApAnalyzeUnsupportedDrawing.js +164 -0
- package/lib/util/AcApAnalyzeUnsupportedDrawing.js.map +1 -0
- package/lib/util/AcApFormatFontMissedMessage.d.ts +32 -0
- package/lib/util/AcApFormatFontMissedMessage.d.ts.map +1 -0
- package/lib/util/AcApFormatFontMissedMessage.js +46 -0
- package/lib/util/AcApFormatFontMissedMessage.js.map +1 -0
- package/lib/util/AcApFormatUnsupportedEntitiesMessage.d.ts +44 -0
- package/lib/util/AcApFormatUnsupportedEntitiesMessage.d.ts.map +1 -0
- package/lib/util/AcApFormatUnsupportedEntitiesMessage.js +105 -0
- package/lib/util/AcApFormatUnsupportedEntitiesMessage.js.map +1 -0
- package/lib/util/index.d.ts +3 -0
- package/lib/util/index.d.ts.map +1 -1
- package/lib/util/index.js +3 -0
- package/lib/util/index.js.map +1 -1
- package/lib/view/AcTrLayer.d.ts +13 -1
- package/lib/view/AcTrLayer.d.ts.map +1 -1
- package/lib/view/AcTrLayer.js +28 -11
- package/lib/view/AcTrLayer.js.map +1 -1
- package/lib/view/AcTrLayout.d.ts +17 -2
- package/lib/view/AcTrLayout.d.ts.map +1 -1
- package/lib/view/AcTrLayout.js +44 -3
- package/lib/view/AcTrLayout.js.map +1 -1
- package/lib/view/AcTrScene.d.ts +4 -0
- package/lib/view/AcTrScene.d.ts.map +1 -1
- package/lib/view/AcTrScene.js +6 -0
- package/lib/view/AcTrScene.js.map +1 -1
- package/lib/view/AcTrView2d.d.ts +93 -14
- package/lib/view/AcTrView2d.d.ts.map +1 -1
- package/lib/view/AcTrView2d.js +382 -102
- package/lib/view/AcTrView2d.js.map +1 -1
- package/package.json +8 -8
- package/src/ui/icons.ts +387 -387
- package/lib/command/convert/AcApPngConvertor.d.ts.map +0 -1
- package/lib/command/convert/AcApPngConvertor.js.map +0 -1
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
var __extends = (this && this.__extends) || (function () {
|
|
2
|
+
var extendStatics = function (d, b) {
|
|
3
|
+
extendStatics = Object.setPrototypeOf ||
|
|
4
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
6
|
+
return extendStatics(d, b);
|
|
7
|
+
};
|
|
8
|
+
return function (d, b) {
|
|
9
|
+
if (typeof b !== "function" && b !== null)
|
|
10
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
11
|
+
extendStatics(d, b);
|
|
12
|
+
function __() { this.constructor = d; }
|
|
13
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
14
|
+
};
|
|
15
|
+
})();
|
|
16
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
17
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
18
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
19
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
20
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
21
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
22
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
23
|
+
});
|
|
24
|
+
};
|
|
25
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
26
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
27
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
28
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
29
|
+
function step(op) {
|
|
30
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
31
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
32
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
33
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
34
|
+
switch (op[0]) {
|
|
35
|
+
case 0: case 1: t = op; break;
|
|
36
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
37
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
38
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
39
|
+
default:
|
|
40
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
41
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
42
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
43
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
44
|
+
if (t[2]) _.ops.pop();
|
|
45
|
+
_.trys.pop(); continue;
|
|
46
|
+
}
|
|
47
|
+
op = body.call(thisArg, _);
|
|
48
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
49
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
import { AcGeBox2d, AcGePoint2d } from '@mlightcad/data-model';
|
|
53
|
+
import { AcApDocManager } from '../../app';
|
|
54
|
+
import { AcEdCommand, AcEdPromptBoxOptions, AcEdPromptDoubleOptions, AcEdPromptStatus } from '../../editor';
|
|
55
|
+
import { AcApI18n } from '../../i18n';
|
|
56
|
+
import { AcApRasterImageConvertor } from './AcApRasterImageConvertor';
|
|
57
|
+
var DEFAULT_LONG_SIDE_PX = 1024;
|
|
58
|
+
/**
|
|
59
|
+
* Shared command logic for exporting the current drawing to a raster image.
|
|
60
|
+
*
|
|
61
|
+
* Prompts for an export bounding box and optional long-side pixel size, then
|
|
62
|
+
* downloads the image via {@link AcApRasterImageConvertor}.
|
|
63
|
+
*/
|
|
64
|
+
var AcApConvertToRasterImageCmd = /** @class */ (function (_super) {
|
|
65
|
+
__extends(AcApConvertToRasterImageCmd, _super);
|
|
66
|
+
/**
|
|
67
|
+
* @param format - Target raster format (`png`, `jpeg`, or `bmp`).
|
|
68
|
+
* @param jigKey - i18n jig namespace (`pngout`, `jpgout`, or `bmpout`).
|
|
69
|
+
*/
|
|
70
|
+
function AcApConvertToRasterImageCmd(format, jigKey) {
|
|
71
|
+
var _this = _super.call(this) || this;
|
|
72
|
+
_this._format = format;
|
|
73
|
+
_this._jigKey = jigKey;
|
|
74
|
+
return _this;
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* Executes the raster export command.
|
|
78
|
+
*
|
|
79
|
+
* Prompts the user for:
|
|
80
|
+
* 1. Export bounding box
|
|
81
|
+
* 2. Optional long side pixel value (press Enter for default 1024)
|
|
82
|
+
*
|
|
83
|
+
* @param _context - The application context (unused in this command)
|
|
84
|
+
*/
|
|
85
|
+
AcApConvertToRasterImageCmd.prototype.execute = function (_context) {
|
|
86
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
87
|
+
var converter, view, boxOptions, boxResult, bounds, longSidePrompt, longSideResult, longSide;
|
|
88
|
+
return __generator(this, function (_a) {
|
|
89
|
+
switch (_a.label) {
|
|
90
|
+
case 0:
|
|
91
|
+
converter = new AcApRasterImageConvertor(this._format);
|
|
92
|
+
view = AcApDocManager.instance.curView;
|
|
93
|
+
this.syncActiveLayoutViewSize(view);
|
|
94
|
+
boxOptions = new AcEdPromptBoxOptions(AcApI18n.t("jig.".concat(this._jigKey, ".boundsFirstCorner")), AcApI18n.t("jig.".concat(this._jigKey, ".boundsSecondCorner")));
|
|
95
|
+
// Export window corners should follow exact click positions.
|
|
96
|
+
boxOptions.disableOSnap = true;
|
|
97
|
+
// Empty Enter (script blank line) → use drawing extents.
|
|
98
|
+
boxOptions.allowNone = true;
|
|
99
|
+
return [4 /*yield*/, AcApDocManager.instance.editor.getBox(boxOptions)];
|
|
100
|
+
case 1:
|
|
101
|
+
boxResult = _a.sent();
|
|
102
|
+
if (boxResult.status === AcEdPromptStatus.OK && boxResult.value) {
|
|
103
|
+
bounds = boxResult.value;
|
|
104
|
+
}
|
|
105
|
+
else if (boxResult.status === AcEdPromptStatus.None) {
|
|
106
|
+
bounds = this.getCurrentDrawingBounds();
|
|
107
|
+
}
|
|
108
|
+
else {
|
|
109
|
+
// User canceled or prompt failed: abort command gracefully.
|
|
110
|
+
return [2 /*return*/];
|
|
111
|
+
}
|
|
112
|
+
longSidePrompt = new AcEdPromptDoubleOptions(AcApI18n.t("jig.".concat(this._jigKey, ".longSidePrompt")));
|
|
113
|
+
longSidePrompt.allowNone = true;
|
|
114
|
+
longSidePrompt.allowNegative = false;
|
|
115
|
+
longSidePrompt.allowZero = false;
|
|
116
|
+
longSidePrompt.defaultValue = DEFAULT_LONG_SIDE_PX;
|
|
117
|
+
longSidePrompt.useDefaultValue = true;
|
|
118
|
+
return [4 /*yield*/, AcApDocManager.instance.editor.getDouble(longSidePrompt)];
|
|
119
|
+
case 2:
|
|
120
|
+
longSideResult = _a.sent();
|
|
121
|
+
if (longSideResult.status === AcEdPromptStatus.Cancel ||
|
|
122
|
+
longSideResult.status === AcEdPromptStatus.Error) {
|
|
123
|
+
return [2 /*return*/];
|
|
124
|
+
}
|
|
125
|
+
longSide = longSideResult.status === AcEdPromptStatus.OK &&
|
|
126
|
+
longSideResult.value !== undefined
|
|
127
|
+
? longSideResult.value
|
|
128
|
+
: DEFAULT_LONG_SIDE_PX;
|
|
129
|
+
return [4 /*yield*/, converter.convert(bounds, longSide)];
|
|
130
|
+
case 3:
|
|
131
|
+
_a.sent();
|
|
132
|
+
return [2 /*return*/];
|
|
133
|
+
}
|
|
134
|
+
});
|
|
135
|
+
});
|
|
136
|
+
};
|
|
137
|
+
/**
|
|
138
|
+
* Returns the current drawing extents projected to XY bounds.
|
|
139
|
+
*/
|
|
140
|
+
AcApConvertToRasterImageCmd.prototype.getCurrentDrawingBounds = function () {
|
|
141
|
+
var db = AcApDocManager.instance.curDocument.database;
|
|
142
|
+
var ext = db.extents;
|
|
143
|
+
return new AcGeBox2d(new AcGePoint2d(ext.min.x, ext.min.y), new AcGePoint2d(ext.max.x, ext.max.y));
|
|
144
|
+
};
|
|
145
|
+
/**
|
|
146
|
+
* Keeps active layout-view size in sync with current view size.
|
|
147
|
+
*
|
|
148
|
+
* This guards against stale screen-to-world mapping after container layout
|
|
149
|
+
* changes that do not fire a window resize event.
|
|
150
|
+
*/
|
|
151
|
+
AcApConvertToRasterImageCmd.prototype.syncActiveLayoutViewSize = function (view) {
|
|
152
|
+
var layoutView = view.activeLayoutView;
|
|
153
|
+
if (!layoutView) {
|
|
154
|
+
return;
|
|
155
|
+
}
|
|
156
|
+
layoutView.resize(view.width, view.height);
|
|
157
|
+
};
|
|
158
|
+
return AcApConvertToRasterImageCmd;
|
|
159
|
+
}(AcEdCommand));
|
|
160
|
+
export { AcApConvertToRasterImageCmd };
|
|
161
|
+
//# sourceMappingURL=AcApConvertToRasterImageCmd.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AcApConvertToRasterImageCmd.js","sourceRoot":"","sources":["../../../src/command/convert/AcApConvertToRasterImageCmd.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAE9D,OAAO,EAAe,cAAc,EAAE,MAAM,WAAW,CAAA;AACvD,OAAO,EACL,WAAW,EACX,oBAAoB,EACpB,uBAAuB,EACvB,gBAAgB,EACjB,MAAM,cAAc,CAAA;AACrB,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AAErC,OAAO,EACL,wBAAwB,EAEzB,MAAM,4BAA4B,CAAA;AAEnC,IAAM,oBAAoB,GAAG,IAAI,CAAA;AAEjC;;;;;GAKG;AACH;IAAiD,+CAAW;IAI1D;;;OAGG;IACH,qCAAY,MAA6B,EAAE,MAAc;QACvD,YAAA,MAAK,WAAE,SAAA;QACP,KAAI,CAAC,OAAO,GAAG,MAAM,CAAA;QACrB,KAAI,CAAC,OAAO,GAAG,MAAM,CAAA;;IACvB,CAAC;IAED;;;;;;;;OAQG;IACG,6CAAO,GAAb,UAAc,QAAqB;;;;;;wBAC3B,SAAS,GAAG,IAAI,wBAAwB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAA;wBACtD,IAAI,GAAG,cAAc,CAAC,QAAQ,CAAC,OAAqB,CAAA;wBAC1D,IAAI,CAAC,wBAAwB,CAAC,IAAI,CAAC,CAAA;wBAE7B,UAAU,GAAG,IAAI,oBAAoB,CACzC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|
3
|
-
* Utility class for converting CAD drawings to
|
|
5
|
+
* Utility class for converting CAD drawings to raster image formats
|
|
6
|
+
* (PNG, JPEG, or BMP).
|
|
4
7
|
*
|
|
5
8
|
* Offscreen export temporarily adjusts the camera only. It does not resize
|
|
6
9
|
* the layout view or touch OrbitControls so the interactive view stays intact.
|
|
7
10
|
*/
|
|
8
|
-
export declare class
|
|
11
|
+
export declare class AcApRasterImageConvertor {
|
|
12
|
+
private readonly _format;
|
|
9
13
|
/**
|
|
10
|
-
*
|
|
14
|
+
* @param format - Target image format. Defaults to PNG.
|
|
15
|
+
*/
|
|
16
|
+
constructor(format?: AcApRasterImageFormat);
|
|
17
|
+
get format(): AcApRasterImageFormat;
|
|
18
|
+
/**
|
|
19
|
+
* Converts the current CAD drawing to the configured format and downloads it.
|
|
11
20
|
*
|
|
12
21
|
* Waits for entity conversion and deferred text/font geometry so scripted
|
|
13
|
-
* exports (e.g. CLI `pngout`) do not snapshot before
|
|
22
|
+
* exports (e.g. CLI `pngout` / `jpgout` / `bmpout`) do not snapshot before
|
|
23
|
+
* glyphs are drawable.
|
|
14
24
|
*
|
|
15
25
|
* @param bounds - Optional world coordinate bounding box to export.
|
|
16
26
|
* @param longSide - Optional maximum dimension (width or height) in pixels.
|
|
17
27
|
*/
|
|
18
28
|
convert(bounds?: AcGeBox2d, longSide?: number): Promise<void>;
|
|
29
|
+
private get logTag();
|
|
30
|
+
private get fileExtension();
|
|
19
31
|
private resolveOutputSize;
|
|
20
32
|
/**
|
|
21
33
|
* Computes render size using source aspect so final target can be center-cropped.
|
|
@@ -53,16 +65,28 @@ export declare class AcApPngConvertor {
|
|
|
53
65
|
*/
|
|
54
66
|
private createCanvasFromPixels;
|
|
55
67
|
/**
|
|
56
|
-
* Creates a downloadable
|
|
68
|
+
* Creates a downloadable image file and triggers the download.
|
|
57
69
|
*
|
|
58
|
-
*
|
|
59
|
-
* -
|
|
60
|
-
*
|
|
61
|
-
*
|
|
62
|
-
*
|
|
63
|
-
* @param canvas - The canvas element containing the image
|
|
70
|
+
* @param canvas - Canvas used for PNG/JPEG encoding
|
|
71
|
+
* @param pixels - RGBA pixel buffer used for BMP encoding
|
|
72
|
+
* @param width - Image width in pixels
|
|
73
|
+
* @param height - Image height in pixels
|
|
64
74
|
* @private
|
|
65
75
|
*/
|
|
66
76
|
private createFileAndDownloadIt;
|
|
77
|
+
private encodeDataUrl;
|
|
78
|
+
/**
|
|
79
|
+
* Encodes JPEG with a white backdrop so transparent pixels do not become black.
|
|
80
|
+
*/
|
|
81
|
+
private canvasToJpegDataUrl;
|
|
82
|
+
/**
|
|
83
|
+
* Encodes a 24-bit Windows BMP data URL from top-down RGBA pixels.
|
|
84
|
+
*
|
|
85
|
+
* Canvas `toDataURL` does not support BMP, so pixels are written manually
|
|
86
|
+
* (BGR, bottom-up rows, 4-byte row padding). Transparent pixels are
|
|
87
|
+
* composited on white so BMP matches JPEG's opaque backdrop.
|
|
88
|
+
*/
|
|
89
|
+
private encodeBmpDataUrl;
|
|
90
|
+
private bytesToBase64;
|
|
67
91
|
}
|
|
68
|
-
//# sourceMappingURL=
|
|
92
|
+
//# sourceMappingURL=AcApRasterImageConvertor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AcApRasterImageConvertor.d.ts","sourceRoot":"","sources":["../../../src/command/convert/AcApRasterImageConvertor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAgB,MAAM,uBAAuB,CAAA;AAO/D,uCAAuC;AACvC,MAAM,MAAM,qBAAqB,GAAG,KAAK,GAAG,MAAM,GAAG,KAAK,CAAA;AAI1D;;;;;;GAMG;AACH,qBAAa,wBAAwB;IACnC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAuB;IAE/C;;OAEG;gBACS,MAAM,GAAE,qBAA6B;IAIjD,IAAI,MAAM,IAAI,qBAAqB,CAElC;IAED;;;;;;;;;OASG;IACG,OAAO,CAAC,MAAM,CAAC,EAAE,SAAS,EAAE,QAAQ,CAAC,EAAE,MAAM;IAsInD,OAAO,KAAK,MAAM,GASjB;IAED,OAAO,KAAK,aAAa,GAExB;IAED,OAAO,CAAC,iBAAiB;IAqBzB;;OAEG;IACH,OAAO,CAAC,8BAA8B;IAiCtC;;OAEG;IACH,OAAO,CAAC,kBAAkB;IAyB1B;;OAEG;IACH,OAAO,CAAC,eAAe;IAQvB;;;;;;;;;;;OAWG;IACH,OAAO,CAAC,oBAAoB;IAgB5B;;;;;;;;OAQG;IACH,OAAO,CAAC,sBAAsB;IAe9B;;;;;;;;OAQG;IACH,OAAO,CAAC,uBAAuB;IAuB/B,OAAO,CAAC,aAAa;IAgBrB;;OAEG;IACH,OAAO,CAAC,mBAAmB;IAW3B;;;;;;OAMG;IACH,OAAO,CAAC,gBAAgB;IA2CxB,OAAO,CAAC,aAAa;CAStB"}
|
|
@@ -34,40 +34,81 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
34
34
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
35
35
|
}
|
|
36
36
|
};
|
|
37
|
+
var __read = (this && this.__read) || function (o, n) {
|
|
38
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
39
|
+
if (!m) return o;
|
|
40
|
+
var i = m.call(o), r, ar = [], e;
|
|
41
|
+
try {
|
|
42
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
43
|
+
}
|
|
44
|
+
catch (error) { e = { error: error }; }
|
|
45
|
+
finally {
|
|
46
|
+
try {
|
|
47
|
+
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
48
|
+
}
|
|
49
|
+
finally { if (e) throw e.error; }
|
|
50
|
+
}
|
|
51
|
+
return ar;
|
|
52
|
+
};
|
|
53
|
+
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
54
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
55
|
+
if (ar || !(i in from)) {
|
|
56
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
57
|
+
ar[i] = from[i];
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
61
|
+
};
|
|
37
62
|
import { AcGeVector2d } from '@mlightcad/data-model';
|
|
38
63
|
import * as THREE from 'three';
|
|
39
64
|
import { AcApDocManager } from '../../app';
|
|
40
65
|
import { resolveExportDownloadName } from '../../util/AcApExportFileNameUtil';
|
|
66
|
+
var JPEG_QUALITY = 0.92;
|
|
41
67
|
/**
|
|
42
|
-
* Utility class for converting CAD drawings to
|
|
68
|
+
* Utility class for converting CAD drawings to raster image formats
|
|
69
|
+
* (PNG, JPEG, or BMP).
|
|
43
70
|
*
|
|
44
71
|
* Offscreen export temporarily adjusts the camera only. It does not resize
|
|
45
72
|
* the layout view or touch OrbitControls so the interactive view stays intact.
|
|
46
73
|
*/
|
|
47
|
-
var
|
|
48
|
-
|
|
74
|
+
var AcApRasterImageConvertor = /** @class */ (function () {
|
|
75
|
+
/**
|
|
76
|
+
* @param format - Target image format. Defaults to PNG.
|
|
77
|
+
*/
|
|
78
|
+
function AcApRasterImageConvertor(format) {
|
|
79
|
+
if (format === void 0) { format = 'png'; }
|
|
80
|
+
this._format = format;
|
|
49
81
|
}
|
|
82
|
+
Object.defineProperty(AcApRasterImageConvertor.prototype, "format", {
|
|
83
|
+
get: function () {
|
|
84
|
+
return this._format;
|
|
85
|
+
},
|
|
86
|
+
enumerable: false,
|
|
87
|
+
configurable: true
|
|
88
|
+
});
|
|
50
89
|
/**
|
|
51
|
-
* Converts the current CAD drawing to
|
|
90
|
+
* Converts the current CAD drawing to the configured format and downloads it.
|
|
52
91
|
*
|
|
53
92
|
* Waits for entity conversion and deferred text/font geometry so scripted
|
|
54
|
-
* exports (e.g. CLI `pngout`) do not snapshot before
|
|
93
|
+
* exports (e.g. CLI `pngout` / `jpgout` / `bmpout`) do not snapshot before
|
|
94
|
+
* glyphs are drawable.
|
|
55
95
|
*
|
|
56
96
|
* @param bounds - Optional world coordinate bounding box to export.
|
|
57
97
|
* @param longSide - Optional maximum dimension (width or height) in pixels.
|
|
58
98
|
*/
|
|
59
|
-
|
|
99
|
+
AcApRasterImageConvertor.prototype.convert = function (bounds, longSide) {
|
|
60
100
|
return __awaiter(this, void 0, void 0, function () {
|
|
61
|
-
var view, sceneReady, layoutView, rendererWrapper, renderer, scene, camera, viewAspect, targetAspect, outputWidth, outputHeight, outputSize, renderSize, renderWidth, renderHeight, needsCrop, originalZoom, originalPosition, originalLeft, originalRight, originalTop, originalBottom, savedScissorTest, savedPixelRatio, originalRenderTarget, renderTarget, pixels, flippedPixels, finalPixels, canvas;
|
|
101
|
+
var tag, view, sceneReady, layoutView, rendererWrapper, renderer, scene, camera, viewAspect, targetAspect, outputWidth, outputHeight, outputSize, renderSize, renderWidth, renderHeight, needsCrop, originalZoom, originalPosition, originalLeft, originalRight, originalTop, originalBottom, savedScissorTest, savedPixelRatio, originalRenderTarget, renderTarget, pixels, flippedPixels, finalPixels, canvas;
|
|
62
102
|
return __generator(this, function (_a) {
|
|
63
103
|
switch (_a.label) {
|
|
64
104
|
case 0:
|
|
105
|
+
tag = this.logTag;
|
|
65
106
|
view = AcApDocManager.instance.curView;
|
|
66
107
|
return [4 /*yield*/, view.waitUntilIdle()];
|
|
67
108
|
case 1:
|
|
68
109
|
sceneReady = _a.sent();
|
|
69
110
|
if (!sceneReady) {
|
|
70
|
-
console.warn(
|
|
111
|
+
console.warn("[".concat(tag, "] Timed out waiting for scene idle; exporting current geometry"));
|
|
71
112
|
}
|
|
72
113
|
layoutView = view.activeLayoutView;
|
|
73
114
|
rendererWrapper = view.renderer;
|
|
@@ -75,7 +116,7 @@ var AcApPngConvertor = /** @class */ (function () {
|
|
|
75
116
|
scene = view.internalScene;
|
|
76
117
|
camera = view.internalCamera;
|
|
77
118
|
if (!scene || !camera || !layoutView) {
|
|
78
|
-
console.error(
|
|
119
|
+
console.error("[".concat(tag, "] Scene or camera not available"));
|
|
79
120
|
return [2 /*return*/];
|
|
80
121
|
}
|
|
81
122
|
viewAspect = view.width / Math.max(view.height, 1);
|
|
@@ -126,7 +167,7 @@ var AcApPngConvertor = /** @class */ (function () {
|
|
|
126
167
|
? this.cropPixelsCentered(flippedPixels, renderWidth, renderHeight, outputWidth, outputHeight)
|
|
127
168
|
: flippedPixels;
|
|
128
169
|
canvas = this.createCanvasFromPixels(finalPixels, outputWidth, outputHeight);
|
|
129
|
-
this.createFileAndDownloadIt(canvas);
|
|
170
|
+
this.createFileAndDownloadIt(canvas, finalPixels, outputWidth, outputHeight);
|
|
130
171
|
}
|
|
131
172
|
finally {
|
|
132
173
|
renderer.setRenderTarget(originalRenderTarget);
|
|
@@ -151,7 +192,28 @@ var AcApPngConvertor = /** @class */ (function () {
|
|
|
151
192
|
});
|
|
152
193
|
});
|
|
153
194
|
};
|
|
154
|
-
|
|
195
|
+
Object.defineProperty(AcApRasterImageConvertor.prototype, "logTag", {
|
|
196
|
+
get: function () {
|
|
197
|
+
switch (this._format) {
|
|
198
|
+
case 'jpeg':
|
|
199
|
+
return 'JPGOUT';
|
|
200
|
+
case 'bmp':
|
|
201
|
+
return 'BMPOUT';
|
|
202
|
+
default:
|
|
203
|
+
return 'PNGOUT';
|
|
204
|
+
}
|
|
205
|
+
},
|
|
206
|
+
enumerable: false,
|
|
207
|
+
configurable: true
|
|
208
|
+
});
|
|
209
|
+
Object.defineProperty(AcApRasterImageConvertor.prototype, "fileExtension", {
|
|
210
|
+
get: function () {
|
|
211
|
+
return this._format === 'jpeg' ? 'jpg' : this._format;
|
|
212
|
+
},
|
|
213
|
+
enumerable: false,
|
|
214
|
+
configurable: true
|
|
215
|
+
});
|
|
216
|
+
AcApRasterImageConvertor.prototype.resolveOutputSize = function (longSide, aspect) {
|
|
155
217
|
var clampedLongSide = Math.max(1, Math.round(longSide));
|
|
156
218
|
var safeAspect = Number.isFinite(aspect) && aspect > Number.EPSILON ? aspect : 1;
|
|
157
219
|
if (safeAspect >= 1) {
|
|
@@ -168,7 +230,7 @@ var AcApPngConvertor = /** @class */ (function () {
|
|
|
168
230
|
/**
|
|
169
231
|
* Computes render size using source aspect so final target can be center-cropped.
|
|
170
232
|
*/
|
|
171
|
-
|
|
233
|
+
AcApRasterImageConvertor.prototype.resolveRenderSizeForCenterCrop = function (targetWidth, targetHeight, sourceAspect) {
|
|
172
234
|
var safeSourceAspect = Number.isFinite(sourceAspect) && sourceAspect > Number.EPSILON
|
|
173
235
|
? sourceAspect
|
|
174
236
|
: 1;
|
|
@@ -192,7 +254,7 @@ var AcApPngConvertor = /** @class */ (function () {
|
|
|
192
254
|
/**
|
|
193
255
|
* Center-crops an RGBA pixel buffer from source to destination size.
|
|
194
256
|
*/
|
|
195
|
-
|
|
257
|
+
AcApRasterImageConvertor.prototype.cropPixelsCentered = function (pixels, srcWidth, srcHeight, dstWidth, dstHeight) {
|
|
196
258
|
if (srcWidth === dstWidth && srcHeight === dstHeight) {
|
|
197
259
|
return pixels;
|
|
198
260
|
}
|
|
@@ -210,7 +272,7 @@ var AcApPngConvertor = /** @class */ (function () {
|
|
|
210
272
|
/**
|
|
211
273
|
* Returns the world-space aspect ratio of bounds.
|
|
212
274
|
*/
|
|
213
|
-
|
|
275
|
+
AcApRasterImageConvertor.prototype.getBoundsAspect = function (bounds) {
|
|
214
276
|
var size = new AcGeVector2d();
|
|
215
277
|
bounds.getSize(size);
|
|
216
278
|
var width = Math.max(Math.abs(size.x), Number.EPSILON);
|
|
@@ -229,7 +291,7 @@ var AcApPngConvertor = /** @class */ (function () {
|
|
|
229
291
|
* @returns The vertically flipped pixel data
|
|
230
292
|
* @private
|
|
231
293
|
*/
|
|
232
|
-
|
|
294
|
+
AcApRasterImageConvertor.prototype.flipPixelsVertically = function (pixels, width, height) {
|
|
233
295
|
var flippedPixels = new Uint8Array(width * height * 4);
|
|
234
296
|
for (var y = 0; y < height; y++) {
|
|
235
297
|
var srcRow = (height - 1 - y) * width * 4;
|
|
@@ -249,7 +311,7 @@ var AcApPngConvertor = /** @class */ (function () {
|
|
|
249
311
|
* @returns A canvas element containing the image
|
|
250
312
|
* @private
|
|
251
313
|
*/
|
|
252
|
-
|
|
314
|
+
AcApRasterImageConvertor.prototype.createCanvasFromPixels = function (pixels, width, height) {
|
|
253
315
|
var canvas = document.createElement('canvas');
|
|
254
316
|
canvas.width = width;
|
|
255
317
|
canvas.height = height;
|
|
@@ -260,31 +322,100 @@ var AcApPngConvertor = /** @class */ (function () {
|
|
|
260
322
|
return canvas;
|
|
261
323
|
};
|
|
262
324
|
/**
|
|
263
|
-
* Creates a downloadable
|
|
325
|
+
* Creates a downloadable image file and triggers the download.
|
|
264
326
|
*
|
|
265
|
-
*
|
|
266
|
-
* -
|
|
267
|
-
*
|
|
268
|
-
*
|
|
269
|
-
*
|
|
270
|
-
* @param canvas - The canvas element containing the image
|
|
327
|
+
* @param canvas - Canvas used for PNG/JPEG encoding
|
|
328
|
+
* @param pixels - RGBA pixel buffer used for BMP encoding
|
|
329
|
+
* @param width - Image width in pixels
|
|
330
|
+
* @param height - Image height in pixels
|
|
271
331
|
* @private
|
|
272
332
|
*/
|
|
273
|
-
|
|
333
|
+
AcApRasterImageConvertor.prototype.createFileAndDownloadIt = function (canvas, pixels, width, height) {
|
|
274
334
|
var doc = AcApDocManager.instance.curDocument;
|
|
275
|
-
var downloadName = resolveExportDownloadName(doc.fileName || doc.docTitle,
|
|
276
|
-
|
|
277
|
-
var dataURL = canvas.toDataURL('image/png');
|
|
278
|
-
// Create a download link and trigger the download
|
|
335
|
+
var downloadName = resolveExportDownloadName(doc.fileName || doc.docTitle, this.fileExtension);
|
|
336
|
+
var dataURL = this.encodeDataUrl(canvas, pixels, width, height);
|
|
279
337
|
var downloadLink = document.createElement('a');
|
|
280
338
|
downloadLink.href = dataURL;
|
|
281
339
|
downloadLink.download = downloadName;
|
|
282
|
-
// Trigger the download
|
|
283
340
|
document.body.appendChild(downloadLink);
|
|
284
341
|
downloadLink.click();
|
|
285
342
|
document.body.removeChild(downloadLink);
|
|
286
343
|
};
|
|
287
|
-
|
|
344
|
+
AcApRasterImageConvertor.prototype.encodeDataUrl = function (canvas, pixels, width, height) {
|
|
345
|
+
switch (this._format) {
|
|
346
|
+
case 'jpeg':
|
|
347
|
+
return this.canvasToJpegDataUrl(canvas);
|
|
348
|
+
case 'bmp':
|
|
349
|
+
return this.encodeBmpDataUrl(pixels, width, height);
|
|
350
|
+
default:
|
|
351
|
+
return canvas.toDataURL('image/png');
|
|
352
|
+
}
|
|
353
|
+
};
|
|
354
|
+
/**
|
|
355
|
+
* Encodes JPEG with a white backdrop so transparent pixels do not become black.
|
|
356
|
+
*/
|
|
357
|
+
AcApRasterImageConvertor.prototype.canvasToJpegDataUrl = function (canvas) {
|
|
358
|
+
var out = document.createElement('canvas');
|
|
359
|
+
out.width = canvas.width;
|
|
360
|
+
out.height = canvas.height;
|
|
361
|
+
var ctx = out.getContext('2d');
|
|
362
|
+
ctx.fillStyle = '#ffffff';
|
|
363
|
+
ctx.fillRect(0, 0, out.width, out.height);
|
|
364
|
+
ctx.drawImage(canvas, 0, 0);
|
|
365
|
+
return out.toDataURL('image/jpeg', JPEG_QUALITY);
|
|
366
|
+
};
|
|
367
|
+
/**
|
|
368
|
+
* Encodes a 24-bit Windows BMP data URL from top-down RGBA pixels.
|
|
369
|
+
*
|
|
370
|
+
* Canvas `toDataURL` does not support BMP, so pixels are written manually
|
|
371
|
+
* (BGR, bottom-up rows, 4-byte row padding). Transparent pixels are
|
|
372
|
+
* composited on white so BMP matches JPEG's opaque backdrop.
|
|
373
|
+
*/
|
|
374
|
+
AcApRasterImageConvertor.prototype.encodeBmpDataUrl = function (pixels, width, height) {
|
|
375
|
+
var _a, _b, _c, _d;
|
|
376
|
+
var rowSize = Math.ceil((width * 3) / 4) * 4;
|
|
377
|
+
var imageSize = rowSize * height;
|
|
378
|
+
var fileSize = 14 + 40 + imageSize;
|
|
379
|
+
var buffer = new ArrayBuffer(fileSize);
|
|
380
|
+
var view = new DataView(buffer);
|
|
381
|
+
var bytes = new Uint8Array(buffer);
|
|
382
|
+
// BITMAPFILEHEADER
|
|
383
|
+
view.setUint16(0, 0x4d42, true); // 'BM'
|
|
384
|
+
view.setUint32(2, fileSize, true);
|
|
385
|
+
view.setUint32(10, 54, true);
|
|
386
|
+
// BITMAPINFOHEADER
|
|
387
|
+
view.setUint32(14, 40, true);
|
|
388
|
+
view.setInt32(18, width, true);
|
|
389
|
+
view.setInt32(22, height, true); // positive = bottom-up
|
|
390
|
+
view.setUint16(26, 1, true);
|
|
391
|
+
view.setUint16(28, 24, true);
|
|
392
|
+
view.setUint32(34, imageSize, true);
|
|
393
|
+
var offset = 54;
|
|
394
|
+
for (var y = height - 1; y >= 0; y--) {
|
|
395
|
+
var rowStart = y * width * 4;
|
|
396
|
+
for (var x = 0; x < width; x++) {
|
|
397
|
+
var i = rowStart + x * 4;
|
|
398
|
+
var alpha = ((_a = pixels[i + 3]) !== null && _a !== void 0 ? _a : 255) / 255;
|
|
399
|
+
var inv = 1 - alpha;
|
|
400
|
+
// Composite on white so transparent CAD background stays light.
|
|
401
|
+
bytes[offset++] = Math.round(((_b = pixels[i + 2]) !== null && _b !== void 0 ? _b : 0) * alpha + 255 * inv); // B
|
|
402
|
+
bytes[offset++] = Math.round(((_c = pixels[i + 1]) !== null && _c !== void 0 ? _c : 0) * alpha + 255 * inv); // G
|
|
403
|
+
bytes[offset++] = Math.round(((_d = pixels[i]) !== null && _d !== void 0 ? _d : 0) * alpha + 255 * inv); // R
|
|
404
|
+
}
|
|
405
|
+
offset += rowSize - width * 3;
|
|
406
|
+
}
|
|
407
|
+
return "data:image/bmp;base64,".concat(this.bytesToBase64(bytes));
|
|
408
|
+
};
|
|
409
|
+
AcApRasterImageConvertor.prototype.bytesToBase64 = function (bytes) {
|
|
410
|
+
var chunkSize = 0x8000;
|
|
411
|
+
var chunks = [];
|
|
412
|
+
for (var i = 0; i < bytes.length; i += chunkSize) {
|
|
413
|
+
var chunk = bytes.subarray(i, i + chunkSize);
|
|
414
|
+
chunks.push(String.fromCharCode.apply(String, __spreadArray([], __read(chunk), false)));
|
|
415
|
+
}
|
|
416
|
+
return btoa(chunks.join(''));
|
|
417
|
+
};
|
|
418
|
+
return AcApRasterImageConvertor;
|
|
288
419
|
}());
|
|
289
|
-
export {
|
|
290
|
-
//# sourceMappingURL=
|
|
420
|
+
export { AcApRasterImageConvertor };
|
|
421
|
+
//# sourceMappingURL=AcApRasterImageConvertor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AcApRasterImageConvertor.js","sourceRoot":"","sources":["../../../src/command/convert/AcApRasterImageConvertor.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAAa,YAAY,EAAE,MAAM,uBAAuB,CAAA;AAC/D,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAA;AAC1C,OAAO,EAAE,yBAAyB,EAAE,MAAM,mCAAmC,CAAA;AAM7E,IAAM,YAAY,GAAG,IAAI,CAAA;AAEzB;;;;;;GAMG;AACH;IAGE;;OAEG;IACH,kCAAY,MAAqC;QAArC,uBAAA,EAAA,cAAqC;QAC/C,IAAI,CAAC,OAAO,GAAG,MAAM,CAAA;IACvB,CAAC;IAED,sBAAI,4CAAM;aAAV;YACE,OAAO,IAAI,CAAC,OAAO,CAAA;QACrB,CAAC;;;OAAA;IAED;;;;;;;;;OASG;IACG,0CAAO,GAAb,UAAc,MAAkB,EAAE,QAAiB;;;;;;wBAC3C,GAAG,GAAG,IAAI,CAAC,MAAM,CAAA;wBACjB,IAAI,GAAG,cAAc,CAAC,QAAQ,CAAC,OAAqB,CAAA;wBACvC,qBAAM,IAAI,CAAC,aAAa,EAAE,EAAA;;wBAAvC,UAAU,GAAG,SAA0B;wBAC7C,IAA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BmpCmd';
|
|
2
3
|
export * from './AcApConvertToDxfCmd';
|
|
4
|
+
export * from './AcApConvertToJpgCmd';
|
|
3
5
|
export * from './AcApConvertToPngCmd';
|
|
6
|
+
export * from './AcApConvertToRasterImageCmd';
|
|
4
7
|
export * from './AcApEntityPreviewCmd';
|
|
5
8
|
export * from './AcApEntityPreviewConvertor';
|
|
6
|
-
export * from './
|
|
9
|
+
export * from './AcApRasterImageConvertor';
|
|
7
10
|
export * from './AcApDxfConvertor';
|
|
8
11
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/command/convert/index.ts"],"names":[],"mappings":"AAAA,cAAc,6BAA6B,CAAA;AAC3C,cAAc,uBAAuB,CAAA;AACrC,cAAc,uBAAuB,CAAA;AACrC,cAAc,wBAAwB,CAAA;AACtC,cAAc,8BAA8B,CAAA;AAC5C,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/command/convert/index.ts"],"names":[],"mappings":"AAAA,cAAc,6BAA6B,CAAA;AAC3C,cAAc,uBAAuB,CAAA;AACrC,cAAc,uBAAuB,CAAA;AACrC,cAAc,uBAAuB,CAAA;AACrC,cAAc,uBAAuB,CAAA;AACrC,cAAc,+BAA+B,CAAA;AAC7C,cAAc,wBAAwB,CAAA;AACtC,cAAc,8BAA8B,CAAA;AAC5C,cAAc,4BAA4B,CAAA;AAC1C,cAAc,oBAAoB,CAAA"}
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
export * from './AcApBlockPreviewConvertor';
|
|
2
|
+
export * from './AcApConvertToBmpCmd';
|
|
2
3
|
export * from './AcApConvertToDxfCmd';
|
|
4
|
+
export * from './AcApConvertToJpgCmd';
|
|
3
5
|
export * from './AcApConvertToPngCmd';
|
|
6
|
+
export * from './AcApConvertToRasterImageCmd';
|
|
4
7
|
export * from './AcApEntityPreviewCmd';
|
|
5
8
|
export * from './AcApEntityPreviewConvertor';
|
|
6
|
-
export * from './
|
|
9
|
+
export * from './AcApRasterImageConvertor';
|
|
7
10
|
export * from './AcApDxfConvertor';
|
|
8
11
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/command/convert/index.ts"],"names":[],"mappings":"AAAA,cAAc,6BAA6B,CAAA;AAC3C,cAAc,uBAAuB,CAAA;AACrC,cAAc,uBAAuB,CAAA;AACrC,cAAc,wBAAwB,CAAA;AACtC,cAAc,8BAA8B,CAAA;AAC5C,cAAc,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/command/convert/index.ts"],"names":[],"mappings":"AAAA,cAAc,6BAA6B,CAAA;AAC3C,cAAc,uBAAuB,CAAA;AACrC,cAAc,uBAAuB,CAAA;AACrC,cAAc,uBAAuB,CAAA;AACrC,cAAc,uBAAuB,CAAA;AACrC,cAAc,+BAA+B,CAAA;AAC7C,cAAc,wBAAwB,CAAA;AACtC,cAAc,8BAA8B,CAAA;AAC5C,cAAc,4BAA4B,CAAA;AAC1C,cAAc,oBAAoB,CAAA"}
|
package/lib/command/index.d.ts
CHANGED
|
@@ -21,6 +21,8 @@ export * from './AcApSwitchBgCmd';
|
|
|
21
21
|
export * from './AcApReadingModeCmd';
|
|
22
22
|
export * from './AcApUndoCmd';
|
|
23
23
|
export * from './AcApRedoCmd';
|
|
24
|
+
export * from './AcApToolbarDocBind';
|
|
25
|
+
export * from './AcApShortCutToolbarDocBind';
|
|
24
26
|
export * from './AcApZoomCmd';
|
|
25
27
|
export * from './AcApPanCmd';
|
|
26
28
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/command/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAA;AACtC,cAAc,wBAAwB,CAAA;AACtC,cAAc,WAAW,CA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,CAAA;AAC7B,cAAc,sBAAsB,CAAA;AACpC,cAAc,8BAA8B,CAAA;AAC5C,cAAc,eAAe,CAAA;AAC7B,cAAc,cAAc,CAAA"}
|
package/lib/command/index.js
CHANGED
|
@@ -21,6 +21,8 @@ export * from './AcApSwitchBgCmd';
|
|
|
21
21
|
export * from './AcApReadingModeCmd';
|
|
22
22
|
export * from './AcApUndoCmd';
|
|
23
23
|
export * from './AcApRedoCmd';
|
|
24
|
+
export * from './AcApToolbarDocBind';
|
|
25
|
+
export * from './AcApShortCutToolbarDocBind';
|
|
24
26
|
export * from './AcApZoomCmd';
|
|
25
27
|
export * from './AcApPanCmd';
|
|
26
28
|
//# sourceMappingURL=index.js.map
|