@jnrs/lingshu-smart 2.2.16 → 2.2.18

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.
package/dist/index.d.ts CHANGED
@@ -1 +1,2 @@
1
1
  export * from './types/index';
2
+ export * from './utils/index';
package/dist/index.js CHANGED
@@ -1,28 +1,18 @@
1
- var R = /* @__PURE__ */ ((O) => (O.UNDO = "Undo", O.REDO = "Redo", O))(R || {}), a = /* @__PURE__ */ ((O) => (O.TRANSPORT = "搬运设备", O.MACHINE = "机床", O.CLEANING = "清洗机", O.STATION = "装载站", O.STORAGE = "库", O.OTHER = "其他", O))(a || {}), N = /* @__PURE__ */ ((O) => (O.SINGLE_JOINT_ROBOT = "SingleJointRobot", O.DOUBLE_JOINT_ROBOT = "DoubleJointRobot", O.RGV = "Rgv", O.MACHINE_TOOL = "MachineTool", O.MARKING_MACHINE = "MarkingMachine", O.CLEANING_MACHINE = "CleaningMachine", O.LOADING_STATION = "LoadingStation", O.PALLET_STORAGE = "PalletStorage", O.TOOL_STORAGE = "ToolStorage", O.BUFFER_DOCK = "BufferDock", O.GROUND_RAIL = "GroundRail", O.FOLLOWING_TUGGER = "FollowingTugger", O.RAIL = "Rail", O.RESOURCE_STORE = "ResourceStore", O))(N || {}), t = /* @__PURE__ */ ((O) => (O.STATION_SLOT = "StationSlot", O.RESOURCE = "Resource", O))(t || {}), T = /* @__PURE__ */ ((O) => (O.PALLET = "Pallet", O.TOOL = "Tool", O))(T || {});
2
- function r(O) {
3
- return O?.className === N.MACHINE_TOOL;
4
- }
5
- function I(O) {
6
- return O?.className === N.MACHINE_TOOL || O?.className === N.MARKING_MACHINE || O?.className === N.CLEANING_MACHINE || O?.className === N.LOADING_STATION;
7
- }
8
- function A(O) {
9
- return O?.className === N.RESOURCE_STORE || O?.className === N.SINGLE_JOINT_ROBOT;
10
- }
11
- function i(O) {
12
- return O?.className === N.SINGLE_JOINT_ROBOT || O?.className === N.DOUBLE_JOINT_ROBOT;
13
- }
14
- function o(O) {
15
- return O?.className === N.RAIL;
16
- }
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";
17
2
  export {
18
- t as EnumComponent,
19
- N as EnumModel,
20
- T as EnumResourceType,
21
- R as EnumStepType,
22
- a as EnumTag,
3
+ e as EnumComponent,
4
+ n as EnumModel,
5
+ o as EnumResourceType,
6
+ t as EnumStepType,
7
+ r as EnumTag,
23
8
  i as hasFixtureChange,
24
- I as hasStationSlotGroup,
25
- r as isMachineTool,
26
- o as isRail,
27
- A as isStationSlotGroupBoth
9
+ u as hasStationSlotGroup,
10
+ l as isMachineTool,
11
+ m as isRail,
12
+ p as isStationSlotGroupBoth,
13
+ c as linearIncrease,
14
+ h as numberLoopGenerator,
15
+ E as transFraction,
16
+ S as transPercentAndPixel,
17
+ T as transRuntimeToPixel
28
18
  };
@@ -5,6 +5,8 @@ import { ILayer, InteractiveUi, EnumTag } from './index';
5
5
  export interface IScene {
6
6
  width: number;
7
7
  height: number;
8
+ runtime_width?: number;
9
+ runtime_height?: number;
8
10
  zoomType: 'fit' | number;
9
11
  fill?: {
10
12
  type: 'solid' | 'linear' | 'radial' | 'image';
@@ -33,3 +33,4 @@ export declare const linearIncrease: (x: number | undefined, y: number | undefin
33
33
  */
34
34
  export declare function transPercentAndPixel(val?: number, size?: number, precision?: number, getPercent?: boolean): number;
35
35
  export declare function transFraction(val?: number, size?: number): number;
36
+ export declare function transRuntimeToPixel(val: number, precision?: number, type?: 'width' | 'height'): number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jnrs/lingshu-smart",
3
- "version": "2.2.16",
3
+ "version": "2.2.18",
4
4
  "description": "LingShu Smart 2D Digital Twin System.",
5
5
  "keywords": [
6
6
  "jnrs",