@maqiuyao/dxf-viewer 0.2.12 → 0.2.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/dist/dxf-viewer.cjs +1 -1
- package/dist/dxf-viewer.js +1 -1
- package/dist/src/dxfViewer/core/Configs.d.ts +8 -0
- package/package.json +1 -1
package/dist/dxf-viewer.js
CHANGED
|
@@ -33503,7 +33503,7 @@ class $o extends Pr {
|
|
|
33503
33503
|
g(this, "requestHeaders");
|
|
33504
33504
|
/** 打印截图进行中:临时强制显示所有图符/文字,避免低缩放时被"视觉过小"逻辑隐藏 */
|
|
33505
33505
|
g(this, "_printCaptureMode", !1);
|
|
33506
|
-
this.name = at.Viewer2d, this.loadedModels = [], this.masterModelId = "", this.activeLayoutName = "", this.layoutInfos = {}, this.units = void 0, this.enableHideVisuallySmallObjects = e.enableHideVisuallySmallObjects
|
|
33506
|
+
this.name = at.Viewer2d, this.loadedModels = [], this.masterModelId = "", this.activeLayoutName = "", this.layoutInfos = {}, this.units = void 0, this.enableHideVisuallySmallObjects = e.enableHideVisuallySmallObjects === !0, this.sortedHidableObjects = {}, this.lastCameraZoom = 1 / 0, this.loadingDxfCount = 0, e.enableLayoutBar && (this.dxfLayoutBar = new N1(this)), this.cameraManager.setProjection(Et.Orthographic), this.cameraManager.setNavigationMode(xt.Plan);
|
|
33507
33507
|
const i = new p.Vector3(0, 0, 100), s = new p.Vector3(0, 0, 0);
|
|
33508
33508
|
this.cameraManager.setCameraConfig({
|
|
33509
33509
|
eye: i,
|
|
@@ -178,6 +178,14 @@ export interface Viewer2dConfig extends BaseViewerConfig {
|
|
|
178
178
|
* @default false
|
|
179
179
|
*/
|
|
180
180
|
enableLocalCache?: boolean;
|
|
181
|
+
/**
|
|
182
|
+
* If to hide visually small objects (smaller than a few pixels on screen)
|
|
183
|
+
* when zooming out, as a performance optimization for drawings with a
|
|
184
|
+
* huge number of entities. Disabled by default: symbols would otherwise
|
|
185
|
+
* disappear when zooming out, which differs from AutoCAD.
|
|
186
|
+
* @default false
|
|
187
|
+
*/
|
|
188
|
+
enableHideVisuallySmallObjects?: boolean;
|
|
181
189
|
}
|
|
182
190
|
/**
|
|
183
191
|
* Dxf compare config.
|