@processandtools/rp-article-designer 1.0.37 → 1.0.38
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/ArticleGroupLayout.d.ts +3 -1
- package/dist/components/article_designer/helpers/DoorAnimator.d.ts +11 -0
- package/dist/components/article_designer/helpers/DoorSensor.d.ts +12 -0
- package/dist/components/article_designer/helpers/ScanNeighbors.d.ts +19 -0
- package/dist/components/elements_manager/PD_3D.d.ts +3 -0
- package/dist/components/ui/Canvas2D.d.ts +1 -1
- package/dist/components/ui/Canvas3D.d.ts +1 -1
- package/dist/components/ui/CanvasManager.d.ts +1 -1
- package/dist/construction_principle/cabBack/CabBackHelper.d.ts +1 -1
- package/dist/construction_principle/cabBack/cabback.types.d.ts +1 -1
- package/dist/construction_principle/door/DoorHelper.d.ts +3 -3
- package/dist/construction_principle/door/door.types.d.ts +5 -4
- package/dist/construction_principle/dto/cp-dispatcher.types.d.ts +4 -4
- package/dist/contexts/dimension/DimensionProvider.d.ts +2 -1
- package/dist/data/articles.d.ts +0 -5
- package/dist/helpers/LinDivValidation.d.ts +8 -0
- package/dist/helpers/ZoneCalculations.d.ts +45 -61
- package/dist/helpers/angls/UseElemHelper.d.ts +8 -5
- package/dist/helpers/tools/computeTrimTool.d.ts +4 -0
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/types/Elem.types.d.ts +6 -0
- package/dist/types/canvas.types.d.ts +3 -1
- package/dist/types/data.types.d.ts +5 -5
- package/package.json +3 -3
|
@@ -6,6 +6,12 @@ export declare enum ElemPartType {
|
|
|
6
6
|
Back = "B",
|
|
7
7
|
Shelf = "H"
|
|
8
8
|
}
|
|
9
|
+
export declare enum ElemTrimType {
|
|
10
|
+
short = "S",
|
|
11
|
+
long = "L",
|
|
12
|
+
mitre = "M",
|
|
13
|
+
perpendicular = "P"
|
|
14
|
+
}
|
|
9
15
|
export interface ElemProps extends ZoneProps {
|
|
10
16
|
helper: {
|
|
11
17
|
front: ElemHelperType | null;
|
|
@@ -2,10 +2,12 @@ import { ArticleData } from './data.types';
|
|
|
2
2
|
import { VIEW } from './view.types';
|
|
3
3
|
import { ArticleGroupTypes } from './article-group.types';
|
|
4
4
|
export interface CanvasProps {
|
|
5
|
-
view
|
|
5
|
+
view?: VIEW;
|
|
6
6
|
data?: ArticleData;
|
|
7
7
|
articleList: ArticleGroupTypes[];
|
|
8
8
|
debugMode?: boolean;
|
|
9
9
|
isZCentered?: boolean;
|
|
10
10
|
validNames?: Set<string>;
|
|
11
|
+
selectedIndex?: number | null;
|
|
12
|
+
onArticleSelect?: (index: number) => void;
|
|
11
13
|
}
|
|
@@ -9,16 +9,16 @@ import { CabinTypes } from '../construction_principle/cabin/cabin.types';
|
|
|
9
9
|
import { DoorTypes } from '../construction_principle/door/door.types';
|
|
10
10
|
import { CabbackTypes } from '../construction_principle/cabBack/cabback.types';
|
|
11
11
|
import { DividerType } from './divider.types';
|
|
12
|
-
import { ElemPartType } from './Elem.types';
|
|
12
|
+
import { ElemPartType, ElemTrimType } from './Elem.types';
|
|
13
13
|
export interface AngleElem {
|
|
14
14
|
NAME: string;
|
|
15
15
|
TREEID: string;
|
|
16
16
|
PARTTYPE: ElemPartType;
|
|
17
17
|
CPNAME: string;
|
|
18
|
-
STARTTRIM:
|
|
19
|
-
ENDTRIM:
|
|
20
|
-
TOPTRIM:
|
|
21
|
-
BOTTRIM:
|
|
18
|
+
STARTTRIM: ElemTrimType;
|
|
19
|
+
ENDTRIM: ElemTrimType;
|
|
20
|
+
TOPTRIM: ElemTrimType;
|
|
21
|
+
BOTTRIM: ElemTrimType;
|
|
22
22
|
MANINFO: string;
|
|
23
23
|
STARTOFFS: number;
|
|
24
24
|
ENDOFFS: number;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@processandtools/rp-article-designer",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.38",
|
|
5
5
|
"author": "Otman Abid Lmerabetine",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"type": "module",
|
|
@@ -47,7 +47,6 @@
|
|
|
47
47
|
"test:pack": "npm pack"
|
|
48
48
|
},
|
|
49
49
|
"peerDependencies": {
|
|
50
|
-
"@react-three/drei": ">=6.0.0",
|
|
51
50
|
"@react-three/fiber": ">=6.0.0",
|
|
52
51
|
"@react-three/postprocessing": "^3.0.4",
|
|
53
52
|
"leva": ">=0.10.0",
|
|
@@ -56,7 +55,8 @@
|
|
|
56
55
|
"three": ">=0.150.0"
|
|
57
56
|
},
|
|
58
57
|
"dependencies": {
|
|
59
|
-
"@react-three
|
|
58
|
+
"@react-spring/three": "^10.0.3",
|
|
59
|
+
"@react-three/drei": "^10.7.7",
|
|
60
60
|
"@react-three/fiber": ">=6.0.0",
|
|
61
61
|
"imos-linear-division": "^0.1.3",
|
|
62
62
|
"leva": ">=0.10.0",
|