iflow-engine-base 3.7.13 → 3.7.14

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.
@@ -43074,19 +43074,52 @@ class $L {
43074
43074
  r?.key
43075
43075
  ), o(r.properties, t, i);
43076
43076
  function o(a, l, c) {
43077
- let h = [], u = a.models[l.toString() || ""], f = u.map((d) => d[0]);
43078
- f = f.filter((d, p) => f.indexOf(d) === p), f.forEach((d) => {
43079
- let p = {
43080
- name: a.categorys[d],
43077
+ let h = [], u = a.models[l.toString() || ""], f = u.map((p) => p[0]);
43078
+ f = f.filter((p, g) => f.indexOf(p) === g), f.forEach((p) => {
43079
+ let g = {
43080
+ name: a.categorys[p],
43081
43081
  children: []
43082
43082
  };
43083
- h.push(p), u.filter((g) => g[0] === d).forEach((g) => {
43084
- p.children.push({
43085
- name: a.names[g[1]],
43086
- value: a.values[g[2]]
43083
+ h.push(g), u.filter((m) => m[0] === p).forEach((m) => {
43084
+ g.children.push({
43085
+ name: a.names[m[1]],
43086
+ value: a.values[m[2]]
43087
43087
  });
43088
43088
  });
43089
- }), s != null && s.has(l) && h.push(s.get(l)), c?.({
43089
+ }), s != null && s.has(l) && h.push(s.get(l));
43090
+ const d = {
43091
+ // 简体中文
43092
+ 基础数据: 0,
43093
+ 基礎信息: 0,
43094
+ 标识数据: 1,
43095
+ 尺寸标注: 2,
43096
+ 文字: 3,
43097
+ 约束: 4,
43098
+ 阶段化: 5,
43099
+ 结构: 6,
43100
+ 图形: 7,
43101
+ 材质和装饰: 8,
43102
+ 构造: 9,
43103
+ 分析属性: 10,
43104
+ 其他: 11,
43105
+ // 繁体中文
43106
+ 基礎資料: 0,
43107
+ 識別資料: 1,
43108
+ 尺寸: 2,
43109
+ 文字: 3,
43110
+ 約束: 4,
43111
+ 階段: 5,
43112
+ 結構: 6,
43113
+ 圖形: 7,
43114
+ 材料及飾面: 8,
43115
+ 構造: 9,
43116
+ 分析性質: 10,
43117
+ 其他: 11
43118
+ };
43119
+ h.sort((p, g) => {
43120
+ const m = d[p.name] ?? 99, A = d[g.name] ?? 99;
43121
+ return m - A;
43122
+ }), c?.({
43090
43123
  properties: h,
43091
43124
  materials: h
43092
43125
  });
@@ -53277,16 +53310,16 @@ class cU {
53277
53310
  const t = this.engine.container;
53278
53311
  if (!t)
53279
53312
  throw new Error("FabricDraw: engine container not found.");
53280
- this.wrapper = document.createElement("div"), this.wrapper.className = "fabric-draw-layer", this.wrapper.style.position = "absolute", this.wrapper.style.left = "0", this.wrapper.style.top = "0", this.wrapper.style.right = "0", this.wrapper.style.bottom = "0", this.wrapper.style.zIndex = "1200", this.wrapper.style.pointerEvents = "none", this.canvasEl = document.createElement("canvas"), this.canvasEl.style.width = "100%", this.canvasEl.style.height = "100%", this.wrapper.appendChild(this.canvasEl), this.toolbar = new lU({
53281
- onDrawTypeChange: (i) => this.setDrawType(i),
53313
+ this.wrapper = document.createElement("div"), this.wrapper.className = "fabric-draw-layer", this.wrapper.style.position = "absolute", this.wrapper.style.left = "0", this.wrapper.style.top = "0", this.wrapper.style.right = "0", this.wrapper.style.bottom = "0", this.wrapper.style.pointerEvents = "none", this.canvasEl = document.createElement("canvas"), this.canvasEl.style.width = "100%", this.canvasEl.style.height = "100%", this.wrapper.appendChild(this.canvasEl), this.toolbar = new lU({
53314
+ onDrawTypeChange: (s) => this.setDrawType(s),
53282
53315
  onMeasureToggle: () => this.toggleMeasurePanel(),
53283
- onMeasureTypeChange: (i) => this.activateDistanceMeasure(i),
53316
+ onMeasureTypeChange: (s) => this.activateDistanceMeasure(s),
53284
53317
  onScreenshot: () => {
53285
53318
  this.saveScreenshot(this.createScreenshotFileName());
53286
53319
  },
53287
- onColorChange: (i) => this.handleColorInputChange(i),
53288
- onStrokeWidthChange: (i) => this.handleStrokeWidthInputChange(i),
53289
- onFontSizeChange: (i) => this.handleFontSizeInputChange(i),
53320
+ onColorChange: (s) => this.handleColorInputChange(s),
53321
+ onStrokeWidthChange: (s) => this.handleStrokeWidthInputChange(s),
53322
+ onFontSizeChange: (s) => this.handleFontSizeInputChange(s),
53290
53323
  onCancel: () => {
53291
53324
  this.handleCancelClick();
53292
53325
  },
@@ -53298,7 +53331,9 @@ class cU {
53298
53331
  stroke: this.drawStyle.stroke,
53299
53332
  strokeWidth: this.drawStyle.strokeWidth,
53300
53333
  fontSize: this.drawStyle.fontSize
53301
- }), this.toolbar.mount(this.wrapper), t.appendChild(this.wrapper), this.canvas = new cg(this.canvasEl, {
53334
+ }), this.toolbar.mount(this.wrapper);
53335
+ const i = this.engine.renderer?.domElement;
53336
+ i?.nextSibling ? t.insertBefore(this.wrapper, i.nextSibling) : t.appendChild(this.wrapper), this.canvas = new cg(this.canvasEl, {
53302
53337
  selection: !0,
53303
53338
  preserveObjectStacking: !0
53304
53339
  }), this.resize(), this.canvas.on("mouse:down", this.onMouseDown), this.canvas.on("mouse:move", this.onMouseMove), this.canvas.on("mouse:up", this.onMouseUp), this.canvas.on("mouse:dblclick", this.onMouseDblClick), this.canvas.on("selection:created", this.onSelectionChanged), this.canvas.on("selection:updated", this.onSelectionChanged), this.canvas.on("selection:cleared", this.onSelectionChanged), window.addEventListener("keydown", this.onKeyDown), this.refreshToolbarState();
@@ -54217,7 +54252,7 @@ class uU {
54217
54252
  // 业务数据
54218
54253
  models = [];
54219
54254
  reactBoundingClientRect = { left: 0, top: 0 };
54220
- version = "3.7.13";
54255
+ version = "3.7.14";
54221
54256
  versionEl = null;
54222
54257
  // 引擎容器
54223
54258
  container;