@processandtools/rp-article-designer 1.0.88 → 1.0.90

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,2 +1,2 @@
1
1
  import { CanvasProps } from '../../types/canvas.types';
2
- export default function ArticleGroupDesigner({ view, data, articleList, debugMode, isZCentered, isYCentered, selectedIndex, onArticleSelect, dimensionFontSize, onStatsReady }: CanvasProps): import("react/jsx-runtime").JSX.Element;
2
+ export default function ArticleGroupDesigner({ view, data, articleList, debugMode, isZCentered, isYCentered, selectedIndex, onArticleSelect, dimensionFontSize, onStatsReady, getData }: CanvasProps): import("react/jsx-runtime").JSX.Element;
@@ -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,7 +6,7 @@ interface SpecialKmsRendererProps extends Omit<SpecialKmsProps, 'materialLoaderR
6
6
  kms?: KmsResult;
7
7
  startPanelThk?: number;
8
8
  endPanelThk?: number;
9
- ddHingePosition?: 'left' | 'right';
9
+ hingePosition?: 'left' | 'right' | 'top' | 'bottom' | undefined;
10
10
  }
11
- export default function KmsRenderer({ handlePosition, ddHingePosition, 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;
12
12
  export {};
@@ -0,0 +1,2 @@
1
+ import { SpecialKmsProps } from '../../construction_principle/kms/spec-kms/special.kms';
2
+ export default function WM_CONN_01({ width }: SpecialKmsProps): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1,2 @@
1
1
  import { CanvasProps } from '../../types/canvas.types';
2
- export default function Canvas2D({ view, data, articleList, debugMode, selectedIndex, onArticleSelect }: CanvasProps): import("react/jsx-runtime").JSX.Element;
2
+ export default function Canvas2D({ view, data, articleList, debugMode, selectedIndex, onArticleSelect, getData }: CanvasProps): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1,2 @@
1
1
  import { CanvasProps } from '../../types/canvas.types';
2
- export default function Canvas3D({ data, articleList, selectedArticleId, debugMode, selectedIndex, onArticleSelect }: CanvasProps): import("react/jsx-runtime").JSX.Element;
2
+ export default function Canvas3D({ data, articleList, selectedArticleId, debugMode, selectedIndex, onArticleSelect, getData }: CanvasProps): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1,2 @@
1
1
  import { CanvasProps } from '../../types/canvas.types';
2
- export default function CanvasManager({ data, articleList, debugMode, selectedIndex, onArticleSelect, view }: CanvasProps): import("react/jsx-runtime").JSX.Element;
2
+ export default function CanvasManager({ data, articleList, debugMode, selectedIndex, onArticleSelect, view, getData }: CanvasProps): import("react/jsx-runtime").JSX.Element;
@@ -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;
@@ -9,6 +9,7 @@ export declare const PULL_POS_Y = "PULL_Y";
9
9
  export declare const PULL_POS_Z = "PULL_Z";
10
10
  export declare const PULL_ROT_VAR_NAME = "PULL_ROT";
11
11
  export declare const PULL_GLB_VAR_NAME = "PULL_GLB";
12
+ export declare const WM_GLB_VAR_NAME = "WM_GLB";
12
13
  export declare const CONTRAST_COLOR_1 = "red";
13
14
  export declare const CONTRAST_COLOR_2 = "blue";
14
15
  export declare const DESIGN_PARAM_TC: {
@@ -21,7 +21,7 @@ export interface SpecialKmsProps {
21
21
  handlePosition?: number;
22
22
  handleHeight?: number;
23
23
  materialLoaderResult: MaterialLoaderResult;
24
- ddHingePosition?: 'left' | 'right';
24
+ hingePosition?: 'left' | 'right' | 'top' | 'bottom' | undefined;
25
25
  }
26
26
  export declare function registerSpecialKms(name: string, component: FC<SpecialKmsProps>): void;
27
27
  export declare function registerSpecialCp(name: string, component: FC<SpecialKmsProps>): void;
@@ -1,9 +1,11 @@
1
1
  import { ReactNode } from 'react';
2
2
  import { MaterialTypes } from '../../construction_principle/material/material.types';
3
3
  import { SurfaceTypes } from '../../construction_principle/surface/surface.types';
4
+ import { GetDataFn } from '../../types/data-loader.types';
4
5
  export interface MatSurfProviderProps {
5
6
  children: ReactNode;
6
7
  initialMaterials?: MaterialTypes[];
7
8
  initialSurfaces?: SurfaceTypes[];
9
+ getData?: GetDataFn;
8
10
  }
9
- export declare function MatSurfProvider({ children, initialMaterials, initialSurfaces }: MatSurfProviderProps): import("react/jsx-runtime").JSX.Element;
11
+ export declare function MatSurfProvider({ children, initialMaterials, initialSurfaces, getData, }: MatSurfProviderProps): import("react/jsx-runtime").JSX.Element;
@@ -1,7 +1,8 @@
1
- export declare const articleList: ({
1
+ 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;
@@ -10,20 +11,10 @@ export declare const articleList: ({
10
11
  variables: {
11
12
  Door_Name: string;
12
13
  Door_Type: string;
13
- Hinge_Side_nbr?: undefined;
14
+ MAT_1: string;
15
+ PULL_GLB: string;
16
+ PULL_X: string;
17
+ PULL_Y: string;
18
+ PULL_Z: string;
14
19
  };
15
- } | {
16
- name: string;
17
- visibility: boolean;
18
- isDoorOpen: boolean;
19
- dimensions: {
20
- width: number;
21
- height: number;
22
- depth: number;
23
- };
24
- variables: {
25
- Door_Name: string;
26
- Door_Type: string;
27
- Hinge_Side_nbr: number;
28
- };
29
- })[];
20
+ }[];
Binary file