@processandtools/rp-article-designer 1.0.87 → 1.0.89

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.
@@ -2,9 +2,8 @@ interface DoorHandleProps {
2
2
  panelWidth: number;
3
3
  panelHeight: number;
4
4
  panelThk: number;
5
- hingePosition: string;
6
- ddHingePosition?: 'left' | 'right';
5
+ hingePosition?: 'left' | 'right' | 'top' | 'bottom' | undefined;
7
6
  handlePosition?: number;
8
7
  }
9
- export default function DoorHandle({ panelWidth, panelHeight, panelThk, hingePosition, ddHingePosition, handlePosition }: DoorHandleProps): import("react/jsx-runtime").JSX.Element | null;
8
+ export default function DoorHandle({ panelWidth, panelHeight, panelThk, hingePosition, handlePosition }: DoorHandleProps): import("react/jsx-runtime").JSX.Element | null;
10
9
  export {};
@@ -22,7 +22,7 @@ interface DoorSensorProps {
22
22
  treeId: string;
23
23
  doorCp?: DoorResult;
24
24
  cp?: CpDispatcherResult;
25
- ddHingePosition?: 'left' | 'right';
25
+ hingePosition?: 'left' | 'right' | 'top' | 'bottom' | undefined;
26
26
  handlePosition?: number;
27
27
  oversize: {
28
28
  left: number;
@@ -31,5 +31,5 @@ interface DoorSensorProps {
31
31
  bottom: number;
32
32
  };
33
33
  }
34
- export default function DoorSensor({ panelWidth, panelHeight, panelThk, treeId, doorCp, ddHingePosition, handlePosition, oversize, cp }: DoorSensorProps): import("react/jsx-runtime").JSX.Element | undefined;
34
+ export default function DoorSensor({ panelWidth, panelHeight, panelThk, treeId, doorCp, hingePosition, handlePosition, oversize, cp }: DoorSensorProps): import("react/jsx-runtime").JSX.Element | undefined;
35
35
  export {};
@@ -0,0 +1,8 @@
1
+ import { AnglZone } from '../../../types/data.types';
2
+ import { DimensionProps } from '../../../types/zone.types';
3
+ interface ZoneDimensionProps {
4
+ dimensions: DimensionProps;
5
+ zone: AnglZone;
6
+ }
7
+ export default function ZoneDimension({ zone, dimensions }: ZoneDimensionProps): import("react/jsx-runtime").JSX.Element;
8
+ export {};
@@ -6,6 +6,7 @@ interface SpecialKmsRendererProps extends Omit<SpecialKmsProps, 'materialLoaderR
6
6
  kms?: KmsResult;
7
7
  startPanelThk?: number;
8
8
  endPanelThk?: number;
9
+ hingePosition?: 'left' | 'right' | 'top' | 'bottom' | undefined;
9
10
  }
10
- export default function KmsRenderer({ handlePosition, cp, kms: specialKms, length, width, thk, startPanelThk, endPanelThk, treeId, elemInfo, meshRef, }: SpecialKmsRendererProps): import("react/jsx-runtime").JSX.Element;
11
+ export default function KmsRenderer({ handlePosition, hingePosition, cp, kms: specialKms, length, width, thk, startPanelThk, endPanelThk, treeId, elemInfo, meshRef, }: SpecialKmsRendererProps): import("react/jsx-runtime").JSX.Element;
11
12
  export {};
@@ -9,7 +9,9 @@ export interface DimensionPosition {
9
9
  vertical?: 'left' | 'right' | 'both' | 'none';
10
10
  }
11
11
  export interface DimensionRule {
12
- cpNames: string[];
12
+ articleNames?: string[];
13
+ groupNames?: string[];
14
+ cpNames?: string[];
13
15
  showHorizontal?: boolean;
14
16
  showVertical?: boolean;
15
17
  position?: DimensionPosition;
@@ -19,10 +21,10 @@ export interface DimensionRule {
19
21
  labelSuffix?: string;
20
22
  }
21
23
  export declare const dimensionRules: DimensionRule[];
22
- export declare function getDimensionRules(cpName: string): DimensionRule | null;
24
+ export declare function getDimensionRules(articleName?: string, groupName?: string, cpName?: string): DimensionRule | null;
23
25
  /**
24
- * Check if dimensions should be shown for a CPNAME
25
- * @param cpName - The construction principle name
26
+ * Check if dimensions should be shown for a value
27
+ * @param value - The construction principle name
26
28
  * @returns boolean
27
29
  */
28
- export declare function shouldShowDimensions(cpName: string): boolean;
30
+ export declare function shouldShowDimensions(value: string): boolean;
@@ -21,6 +21,7 @@ export interface SpecialKmsProps {
21
21
  handlePosition?: number;
22
22
  handleHeight?: number;
23
23
  materialLoaderResult: MaterialLoaderResult;
24
+ hingePosition?: 'left' | 'right' | 'top' | 'bottom' | undefined;
24
25
  }
25
26
  export declare function registerSpecialKms(name: string, component: FC<SpecialKmsProps>): void;
26
27
  export declare function registerSpecialCp(name: string, component: FC<SpecialKmsProps>): void;
@@ -2,29 +2,19 @@ export declare const articleList: {
2
2
  name: string;
3
3
  visibility: boolean;
4
4
  isDoorOpen: boolean;
5
+ isDimensioned: boolean;
5
6
  dimensions: {
6
7
  width: number;
7
8
  height: number;
8
9
  depth: number;
9
10
  };
10
11
  variables: {
11
- MAT_FR_1_THK: string;
12
- SRF_FR_1_THK: string;
13
- MAT_1: string;
14
- SRF_1_TOP: string;
15
- MAT_FR_1: string;
16
- SURF_1_TOP: string;
17
- SRF_FR_1_TOP: string;
18
12
  Door_Name: string;
19
- MAT_FR_2_THK: string;
20
- SRF_HN_1_THK: string;
21
- SRF_FR_1_BOT: string;
22
- PRF_FR_1: string;
23
- MAT_FR_2: string;
24
- SRF_FR_2_BOT: string;
25
- SRF_FR_2_TOP: string;
26
- MAT_DBK_1: string;
27
- SRF_1_BOT: string;
28
- PRF_1: string;
13
+ Door_Type: string;
14
+ MAT_1: string;
15
+ PULL_GLB: string;
16
+ PULL_X: string;
17
+ PULL_Y: string;
18
+ PULL_Z: string;
29
19
  };
30
20
  }[];