@processandtools/rp-article-designer 1.0.32 → 1.0.34
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/README.md +0 -0
- package/dist/components/article_designer/ArticleGroupLayout.d.ts +1 -1
- package/dist/components/article_designer/ArticleWithController.d.ts +16 -0
- package/dist/components/article_designer/Designer.d.ts +5 -2
- package/dist/components/article_designer/Zone.d.ts +1 -1
- package/dist/components/article_designer/zoneElems/Back.d.ts +1 -1
- package/dist/components/article_designer/zoneElems/Bottom.d.ts +1 -1
- package/dist/components/article_designer/zoneElems/Divider.d.ts +2 -1
- package/dist/components/article_designer/zoneElems/Front.d.ts +1 -1
- package/dist/components/article_designer/zoneElems/Left.d.ts +1 -1
- package/dist/components/article_designer/zoneElems/Right.d.ts +1 -1
- package/dist/components/article_designer/zoneElems/Top.d.ts +1 -1
- package/dist/components/article_designer/zoneElems/sub_construction/LinearDividerRender.d.ts +2 -1
- package/dist/components/elements_manager/PD_2D.d.ts +2 -3
- package/dist/components/ui/Canvas2D.d.ts +1 -1
- package/dist/components/ui/DimensionControl.d.ts +1 -1
- package/dist/components/ui/controls/ControlPanel.d.ts +8 -0
- package/dist/components/ui/controls/ControlPanel2D.d.ts +2 -0
- package/dist/components/ui/controls/ControlPanel3D.d.ts +2 -0
- package/dist/components/ui/controls/VariableController.d.ts +7 -0
- package/dist/components/ui/controls/VariableControllerWrapper.d.ts +12 -0
- package/dist/components/ui/controls/VariablePanel.d.ts +19 -0
- package/dist/components/ui/controls/VariablePanel2D.d.ts +2 -0
- package/dist/components/ui/controls/VariablePanel3D.d.ts +2 -0
- package/dist/components/ui/controls/ZoomControls.d.ts +8 -0
- package/dist/components/ui/test/LevaVariableController.d.ts +7 -1
- package/dist/components/ui/test/LevaVisibilityController.d.ts +11 -0
- package/dist/constants/Constants.d.ts +1 -1
- package/dist/construction_principle/back_panel/BackPanelHelper.d.ts +7 -0
- package/dist/construction_principle/back_panel/cabback.types.d.ts +5 -0
- package/dist/construction_principle/cabin/ShelfHelper.d.ts +6 -0
- package/dist/construction_principle/door/DoorHelper.d.ts +8 -0
- package/dist/construction_principle/door/door.types.d.ts +9 -0
- package/dist/construction_principle/dto/cp.types.d.ts +55 -0
- package/dist/construction_principle/kms/KmsHelper.d.ts +9 -47
- package/dist/construction_principle/material/MatHelper.d.ts +6 -15
- package/dist/construction_principle/render/RenderHelper.d.ts +4 -6
- package/dist/construction_principle/side_panel/CSideHelper.d.ts +6 -54
- package/dist/construction_principle/surface/SurfHelper.d.ts +6 -15
- package/dist/contexts/article-data/useData.d.ts +1 -0
- package/dist/{hooks → contexts/descriptor}/useDescriptor.d.ts +5 -5
- package/dist/contexts/descriptor/useDescriptorManager.d.ts +2 -0
- package/dist/data/articles.d.ts +14 -0
- package/dist/helpers/CpDispatcher.d.ts +3 -55
- package/dist/helpers/ZoneCalculations.d.ts +5 -243
- package/dist/helpers/angls/UseClieHelper.d.ts +1 -1
- package/dist/helpers/angls/UseElemHelper.d.ts +2 -59
- package/dist/helpers/angls/UseGrtxHelper.d.ts +1 -1
- package/dist/helpers/angls/UsePrimHelper.d.ts +5 -3
- package/dist/helpers/angls/UseZoneHelper.d.ts +6 -113
- package/dist/hooks/zoneDivider.d.ts +13 -0
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +4 -8
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/rp-article-designer.css +1 -1
- package/dist/services/GenericApi.d.ts +3 -2
- package/dist/types/article-group.types.d.ts +2 -1
- package/dist/types/data.types.d.ts +15 -5
- package/dist/types/divider.types.d.ts +7 -19
- package/dist/types/zone.types.d.ts +1 -0
- package/dist/variables/VariableResolver.d.ts +1 -0
- package/dist/variables/useVariables.d.ts +2 -1
- package/dist/vite.svg +0 -0
- package/package.json +4 -1
- package/dist/components/ui/controls/VarController.d.ts +0 -1
- package/dist/components/ui/test/DataFieldsViewer.d.ts +0 -8
- package/dist/components/ui/test/GeneralTester.d.ts +0 -1
- package/dist/components/ui/test/MyParser.d.ts +0 -1
- package/dist/components/ui/test/PropertiesPanel.d.ts +0 -1
- package/dist/components/ui/test/TestImageRender.d.ts +0 -1
- package/dist/construction_principle/cabin/CabinHelper.d.ts +0 -52
- package/dist/contexts/article/ArticleContext.d.ts +0 -7
- package/dist/contexts/article/ArticleProvider.d.ts +0 -7
- package/dist/hooks/useArticle.d.ts +0 -1
- package/dist/hooks/useData.d.ts +0 -1
- package/dist/hooks/useDescriptorManager.d.ts +0 -2
- package/dist/hooks/useZoneSelection.d.ts +0 -12
- package/dist/hooks/zoneDescriptor.d.ts +0 -92
- package/dist/types/cp.types.d.ts +0 -13
- /package/dist/{hooks → contexts/mat-surf}/useMaterialLoader.d.ts +0 -0
package/README.md
CHANGED
|
File without changes
|
|
@@ -7,4 +7,4 @@ export interface ArticleGroupLayoutProps {
|
|
|
7
7
|
debugMode: boolean;
|
|
8
8
|
isZCentered: boolean;
|
|
9
9
|
}
|
|
10
|
-
export declare function ArticleGroupLayout({ articleList, validNames, view, debugMode, isZCentered }: ArticleGroupLayoutProps):
|
|
10
|
+
export declare function ArticleGroupLayout({ articleList: initialArticleList, validNames, view, debugMode, isZCentered }: ArticleGroupLayoutProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { VIEW } from '../../types/view.types';
|
|
2
|
+
import { ArticleGroupTypes } from '../../types/article-group.types';
|
|
3
|
+
export interface ArticleWithControllerProps {
|
|
4
|
+
article: ArticleGroupTypes;
|
|
5
|
+
articleId: string;
|
|
6
|
+
position: [number, number, number];
|
|
7
|
+
isSelected: boolean;
|
|
8
|
+
onSelect: () => void;
|
|
9
|
+
view: VIEW;
|
|
10
|
+
debugMode: boolean;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Wrapper component that provides shared context for both the article designer
|
|
14
|
+
* and the variable controller, ensuring they work on the same variable state
|
|
15
|
+
*/
|
|
16
|
+
export declare const ArticleWithController: import('react').NamedExoticComponent<ArticleWithControllerProps>;
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { VIEW } from '../../types/view.types';
|
|
2
|
-
|
|
2
|
+
import { DimensionProps } from '../../types/zone.types';
|
|
3
|
+
export default function Designer({ articleName, dimensionOverrides, view, isSelected, position }: {
|
|
4
|
+
articleName: string;
|
|
5
|
+
dimensionOverrides: DimensionProps;
|
|
3
6
|
view: VIEW;
|
|
4
7
|
isSelected: boolean;
|
|
5
8
|
position: [number, number, number];
|
|
6
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
}): import("react/jsx-runtime").JSX.Element | undefined;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { ZoneProps } from '../../types/zone.types';
|
|
2
|
-
export default function Zone({ TREEID, dimension, view }: ZoneProps): import("react/jsx-runtime").JSX.Element | undefined;
|
|
2
|
+
export default function Zone({ articleName, TREEID, dimension, view }: ZoneProps): import("react/jsx-runtime").JSX.Element | undefined;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { ElemProps } from '../../../types/Elem.types';
|
|
2
|
-
export default function Back({ TREEID, dimension, view, helper }: ElemProps): import("react/jsx-runtime").JSX.Element |
|
|
2
|
+
export default function Back({ TREEID, dimension, view, helper }: ElemProps): import("react/jsx-runtime").JSX.Element | undefined;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { ElemProps } from '../../../types/Elem.types';
|
|
2
|
-
export default function Bottom({ TREEID, dimension, view, helper }: ElemProps): import("react/jsx-runtime").JSX.Element | undefined;
|
|
2
|
+
export default function Bottom({ articleName, TREEID, dimension, view, helper }: ElemProps): import("react/jsx-runtime").JSX.Element | undefined;
|
|
@@ -3,11 +3,12 @@ import { VIEW } from '../../../types/view.types';
|
|
|
3
3
|
import { PositionHelperResult } from '../../../types/zone.types';
|
|
4
4
|
import { calculateRemainingZoneGeometry } from '../../../helpers/ZoneCalculations';
|
|
5
5
|
interface DividerProps {
|
|
6
|
+
articleName: string;
|
|
6
7
|
childrenPositon?: PositionHelperResult;
|
|
7
8
|
dividerThk: number;
|
|
8
9
|
divider: DividerMode;
|
|
9
10
|
view: VIEW;
|
|
10
11
|
remainingZone: ReturnType<typeof calculateRemainingZoneGeometry>;
|
|
11
12
|
}
|
|
12
|
-
export default function Divider({ childrenPositon, dividerThk, divider, view, remainingZone }: DividerProps): import("react/jsx-runtime").JSX.Element | null;
|
|
13
|
+
export default function Divider({ articleName, childrenPositon, dividerThk, divider, view, remainingZone }: DividerProps): import("react/jsx-runtime").JSX.Element | null;
|
|
13
14
|
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { ElemProps } from '../../../types/Elem.types';
|
|
2
|
-
export default function Front({ TREEID, dimension, view, helper }: ElemProps): import("react/jsx-runtime").JSX.Element |
|
|
2
|
+
export default function Front({ TREEID, dimension, view, helper }: ElemProps): import("react/jsx-runtime").JSX.Element | undefined;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { ElemProps } from '../../../types/Elem.types';
|
|
2
|
-
export default function Left({ TREEID, dimension, view, helper }: ElemProps): import("react/jsx-runtime").JSX.Element |
|
|
2
|
+
export default function Left({ TREEID, dimension, view, helper }: ElemProps): import("react/jsx-runtime").JSX.Element | undefined;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { ElemProps } from '../../../types/Elem.types';
|
|
2
|
-
export default function Right({ TREEID, dimension, view, helper }: ElemProps): import("react/jsx-runtime").JSX.Element |
|
|
2
|
+
export default function Right({ TREEID, dimension, view, helper }: ElemProps): import("react/jsx-runtime").JSX.Element | undefined;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { ElemProps } from '../../../types/Elem.types';
|
|
2
|
-
export default function Top({ TREEID, dimension, view, helper }: ElemProps): import("react/jsx-runtime").JSX.Element | undefined;
|
|
2
|
+
export default function Top({ articleName, TREEID, dimension, view, helper }: ElemProps): import("react/jsx-runtime").JSX.Element | undefined;
|
package/dist/components/article_designer/zoneElems/sub_construction/LinearDividerRender.d.ts
CHANGED
|
@@ -3,11 +3,12 @@ import { VIEW } from '../../../../types/view.types';
|
|
|
3
3
|
import { DividerMode } from '../../../../types/divider.types';
|
|
4
4
|
import { calculateRemainingZoneGeometry } from '../../../../helpers/ZoneCalculations';
|
|
5
5
|
interface DividerProps {
|
|
6
|
+
articleName: string;
|
|
6
7
|
childrenPositon: PositionHelperResult;
|
|
7
8
|
dividerThk: number;
|
|
8
9
|
divider: DividerMode;
|
|
9
10
|
view: VIEW;
|
|
10
11
|
remainingZone: ReturnType<typeof calculateRemainingZoneGeometry>;
|
|
11
12
|
}
|
|
12
|
-
export declare function LinearDividerRender({ divider, view, childrenPositon, dividerThk }: DividerProps): import("react/jsx-runtime").JSX.Element[]
|
|
13
|
+
export declare function LinearDividerRender({ articleName, divider, view, childrenPositon, dividerThk }: DividerProps): import("react/jsx-runtime").JSX.Element[];
|
|
13
14
|
export {};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { ElemHelperType } from '../../types/helper.types';
|
|
2
1
|
export interface PD2DProps {
|
|
3
2
|
treeId?: string;
|
|
4
3
|
dim_x: number;
|
|
@@ -13,7 +12,7 @@ export interface PD2DProps {
|
|
|
13
12
|
onMouseLeave?: () => void;
|
|
14
13
|
startPanelThk?: number;
|
|
15
14
|
endPanelThk?: number;
|
|
16
|
-
|
|
15
|
+
cpName?: string;
|
|
17
16
|
render_mat?: string;
|
|
18
17
|
}
|
|
19
|
-
export default function PD_2D({ dim_x, dim_y, text, stroke_width, rotate, isSelected, isHovered, onClick, onMouseEnter, onMouseLeave, startPanelThk, endPanelThk,
|
|
18
|
+
export default function PD_2D({ dim_x, dim_y, text, stroke_width, rotate, isSelected, isHovered, onClick, onMouseEnter, onMouseLeave, startPanelThk, endPanelThk, cpName, render_mat, }: PD2DProps): 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 }: CanvasProps): import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export default function Canvas2D({ view, data, articleList, debugMode }: CanvasProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export default function VarController(): import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
export default function VarController(articleName: string): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { CSSProperties } from 'react';
|
|
2
|
+
export interface ControlPanelProps {
|
|
3
|
+
visibility: Record<string, boolean>;
|
|
4
|
+
onVisibilityChange: (key: string, value: boolean) => void;
|
|
5
|
+
position?: 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
|
|
6
|
+
style?: CSSProperties;
|
|
7
|
+
}
|
|
8
|
+
export declare function ControlPanel({ visibility, onVisibilityChange, position, style }: ControlPanelProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { VIEW } from '../../../types/view.types';
|
|
2
|
+
interface VariableControllerProps {
|
|
3
|
+
articleName: string;
|
|
4
|
+
view: VIEW;
|
|
5
|
+
}
|
|
6
|
+
export declare function VariableController({ articleName, view }: VariableControllerProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ArticleGroupTypes } from '../../../types/article-group.types';
|
|
2
|
+
interface VariableControllerWrapperProps {
|
|
3
|
+
article: ArticleGroupTypes;
|
|
4
|
+
articleId: string;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Wrapper that provides context for LevaVariableController
|
|
8
|
+
* This allows us to render the variable controller outside the SVG
|
|
9
|
+
* while still having access to the article's context
|
|
10
|
+
*/
|
|
11
|
+
export declare function VariableControllerWrapper({ article, articleId }: VariableControllerWrapperProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { CSSProperties } from 'react';
|
|
2
|
+
import { VAR_TYPE } from '../../../variables/variable.types';
|
|
3
|
+
export interface VariableGroup {
|
|
4
|
+
name: string;
|
|
5
|
+
variables: Array<{
|
|
6
|
+
name: string;
|
|
7
|
+
value: string | number;
|
|
8
|
+
type: VAR_TYPE;
|
|
9
|
+
}>;
|
|
10
|
+
}
|
|
11
|
+
export interface VariablePanelProps {
|
|
12
|
+
articleName: string;
|
|
13
|
+
groups: VariableGroup[];
|
|
14
|
+
onVariableChange: (name: string, value: string | number) => void;
|
|
15
|
+
onArticleNameChange?: (name: string) => void;
|
|
16
|
+
position?: 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
|
|
17
|
+
style?: CSSProperties;
|
|
18
|
+
}
|
|
19
|
+
export declare function VariablePanel({ articleName, groups, onVariableChange, onArticleNameChange, position, style }: VariablePanelProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export interface ZoomControlsProps {
|
|
2
|
+
zoom: number;
|
|
3
|
+
onZoomIn: () => void;
|
|
4
|
+
onZoomOut: () => void;
|
|
5
|
+
onReset: () => void;
|
|
6
|
+
position?: 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
|
|
7
|
+
}
|
|
8
|
+
export declare function ZoomControls({ zoom, onZoomIn, onZoomOut, onReset, position }: ZoomControlsProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
interface LevaVariableControllerProps {
|
|
2
|
+
articleName: string;
|
|
3
|
+
articleId: string;
|
|
4
|
+
onArticleNameChange?: (name: string) => void;
|
|
5
|
+
}
|
|
6
|
+
export declare function LevaVariableController({ articleName, articleId, onArticleNameChange }: LevaVariableControllerProps): null;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ArticleGroupTypes } from '../../../types/article-group.types';
|
|
2
|
+
interface LevaVisibilityControllerProps {
|
|
3
|
+
articleList: ArticleGroupTypes[];
|
|
4
|
+
onVisibilityChange: (articleName: string, visible: boolean) => void;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Leva-based visibility controller for articles
|
|
8
|
+
* Renders outside SVG, works in both 3D and 2D views
|
|
9
|
+
*/
|
|
10
|
+
export declare function LevaVisibilityController({ articleList, onVisibilityChange }: LevaVisibilityControllerProps): null;
|
|
11
|
+
export {};
|
|
@@ -22,4 +22,4 @@ export declare const TEXTURE_URL_SUFFIX = "/public";
|
|
|
22
22
|
export declare const TEXTURE_EXTENSION = ".jpg";
|
|
23
23
|
export declare const DEFAULT_TEXTURE = "/textures/default.jpg";
|
|
24
24
|
export declare const DEFAULT_RENDER_COLOR = "#484947";
|
|
25
|
-
export declare const BACKEND_BASE_URL = "
|
|
25
|
+
export declare const BACKEND_BASE_URL = "https://backend.tecnibo.com/api/rp-engine";
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { KmsResult } from '../kms/KmsHelper';
|
|
2
|
+
import { DataContextType } from '../../types/data.types';
|
|
3
|
+
export interface BackPanelResult {
|
|
4
|
+
kms: KmsResult | undefined;
|
|
5
|
+
inset: number;
|
|
6
|
+
}
|
|
7
|
+
export declare function BackPanelHelper(articleData: DataContextType, NAME: string): BackPanelResult | undefined;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { KmsResult } from '../kms/KmsHelper';
|
|
2
|
+
import { DataContextType } from '../../types/data.types';
|
|
3
|
+
export interface ShelfResult {
|
|
4
|
+
kms: KmsResult | undefined;
|
|
5
|
+
}
|
|
6
|
+
export default function ShelfHelper(articleData: DataContextType, NAME: string): ShelfResult | undefined;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { KmsResult } from '../kms/KmsHelper';
|
|
2
|
+
import { DataContextType } from '../../types/data.types';
|
|
3
|
+
import { DoorTypes } from './door.types';
|
|
4
|
+
export interface DoorResult extends DoorTypes {
|
|
5
|
+
kmsCpLeft: KmsResult | undefined;
|
|
6
|
+
kmsCpRight: KmsResult | undefined;
|
|
7
|
+
}
|
|
8
|
+
export default function DoorHelper(articleData: DataContextType, NAME: string): DoorResult | undefined;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { BackPanelResult } from '../back_panel/BackPanelHelper';
|
|
2
|
+
import { SidePanelResult } from '../side_panel/CSideHelper';
|
|
3
|
+
import { ShelfResult } from '../cabin/ShelfHelper';
|
|
4
|
+
import { DoorResult } from '../door/DoorHelper';
|
|
5
|
+
export declare enum CPTypeCode {
|
|
6
|
+
SidePanel = "S",
|
|
7
|
+
Door = "D",
|
|
8
|
+
Back = "B",
|
|
9
|
+
Shelf = "H"
|
|
10
|
+
}
|
|
11
|
+
export type CpDispatcherResult = {
|
|
12
|
+
name: string;
|
|
13
|
+
type: CPTypeCode.SidePanel;
|
|
14
|
+
props: SidePanelResult | undefined;
|
|
15
|
+
thk: number;
|
|
16
|
+
} | {
|
|
17
|
+
name: string;
|
|
18
|
+
type: CPTypeCode.Back;
|
|
19
|
+
props: BackPanelResult | undefined;
|
|
20
|
+
thk: number;
|
|
21
|
+
} | {
|
|
22
|
+
name: string;
|
|
23
|
+
type: CPTypeCode.Door;
|
|
24
|
+
props: DoorResult | undefined;
|
|
25
|
+
thk: number;
|
|
26
|
+
} | {
|
|
27
|
+
name: string;
|
|
28
|
+
type: CPTypeCode.Shelf;
|
|
29
|
+
props: ShelfResult | undefined;
|
|
30
|
+
thk: number;
|
|
31
|
+
};
|
|
32
|
+
export declare function isSidePanel(cp: CpDispatcherResult): cp is {
|
|
33
|
+
name: string;
|
|
34
|
+
type: CPTypeCode.SidePanel;
|
|
35
|
+
props: SidePanelResult;
|
|
36
|
+
thk: number;
|
|
37
|
+
};
|
|
38
|
+
export declare function isBackPanel(cp: CpDispatcherResult): cp is {
|
|
39
|
+
name: string;
|
|
40
|
+
type: CPTypeCode.Back;
|
|
41
|
+
props: BackPanelResult;
|
|
42
|
+
thk: number;
|
|
43
|
+
};
|
|
44
|
+
export declare function isDoor(cp: CpDispatcherResult): cp is {
|
|
45
|
+
name: string;
|
|
46
|
+
type: CPTypeCode.Door;
|
|
47
|
+
props: DoorResult;
|
|
48
|
+
thk: number;
|
|
49
|
+
};
|
|
50
|
+
export declare function isShelf(cp: CpDispatcherResult): cp is {
|
|
51
|
+
name: string;
|
|
52
|
+
type: CPTypeCode.Shelf;
|
|
53
|
+
props: ShelfResult;
|
|
54
|
+
thk: number;
|
|
55
|
+
};
|
|
@@ -1,50 +1,12 @@
|
|
|
1
|
-
|
|
1
|
+
import { MatResult } from '../material/MatHelper';
|
|
2
|
+
import { SurfResult } from '../surface/SurfHelper';
|
|
3
|
+
import { DataContextType } from '../../types/data.types';
|
|
4
|
+
export interface KmsResult {
|
|
2
5
|
name: string;
|
|
3
|
-
material:
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
isValid: boolean;
|
|
7
|
-
} | {
|
|
8
|
-
textureId: string;
|
|
9
|
-
isValid: boolean;
|
|
10
|
-
};
|
|
11
|
-
NAME: string;
|
|
12
|
-
TEXT: string;
|
|
13
|
-
THK: number;
|
|
14
|
-
MATCAT: string;
|
|
15
|
-
GRAIN: number;
|
|
16
|
-
RENDER: string;
|
|
17
|
-
} | undefined;
|
|
18
|
-
surfaceTop: {
|
|
19
|
-
renderInfo: {
|
|
20
|
-
textureId: undefined;
|
|
21
|
-
isValid: boolean;
|
|
22
|
-
} | {
|
|
23
|
-
textureId: string;
|
|
24
|
-
isValid: boolean;
|
|
25
|
-
};
|
|
26
|
-
NAME: string;
|
|
27
|
-
TEXT: string;
|
|
28
|
-
THK: number;
|
|
29
|
-
SURFCAT: string;
|
|
30
|
-
GRAIN: number;
|
|
31
|
-
RENDER: string;
|
|
32
|
-
} | undefined;
|
|
33
|
-
surfaceBot: {
|
|
34
|
-
renderInfo: {
|
|
35
|
-
textureId: undefined;
|
|
36
|
-
isValid: boolean;
|
|
37
|
-
} | {
|
|
38
|
-
textureId: string;
|
|
39
|
-
isValid: boolean;
|
|
40
|
-
};
|
|
41
|
-
NAME: string;
|
|
42
|
-
TEXT: string;
|
|
43
|
-
THK: number;
|
|
44
|
-
SURFCAT: string;
|
|
45
|
-
GRAIN: number;
|
|
46
|
-
RENDER: string;
|
|
47
|
-
} | undefined;
|
|
6
|
+
material: MatResult | undefined;
|
|
7
|
+
surfaceTop: SurfResult | undefined;
|
|
8
|
+
surfaceBot: SurfResult | undefined;
|
|
48
9
|
render: string | undefined;
|
|
49
10
|
thk: number;
|
|
50
|
-
}
|
|
11
|
+
}
|
|
12
|
+
export default function useKmsHelper(articleData: DataContextType, NAME: string): KmsResult | undefined;
|
|
@@ -1,15 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
isValid: boolean;
|
|
8
|
-
};
|
|
9
|
-
NAME: string;
|
|
10
|
-
TEXT: string;
|
|
11
|
-
THK: number;
|
|
12
|
-
MATCAT: string;
|
|
13
|
-
GRAIN: number;
|
|
14
|
-
RENDER: string;
|
|
15
|
-
} | undefined;
|
|
1
|
+
import { RenderResult } from '../render/RenderHelper';
|
|
2
|
+
import { MaterialTypes } from './material.types';
|
|
3
|
+
export interface MatResult extends MaterialTypes {
|
|
4
|
+
renderInfo: RenderResult;
|
|
5
|
+
}
|
|
6
|
+
export default function MatHelper(materialName: string): MatResult | undefined;
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
export
|
|
2
|
-
textureId: undefined;
|
|
1
|
+
export interface RenderResult {
|
|
2
|
+
textureId: string | undefined;
|
|
3
3
|
isValid: boolean;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
isValid: boolean;
|
|
7
|
-
};
|
|
4
|
+
}
|
|
5
|
+
export default function RenderHelper(textureId?: string): RenderResult;
|
|
@@ -1,54 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
isValid: boolean;
|
|
8
|
-
} | {
|
|
9
|
-
textureId: string;
|
|
10
|
-
isValid: boolean;
|
|
11
|
-
};
|
|
12
|
-
NAME: string;
|
|
13
|
-
TEXT: string;
|
|
14
|
-
THK: number;
|
|
15
|
-
MATCAT: string;
|
|
16
|
-
GRAIN: number;
|
|
17
|
-
RENDER: string;
|
|
18
|
-
} | undefined;
|
|
19
|
-
surfaceTop: {
|
|
20
|
-
renderInfo: {
|
|
21
|
-
textureId: undefined;
|
|
22
|
-
isValid: boolean;
|
|
23
|
-
} | {
|
|
24
|
-
textureId: string;
|
|
25
|
-
isValid: boolean;
|
|
26
|
-
};
|
|
27
|
-
NAME: string;
|
|
28
|
-
TEXT: string;
|
|
29
|
-
THK: number;
|
|
30
|
-
SURFCAT: string;
|
|
31
|
-
GRAIN: number;
|
|
32
|
-
RENDER: string;
|
|
33
|
-
} | undefined;
|
|
34
|
-
surfaceBot: {
|
|
35
|
-
renderInfo: {
|
|
36
|
-
textureId: undefined;
|
|
37
|
-
isValid: boolean;
|
|
38
|
-
} | {
|
|
39
|
-
textureId: string;
|
|
40
|
-
isValid: boolean;
|
|
41
|
-
};
|
|
42
|
-
NAME: string;
|
|
43
|
-
TEXT: string;
|
|
44
|
-
THK: number;
|
|
45
|
-
SURFCAT: string;
|
|
46
|
-
GRAIN: number;
|
|
47
|
-
RENDER: string;
|
|
48
|
-
} | undefined;
|
|
49
|
-
render: string | undefined;
|
|
50
|
-
thk: number;
|
|
51
|
-
} | undefined;
|
|
52
|
-
NAME: string;
|
|
53
|
-
KMS: string;
|
|
54
|
-
} | undefined;
|
|
1
|
+
import { KmsResult } from '../kms/KmsHelper';
|
|
2
|
+
import { DataContextType } from '../../types/data.types';
|
|
3
|
+
export interface SidePanelResult {
|
|
4
|
+
kms: KmsResult | undefined;
|
|
5
|
+
}
|
|
6
|
+
export default function CSideHelper(articleData: DataContextType, NAME: string): SidePanelResult | undefined;
|
|
@@ -1,15 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
isValid: boolean;
|
|
8
|
-
};
|
|
9
|
-
NAME: string;
|
|
10
|
-
TEXT: string;
|
|
11
|
-
THK: number;
|
|
12
|
-
SURFCAT: string;
|
|
13
|
-
GRAIN: number;
|
|
14
|
-
RENDER: string;
|
|
15
|
-
} | undefined;
|
|
1
|
+
import { RenderResult } from '../render/RenderHelper';
|
|
2
|
+
import { SurfaceTypes } from './surface.types';
|
|
3
|
+
export interface SurfResult extends SurfaceTypes {
|
|
4
|
+
renderInfo: RenderResult;
|
|
5
|
+
}
|
|
6
|
+
export default function SurfHelper(surfaceName: string): SurfResult | undefined;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function useData(): import('../../types/data.types.tsx').DataContextType;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { DescriptorManager } from '
|
|
2
|
-
import { DescriptorEvaluationResult, DescriptorNode } from '
|
|
3
|
-
import { DescriptorTypeValue } from '
|
|
4
|
-
import { VariableTree } from '
|
|
1
|
+
import { DescriptorManager } from '../../descriptor/services/DescriptorManager';
|
|
2
|
+
import { DescriptorEvaluationResult, DescriptorNode } from '../../descriptor/types/descriptor.types';
|
|
3
|
+
import { DescriptorTypeValue } from '../../descriptor/types/descriptor-data.types';
|
|
4
|
+
import { VariableTree } from '../../variables/VariableResolver';
|
|
5
5
|
export interface UseDescriptorOptions {
|
|
6
6
|
/** Throw error if descriptor not found (default: false) */
|
|
7
7
|
throwOnError?: boolean;
|
|
@@ -14,7 +14,7 @@ export interface UseDescriptorResult<T extends DescriptorTypeValue> {
|
|
|
14
14
|
/** Whether evaluation was successful */
|
|
15
15
|
success: boolean;
|
|
16
16
|
}
|
|
17
|
-
export declare function useDescriptorEvaluation<T extends DescriptorTypeValue = DescriptorTypeValue>(manager: DescriptorManager, descriptorName: string, inputData: Record<string, unknown>, options: UseDescriptorOptions | undefined, variableTree: VariableTree): UseDescriptorResult<T>;
|
|
17
|
+
export declare function useDescriptorEvaluation<T extends DescriptorTypeValue = DescriptorTypeValue>(manager: DescriptorManager, descriptorName: string | undefined, inputData: Record<string, unknown>, options: UseDescriptorOptions | undefined, variableTree: VariableTree): UseDescriptorResult<T>;
|
|
18
18
|
export interface UseDescriptorMatchesResult {
|
|
19
19
|
/** All matching nodes */
|
|
20
20
|
matches: DescriptorNode[];
|
|
@@ -1,55 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
name: string;
|
|
5
|
-
material: {
|
|
6
|
-
renderInfo: {
|
|
7
|
-
textureId: undefined;
|
|
8
|
-
isValid: boolean;
|
|
9
|
-
} | {
|
|
10
|
-
textureId: string;
|
|
11
|
-
isValid: boolean;
|
|
12
|
-
};
|
|
13
|
-
NAME: string;
|
|
14
|
-
TEXT: string;
|
|
15
|
-
THK: number;
|
|
16
|
-
MATCAT: string;
|
|
17
|
-
GRAIN: number;
|
|
18
|
-
RENDER: string;
|
|
19
|
-
} | undefined;
|
|
20
|
-
surfaceTop: {
|
|
21
|
-
renderInfo: {
|
|
22
|
-
textureId: undefined;
|
|
23
|
-
isValid: boolean;
|
|
24
|
-
} | {
|
|
25
|
-
textureId: string;
|
|
26
|
-
isValid: boolean;
|
|
27
|
-
};
|
|
28
|
-
NAME: string;
|
|
29
|
-
TEXT: string;
|
|
30
|
-
THK: number;
|
|
31
|
-
SURFCAT: string;
|
|
32
|
-
GRAIN: number;
|
|
33
|
-
RENDER: string;
|
|
34
|
-
} | undefined;
|
|
35
|
-
surfaceBot: {
|
|
36
|
-
renderInfo: {
|
|
37
|
-
textureId: undefined;
|
|
38
|
-
isValid: boolean;
|
|
39
|
-
} | {
|
|
40
|
-
textureId: string;
|
|
41
|
-
isValid: boolean;
|
|
42
|
-
};
|
|
43
|
-
NAME: string;
|
|
44
|
-
TEXT: string;
|
|
45
|
-
THK: number;
|
|
46
|
-
SURFCAT: string;
|
|
47
|
-
GRAIN: number;
|
|
48
|
-
RENDER: string;
|
|
49
|
-
} | undefined;
|
|
50
|
-
render: string | undefined;
|
|
51
|
-
thk: number;
|
|
52
|
-
} | undefined;
|
|
53
|
-
NAME: string;
|
|
54
|
-
KMS: string;
|
|
55
|
-
} | undefined;
|
|
1
|
+
import { DataContextType } from '../types/data.types';
|
|
2
|
+
import { CpDispatcherResult, CPTypeCode } from '../construction_principle/dto/cp.types';
|
|
3
|
+
export default function CpDispatcher(articleData: DataContextType, CpName: string, PartType: CPTypeCode): CpDispatcherResult | null;
|