gs-bim-air 1.6.1-beta.85 → 1.6.1-beta.86

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.
@@ -32799,13 +32799,13 @@ __webpack_require__(/*! core-js/modules/esnext.typed-array.to-sorted.js */ "./no
32799
32799
  __webpack_require__(/*! core-js/modules/esnext.typed-array.with.js */ "./node_modules/core-js/modules/esnext.typed-array.with.js");
32800
32800
  __webpack_require__(/*! core-js/modules/web.dom-collections.for-each.js */ "./node_modules/core-js/modules/web.dom-collections.for-each.js");
32801
32801
  __webpack_require__(/*! core-js/modules/es.array.fill.js */ "./node_modules/core-js/modules/es.array.fill.js");
32802
- !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__, exports, __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js"), __webpack_require__(/*! gs-longan */ "./packages/longan/src/index.ts"), __webpack_require__(/*! axios */ "./node_modules/axios/index.js"), __webpack_require__(/*! ./caeStructure */ "./packages/bimAir/src/sdk/cae/caeStructure.ts"), __webpack_require__(/*! ./caeCuttingResultItem */ "./packages/bimAir/src/sdk/cae/caeCuttingResultItem.ts")], __WEBPACK_AMD_DEFINE_RESULT__ = (function (require, exports, tslib_1, gs_longan_1, axios_1, caeStructure_1, caeCuttingResultItem_1) {
32802
+ !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__, exports, __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js"), __webpack_require__(/*! gs-longan */ "./packages/longan/src/index.ts"), __webpack_require__(/*! axios */ "./node_modules/axios/index.js"), __webpack_require__(/*! ./caeStructure */ "./packages/bimAir/src/sdk/cae/caeStructure.ts"), __webpack_require__(/*! ./caeCuttingResultItem */ "./packages/bimAir/src/sdk/cae/caeCuttingResultItem.ts"), __webpack_require__(/*! ../command */ "./packages/bimAir/src/sdk/command/index.ts")], __WEBPACK_AMD_DEFINE_RESULT__ = (function (require, exports, tslib_1, gs_longan_1, axios_1, caeStructure_1, caeCuttingResultItem_1, command_1) {
32803
32803
  "use strict";
32804
32804
 
32805
32805
  Object.defineProperty(exports, "__esModule", ({
32806
32806
  value: true
32807
32807
  }));
32808
- exports.cutStructureByPlane = exports.insertPlaneCuttingResultToSegment = exports.cutModelImageByPlane = exports.cutModelByPlane = exports.setColor = exports.getStructure = void 0;
32808
+ exports.clearCutting = exports.cutStructureByPlane = exports.insertPlaneCuttingResultToSegment = exports.cutModelImageByPlane = exports.cutModelByPlane = exports.setColor = exports.getStructure = void 0;
32809
32809
  axios_1 = tslib_1.__importDefault(axios_1);
32810
32810
  function getStructure(segment) {
32811
32811
  console.log("get structure", segment);
@@ -32975,6 +32975,17 @@ __webpack_require__(/*! core-js/modules/es.array.fill.js */ "./node_modules/core
32975
32975
  shell.color.face = colors;
32976
32976
  }
32977
32977
  exports.insertPlaneCuttingResultToSegment = insertPlaneCuttingResultToSegment;
32978
+ function clearCutting(viewer) {
32979
+ var command = viewer.process.commandManager.currentCommand;
32980
+ if (command.typeName === "CommandShowCaeAxisCut" || command.typeName === "CommandShowAxisCut" || command.typeName === "CommandShowBoxCut" || command.typeName === "CommandShowElevationCut" || command.typeName === "CommandShowElementCut") {
32981
+ viewer.process.commandManager.execute(new command_1.CommandSelect());
32982
+ }
32983
+ var cuttingObjects = viewer.process.findRenderObjectByType("CuttingObjects");
32984
+ cuttingObjects === null || cuttingObjects === void 0 ? void 0 : cuttingObjects.removeChildren();
32985
+ viewer.utilitySegment.subsegment("cae-cutting-plane").clearGeometries();
32986
+ viewer.updateDisplay();
32987
+ }
32988
+ exports.clearCutting = clearCutting;
32978
32989
  function cutStructureByPlane(structure, planeRoot, planeNormal) {
32979
32990
  var list = new gs_longan_1.List();
32980
32991
  structure.forEachElement(function (element) {
@@ -163179,7 +163190,7 @@ module.exports = JSON.parse('{"name":"axios","version":"0.21.4","description":"P
163179
163190
  /***/ (function(module) {
163180
163191
 
163181
163192
  "use strict";
163182
- module.exports = JSON.parse('{"name":"gs-bim-air","version":"1.6.1-beta.85","description":"发布的基于gs-longan的图形显示控件","main":"lib/BimAir.umd.min.js","types":"types/index.d.ts","author":"","license":"ISC","scripts":{"publish":"npm publish ","publishAlpha":"npm publish --tag=alpha","publishBeta":"npm publish --tag=beta","publishBeta2":"npm publish --tag=beta2","typedoc":"typedoc --plugin typedoc-plugin-markdown"},"dependencies":{},"devDependencies":{}}');
163193
+ module.exports = JSON.parse('{"name":"gs-bim-air","version":"1.6.1-beta.86","description":"发布的基于gs-longan的图形显示控件","main":"lib/BimAir.umd.min.js","types":"types/index.d.ts","author":"","license":"ISC","scripts":{"publish":"npm publish ","publishAlpha":"npm publish --tag=alpha","publishBeta":"npm publish --tag=beta","publishBeta2":"npm publish --tag=beta2","typedoc":"typedoc --plugin typedoc-plugin-markdown"},"dependencies":{},"devDependencies":{}}');
163183
163194
 
163184
163195
  /***/ }),
163185
163196