@jnrs/lingshu-smart 2.2.24 → 2.2.25

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.
@@ -26,16 +26,25 @@ type __VLS_Props = {
26
26
  /**
27
27
  * 案例 uuid
28
28
  */
29
- caseUuid?: string;
29
+ caseUuid: string;
30
+ /**
31
+ * APP 是否可交互
32
+ */
33
+ appHittable?: boolean;
30
34
  /**
31
35
  * 容器背景色
32
36
  */
33
37
  appFill?: string;
38
+ /**
39
+ * 隐藏场景元素(如背景、网格等)
40
+ */
41
+ hideSceneFill?: boolean;
34
42
  };
35
43
  declare const _default: import('vue').DefineComponent<__VLS_Props, {
36
44
  currentCase: import('vue').Ref<ICase | null | undefined, ICase | null | undefined>;
37
45
  operating: (data: ILayerOperating) => void;
38
46
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
39
47
  actions: PreviewActions;
48
+ appHittable: boolean;
40
49
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
41
50
  export default _default;
@@ -7,6 +7,7 @@ export declare class AppController {
7
7
  private businessMap;
8
8
  private appEditable;
9
9
  private actions;
10
+ private hideSceneFill;
10
11
  constructor(options?: IContainer);
11
12
  start(): void;
12
13
  destroy(): void;
@@ -13765,27 +13765,38 @@ class UT {
13765
13765
  // 是否可编辑
13766
13766
  actions;
13767
13767
  // 事件处理
13768
+ hideSceneFill;
13769
+ // 是否隐藏场景背景填充
13768
13770
  constructor(t = {}) {
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
+ const {
13772
+ appDomId: i,
13773
+ appHittable: r = !0,
13774
+ appFill: n = "#424242",
13775
+ hideSceneFill: s = !1,
13776
+ autoStart: o = !0,
13777
+ appEditable: h = !1,
13778
+ actions: u = {}
13779
+ } = t;
13780
+ this.hideSceneFill = s, this.appEditable = h, this.actions = r ? u : {}, this.app = new ey({
13771
13781
  view: i || window,
13772
- start: n,
13782
+ start: o,
13773
13783
  ground: {},
13774
- tree: { type: s ? "design" : "game" },
13775
- editor: s ? {} : void 0,
13784
+ tree: { type: h ? "design" : "game" },
13785
+ editor: h ? {} : void 0,
13776
13786
  maxFPS: 60,
13777
- fill: r,
13787
+ hittable: r,
13788
+ fill: n,
13778
13789
  pointer: {
13779
13790
  preventDefault: !0,
13780
13791
  preventDefaultMenu: !0
13781
13792
  }
13782
13793
  });
13783
- const h = new st({
13794
+ const c = new st({
13784
13795
  ...cC,
13785
13796
  id: "treeBoxUI",
13786
- stroke: s ? { type: "solid", color: "rgb(242, 195, 79)" } : null
13797
+ stroke: h ? { type: "solid", color: "rgb(242, 195, 79)" } : null
13787
13798
  });
13788
- this.treeBoxUI = h, this.app.tree.add(h), this.modelsMap = /* @__PURE__ */ new Map(), this.businessMap = /* @__PURE__ */ new Map(), this.setZoom();
13799
+ this.treeBoxUI = c, this.app.tree.add(c), this.modelsMap = /* @__PURE__ */ new Map(), this.businessMap = /* @__PURE__ */ new Map(), this.setZoom();
13789
13800
  }
13790
13801
  // 启动/重启引擎
13791
13802
  start() {
@@ -13810,7 +13821,7 @@ class UT {
13810
13821
  t ? (this.treeBoxUI?.set({
13811
13822
  width: t.width,
13812
13823
  height: t.height,
13813
- fill: t.fill
13824
+ fill: this.hideSceneFill ? "" : t.fill
13814
13825
  }), this.setZoom(t.zoomType)) : (this.setTree(cC), this.setZoom());
13815
13826
  }
13816
13827
  // tree 层查找元素,返回数组
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-2zNqeRBi.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-32uj9JyT.js";
2
2
  export {
3
3
  e as EnumComponent,
4
4
  n as EnumModel,
@@ -2,13 +2,16 @@ import { ICase, ILayerOperating } from '../types';
2
2
  declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
3
3
  lingshuSmartPreviewRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
4
4
  actions?: import('../components/preview/index.vue').PreviewActions;
5
- caseUuid?: string;
5
+ caseUuid: string;
6
+ appHittable?: boolean;
6
7
  appFill?: string;
8
+ hideSceneFill?: boolean;
7
9
  }> & Readonly<{}>, {
8
10
  currentCase: import('vue').Ref<ICase | null | undefined, ICase | null | undefined>;
9
11
  operating: (data: ILayerOperating) => void;
10
12
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
11
13
  actions: import('../components/preview/index.vue').PreviewActions;
14
+ appHittable: boolean;
12
15
  }, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
13
16
  P: {};
14
17
  B: {};
@@ -18,13 +21,16 @@ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import
18
21
  Defaults: {};
19
22
  }, Readonly<{
20
23
  actions?: import('../components/preview/index.vue').PreviewActions;
21
- caseUuid?: string;
24
+ caseUuid: string;
25
+ appHittable?: boolean;
22
26
  appFill?: string;
27
+ hideSceneFill?: boolean;
23
28
  }> & Readonly<{}>, {
24
29
  currentCase: import('vue').Ref<ICase | null | undefined, ICase | null | undefined>;
25
30
  operating: (data: ILayerOperating) => void;
26
31
  }, {}, {}, {}, {
27
32
  actions: import('../components/preview/index.vue').PreviewActions;
33
+ appHittable: boolean;
28
34
  }> | null;
29
35
  }, HTMLDivElement>;
30
36
  export default _default;
@@ -53,7 +53,9 @@ export interface IEventHandler {
53
53
  */
54
54
  export interface IContainer {
55
55
  appDomId?: string | HTMLElement;
56
+ appHittable?: boolean;
56
57
  appFill?: string;
58
+ hideSceneFill?: boolean;
57
59
  autoStart?: boolean;
58
60
  appEditable?: boolean;
59
61
  actions?: IEventHandler;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jnrs/lingshu-smart",
3
- "version": "2.2.24",
3
+ "version": "2.2.25",
4
4
  "description": "LingShu Smart 2D Digital Twin System.",
5
5
  "keywords": [
6
6
  "jnrs",