@mlightcad/cad-simple-viewer 1.7.8-preview.5 → 1.7.8

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.
Files changed (37) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +190 -190
  3. package/dist/cad-simple-viewer.js +3415 -3282
  4. package/dist/cad-simple-viewer.umd.cjs +60 -60
  5. package/dist/mtext-renderer-worker.js +1208 -1178
  6. package/find.ts +7 -7
  7. package/icons.ts +7 -7
  8. package/lib/editor/view/AcEdBaseView.d.ts +13 -0
  9. package/lib/editor/view/AcEdBaseView.d.ts.map +1 -1
  10. package/lib/editor/view/AcEdBaseView.js +24 -4
  11. package/lib/editor/view/AcEdBaseView.js.map +1 -1
  12. package/lib/editor/view/AcEdSelectionBoxIntersect.d.ts +22 -5
  13. package/lib/editor/view/AcEdSelectionBoxIntersect.d.ts.map +1 -1
  14. package/lib/editor/view/AcEdSelectionBoxIntersect.js +22 -5
  15. package/lib/editor/view/AcEdSelectionBoxIntersect.js.map +1 -1
  16. package/lib/editor/view/AcEdViewportBoxSelection.d.ts +90 -0
  17. package/lib/editor/view/AcEdViewportBoxSelection.d.ts.map +1 -0
  18. package/lib/editor/view/AcEdViewportBoxSelection.js +191 -0
  19. package/lib/editor/view/AcEdViewportBoxSelection.js.map +1 -0
  20. package/lib/editor/view/index.d.ts +1 -0
  21. package/lib/editor/view/index.d.ts.map +1 -1
  22. package/lib/editor/view/index.js +1 -0
  23. package/lib/editor/view/index.js.map +1 -1
  24. package/lib/view/AcTrInheritedLayerMaterialMapper.d.ts +15 -10
  25. package/lib/view/AcTrInheritedLayerMaterialMapper.d.ts.map +1 -1
  26. package/lib/view/AcTrInheritedLayerMaterialMapper.js +33 -20
  27. package/lib/view/AcTrInheritedLayerMaterialMapper.js.map +1 -1
  28. package/lib/view/AcTrView2d.d.ts +13 -1
  29. package/lib/view/AcTrView2d.d.ts.map +1 -1
  30. package/lib/view/AcTrView2d.js +105 -50
  31. package/lib/view/AcTrView2d.js.map +1 -1
  32. package/package.json +10 -10
  33. package/src/find/AcApFindNavigator.ts +190 -190
  34. package/src/find/findDrawing.ts +211 -211
  35. package/src/find/findText.ts +624 -624
  36. package/src/find/index.ts +2 -2
  37. package/src/ui/icons.ts +411 -411
@@ -109,7 +109,7 @@ import { AcApOpenViewMode } from '../app/AcApOpenDatabaseOptions';
109
109
  import { AcApZoomCmd } from '../command/AcApZoomCmd';
110
110
  import { isMarkupHtmlTextEditing } from '../command/markup/AcApMarkupTextEdit';
111
111
  import { notifyMeasurementLayoutChanged } from '../command/measure/AcApMeasurementStore';
112
- import { acedAttachMobileBoxGesture, AcEdBaseView, AcEdConditionWaiter, AcEdCorsorType, AcEdGripManager, acedGuardCanvasTouchCallout, acedInteractionStrategy, acedIsTouchDerivedMouseEvent, AcEdMTextEditor, AcEdOpenMode, acedShouldIgnoreCompatMouse, AcEdViewMode, eventBus, resolvePointerSelectionAction } from '../editor';
112
+ import { acedAttachMobileBoxGesture, AcEdBaseView, acedCollectViewportBoxSelectionIds, AcEdConditionWaiter, AcEdCorsorType, AcEdGripManager, acedGuardCanvasTouchCallout, acedInteractionStrategy, acedIsTouchDerivedMouseEvent, AcEdMTextEditor, AcEdOpenMode, acedShouldIgnoreCompatMouse, AcEdViewMode, eventBus, resolvePointerSelectionAction } from '../editor';
113
113
  import { ACGI_MODEL_SPACE_BACKGROUND, isModelSpaceDatabase, readLayoutBackgroundColor } from '../editor/global/AcEdUiColor';
114
114
  import { ML_UI_Z_CANVAS_HTML_OVERLAY } from '../editor/global/AcEdUiLayout';
115
115
  import { acedEntityIntersectsSelectionBox, acedNeedsCrossingGeometryRefine } from '../editor/view/AcEdSelectionBoxIntersect';
@@ -2534,6 +2534,61 @@ var AcTrView2d = /** @class */ (function (_super) {
2534
2534
  AcTrView2d.prototype.selectByBox = function (box) {
2535
2535
  this.selectByBoxWithMode(box, 'crossing', 'add');
2536
2536
  };
2537
+ /**
2538
+ * Collects model-space entities selected through the active layout's paper
2539
+ * viewports.
2540
+ *
2541
+ * Box selection used to query only the active layout's spatial index, so
2542
+ * model-space content rendered inside a viewport could be clicked (pick
2543
+ * drills through) but never box-selected — reported for LEADER entities in
2544
+ * `布局1`. Each viewport's visible slice of the pick rectangle is mapped to
2545
+ * model WCS, queried, and mapped back so window / crossing keeps its exact
2546
+ * AutoCAD meaning.
2547
+ */
2548
+ AcTrView2d.prototype.collectViewportDrillThroughSelectionIds = function (box, mode) {
2549
+ var e_10, _a;
2550
+ var _b, _c;
2551
+ var activeLayoutView = this.activeLayoutView;
2552
+ var modelLayout = this._scene.modelSpaceLayout;
2553
+ if (!activeLayoutView || !modelLayout)
2554
+ return [];
2555
+ if (activeLayoutView.layoutBtrId === this._scene.modelSpaceBtrId)
2556
+ return [];
2557
+ var viewports = [];
2558
+ var _loop_2 = function (vpView) {
2559
+ viewports.push({
2560
+ paperBox: vpView.viewport.box,
2561
+ frozenLayers: vpView.viewport.frozenLayers,
2562
+ paperPointToModel: function (point) { return vpView.paperPointToModel(point); },
2563
+ modelPointToPaper: function (point) { return vpView.modelPointToPaper(point); }
2564
+ });
2565
+ };
2566
+ try {
2567
+ for (var _d = __values(activeLayoutView.viewportViews), _e = _d.next(); !_e.done; _e = _d.next()) {
2568
+ var vpView = _e.value;
2569
+ _loop_2(vpView);
2570
+ }
2571
+ }
2572
+ catch (e_10_1) { e_10 = { error: e_10_1 }; }
2573
+ finally {
2574
+ try {
2575
+ if (_e && !_e.done && (_a = _d.return)) _a.call(_d);
2576
+ }
2577
+ finally { if (e_10) throw e_10.error; }
2578
+ }
2579
+ if (viewports.length === 0)
2580
+ return [];
2581
+ var database = (_c = (_b = AcApDocManager.tryGetInstance()) === null || _b === void 0 ? void 0 : _b.curDocument) === null || _c === void 0 ? void 0 : _c.database;
2582
+ return acedCollectViewportBoxSelectionIds({
2583
+ selectionBox: box,
2584
+ mode: mode,
2585
+ viewports: viewports,
2586
+ searchModel: function (modelBox, selectionMode) {
2587
+ return modelLayout.search(modelBox, { selectionMode: selectionMode });
2588
+ },
2589
+ entityOf: function (id) { var _a; return (_a = database === null || database === void 0 ? void 0 : database.tables.blockTable.getEntityById(id)) !== null && _a !== void 0 ? _a : undefined; }
2590
+ });
2591
+ };
2537
2592
  /**
2538
2593
  * Drops crossing spatial hits whose curve geometry misses the pick box.
2539
2594
  *
@@ -2542,7 +2597,7 @@ var AcTrView2d = /** @class */ (function (_super) {
2542
2597
  * that interior also selects those polylines and can stall highlight work.
2543
2598
  */
2544
2599
  AcTrView2d.prototype.refineCrossingSelectionHits = function (box, results) {
2545
- var e_10, _a;
2600
+ var e_11, _a;
2546
2601
  var _b;
2547
2602
  var database = (_b = AcApDocManager.instance.curDocument) === null || _b === void 0 ? void 0 : _b.database;
2548
2603
  if (!database) {
@@ -2567,12 +2622,12 @@ var AcTrView2d = /** @class */ (function (_super) {
2567
2622
  }
2568
2623
  }
2569
2624
  }
2570
- catch (e_10_1) { e_10 = { error: e_10_1 }; }
2625
+ catch (e_11_1) { e_11 = { error: e_11_1 }; }
2571
2626
  finally {
2572
2627
  try {
2573
2628
  if (results_1_1 && !results_1_1.done && (_a = results_1.return)) _a.call(results_1);
2574
2629
  }
2575
- finally { if (e_10) throw e_10.error; }
2630
+ finally { if (e_11) throw e_11.error; }
2576
2631
  }
2577
2632
  return ids;
2578
2633
  };
@@ -2588,7 +2643,7 @@ var AcTrView2d = /** @class */ (function (_super) {
2588
2643
  * @inheritdoc
2589
2644
  */
2590
2645
  AcTrView2d.prototype.updateLayer = function (layer, changes) {
2591
- var e_11, _a;
2646
+ var e_12, _a;
2592
2647
  var touchedObjectIds = this._scene.updateLayer(this.toLayerInfo(layer)).touchedObjectIds;
2593
2648
  if (this._layerAppearance.layerStyleMayHaveChanged(changes)) {
2594
2649
  this._layerAppearance.syncFromLiveRecord(layer);
@@ -2610,12 +2665,12 @@ var AcTrView2d = /** @class */ (function (_super) {
2610
2665
  this.applySessionHiddenObjectState(objectId);
2611
2666
  }
2612
2667
  }
2613
- catch (e_11_1) { e_11 = { error: e_11_1 }; }
2668
+ catch (e_12_1) { e_12 = { error: e_12_1 }; }
2614
2669
  finally {
2615
2670
  try {
2616
2671
  if (touchedObjectIds_1_1 && !touchedObjectIds_1_1.done && (_a = touchedObjectIds_1.return)) _a.call(touchedObjectIds_1);
2617
2672
  }
2618
- finally { if (e_11) throw e_11.error; }
2673
+ finally { if (e_12) throw e_12.error; }
2619
2674
  }
2620
2675
  this._isDirty = true;
2621
2676
  };
@@ -2952,7 +3007,7 @@ var AcTrView2d = /** @class */ (function (_super) {
2952
3007
  * drawable entity that must be rebuilt (for example ATTRIB → INSERT).
2953
3008
  */
2954
3009
  AcTrView2d.prototype.resolveSceneUpdateEntities = function (entities) {
2955
- var e_12, _a;
3010
+ var e_13, _a;
2956
3011
  var _b;
2957
3012
  var db = (_b = AcApDocManager.instance.curDocument) === null || _b === void 0 ? void 0 : _b.database;
2958
3013
  var resolved = [];
@@ -2974,12 +3029,12 @@ var AcTrView2d = /** @class */ (function (_super) {
2974
3029
  resolved.push(target);
2975
3030
  }
2976
3031
  }
2977
- catch (e_12_1) { e_12 = { error: e_12_1 }; }
3032
+ catch (e_13_1) { e_13 = { error: e_13_1 }; }
2978
3033
  finally {
2979
3034
  try {
2980
3035
  if (entities_1_1 && !entities_1_1.done && (_a = entities_1.return)) _a.call(entities_1);
2981
3036
  }
2982
- finally { if (e_12) throw e_12.error; }
3037
+ finally { if (e_13) throw e_13.error; }
2983
3038
  }
2984
3039
  return resolved;
2985
3040
  };
@@ -3764,7 +3819,7 @@ var AcTrView2d = /** @class */ (function (_super) {
3764
3819
  * @param layoutBtrId Input the block table record id of the layout
3765
3820
  */
3766
3821
  AcTrView2d.prototype.loadLayoutEntitiesIfNeeded = function (layoutBtrId) {
3767
- var e_13, _a;
3822
+ var e_14, _a;
3768
3823
  var _this = this;
3769
3824
  try {
3770
3825
  var db = AcApDocManager.instance.curDocument.database;
@@ -3828,12 +3883,12 @@ var AcTrView2d = /** @class */ (function (_super) {
3828
3883
  entities_2.push(entity);
3829
3884
  }
3830
3885
  }
3831
- catch (e_13_1) { e_13 = { error: e_13_1 }; }
3886
+ catch (e_14_1) { e_14 = { error: e_14_1 }; }
3832
3887
  finally {
3833
3888
  try {
3834
3889
  if (iterator_1_1 && !iterator_1_1.done && (_a = iterator_1.return)) _a.call(iterator_1);
3835
3890
  }
3836
- finally { if (e_13) throw e_13.error; }
3891
+ finally { if (e_14) throw e_14.error; }
3837
3892
  }
3838
3893
  if (entities_2.length === 0) {
3839
3894
  // Empty layout (e.g. a freshly-created paper space tab). Mark as
@@ -4176,8 +4231,8 @@ var AcTrView2d = /** @class */ (function (_super) {
4176
4231
  */
4177
4232
  AcTrView2d.prototype.redrawGlyphEntitiesAfterFontLoad = function (epoch, fontName) {
4178
4233
  return __awaiter(this, void 0, void 0, function () {
4179
- var redrawEpoch, glyphs, _a, _b, layout, glyphs_1, glyphs_1_1, glyph, e_14_1, defaults, normalized_1, msSinceIdle, db;
4180
- var e_15, _c, e_14, _d;
4234
+ var redrawEpoch, glyphs, _a, _b, layout, glyphs_1, glyphs_1_1, glyph, e_15_1, defaults, normalized_1, msSinceIdle, db;
4235
+ var e_16, _c, e_15, _d;
4181
4236
  var _e, _f;
4182
4237
  return __generator(this, function (_g) {
4183
4238
  switch (_g.label) {
@@ -4199,12 +4254,12 @@ var AcTrView2d = /** @class */ (function (_super) {
4199
4254
  });
4200
4255
  }
4201
4256
  }
4202
- catch (e_15_1) { e_15 = { error: e_15_1 }; }
4257
+ catch (e_16_1) { e_16 = { error: e_16_1 }; }
4203
4258
  finally {
4204
4259
  try {
4205
4260
  if (_b && !_b.done && (_c = _a.return)) _c.call(_a);
4206
4261
  }
4207
- finally { if (e_15) throw e_15.error; }
4262
+ finally { if (e_16) throw e_16.error; }
4208
4263
  }
4209
4264
  _g.label = 1;
4210
4265
  case 1:
@@ -4227,14 +4282,14 @@ var AcTrView2d = /** @class */ (function (_super) {
4227
4282
  return [3 /*break*/, 2];
4228
4283
  case 5: return [3 /*break*/, 8];
4229
4284
  case 6:
4230
- e_14_1 = _g.sent();
4231
- e_14 = { error: e_14_1 };
4285
+ e_15_1 = _g.sent();
4286
+ e_15 = { error: e_15_1 };
4232
4287
  return [3 /*break*/, 8];
4233
4288
  case 7:
4234
4289
  try {
4235
4290
  if (glyphs_1_1 && !glyphs_1_1.done && (_d = glyphs_1.return)) _d.call(glyphs_1);
4236
4291
  }
4237
- finally { if (e_14) throw e_14.error; }
4292
+ finally { if (e_15) throw e_15.error; }
4238
4293
  return [7 /*endfinally*/];
4239
4294
  case 8:
4240
4295
  if (glyphs.length > 0) {
@@ -4285,7 +4340,7 @@ var AcTrView2d = /** @class */ (function (_super) {
4285
4340
  });
4286
4341
  };
4287
4342
  AcTrView2d.prototype.groupHasPendingGlyphGeometry = function (group) {
4288
- var e_16, _a;
4343
+ var e_17, _a;
4289
4344
  try {
4290
4345
  // Prefer O(block-def shells). A full THREE.traverse over a mega-block
4291
4346
  // (100k+ flattened mesh leaves) was dominating scene-convert wall time.
@@ -4296,12 +4351,12 @@ var AcTrView2d = /** @class */ (function (_super) {
4296
4351
  }
4297
4352
  }
4298
4353
  }
4299
- catch (e_16_1) { e_16 = { error: e_16_1 }; }
4354
+ catch (e_17_1) { e_17 = { error: e_17_1 }; }
4300
4355
  finally {
4301
4356
  try {
4302
4357
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
4303
4358
  }
4304
- finally { if (e_16) throw e_16.error; }
4359
+ finally { if (e_17) throw e_17.error; }
4305
4360
  }
4306
4361
  return AcTrView2d.directChildrenHavePendingGlyphs(group);
4307
4362
  };
@@ -4312,7 +4367,7 @@ var AcTrView2d = /** @class */ (function (_super) {
4312
4367
  * a whole-floor INSERT is O(glyph shells), not O(all drawable leaves).
4313
4368
  */
4314
4369
  AcTrView2d.directChildrenHavePendingGlyphs = function (root) {
4315
- var e_17, _a;
4370
+ var e_18, _a;
4316
4371
  var children = root.children;
4317
4372
  for (var i = 0; i < children.length; i++) {
4318
4373
  var child = children[i];
@@ -4324,7 +4379,7 @@ var AcTrView2d = /** @class */ (function (_super) {
4324
4379
  }
4325
4380
  if (child instanceof AcTrGroup) {
4326
4381
  try {
4327
- for (var _b = (e_17 = void 0, __values(child.getSourceEntities())), _c = _b.next(); !_c.done; _c = _b.next()) {
4382
+ for (var _b = (e_18 = void 0, __values(child.getSourceEntities())), _c = _b.next(); !_c.done; _c = _b.next()) {
4328
4383
  var entity = _c.value;
4329
4384
  if (entity instanceof AcTrGlyphEntity &&
4330
4385
  !entity.hasDrawableGeometry()) {
@@ -4332,12 +4387,12 @@ var AcTrView2d = /** @class */ (function (_super) {
4332
4387
  }
4333
4388
  }
4334
4389
  }
4335
- catch (e_17_1) { e_17 = { error: e_17_1 }; }
4390
+ catch (e_18_1) { e_18 = { error: e_18_1 }; }
4336
4391
  finally {
4337
4392
  try {
4338
4393
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
4339
4394
  }
4340
- finally { if (e_17) throw e_17.error; }
4395
+ finally { if (e_18) throw e_18.error; }
4341
4396
  }
4342
4397
  if (AcTrView2d.directChildrenHavePendingGlyphs(child)) {
4343
4398
  return true;
@@ -4379,7 +4434,7 @@ var AcTrView2d = /** @class */ (function (_super) {
4379
4434
  */
4380
4435
  AcTrView2d.prototype.pumpDeferredGeometryQueue = function () {
4381
4436
  var _this = this;
4382
- var _loop_2 = function () {
4437
+ var _loop_3 = function () {
4383
4438
  var job = this_1._deferredGeometryQueue.shift();
4384
4439
  if (job.epoch !== this_1._convertEpoch) {
4385
4440
  this_1._pendingGeometryJobs = Math.max(0, this_1._pendingGeometryJobs - 1);
@@ -4419,7 +4474,7 @@ var AcTrView2d = /** @class */ (function (_super) {
4419
4474
  var this_1 = this;
4420
4475
  while (this._deferredGeometryActive < AcTrView2d.DEFERRED_GEOMETRY_CONCURRENCY &&
4421
4476
  this._deferredGeometryQueue.length > 0) {
4422
- _loop_2();
4477
+ _loop_3();
4423
4478
  }
4424
4479
  };
4425
4480
  /** Drops queued deferred geometry and resets counters for a new epoch. */
@@ -4501,7 +4556,7 @@ var AcTrView2d = /** @class */ (function (_super) {
4501
4556
  * paper layouts.
4502
4557
  */
4503
4558
  AcTrView2d.prototype.ensureViewportViews = function (blockTableRecord, layoutView) {
4504
- var e_18, _a;
4559
+ var e_19, _a;
4505
4560
  var iterator = blockTableRecord.newIterator();
4506
4561
  try {
4507
4562
  for (var iterator_2 = __values(iterator), iterator_2_1 = iterator_2.next(); !iterator_2_1.done; iterator_2_1 = iterator_2.next()) {
@@ -4514,12 +4569,12 @@ var AcTrView2d = /** @class */ (function (_super) {
4514
4569
  layoutView.addViewport(viewportView);
4515
4570
  }
4516
4571
  }
4517
- catch (e_18_1) { e_18 = { error: e_18_1 }; }
4572
+ catch (e_19_1) { e_19 = { error: e_19_1 }; }
4518
4573
  finally {
4519
4574
  try {
4520
4575
  if (iterator_2_1 && !iterator_2_1.done && (_a = iterator_2.return)) _a.call(iterator_2);
4521
4576
  }
4522
- finally { if (e_18) throw e_18.error; }
4577
+ finally { if (e_19) throw e_19.error; }
4523
4578
  }
4524
4579
  };
4525
4580
  /**
@@ -4528,7 +4583,7 @@ var AcTrView2d = /** @class */ (function (_super) {
4528
4583
  * {@link AcDbViewport.frozenLayerIds} but omit them from `toGiViewport()`.
4529
4584
  */
4530
4585
  AcTrView2d.prototype.toGiViewportWithFrozenLayers = function (entity) {
4531
- var e_19, _a;
4586
+ var e_20, _a;
4532
4587
  var _b;
4533
4588
  var gi = entity.toGiViewport();
4534
4589
  if (gi.frozenLayers && gi.frozenLayers.length > 0) {
@@ -4548,12 +4603,12 @@ var AcTrView2d = /** @class */ (function (_super) {
4548
4603
  names.push(layer.name);
4549
4604
  }
4550
4605
  }
4551
- catch (e_19_1) { e_19 = { error: e_19_1 }; }
4606
+ catch (e_20_1) { e_20 = { error: e_20_1 }; }
4552
4607
  finally {
4553
4608
  try {
4554
4609
  if (ids_1_1 && !ids_1_1.done && (_a = ids_1.return)) _a.call(ids_1);
4555
4610
  }
4556
- finally { if (e_19) throw e_19.error; }
4611
+ finally { if (e_20) throw e_20.error; }
4557
4612
  }
4558
4613
  }
4559
4614
  gi.frozenLayerIds = __spreadArray([], __read(ids), false);
@@ -4567,7 +4622,7 @@ var AcTrView2d = /** @class */ (function (_super) {
4567
4622
  */
4568
4623
  AcTrView2d.prototype.batchConvert = function (entities_3) {
4569
4624
  return __awaiter(this, arguments, void 0, function (entities, options) {
4570
- var epoch, db, progressive, yieldBudgetMs, yieldGate, yieldToEventLoop, _loop_3, this_2, i;
4625
+ var epoch, db, progressive, yieldBudgetMs, yieldGate, yieldToEventLoop, _loop_4, this_2, i;
4571
4626
  var _this = this;
4572
4627
  var _a, _b, _c, _d;
4573
4628
  if (options === void 0) { options = {}; }
@@ -4594,7 +4649,7 @@ var AcTrView2d = /** @class */ (function (_super) {
4594
4649
  yieldToEventLoop = function () {
4595
4650
  return new Promise(function (resolve) { return setTimeout(resolve, 0); });
4596
4651
  };
4597
- _loop_3 = function (i) {
4652
+ _loop_4 = function (i) {
4598
4653
  var entity, shouldConvert, objectId_1, convertGen_1, directMeta, added, superseded, threeEntity_1, isMultiLayerGroup, deferGeometry, isExtendBbox_1, commitEntity, fileName, error_3, failedId, didYield;
4599
4654
  return __generator(this, function (_f) {
4600
4655
  switch (_f.label) {
@@ -4833,7 +4888,7 @@ var AcTrView2d = /** @class */ (function (_super) {
4833
4888
  _e.label = 1;
4834
4889
  case 1:
4835
4890
  if (!(i < entities.length)) return [3 /*break*/, 4];
4836
- return [5 /*yield**/, _loop_3(i)];
4891
+ return [5 /*yield**/, _loop_4(i)];
4837
4892
  case 2:
4838
4893
  _e.sent();
4839
4894
  _e.label = 3;
@@ -4873,8 +4928,8 @@ var AcTrView2d = /** @class */ (function (_super) {
4873
4928
  };
4874
4929
  AcTrView2d.prototype.handleGroup = function (group_1, progressive_1) {
4875
4930
  return __awaiter(this, arguments, void 0, function (group, progressive, epoch, convertGen) {
4876
- var t0, objectId, children, objectsGroupByLayer_2, children_1, children_1_1, child, renderContext, groupObjectId, groupLayerName, lazyChildren, groupChildBoxes, aggregateSpatialBbox, registeredChildIndex, yieldToEventLoop, lastGroupYieldAt, _loop_4, this_3, objectsGroupByLayer_1, objectsGroupByLayer_1_1, _a, layerName, objects, e_20_1;
4877
- var e_21, _b, e_20, _c;
4931
+ var t0, objectId, children, objectsGroupByLayer_2, children_1, children_1_1, child, renderContext, groupObjectId, groupLayerName, lazyChildren, groupChildBoxes, aggregateSpatialBbox, registeredChildIndex, yieldToEventLoop, lastGroupYieldAt, _loop_5, this_3, objectsGroupByLayer_1, objectsGroupByLayer_1_1, _a, layerName, objects, e_21_1;
4932
+ var e_22, _b, e_21, _c;
4878
4933
  var _this = this;
4879
4934
  var _d, _e;
4880
4935
  if (epoch === void 0) { epoch = this._convertEpoch; }
@@ -4929,12 +4984,12 @@ var AcTrView2d = /** @class */ (function (_super) {
4929
4984
  child.parent = null;
4930
4985
  }
4931
4986
  }
4932
- catch (e_21_1) { e_21 = { error: e_21_1 }; }
4987
+ catch (e_22_1) { e_22 = { error: e_22_1 }; }
4933
4988
  finally {
4934
4989
  try {
4935
4990
  if (children_1_1 && !children_1_1.done && (_b = children_1.return)) _b.call(children_1);
4936
4991
  }
4937
- finally { if (e_21) throw e_21.error; }
4992
+ finally { if (e_22) throw e_22.error; }
4938
4993
  }
4939
4994
  renderContext = group.renderContext;
4940
4995
  groupObjectId = group.objectId;
@@ -4965,7 +5020,7 @@ var AcTrView2d = /** @class */ (function (_super) {
4965
5020
  return new Promise(function (resolve) { return setTimeout(resolve, 0); });
4966
5021
  };
4967
5022
  lastGroupYieldAt = progressive ? performance.now() : 0;
4968
- _loop_4 = function (layerName, objects) {
5023
+ _loop_5 = function (layerName, objects) {
4969
5024
  var effectiveLayerName, sourceLayerForMaterials, entity, entityUserData, i, tAdd;
4970
5025
  return __generator(this, function (_g) {
4971
5026
  switch (_g.label) {
@@ -5040,7 +5095,7 @@ var AcTrView2d = /** @class */ (function (_super) {
5040
5095
  case 4:
5041
5096
  if (!!objectsGroupByLayer_1_1.done) return [3 /*break*/, 7];
5042
5097
  _a = __read(objectsGroupByLayer_1_1.value, 2), layerName = _a[0], objects = _a[1];
5043
- return [5 /*yield**/, _loop_4(layerName, objects)];
5098
+ return [5 /*yield**/, _loop_5(layerName, objects)];
5044
5099
  case 5:
5045
5100
  _f.sent();
5046
5101
  _f.label = 6;
@@ -5049,14 +5104,14 @@ var AcTrView2d = /** @class */ (function (_super) {
5049
5104
  return [3 /*break*/, 4];
5050
5105
  case 7: return [3 /*break*/, 10];
5051
5106
  case 8:
5052
- e_20_1 = _f.sent();
5053
- e_20 = { error: e_20_1 };
5107
+ e_21_1 = _f.sent();
5108
+ e_21 = { error: e_21_1 };
5054
5109
  return [3 /*break*/, 10];
5055
5110
  case 9:
5056
5111
  try {
5057
5112
  if (objectsGroupByLayer_1_1 && !objectsGroupByLayer_1_1.done && (_c = objectsGroupByLayer_1.return)) _c.call(objectsGroupByLayer_1);
5058
5113
  }
5059
- finally { if (e_20) throw e_20.error; }
5114
+ finally { if (e_21) throw e_21.error; }
5060
5115
  return [7 /*endfinally*/];
5061
5116
  case 10:
5062
5117
  group.dispose();
@@ -5194,7 +5249,7 @@ var AcTrView2d = /** @class */ (function (_super) {
5194
5249
  * Glyphs with no layout owner still follow the active layout.
5195
5250
  */
5196
5251
  AcTrView2d.prototype.resolveMeshGlyphLayerParent = function (layerName, ownerId) {
5197
- var e_22, _a;
5252
+ var e_23, _a;
5198
5253
  var _b, _c, _d;
5199
5254
  var owner = ownerId === null || ownerId === void 0 ? void 0 : ownerId.trim();
5200
5255
  if (owner) {
@@ -5217,12 +5272,12 @@ var AcTrView2d = /** @class */ (function (_super) {
5217
5272
  }
5218
5273
  }
5219
5274
  }
5220
- catch (e_22_1) { e_22 = { error: e_22_1 }; }
5275
+ catch (e_23_1) { e_23 = { error: e_23_1 }; }
5221
5276
  finally {
5222
5277
  try {
5223
5278
  if (_f && !_f.done && (_a = _e.return)) _a.call(_e);
5224
5279
  }
5225
- finally { if (e_22) throw e_22.error; }
5280
+ finally { if (e_23) throw e_23.error; }
5226
5281
  }
5227
5282
  return null;
5228
5283
  };