@processandtools/rp-article-designer 1.0.82 → 1.0.83
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/components/article_designer/ArticleGroupDesigner.d.ts +1 -1
- package/dist/components/article_designer/helpers/DoorAnimator.d.ts +3 -1
- package/dist/components/article_designer/helpers/DoorSensor.d.ts +3 -1
- package/dist/components/article_designer/helpers/DrawerSensor.d.ts +1 -1
- package/dist/components/elements_manager/KmsRenderer.d.ts +4 -4
- package/dist/components/spec-kms-render/DR_SPECIAL.d.ts +1 -1
- package/dist/components/spec-kms-render/SpecialFrontConfig.d.ts +1 -1
- package/dist/construction_principle/door/DoorHelper.d.ts +2 -2
- package/dist/construction_principle/kms/spec-kms/special.kms.d.ts +1 -4
- package/dist/contexts/article-interaction/ArticleInteractionContext.d.ts +1 -0
- package/dist/contexts/article-interaction/ArticleInteractionProvider.d.ts +2 -1
- package/dist/contexts/panel-stats/PanelStatsContext.d.ts +3 -0
- package/dist/contexts/panel-stats/PanelStatsProvider.d.ts +8 -0
- package/dist/contexts/panel-stats/panel-stats.types.d.ts +26 -0
- package/dist/data/articles.d.ts +4 -19
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/types/article-group.types.d.ts +1 -0
- package/dist/types/canvas.types.d.ts +2 -0
- package/package.json +2 -2
|
@@ -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 }: CanvasProps): import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export default function ArticleGroupDesigner({ view, data, articleList, debugMode, isZCentered, isYCentered, selectedIndex, onArticleSelect, dimensionFontSize, onStatsReady }: CanvasProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { DoorResult } from '../../../construction_principle/door/DoorHelper';
|
|
2
|
+
import { CpDispatcherResult } from '../../../construction_principle/dto/cp-dispatcher.types';
|
|
2
3
|
interface DoorAnimatorProps {
|
|
3
4
|
panelWidth: number;
|
|
4
5
|
panelHeight: number;
|
|
@@ -6,7 +7,8 @@ interface DoorAnimatorProps {
|
|
|
6
7
|
renderMat?: string;
|
|
7
8
|
treeId: string;
|
|
8
9
|
doorCp: DoorResult;
|
|
10
|
+
cp?: CpDispatcherResult;
|
|
9
11
|
handlePosition?: number;
|
|
10
12
|
}
|
|
11
|
-
export default function DoorAnimator({ panelWidth, panelHeight, panelThk, renderMat, treeId, doorCp, handlePosition }: DoorAnimatorProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export default function DoorAnimator({ panelWidth, panelHeight, panelThk, renderMat, treeId, doorCp, cp, handlePosition }: DoorAnimatorProps): import("react/jsx-runtime").JSX.Element;
|
|
12
14
|
export {};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Component, ReactNode } from 'react';
|
|
2
2
|
import { DoorResult } from '../../../construction_principle/door/DoorHelper';
|
|
3
|
+
import { CpDispatcherResult } from '../../../construction_principle/dto/cp-dispatcher.types';
|
|
3
4
|
export declare class HandleErrorBoundary extends Component<{
|
|
4
5
|
children: ReactNode;
|
|
5
6
|
}, {
|
|
@@ -20,6 +21,7 @@ interface DoorSensorProps {
|
|
|
20
21
|
renderMat?: string;
|
|
21
22
|
treeId: string;
|
|
22
23
|
doorCp?: DoorResult;
|
|
24
|
+
cp?: CpDispatcherResult;
|
|
23
25
|
ddHingePosition?: 'left' | 'right';
|
|
24
26
|
handlePosition?: number;
|
|
25
27
|
oversize: {
|
|
@@ -29,5 +31,5 @@ interface DoorSensorProps {
|
|
|
29
31
|
bottom: number;
|
|
30
32
|
};
|
|
31
33
|
}
|
|
32
|
-
export default function DoorSensor({ panelWidth, panelHeight, panelThk, treeId, doorCp, ddHingePosition, handlePosition, oversize }: DoorSensorProps): import("react/jsx-runtime").JSX.Element | undefined;
|
|
34
|
+
export default function DoorSensor({ panelWidth, panelHeight, panelThk, treeId, doorCp, ddHingePosition, handlePosition, oversize, cp }: DoorSensorProps): import("react/jsx-runtime").JSX.Element | undefined;
|
|
33
35
|
export {};
|
|
@@ -8,5 +8,5 @@ interface DrawerSensorProps {
|
|
|
8
8
|
onset: boolean;
|
|
9
9
|
kms?: KmsResult;
|
|
10
10
|
}
|
|
11
|
-
export default function DrawerSensor({ panelWidth, panelHeight, panelThk, treeId, onset,
|
|
11
|
+
export default function DrawerSensor({ panelWidth, panelHeight, panelThk, treeId, onset, }: DrawerSensorProps): import("react/jsx-runtime").JSX.Element;
|
|
12
12
|
export {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { KmsResult } from '../../construction_principle/kms/KmsHelper';
|
|
2
1
|
import { SpecialKmsProps } from '../../construction_principle/kms/spec-kms/special.kms';
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
import { CpDispatcherResult } from '../../construction_principle/dto/cp-dispatcher.types';
|
|
3
|
+
interface SpecialKmsRendererProps extends Omit<SpecialKmsProps, 'materialLoaderResult' | 'cp'> {
|
|
4
|
+
cp?: CpDispatcherResult;
|
|
5
5
|
startPanelThk?: number;
|
|
6
6
|
endPanelThk?: number;
|
|
7
7
|
}
|
|
8
|
-
export default function KmsRenderer({ handlePosition,
|
|
8
|
+
export default function KmsRenderer({ handlePosition, cp, length, width, thk, startPanelThk, endPanelThk, treeId, elemInfo, meshRef, }: SpecialKmsRendererProps): import("react/jsx-runtime").JSX.Element;
|
|
9
9
|
export {};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { SpecialKmsProps } from '../../construction_principle/kms/spec-kms/special.kms';
|
|
2
|
-
declare function DR_SPECIAL({ length, width, thk, handlePosition,
|
|
2
|
+
declare function DR_SPECIAL({ length, width, thk, handlePosition, cp, materialLoaderResult }: SpecialKmsProps): import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default DR_SPECIAL;
|
|
@@ -7,5 +7,5 @@ export type SpecialCpProps = {
|
|
|
7
7
|
rotation?: number;
|
|
8
8
|
thk: number;
|
|
9
9
|
};
|
|
10
|
-
export declare function getSpecialFrontConfig(cpName: string): SpecialCpProps | undefined;
|
|
10
|
+
export declare function getSpecialFrontConfig(cpName: string | undefined): SpecialCpProps | undefined;
|
|
11
11
|
export declare const SPECIAL_KMS_EXTRA_VARS: Record<string, Record<string, string>>;
|
|
@@ -3,7 +3,7 @@ import { DataContextType } from '../../types/data.types';
|
|
|
3
3
|
import { DoorTypes } from './door.types';
|
|
4
4
|
import { MatSurfContextValue } from '../../contexts/mat-surf/MatSurfContext';
|
|
5
5
|
export interface DoorResult extends Omit<DoorTypes, 'kmsLeft' | 'kmsRight'> {
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
kmsLeft: KmsResult | undefined;
|
|
7
|
+
kmsRight: KmsResult | undefined;
|
|
8
8
|
}
|
|
9
9
|
export default function DoorHelper(resolveVarRecursive: (str: string) => string, matSurfContext: MatSurfContextValue, articleData: DataContextType, NAME: string): DoorResult | undefined;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { KmsResult } from '../KmsHelper';
|
|
2
1
|
import { FC, RefObject } from 'react';
|
|
3
2
|
import { PartTypeSource } from '../../dto/angl-type-config';
|
|
4
3
|
import { MaterialLoaderResult } from '../../../contexts/mat-surf/useMaterialLoader';
|
|
5
4
|
import { CpDispatcherResult } from '../../dto/cp-dispatcher.types';
|
|
6
5
|
export interface SpecialKmsProps {
|
|
7
|
-
|
|
6
|
+
cp?: CpDispatcherResult;
|
|
8
7
|
length: number;
|
|
9
8
|
width: number;
|
|
10
9
|
thk: number;
|
|
@@ -22,8 +21,6 @@ export interface SpecialKmsProps {
|
|
|
22
21
|
handlePosition?: number;
|
|
23
22
|
handleHeight?: number;
|
|
24
23
|
materialLoaderResult: MaterialLoaderResult;
|
|
25
|
-
cpName?: string;
|
|
26
|
-
cp?: CpDispatcherResult;
|
|
27
24
|
}
|
|
28
25
|
export declare function registerSpecialKms(name: string, component: FC<SpecialKmsProps>): void;
|
|
29
26
|
export declare function registerSpecialCp(name: string, component: FC<SpecialKmsProps>): void;
|
|
@@ -7,5 +7,6 @@ export interface ArticleInteractionContextValue {
|
|
|
7
7
|
setIsClicked: (value: boolean) => void;
|
|
8
8
|
isContrasted: boolean;
|
|
9
9
|
isDimensioned: boolean;
|
|
10
|
+
isShadowed: boolean;
|
|
10
11
|
}
|
|
11
12
|
export declare const ArticleInteractionContext: import('react').Context<ArticleInteractionContextValue | undefined>;
|
|
@@ -4,6 +4,7 @@ interface ArticleHoverProviderProps {
|
|
|
4
4
|
isDoorOpen?: boolean;
|
|
5
5
|
isContrasted?: boolean;
|
|
6
6
|
isDimensioned?: boolean;
|
|
7
|
+
isShadowed?: boolean;
|
|
7
8
|
}
|
|
8
|
-
export declare function ArticleInteractionProvider({ children, isDoorOpen, isContrasted, isDimensioned }: ArticleHoverProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export declare function ArticleInteractionProvider({ children, isDoorOpen, isContrasted, isDimensioned, isShadowed }: ArticleHoverProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
9
10
|
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { ArticleStats } from './panel-stats.types';
|
|
3
|
+
interface Props {
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
onStatsReady?: (stats: ArticleStats) => void;
|
|
6
|
+
}
|
|
7
|
+
export declare function PanelStatsProvider({ children, onStatsReady }: Props): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { PartTypeSource } from '../../construction_principle/dto/angl-type-config';
|
|
2
|
+
import { ElemPartType } from '../../types/Elem.types';
|
|
3
|
+
export interface PanelEntry {
|
|
4
|
+
id: string;
|
|
5
|
+
cpName: string;
|
|
6
|
+
source: PartTypeSource;
|
|
7
|
+
elemType?: ElemPartType | string;
|
|
8
|
+
length: number;
|
|
9
|
+
width: number;
|
|
10
|
+
thk: number;
|
|
11
|
+
kmsName?: string;
|
|
12
|
+
material?: string;
|
|
13
|
+
surf0?: string;
|
|
14
|
+
surf1?: string;
|
|
15
|
+
}
|
|
16
|
+
export interface ArticleStats {
|
|
17
|
+
panels: PanelEntry[];
|
|
18
|
+
totalCount: number;
|
|
19
|
+
byType: Record<string, number>;
|
|
20
|
+
materials: string[];
|
|
21
|
+
surfaces: string[];
|
|
22
|
+
}
|
|
23
|
+
export interface PanelStatsContextValue {
|
|
24
|
+
registerPanel: (id: string, entry: PanelEntry) => void;
|
|
25
|
+
unregisterPanel: (id: string) => void;
|
|
26
|
+
}
|
package/dist/data/articles.d.ts
CHANGED
|
@@ -1,27 +1,12 @@
|
|
|
1
|
-
export declare const articleList:
|
|
1
|
+
export declare const articleList: {
|
|
2
2
|
name: string;
|
|
3
3
|
visibility: boolean;
|
|
4
4
|
isDoorOpen: boolean;
|
|
5
|
+
isShadowed: boolean;
|
|
5
6
|
dimensions: {
|
|
6
7
|
width: number;
|
|
7
8
|
height: number;
|
|
8
9
|
depth: number;
|
|
9
10
|
};
|
|
10
|
-
variables: {
|
|
11
|
-
|
|
12
|
-
Hinge_Side_nbr?: undefined;
|
|
13
|
-
};
|
|
14
|
-
} | {
|
|
15
|
-
name: string;
|
|
16
|
-
visibility: boolean;
|
|
17
|
-
isDoorOpen: boolean;
|
|
18
|
-
dimensions: {
|
|
19
|
-
width: number;
|
|
20
|
-
height: number;
|
|
21
|
-
depth: number;
|
|
22
|
-
};
|
|
23
|
-
variables: {
|
|
24
|
-
Door_Name: string;
|
|
25
|
-
Hinge_Side_nbr: number;
|
|
26
|
-
};
|
|
27
|
-
})[];
|
|
11
|
+
variables: {};
|
|
12
|
+
}[];
|