@jnrs/lingshu-smart 2.2.21 → 2.2.23

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.
@@ -12439,7 +12439,7 @@ class af extends fo {
12439
12439
  }
12440
12440
  // 操作
12441
12441
  operating(t) {
12442
- t.light && this.light && this.light.operating(t.light), t.progress && this.progress && this.progress.operating(t.progress), t.entrance && this.entrance && this.entrance.operating(t.entrance), t.resource && this.stationSlotGroup && this.stationSlotGroup.operating(t.resource), Object.hasOwn(t, "stationRotatable") && (t.stationRotatable ? this.rotateStationContainerWithAnimation("rotate") : this.rotateStationContainerWithAnimation("reset"));
12442
+ t.light && this.light && this.light.operating(t.light), t.progress && this.progress && this.progress.operating(t.progress), t.entrance && this.entrance && this.entrance.operating(t.entrance), t.resource && this.stationSlotGroup && this.stationSlotGroup.operating(t.resource), Object.hasOwn(t, "stationRotatable") && (t.stationRotatable === !0 ? this.rotateStationContainerWithAnimation("rotate") : t.stationRotatable === !1 && this.rotateStationContainerWithAnimation("reset"));
12443
12443
  }
12444
12444
  // 工位旋转/回转动画
12445
12445
  rotateStationContainerWithAnimation(t) {
@@ -13766,26 +13766,26 @@ class UT {
13766
13766
  actions;
13767
13767
  // 事件处理
13768
13768
  constructor(t = {}) {
13769
- const { appDomId: i, autoStart: r = !0, appEditable: n = !1, actions: s = {} } = t;
13770
- this.appEditable = n, this.actions = s, this.app = new ey({
13769
+ const { appDomId: i, appFill: r = "#424242", autoStart: n = !0, appEditable: s = !1, actions: o = {} } = t;
13770
+ this.appEditable = s, this.actions = o, this.app = new ey({
13771
13771
  view: i || window,
13772
- start: r,
13772
+ start: n,
13773
13773
  ground: {},
13774
- tree: { type: n ? "design" : "game" },
13775
- editor: n ? {} : void 0,
13774
+ tree: { type: s ? "design" : "game" },
13775
+ editor: s ? {} : void 0,
13776
13776
  maxFPS: 60,
13777
- fill: "#424242",
13777
+ fill: r,
13778
13778
  pointer: {
13779
13779
  preventDefault: !0,
13780
13780
  preventDefaultMenu: !0
13781
13781
  }
13782
13782
  });
13783
- const o = new st({
13783
+ const h = new st({
13784
13784
  ...cC,
13785
13785
  id: "treeBoxUI",
13786
- stroke: n ? { type: "solid", color: "rgb(242, 195, 79)" } : null
13786
+ stroke: s ? { type: "solid", color: "rgb(242, 195, 79)" } : null
13787
13787
  });
13788
- this.treeBoxUI = o, this.app.tree.add(o), this.modelsMap = /* @__PURE__ */ new Map(), this.businessMap = /* @__PURE__ */ new Map(), this.setZoom();
13788
+ this.treeBoxUI = h, this.app.tree.add(h), this.modelsMap = /* @__PURE__ */ new Map(), this.businessMap = /* @__PURE__ */ new Map(), this.setZoom();
13789
13789
  }
13790
13790
  // 启动/重启引擎
13791
13791
  start() {
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { c as e, b as n, d as o, E as t, a as r, f as i, h as u, i as l, g as m, e as p, l as c, n as h, j as E, t as S, k as T } from "./index-dTS3WIch.js";
1
+ import { c as e, b as n, d as o, E as t, a as r, f as i, h as u, i as l, g as m, e as p, l as c, n as h, j as E, t as S, k as T } from "./index-2zNqeRBi.js";
2
2
  export {
3
3
  e as EnumComponent,
4
4
  n as EnumModel,
@@ -3,6 +3,7 @@ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import
3
3
  lingshuSmartPreviewRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
4
4
  actions?: import('../components/preview/index.vue').PreviewActions;
5
5
  caseUuid?: string;
6
+ appFill?: string;
6
7
  }> & Readonly<{}>, {
7
8
  currentCase: import('vue').Ref<ICase | null | undefined, ICase | null | undefined>;
8
9
  operating: (data: ILayerOperating) => void;
@@ -18,6 +19,7 @@ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import
18
19
  }, Readonly<{
19
20
  actions?: import('../components/preview/index.vue').PreviewActions;
20
21
  caseUuid?: string;
22
+ appFill?: string;
21
23
  }> & Readonly<{}>, {
22
24
  currentCase: import('vue').Ref<ICase | null | undefined, ICase | null | undefined>;
23
25
  operating: (data: ILayerOperating) => void;
@@ -53,6 +53,7 @@ export interface IEventHandler {
53
53
  */
54
54
  export interface IContainer {
55
55
  appDomId?: string | HTMLElement;
56
+ appFill?: string;
56
57
  autoStart?: boolean;
57
58
  appEditable?: boolean;
58
59
  actions?: IEventHandler;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jnrs/lingshu-smart",
3
- "version": "2.2.21",
3
+ "version": "2.2.23",
4
4
  "description": "LingShu Smart 2D Digital Twin System.",
5
5
  "keywords": [
6
6
  "jnrs",