@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.
@@ -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 !== !1, 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);
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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maqiuyao/dxf-viewer",
3
- "version": "0.2.12",
3
+ "version": "0.2.13",
4
4
  "description": "基于 three.js 的 DXF 图纸 2D/3D 查看与对比库(Viewer2d / DxfCompareHelper)",
5
5
  "type": "module",
6
6
  "main": "./dist/dxf-viewer.cjs",