@jnrs/lingshu-smart 3.0.0 → 3.1.1

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.
@@ -1,4 +1,4 @@
1
- import { IScene, ILayer, IContainer, ILayerOperating, EnumResourceType } from '../types';
1
+ import { IScene, ILayer, IContainer, ILayerOperating, IRailConfig, EnumResourceType } from '../types';
2
2
  import { ModelAbs } from '../ui/abstract/ModelAbs';
3
3
  import { App } from 'leafer';
4
4
  export declare class AppController {
@@ -61,6 +61,11 @@ export declare class AppController {
61
61
  private batchRemove;
62
62
  /** 是否存在匹配的业务设备模型(command_ack 404 判断) */
63
63
  hasDevice(className: string, id: string): boolean;
64
+ /**
65
+ * 解析设备绑定的轨道配置:优先设备自身 linkRailId,其次按轨道侧 linkEquipIdArray 反查
66
+ * (两侧由编辑器「绑定」面板双向同步维护,历史数据可能只保留一侧)
67
+ */
68
+ getBoundRailConfig(equipId: string): IRailConfig | null;
64
69
  /** 判断设备是否存在指定序号的工位(任一工位组;多层设备按 layer 定位层) */
65
70
  hasStation(className: string, id: string, stationIndex: number, layer?: number): boolean;
66
71
  /** 判断指定工位是否可放置该资源类型(运行期类型强校验,见文档 4.3) */
@@ -18,13 +18,13 @@ function T(s) {
18
18
  function I(s) {
19
19
  return s?.className === e.SINGLE_JOINT_ROBOT || s?.className === e.DOUBLE_JOINT_ROBOT;
20
20
  }
21
- function _(s) {
21
+ function i(s) {
22
22
  return s?.className === e.RAIL;
23
23
  }
24
- function i(s) {
24
+ function R(s) {
25
25
  return s?.className === e.SHUTTLE_STATION;
26
26
  }
27
- function R(s) {
27
+ function _(s) {
28
28
  return s?.className === e.PALLET;
29
29
  }
30
30
  const r = () => {
@@ -44,9 +44,9 @@ export {
44
44
  E as b,
45
45
  T as c,
46
46
  I as d,
47
- _ as e,
48
- i as f,
49
- R as g,
47
+ i as e,
48
+ R as f,
49
+ _ as g,
50
50
  l as h,
51
51
  O as i,
52
52
  r as u
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
- import { D as s, d as o, c as t, b as n, f as r, e as i, E as l, a as u, g as p, M as c, R as E, e as m, p as T, q as g, m as S, r as h, u as L, k as P, l as x, o as C, n as y, s as R, h as d, t as D, j as _, i as M } from "./index-C6Liz-8o.js";
2
- import { d as f, h as v, b, i as F, g as G, e as I, c as V, f as Y, a as j, u as k } from "./fullscreen-BA3oea8O.js";
1
+ import { D as s, d as o, c as t, b as n, f as r, e as i, E as l, a as p, g as u, M as c, R as E, e as m, p as T, q as g, m as S, r as L, u as P, k as R, l as h, o as x, n as y, s as C, h as d, t as D, j as _, i as M } from "./index-C6Liz-8o.js";
2
+ import { h as b, b as f, d as v, i as G, g as I, e as F, c as V, f as Y, a as j, u as k } from "./fullscreen-cF8Z5e2Z.js";
3
3
  export {
4
4
  s as DEVICE_TYPE_TO_MODEL,
5
5
  o as EnumComponent,
@@ -8,30 +8,30 @@ export {
8
8
  r as EnumPalletType,
9
9
  i as EnumResourceType,
10
10
  l as EnumStepType,
11
- u as EnumTag,
12
- p as EnvelopeType,
11
+ p as EnumTag,
12
+ u as EnvelopeType,
13
13
  c as MODEL_TO_DEVICE_TYPE,
14
14
  E as ResourceOperation,
15
15
  m as ResourceType,
16
16
  T as compactCase,
17
17
  g as compactCases,
18
18
  S as createLogger,
19
- h as expandCase,
20
- L as expandCases,
21
- P as getLogLevel,
22
- f as hasFixtureChange,
23
- v as hasStationSlotGroup,
24
- b as hasStationSlotLayers,
25
- F as isMachineTool,
26
- G as isPallet,
27
- I as isRail,
19
+ L as expandCase,
20
+ P as expandCases,
21
+ R as getLogLevel,
22
+ b as hasStationSlotGroup,
23
+ f as hasStationSlotLayers,
24
+ v as isJointRobot,
25
+ G as isMachineTool,
26
+ I as isPallet,
27
+ F as isRail,
28
28
  V as isResourceStore,
29
29
  Y as isShuttleStation,
30
30
  j as isStationSlotGroupBoth,
31
- x as linearIncrease,
32
- C as logger,
31
+ h as linearIncrease,
32
+ x as logger,
33
33
  y as numberLoopGenerator,
34
- R as setLogLevel,
34
+ C as setLogLevel,
35
35
  d as transFraction,
36
36
  D as transPercentAndPixel,
37
37
  _ as transPercentToPixel,