@processandtools/rp-article-designer 1.0.35 → 1.0.37
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/{Highlighter.d.ts → helpers/Highlighter.d.ts} +2 -2
- package/dist/construction_principle/{back_panel/BackPanelHelper.d.ts → cabBack/CabBackHelper.d.ts} +1 -1
- package/dist/construction_principle/cabin/{ShelfHelper.d.ts → CabinHelper.d.ts} +1 -1
- package/dist/construction_principle/dto/angl-type-config.d.ts +14 -0
- package/dist/construction_principle/dto/{cp.types.d.ts → cp-dispatcher.types.d.ts} +11 -16
- package/dist/helpers/CpDispatcher.d.ts +5 -2
- package/dist/helpers/ZoneCalculations.d.ts +4 -16
- package/dist/helpers/angls/UseElemHelper.d.ts +1 -1
- package/dist/helpers/angls/UseZoneHelper.d.ts +5 -7
- package/dist/helpers/processLindivFixed.d.ts +14 -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/data.types.d.ts +5 -4
- package/dist/types/divider.types.d.ts +11 -1
- package/package.json +3 -1
- /package/dist/construction_principle/{back_panel → cabBack}/cabback.types.d.ts +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { VIEW } from '
|
|
2
|
-
import { DimensionProps } from '
|
|
1
|
+
import { VIEW } from '../../../types/view.types';
|
|
2
|
+
import { DimensionProps } from '../../../types/zone.types';
|
|
3
3
|
export interface HighlighterProps {
|
|
4
4
|
view: VIEW;
|
|
5
5
|
isSelected: boolean;
|
package/dist/construction_principle/{back_panel/BackPanelHelper.d.ts → cabBack/CabBackHelper.d.ts}
RENAMED
|
@@ -4,4 +4,4 @@ export interface BackPanelResult {
|
|
|
4
4
|
kms: KmsResult | undefined;
|
|
5
5
|
inset: number;
|
|
6
6
|
}
|
|
7
|
-
export declare function
|
|
7
|
+
export declare function CabBackHelper(articleData: DataContextType, NAME: string): BackPanelResult | undefined;
|
|
@@ -3,4 +3,4 @@ import { DataContextType } from '../../types/data.types';
|
|
|
3
3
|
export interface ShelfResult {
|
|
4
4
|
kms: KmsResult | undefined;
|
|
5
5
|
}
|
|
6
|
-
export default function
|
|
6
|
+
export default function CabinHelper(articleData: DataContextType, NAME: string): ShelfResult | undefined;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { DividerType } from '../../types/divider.types';
|
|
2
|
+
import { ElemPartType } from '../../types/Elem.types';
|
|
3
|
+
export type PartTypeSource = 'elem' | 'divider';
|
|
4
|
+
export declare const ElemCabinTypes: Set<ElemPartType>;
|
|
5
|
+
export declare const ElemCSideTypes: Set<ElemPartType>;
|
|
6
|
+
export declare const ElemCabBackTypes: Set<ElemPartType>;
|
|
7
|
+
export declare const ElemDoorTypes: Set<ElemPartType>;
|
|
8
|
+
export declare const DividerCabinTypes: Set<DividerType>;
|
|
9
|
+
export declare const DividerCSideTypes: Set<DividerType>;
|
|
10
|
+
export declare const DividerCabBackTypes: Set<DividerType>;
|
|
11
|
+
export declare const isCabinType: (type: ElemPartType | DividerType, source: PartTypeSource) => boolean;
|
|
12
|
+
export declare const isCSideType: (type: ElemPartType | DividerType, source: PartTypeSource) => boolean;
|
|
13
|
+
export declare const isCabBackType: (type: ElemPartType | DividerType, source: PartTypeSource) => boolean;
|
|
14
|
+
export declare const isDoorType: (type: ElemPartType | DividerType, source: PartTypeSource) => boolean;
|
|
@@ -1,55 +1,50 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ElemPartType } from '../../types/Elem.types';
|
|
2
2
|
import { SidePanelResult } from '../side_panel/CSideHelper';
|
|
3
|
-
import {
|
|
3
|
+
import { BackPanelResult } from '../cabBack/CabBackHelper';
|
|
4
4
|
import { DoorResult } from '../door/DoorHelper';
|
|
5
|
-
|
|
6
|
-
SidePanel = "S",
|
|
7
|
-
Door = "D",
|
|
8
|
-
Back = "B",
|
|
9
|
-
Shelf = "H"
|
|
10
|
-
}
|
|
5
|
+
import { ShelfResult } from '../cabin/CabinHelper';
|
|
11
6
|
export type CpDispatcherResult = {
|
|
12
7
|
name: string;
|
|
13
|
-
type:
|
|
8
|
+
type: ElemPartType.SidePanel;
|
|
14
9
|
props: SidePanelResult | undefined;
|
|
15
10
|
thk: number;
|
|
16
11
|
} | {
|
|
17
12
|
name: string;
|
|
18
|
-
type:
|
|
13
|
+
type: ElemPartType.Back;
|
|
19
14
|
props: BackPanelResult | undefined;
|
|
20
15
|
thk: number;
|
|
21
16
|
} | {
|
|
22
17
|
name: string;
|
|
23
|
-
type:
|
|
18
|
+
type: ElemPartType.Door;
|
|
24
19
|
props: DoorResult | undefined;
|
|
25
20
|
thk: number;
|
|
26
21
|
} | {
|
|
27
22
|
name: string;
|
|
28
|
-
type:
|
|
23
|
+
type: ElemPartType.Shelf;
|
|
29
24
|
props: ShelfResult | undefined;
|
|
30
25
|
thk: number;
|
|
31
26
|
};
|
|
32
27
|
export declare function isSidePanel(cp: CpDispatcherResult): cp is {
|
|
33
28
|
name: string;
|
|
34
|
-
type:
|
|
29
|
+
type: ElemPartType.SidePanel;
|
|
35
30
|
props: SidePanelResult;
|
|
36
31
|
thk: number;
|
|
37
32
|
};
|
|
38
33
|
export declare function isBackPanel(cp: CpDispatcherResult): cp is {
|
|
39
34
|
name: string;
|
|
40
|
-
type:
|
|
35
|
+
type: ElemPartType.Back;
|
|
41
36
|
props: BackPanelResult;
|
|
42
37
|
thk: number;
|
|
43
38
|
};
|
|
44
39
|
export declare function isDoor(cp: CpDispatcherResult): cp is {
|
|
45
40
|
name: string;
|
|
46
|
-
type:
|
|
41
|
+
type: ElemPartType.Door;
|
|
47
42
|
props: DoorResult;
|
|
48
43
|
thk: number;
|
|
49
44
|
};
|
|
50
45
|
export declare function isShelf(cp: CpDispatcherResult): cp is {
|
|
51
46
|
name: string;
|
|
52
|
-
type:
|
|
47
|
+
type: ElemPartType.Shelf;
|
|
53
48
|
props: ShelfResult;
|
|
54
49
|
thk: number;
|
|
55
50
|
};
|
|
@@ -1,3 +1,6 @@
|
|
|
1
1
|
import { DataContextType } from '../types/data.types';
|
|
2
|
-
import {
|
|
3
|
-
|
|
2
|
+
import { DividerType } from '../types/divider.types';
|
|
3
|
+
import { ElemPartType } from '../types/Elem.types';
|
|
4
|
+
import { PartTypeSource } from '../construction_principle/dto/angl-type-config';
|
|
5
|
+
import { CpDispatcherResult } from '../construction_principle/dto/cp-dispatcher.types';
|
|
6
|
+
export default function CpDispatcher(articleData: DataContextType, cpName: string, cpType: ElemPartType | DividerType, source: PartTypeSource): CpDispatcherResult | undefined;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { ChildrenDimsResult, DimensionProps, PositionHelperResult } from '../types/zone.types';
|
|
2
2
|
import { DividerMode } from '../types/divider.types';
|
|
3
|
-
import { AnglZone } from '../types/data.types';
|
|
4
3
|
export declare function useZoneElemHelpers(articleName: string, TREEID: string): {
|
|
5
4
|
front: {
|
|
6
5
|
TREEID: string;
|
|
7
|
-
constPrinciple: import('../construction_principle/dto/cp.types.ts').CpDispatcherResult |
|
|
6
|
+
constPrinciple: import('../construction_principle/dto/cp-dispatcher.types.ts').CpDispatcherResult | undefined;
|
|
8
7
|
thk: number;
|
|
9
8
|
inset: number;
|
|
10
9
|
oversize: {
|
|
@@ -26,7 +25,7 @@ export declare function useZoneElemHelpers(articleName: string, TREEID: string):
|
|
|
26
25
|
} | null;
|
|
27
26
|
left: {
|
|
28
27
|
TREEID: string;
|
|
29
|
-
constPrinciple: import('../construction_principle/dto/cp.types.ts').CpDispatcherResult |
|
|
28
|
+
constPrinciple: import('../construction_principle/dto/cp-dispatcher.types.ts').CpDispatcherResult | undefined;
|
|
30
29
|
thk: number;
|
|
31
30
|
inset: number;
|
|
32
31
|
oversize: {
|
|
@@ -48,7 +47,7 @@ export declare function useZoneElemHelpers(articleName: string, TREEID: string):
|
|
|
48
47
|
} | null;
|
|
49
48
|
right: {
|
|
50
49
|
TREEID: string;
|
|
51
|
-
constPrinciple: import('../construction_principle/dto/cp.types.ts').CpDispatcherResult |
|
|
50
|
+
constPrinciple: import('../construction_principle/dto/cp-dispatcher.types.ts').CpDispatcherResult | undefined;
|
|
52
51
|
thk: number;
|
|
53
52
|
inset: number;
|
|
54
53
|
oversize: {
|
|
@@ -70,7 +69,7 @@ export declare function useZoneElemHelpers(articleName: string, TREEID: string):
|
|
|
70
69
|
} | null;
|
|
71
70
|
back: {
|
|
72
71
|
TREEID: string;
|
|
73
|
-
constPrinciple: import('../construction_principle/dto/cp.types.ts').CpDispatcherResult |
|
|
72
|
+
constPrinciple: import('../construction_principle/dto/cp-dispatcher.types.ts').CpDispatcherResult | undefined;
|
|
74
73
|
thk: number;
|
|
75
74
|
inset: number;
|
|
76
75
|
oversize: {
|
|
@@ -174,14 +173,3 @@ export declare function calculateChildPositions(remainingDims: DimensionProps, c
|
|
|
174
173
|
export declare function calculateChildPositionsFromGeometry(remainingZoneGeometry: {
|
|
175
174
|
dimensions: DimensionProps;
|
|
176
175
|
}, dividerThk: number, divider: DividerMode | undefined, childTREEIDs: string[]): PositionHelperResult;
|
|
177
|
-
export interface ZoneCalculationParams {
|
|
178
|
-
TREEID: string;
|
|
179
|
-
dimension: DimensionProps;
|
|
180
|
-
topShelfThk: number;
|
|
181
|
-
bottomShelfThk: number;
|
|
182
|
-
dividerThk: number;
|
|
183
|
-
linDiv: string;
|
|
184
|
-
updatedDivider?: DividerMode;
|
|
185
|
-
children: AnglZone[];
|
|
186
|
-
elemHelpers: ReturnType<typeof useZoneElemHelpers>;
|
|
187
|
-
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare function useElemHelper(articleName: string, TREEID: string): {
|
|
2
2
|
TREEID: string;
|
|
3
|
-
constPrinciple: import('../../construction_principle/dto/cp.types.ts').CpDispatcherResult |
|
|
3
|
+
constPrinciple: import('../../construction_principle/dto/cp-dispatcher.types.ts').CpDispatcherResult | undefined;
|
|
4
4
|
thk: number;
|
|
5
5
|
inset: number;
|
|
6
6
|
oversize: {
|
|
@@ -1,12 +1,10 @@
|
|
|
1
|
+
import { DividerType } from '../../types/divider.types';
|
|
1
2
|
export declare function useZoneHelper(articleName: string, TREEID: string): {
|
|
2
3
|
currentZone: import('../../types/data.types.tsx').AnglZone;
|
|
3
4
|
children: import('../../types/data.types.tsx').AnglZone[];
|
|
4
|
-
readonly topShelfCP: import('../../construction_principle/dto/cp.types.ts').CpDispatcherResult |
|
|
5
|
-
readonly bottomShelfCP: import('../../construction_principle/dto/cp.types.ts').CpDispatcherResult |
|
|
6
|
-
readonly DividerCP: import('../../construction_principle/dto/cp.types.ts').CpDispatcherResult |
|
|
5
|
+
readonly topShelfCP: import('../../construction_principle/dto/cp-dispatcher.types.ts').CpDispatcherResult | undefined;
|
|
6
|
+
readonly bottomShelfCP: import('../../construction_principle/dto/cp-dispatcher.types.ts').CpDispatcherResult | undefined;
|
|
7
|
+
readonly DividerCP: import('../../construction_principle/dto/cp-dispatcher.types.ts').CpDispatcherResult | undefined;
|
|
7
8
|
zoneInfo(): Map<string, string> | undefined;
|
|
8
|
-
getThk(TREEID: string, TAGNAME: string, CPNAME: string): number;
|
|
9
|
-
readonly topShelfThk: number;
|
|
10
|
-
readonly bottomShelfThk: number;
|
|
11
|
-
readonly dividerThk: number;
|
|
9
|
+
getThk(TREEID: string, TAGNAME: string, CPNAME: string, cpType: DividerType): number;
|
|
12
10
|
} | null;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { EvaluationErrors } from 'imos-linear-division';
|
|
2
|
+
/**
|
|
3
|
+
* Fixed linear division processor.
|
|
4
|
+
*
|
|
5
|
+
* For "1:1" with length=25 and dividerThickness=13:
|
|
6
|
+
* - 2 sections, 1 divider between them
|
|
7
|
+
* - Divider space = 13
|
|
8
|
+
* - Available for content = 25 - 13 = 12
|
|
9
|
+
* - Each section = 12 / 2 = 6
|
|
10
|
+
* - Result: [6, 6]
|
|
11
|
+
*/
|
|
12
|
+
export declare function processLindivFixed(input: string, totalLength: number, dividerThickness?: number, _variables?: {
|
|
13
|
+
[key: string]: number;
|
|
14
|
+
}): number[] | EvaluationErrors;
|