@processandtools/rp-article-designer 1.0.13 → 1.0.15
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/ArticleDesigner.d.ts +10 -0
- package/dist/components/article_designer/Designer.d.ts +4 -0
- package/dist/components/article_designer/Zone.d.ts +2 -0
- package/dist/components/article_designer/zoneElems/Back.d.ts +2 -0
- package/dist/components/article_designer/zoneElems/Bottom.d.ts +2 -0
- package/dist/components/article_designer/zoneElems/Divider.d.ts +13 -0
- package/dist/components/article_designer/zoneElems/Front.d.ts +2 -0
- package/dist/components/article_designer/zoneElems/Left.d.ts +2 -0
- package/dist/components/article_designer/zoneElems/Right.d.ts +2 -0
- package/dist/components/article_designer/zoneElems/Top.d.ts +2 -0
- package/dist/components/article_designer/zoneElems/sub_construction/LinearDividerRender.d.ts +13 -0
- package/dist/components/article_designer/zoneElems/sub_construction/SubArticleRender.d.ts +9 -0
- package/dist/components/elements_manager/PD_2D.d.ts +17 -0
- package/dist/components/elements_manager/PD_3D.d.ts +14 -0
- package/dist/components/ui/Canvas2D.d.ts +7 -0
- package/dist/components/ui/Canvas3D.d.ts +5 -0
- package/dist/components/ui/CanvasManager.d.ts +4 -0
- package/dist/components/ui/DimensionControl.d.ts +1 -0
- package/dist/components/ui/LoadingIndicator.d.ts +16 -0
- package/dist/components/ui/PerformanceMonitor.d.ts +1 -0
- package/dist/components/ui/UnifiedCanvas.d.ts +6 -0
- package/dist/components/ui/controls/VarController.d.ts +1 -0
- package/dist/components/ui/test/CustomShaderMaterial.d.ts +1 -0
- package/dist/components/ui/test/DataFieldsViewer.d.ts +8 -0
- package/dist/components/ui/test/ExtrudGeo.d.ts +1 -0
- package/dist/components/ui/test/GeneralTester.d.ts +1 -0
- package/dist/components/ui/test/MyParser.d.ts +1 -0
- package/dist/components/ui/test/PropertiesPanel.d.ts +1 -0
- package/dist/components/ui/test/TestDescriptorComparison.d.ts +6 -0
- package/dist/components/ui/test/TestDescriptorHooks.d.ts +6 -0
- package/dist/components/ui/test/TestDescriptorManager.d.ts +6 -0
- package/dist/components/ui/test/TestImageRender.d.ts +1 -0
- package/dist/components/ui/test/Test_KMS.d.ts +1 -0
- package/dist/components/ui/test/Test_MatSurfFetching.d.ts +1 -0
- package/dist/conditions/helpers/ComparisonMap.d.ts +2 -0
- package/dist/conditions/helpers/ConditionTreeEvaluator.d.ts +6 -0
- package/dist/conditions/helpers/KeyMap.d.ts +1 -0
- package/dist/conditions/types/condition.types.d.ts +39 -0
- package/dist/constants/Constants.d.ts +24 -0
- package/dist/constants/RalColors.d.ts +8 -0
- package/dist/construction_principle/cabin/CabinHelper.d.ts +52 -0
- package/dist/construction_principle/cabin/cabin.types.d.ts +4 -0
- package/dist/construction_principle/kms/KmsHelper.d.ts +50 -0
- package/dist/construction_principle/kms/KmsRenderSelector.d.ts +1 -0
- package/dist/construction_principle/kms/kms.types.d.ts +7 -0
- package/dist/construction_principle/material/MatHelper.d.ts +15 -0
- package/dist/construction_principle/material/material.types.d.ts +8 -0
- package/dist/construction_principle/render/RenderHelper.d.ts +7 -0
- package/dist/construction_principle/render/render.types.d.ts +4 -0
- package/dist/construction_principle/side_panel/CSideHelper.d.ts +52 -0
- package/dist/construction_principle/side_panel/cside.types.d.ts +4 -0
- package/dist/construction_principle/surface/SurfHelper.d.ts +15 -0
- package/dist/construction_principle/surface/surface.types.d.ts +8 -0
- package/dist/contexts/article/ArticleContext.d.ts +2 -3
- package/dist/contexts/article/ArticleProvider.d.ts +7 -0
- package/dist/contexts/article-data/DataContext.d.ts +2 -1
- package/dist/contexts/article-data/DataProvider.d.ts +2 -0
- package/dist/contexts/descriptor/DescriptorContext.d.ts +2 -3
- package/dist/contexts/descriptor/DescriptorProvider.d.ts +7 -0
- package/dist/contexts/mat-surf/MatSurfContext.d.ts +25 -0
- package/dist/contexts/mat-surf/MatSurfProvider.d.ts +9 -0
- package/dist/contexts/texture/TextureConfig.d.ts +15 -0
- package/dist/descriptor/Descriptor.d.ts +1 -0
- package/dist/descriptor/helper/DescriptorEvaluator.d.ts +2 -3
- package/dist/descriptor/helper/descriptor-type-guards.d.ts +6 -0
- package/dist/descriptor/services/DescriptorManager.d.ts +0 -1
- package/dist/descriptor/types/descriptor-data.types.d.ts +15 -0
- package/dist/descriptor/types/descriptor.types.d.ts +31 -0
- package/dist/helpers/CheckUrlExists.d.ts +1 -0
- package/dist/helpers/CpDispatcher.d.ts +53 -0
- package/dist/helpers/ExpressionResolver.d.ts +0 -1
- package/dist/helpers/GroupWrapper.d.ts +10 -0
- package/dist/helpers/LinDivHelper.d.ts +3 -0
- package/dist/helpers/LinDivPatternTransform.d.ts +2 -0
- package/dist/helpers/LindivResolver.d.ts +0 -1
- package/dist/helpers/MitreCalc.d.ts +11 -0
- package/dist/helpers/PositionHelper.d.ts +10 -0
- package/dist/helpers/VariableHelper.d.ts +2 -0
- package/dist/helpers/WallTransform.d.ts +6 -0
- package/dist/helpers/WallTransformGeo.d.ts +6 -0
- package/dist/helpers/ZoneCalculations.d.ts +425 -0
- package/dist/helpers/angls/UseClieHelper.d.ts +3 -0
- package/dist/helpers/angls/UseElemHelper.d.ts +79 -0
- package/dist/helpers/angls/UseGrtxHelper.d.ts +3 -0
- package/dist/helpers/angls/UsePrimHelper.d.ts +8 -0
- package/dist/helpers/angls/UseZoneHelper.d.ts +119 -0
- package/dist/hooks/useAPI.d.ts +5 -0
- package/dist/hooks/useData.d.ts +1 -1
- package/dist/hooks/useDescriptor.d.ts +0 -1
- package/dist/hooks/useDescriptorManager.d.ts +0 -1
- package/dist/hooks/useMaterialLoader.d.ts +8 -0
- package/dist/hooks/useZoneSelection.d.ts +12 -0
- package/dist/hooks/zoneDescriptor.d.ts +1 -2
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/services/ApiFactory.d.ts +20 -0
- package/dist/services/GenericApi.d.ts +25 -0
- package/dist/types/Elem.types.d.ts +10 -0
- package/dist/types/canvas.types.d.ts +7 -0
- package/dist/types/cp.types.d.ts +13 -0
- package/dist/types/data.types.d.ts +126 -0
- package/dist/types/divider.types.d.ts +2 -3
- package/dist/types/geometry.types.d.ts +19 -0
- package/dist/types/helper.types.d.ts +4 -0
- package/dist/types/pd.types.d.ts +7 -0
- package/dist/types/primitives.types.d.ts +18 -0
- package/dist/types/shape.types.d.ts +35 -0
- package/dist/types/wall.types.d.ts +8 -0
- package/dist/types/zone.types.d.ts +40 -0
- package/dist/variables/TestVariable.d.ts +1 -0
- package/dist/variables/TestVariableProvider.d.ts +1 -0
- package/dist/variables/VariableContext.d.ts +2 -0
- package/dist/variables/VariableProvider.d.ts +13 -0
- package/dist/variables/VariableResolver.d.ts +1 -2
- package/dist/variables/useVariables.d.ts +3 -3
- package/package.json +22 -34
- package/dist/textures/default.jpg +0 -0
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ArticleData } from '../../types/data.types';
|
|
2
|
+
import { VIEW } from '../../types/view.types';
|
|
3
|
+
export interface ADProps {
|
|
4
|
+
view: VIEW;
|
|
5
|
+
data?: ArticleData;
|
|
6
|
+
articleName: string;
|
|
7
|
+
articleVariables?: Record<string, string | number>;
|
|
8
|
+
debugMode?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export default function ArticleDesigner({ view, data, articleName, articleVariables, debugMode }: ADProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { DividerMode } from '../../../types/divider.types';
|
|
2
|
+
import { VIEW } from '../../../types/view.types';
|
|
3
|
+
import { PositionHelperResult } from '../../../types/zone.types';
|
|
4
|
+
import { calculateRemainingZoneGeometry } from '../../../helpers/ZoneCalculations';
|
|
5
|
+
interface DividerProps {
|
|
6
|
+
childrenPositon?: PositionHelperResult;
|
|
7
|
+
dividerThk: number;
|
|
8
|
+
divider: DividerMode;
|
|
9
|
+
view: VIEW;
|
|
10
|
+
remainingZone: ReturnType<typeof calculateRemainingZoneGeometry>;
|
|
11
|
+
}
|
|
12
|
+
export default function Divider({ childrenPositon, dividerThk, divider, view, remainingZone }: DividerProps): import("react/jsx-runtime").JSX.Element | null;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { PositionHelperResult } from '../../../../types/zone.types';
|
|
2
|
+
import { VIEW } from '../../../../types/view.types';
|
|
3
|
+
import { DividerMode } from '../../../../types/divider.types';
|
|
4
|
+
import { calculateRemainingZoneGeometry } from '../../../../helpers/ZoneCalculations';
|
|
5
|
+
interface DividerProps {
|
|
6
|
+
childrenPositon: PositionHelperResult;
|
|
7
|
+
dividerThk: number;
|
|
8
|
+
divider: DividerMode;
|
|
9
|
+
view: VIEW;
|
|
10
|
+
remainingZone: ReturnType<typeof calculateRemainingZoneGeometry>;
|
|
11
|
+
}
|
|
12
|
+
export declare function LinearDividerRender({ divider, view, childrenPositon, dividerThk }: DividerProps): import("react/jsx-runtime").JSX.Element[] | null;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { VIEW } from '../../../../types/view.types';
|
|
2
|
+
import { calculateRemainingZoneGeometry } from '../../../../helpers/ZoneCalculations';
|
|
3
|
+
interface SubArticleProps {
|
|
4
|
+
articleName: string;
|
|
5
|
+
view: VIEW;
|
|
6
|
+
remainingZone: ReturnType<typeof calculateRemainingZoneGeometry>;
|
|
7
|
+
}
|
|
8
|
+
export default function SubArticleRender({ view, remainingZone, articleName }: SubArticleProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export interface PD2DProps {
|
|
2
|
+
treeId?: string;
|
|
3
|
+
dim_x: number;
|
|
4
|
+
dim_y: number;
|
|
5
|
+
fill?: string;
|
|
6
|
+
text?: string;
|
|
7
|
+
stroke_width?: number;
|
|
8
|
+
rotate?: number;
|
|
9
|
+
isSelected?: boolean;
|
|
10
|
+
isHovered?: boolean;
|
|
11
|
+
onClick?: () => void;
|
|
12
|
+
onMouseEnter?: () => void;
|
|
13
|
+
onMouseLeave?: () => void;
|
|
14
|
+
startPanelThk?: number;
|
|
15
|
+
endPanelThk?: number;
|
|
16
|
+
}
|
|
17
|
+
export default function PD_2D({ dim_x, dim_y, fill, text, stroke_width, rotate, isSelected, isHovered, onClick, onMouseEnter, onMouseLeave, startPanelThk, endPanelThk }: PD2DProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { PDProps } from '../../types/pd.types';
|
|
2
|
+
interface PD3DExtendedProps extends PDProps {
|
|
3
|
+
treeId?: string;
|
|
4
|
+
isSelected?: boolean;
|
|
5
|
+
isHovered?: boolean;
|
|
6
|
+
onClick?: () => void;
|
|
7
|
+
onPointerEnter?: () => void;
|
|
8
|
+
onPointerLeave?: () => void;
|
|
9
|
+
startPanelThk?: number;
|
|
10
|
+
endPanelThk?: number;
|
|
11
|
+
render_mat?: string;
|
|
12
|
+
}
|
|
13
|
+
declare const PD_3D: import('react').NamedExoticComponent<PD3DExtendedProps>;
|
|
14
|
+
export default PD_3D;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { VIEW } from '../../types/view.types';
|
|
2
|
+
import { ArticleData } from '../../types/data.types';
|
|
3
|
+
export default function Canvas2D({ view, data, articleName }: {
|
|
4
|
+
view: VIEW._2D_FRONT | VIEW._2D_TOP;
|
|
5
|
+
data?: ArticleData;
|
|
6
|
+
articleName: string;
|
|
7
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function VarController(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
interface LoadingIndicatorProps {
|
|
2
|
+
message?: string;
|
|
3
|
+
insideCanvas?: boolean;
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* Loading indicator that can be used inside or outside Canvas
|
|
7
|
+
*/
|
|
8
|
+
export declare function LoadingIndicator({ message, insideCanvas }: LoadingIndicatorProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
/**
|
|
10
|
+
* Error display component
|
|
11
|
+
*/
|
|
12
|
+
export declare function ErrorDisplay({ error, insideCanvas }: {
|
|
13
|
+
error: string;
|
|
14
|
+
insideCanvas?: boolean;
|
|
15
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function PerformanceMonitor(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { CanvasProps } from '../../types/canvas.types';
|
|
2
|
+
interface UnifiedCanvasProps extends CanvasProps {
|
|
3
|
+
showDimensionControl?: boolean;
|
|
4
|
+
}
|
|
5
|
+
export default function UnifiedCanvas({ width, height, view, articleName, showDimensionControl }: UnifiedCanvasProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function VarController(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function LevaVariableController(): null;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ConditionTreeResponse } from '../../../conditions/types/condition.types';
|
|
2
|
+
interface DataFieldsViewerProps {
|
|
3
|
+
data: Record<string, any>;
|
|
4
|
+
onDataChange: (newData: Record<string, any>) => void;
|
|
5
|
+
tree?: ConditionTreeResponse | null;
|
|
6
|
+
}
|
|
7
|
+
export declare function DataFieldsViewer({ data, onDataChange, tree }: DataFieldsViewerProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function SVGExtrusion(): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function GeneralTester(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function MyParser(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function PropertiesPanel(): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function TestImageRender(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function Test_KMS(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function Test_MatSurfFetching(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ConditionTreeResponse, TreeNode } from '../types/condition.types';
|
|
2
|
+
import { VariableTree } from '../../variables/VariableResolver';
|
|
3
|
+
export declare class ConditionTreeEvaluator {
|
|
4
|
+
static evaluateTree: (tree: ConditionTreeResponse, data: Record<string, unknown>, variableTree?: VariableTree) => boolean;
|
|
5
|
+
static evaluateNode: (node: TreeNode, data: Record<string, unknown>, variableTree?: VariableTree) => boolean;
|
|
6
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const keyMapping: Record<string, string>;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
export interface ConditionTreeResponse {
|
|
2
|
+
condition: ConditionInfo;
|
|
3
|
+
roots: TreeNode[];
|
|
4
|
+
}
|
|
5
|
+
export interface ConditionInfo {
|
|
6
|
+
CONDITIONID: number;
|
|
7
|
+
COMMENT: string;
|
|
8
|
+
ROOTTERMNUM: number;
|
|
9
|
+
}
|
|
10
|
+
export type TreeNode = ComparisonNode | OperationNode;
|
|
11
|
+
export interface ComparisonNode {
|
|
12
|
+
kind: 'comparison';
|
|
13
|
+
data: ComparisonData;
|
|
14
|
+
children: [];
|
|
15
|
+
}
|
|
16
|
+
export interface ComparisonData {
|
|
17
|
+
CONDITIONID: number;
|
|
18
|
+
TERMNUM: number;
|
|
19
|
+
PARENTTERMNUM: number;
|
|
20
|
+
LEFTVALUE: string;
|
|
21
|
+
COMPARISONTYPE: ComparisonOperator;
|
|
22
|
+
RIGHTVALUE: string;
|
|
23
|
+
DATATYPE: DataType;
|
|
24
|
+
}
|
|
25
|
+
export interface OperationNode {
|
|
26
|
+
kind: 'operation';
|
|
27
|
+
data: OperationData;
|
|
28
|
+
children: TreeNode[];
|
|
29
|
+
}
|
|
30
|
+
export interface OperationData {
|
|
31
|
+
CONDITIONID: number;
|
|
32
|
+
TERMNUM: number;
|
|
33
|
+
PARENTTERMNUM: number;
|
|
34
|
+
OPERATIONTYPE: number;
|
|
35
|
+
OPSTRING: OperationType;
|
|
36
|
+
}
|
|
37
|
+
export type ComparisonOperator = '=' | '!=' | '>' | '<' | '>=' | '<=' | '\u003E' | '\u003E=' | '\u003C' | '\u003C=' | '>' | '<' | '>=' | '<=' | 'B' | '!B' | 'E' | '!E' | 'C' | '!C';
|
|
38
|
+
export type OperationType = 'AND' | 'OR' | 'NOT' | 'NOT AND' | 'NOT OR';
|
|
39
|
+
export type DataType = 'CI' | 'CF' | 'CS' | 'CD' | 'CB';
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export declare const strokeWidth = 1;
|
|
2
|
+
export declare const CLIE_TYPE_ELEM = 0;
|
|
3
|
+
export declare const CLIE_TYPE_ZONE = 1;
|
|
4
|
+
export declare const defaultColor = "black";
|
|
5
|
+
export declare const frontTreeId: (zoneID: string) => string;
|
|
6
|
+
export declare const rightTreeId: (zoneID: string) => string;
|
|
7
|
+
export declare const backTreeId: (zoneID: string) => string;
|
|
8
|
+
export declare const leftTreeId: (zoneID: string) => string;
|
|
9
|
+
export declare const parentId: (zoneID: string) => string;
|
|
10
|
+
export declare const previousTREEID: (TREEID: string) => string;
|
|
11
|
+
export declare const nextTREEID: (TREEID: string) => string;
|
|
12
|
+
export declare const getIndex: (TREEID: string) => number;
|
|
13
|
+
export declare const clieTags: {
|
|
14
|
+
IAC_THICKNESS: string;
|
|
15
|
+
IAC_BOTTOMSHELFTHICKNESS: string;
|
|
16
|
+
IAC_TOPSHELFTHICKNESS: string;
|
|
17
|
+
};
|
|
18
|
+
export declare const DIM_NORM = 1000;
|
|
19
|
+
export declare const texture_url_builder: (render_mat: string) => string;
|
|
20
|
+
export declare const TEXTURE_URL_PREFIX = "/api/textures/copy_2/";
|
|
21
|
+
export declare const TEXTURE_URL_SUFFIX = "/public";
|
|
22
|
+
export declare const TEXTURE_EXTENSION = ".jpg";
|
|
23
|
+
export declare const DEFAULT_TEXTURE = "/textures/default.jpg";
|
|
24
|
+
export declare const DEFAULT_RENDER_COLOR = "#cc6161";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export interface RalColor {
|
|
2
|
+
ral: string;
|
|
3
|
+
hex: string;
|
|
4
|
+
description: string;
|
|
5
|
+
}
|
|
6
|
+
export declare const ralColorsMap: Record<string, RalColor>;
|
|
7
|
+
export declare function getRalHexColor(ralCode: string): string | undefined;
|
|
8
|
+
export declare function isRalColor(value?: string): boolean;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
export default function CabinHelper(NAME: string): {
|
|
2
|
+
kms: {
|
|
3
|
+
name: string | undefined;
|
|
4
|
+
material: {
|
|
5
|
+
renderInfo: {
|
|
6
|
+
textureId: undefined;
|
|
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
|
+
};
|
|
52
|
+
} | undefined;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
export default function useKmsHelper(NAME: string): {
|
|
2
|
+
name: string | undefined;
|
|
3
|
+
material: {
|
|
4
|
+
renderInfo: {
|
|
5
|
+
textureId: undefined;
|
|
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;
|
|
48
|
+
render: string | undefined;
|
|
49
|
+
thk: number;
|
|
50
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function KmsRenderSelector(materialRender: string | undefined, surfaceTopRender: string | undefined, surfaceBottomRender: string | undefined): string | undefined;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export default function MatHelper(materialName: string): {
|
|
2
|
+
renderInfo: {
|
|
3
|
+
textureId: undefined;
|
|
4
|
+
isValid: boolean;
|
|
5
|
+
} | {
|
|
6
|
+
textureId: string;
|
|
7
|
+
isValid: boolean;
|
|
8
|
+
};
|
|
9
|
+
NAME: string;
|
|
10
|
+
TEXT: string;
|
|
11
|
+
THK: number;
|
|
12
|
+
MATCAT: string;
|
|
13
|
+
GRAIN: number;
|
|
14
|
+
RENDER: string;
|
|
15
|
+
} | undefined;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
export default function CSideHelper(NAME: string): {
|
|
2
|
+
kms: {
|
|
3
|
+
name: string | undefined;
|
|
4
|
+
material: {
|
|
5
|
+
renderInfo: {
|
|
6
|
+
textureId: undefined;
|
|
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
|
+
};
|
|
52
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export default function SurfHelper(surfaceName: string): {
|
|
2
|
+
renderInfo: {
|
|
3
|
+
textureId: undefined;
|
|
4
|
+
isValid: boolean;
|
|
5
|
+
} | {
|
|
6
|
+
textureId: string;
|
|
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,7 +1,6 @@
|
|
|
1
|
-
import { DimensionProps } from '../../types/zone.types
|
|
2
|
-
|
|
1
|
+
import { DimensionProps } from '../../types/zone.types';
|
|
3
2
|
export interface ArticleContextType {
|
|
4
3
|
articleName: string;
|
|
5
4
|
dimensionOverrides?: Partial<DimensionProps>;
|
|
6
5
|
}
|
|
7
|
-
export declare const ArticleContext: import('react').Context<ArticleContextType>;
|
|
6
|
+
export declare const ArticleContext: import('react').Context<ArticleContextType | null>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { ArticleContextType } from './ArticleContext';
|
|
3
|
+
interface ArticleProviderProps extends ArticleContextType {
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
}
|
|
6
|
+
export declare function ArticleProvider({ children, articleName, dimensionOverrides }: ArticleProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { DataContextType } from '../../types/data.types';
|
|
2
|
+
export declare const DataContext: import('react').Context<DataContextType | undefined>;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import { DescriptorManager } from '../../descriptor/services/DescriptorManager
|
|
2
|
-
|
|
3
|
-
export declare const DescriptorContext: import('react').Context<DescriptorManager>;
|
|
1
|
+
import { DescriptorManager } from '../../descriptor/services/DescriptorManager';
|
|
2
|
+
export declare const DescriptorContext: import('react').Context<DescriptorManager | null>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { DescriptorResponse } from '../../descriptor/types/descriptor.types';
|
|
3
|
+
export interface DescriptorProviderProps {
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
descriptorData: DescriptorResponse[] | unknown[];
|
|
6
|
+
}
|
|
7
|
+
export declare function DescriptorProvider({ children, descriptorData }: DescriptorProviderProps): import("react/jsx-runtime").JSX.Element;
|