door_models 2.0.1 → 3.0.0
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/index.cjs.js +5 -1294
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +6 -1295
- package/dist/index.esm.js.map +1 -1
- package/package.json +3 -3
- package/dist/components/DoorModels.d.ts +0 -20
- package/dist/components/DoorModels.js +0 -924
- package/dist/components/Interface.d.ts +0 -1
- package/dist/components/Interface.js +0 -1307
- package/dist/context/DoorContext.d.ts +0 -130
- package/dist/context/DoorContext.js +0 -631
- package/dist/index.js +0 -33
|
@@ -1,130 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
type DoorType = {
|
|
3
|
-
doorMaterial: string;
|
|
4
|
-
doorWidth: number;
|
|
5
|
-
doorHeight: number;
|
|
6
|
-
theDoorDepth: number;
|
|
7
|
-
doorPivot: string;
|
|
8
|
-
doorOpening: string;
|
|
9
|
-
};
|
|
10
|
-
type DoorFrameType = {
|
|
11
|
-
frameMaterial: string;
|
|
12
|
-
doorStopMaterial?: string;
|
|
13
|
-
gasketMaterial: string;
|
|
14
|
-
hingeMaterial: string;
|
|
15
|
-
glassMaterial?: string;
|
|
16
|
-
frameDepth: number;
|
|
17
|
-
topThk: string;
|
|
18
|
-
sidesThk: string;
|
|
19
|
-
notchDepth: string;
|
|
20
|
-
notchWidth: string;
|
|
21
|
-
doorStopWidth: number;
|
|
22
|
-
doorStopDepth: number;
|
|
23
|
-
doorStopOffset: string;
|
|
24
|
-
notchposition: number;
|
|
25
|
-
gasketWidth: number;
|
|
26
|
-
gasketDepth: number;
|
|
27
|
-
secondDoorStopWidth: number;
|
|
28
|
-
secondDoorStopDepth: number;
|
|
29
|
-
secondDoorStopOffset: number;
|
|
30
|
-
};
|
|
31
|
-
type InteriorFanlightType = {
|
|
32
|
-
visible: boolean;
|
|
33
|
-
height: number;
|
|
34
|
-
material: string;
|
|
35
|
-
};
|
|
36
|
-
type ExteriorFanlightType = {
|
|
37
|
-
visible: boolean;
|
|
38
|
-
height: number;
|
|
39
|
-
depth: number;
|
|
40
|
-
material: string;
|
|
41
|
-
};
|
|
42
|
-
type OcculusType = {
|
|
43
|
-
visible: boolean;
|
|
44
|
-
infillVisible: boolean;
|
|
45
|
-
x1: number;
|
|
46
|
-
x2: number;
|
|
47
|
-
y1: number;
|
|
48
|
-
y2: number;
|
|
49
|
-
material: string;
|
|
50
|
-
depth: number;
|
|
51
|
-
};
|
|
52
|
-
type CoverPanelType = {
|
|
53
|
-
visible: boolean;
|
|
54
|
-
width: number;
|
|
55
|
-
height: number;
|
|
56
|
-
depth: number;
|
|
57
|
-
material: string;
|
|
58
|
-
};
|
|
59
|
-
type GlassType = {
|
|
60
|
-
visible: boolean;
|
|
61
|
-
material: string;
|
|
62
|
-
depth: number;
|
|
63
|
-
};
|
|
64
|
-
type ConfiguratorContextType = {
|
|
65
|
-
isPlaneVisible: boolean;
|
|
66
|
-
setIsPlaneVisible: React.Dispatch<React.SetStateAction<boolean>>;
|
|
67
|
-
isFrameVisible: boolean;
|
|
68
|
-
setIsFrameVisible: React.Dispatch<React.SetStateAction<boolean>>;
|
|
69
|
-
cpid: string;
|
|
70
|
-
setCpid: React.Dispatch<React.SetStateAction<string>>;
|
|
71
|
-
door: DoorType;
|
|
72
|
-
setDoor: React.Dispatch<React.SetStateAction<DoorType>>;
|
|
73
|
-
doorFrame: DoorFrameType;
|
|
74
|
-
setDoorFrame: React.Dispatch<React.SetStateAction<DoorFrameType>>;
|
|
75
|
-
interiorFanlight: InteriorFanlightType;
|
|
76
|
-
setInteriorFanlight: React.Dispatch<React.SetStateAction<InteriorFanlightType>>;
|
|
77
|
-
exteriorFanlight: ExteriorFanlightType;
|
|
78
|
-
setExteriorFanlight: React.Dispatch<React.SetStateAction<ExteriorFanlightType>>;
|
|
79
|
-
exteriorFanlightType: string;
|
|
80
|
-
setExteriorFanlightType: React.Dispatch<React.SetStateAction<string>>;
|
|
81
|
-
occulus: OcculusType;
|
|
82
|
-
setOcculus: React.Dispatch<React.SetStateAction<OcculusType>>;
|
|
83
|
-
frontCoverPanel: CoverPanelType;
|
|
84
|
-
setFrontCoverPanel: React.Dispatch<React.SetStateAction<CoverPanelType>>;
|
|
85
|
-
backCoverPanel: CoverPanelType;
|
|
86
|
-
setBackCoverPanel: React.Dispatch<React.SetStateAction<CoverPanelType>>;
|
|
87
|
-
glass: GlassType;
|
|
88
|
-
setGlass: React.Dispatch<React.SetStateAction<GlassType>>;
|
|
89
|
-
frameType: string;
|
|
90
|
-
setFrameType: React.Dispatch<React.SetStateAction<string>>;
|
|
91
|
-
bodyType: string;
|
|
92
|
-
setBodyType: React.Dispatch<React.SetStateAction<string>>;
|
|
93
|
-
totalHeight: number;
|
|
94
|
-
setTotalHeight: React.Dispatch<React.SetStateAction<number>>;
|
|
95
|
-
totalWidth: number;
|
|
96
|
-
setTotalWidth: React.Dispatch<React.SetStateAction<number>>;
|
|
97
|
-
handleParseCpid: (cpidToParse: string) => void;
|
|
98
|
-
testDoorMaterial: string;
|
|
99
|
-
setTestDoorMaterial: React.Dispatch<React.SetStateAction<string>>;
|
|
100
|
-
testFrameMaterial: string;
|
|
101
|
-
setTestFrameMaterial: React.Dispatch<React.SetStateAction<string>>;
|
|
102
|
-
testGasketMaterial: string;
|
|
103
|
-
setTestGasketMaterial: React.Dispatch<React.SetStateAction<string>>;
|
|
104
|
-
testInteriorFanlightMaterial: string;
|
|
105
|
-
setTestInteriorFanlightMaterial: React.Dispatch<React.SetStateAction<string>>;
|
|
106
|
-
testExteriorFanlightMaterial: string;
|
|
107
|
-
setTestExteriorFanlightMaterial: React.Dispatch<React.SetStateAction<string>>;
|
|
108
|
-
testOcculusInfillMaterial: string;
|
|
109
|
-
setTestOcculusInfillMaterial: React.Dispatch<React.SetStateAction<string>>;
|
|
110
|
-
testGlassInfillMaterial: string;
|
|
111
|
-
setTestGlassInfillMaterial: React.Dispatch<React.SetStateAction<string>>;
|
|
112
|
-
testDoorStopMaterial: string;
|
|
113
|
-
setTestDoorStopMaterial: React.Dispatch<React.SetStateAction<string>>;
|
|
114
|
-
testHingeMaterial: string;
|
|
115
|
-
setTestHingeMaterial: React.Dispatch<React.SetStateAction<string>>;
|
|
116
|
-
testFrontCoverPanelMaterial: string;
|
|
117
|
-
setTestFrontCoverPanelMaterial: React.Dispatch<React.SetStateAction<string>>;
|
|
118
|
-
testBackCoverPanelMaterial: string;
|
|
119
|
-
setTestBackCoverPanelMaterial: React.Dispatch<React.SetStateAction<string>>;
|
|
120
|
-
glassVisible: boolean;
|
|
121
|
-
setGlassVisible: React.Dispatch<React.SetStateAction<boolean>>;
|
|
122
|
-
glassDepth: number;
|
|
123
|
-
setGlassDepth: React.Dispatch<React.SetStateAction<number>>;
|
|
124
|
-
};
|
|
125
|
-
type ConfiguratorProviderProps = {
|
|
126
|
-
children: React.ReactNode;
|
|
127
|
-
};
|
|
128
|
-
export declare const ConfiguratorProvider: ({ children, }: ConfiguratorProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
129
|
-
export declare const useConfigurator: () => ConfiguratorContextType;
|
|
130
|
-
export {};
|