@colijnit/homedecorator 262.1.3 → 262.1.4
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/fesm2022/colijnit-homedecorator.mjs +445 -370
- package/fesm2022/colijnit-homedecorator.mjs.map +1 -1
- package/index.d.ts +9 -15
- package/package.json +7 -6
package/index.d.ts
CHANGED
|
@@ -4123,6 +4123,8 @@ declare class WallService implements OnDestroy {
|
|
|
4123
4123
|
getAllInWallItems(): InWallItem[];
|
|
4124
4124
|
getClosestWall(itemX: number, itemZ: number, ignoreVisible?: boolean): Wall;
|
|
4125
4125
|
splitWall(wall: Wall, corner: Corner): void;
|
|
4126
|
+
/** Picks the wall whose closest point (clamped to the segment) is nearest to (x, z). */
|
|
4127
|
+
private _closestWallForPoint;
|
|
4126
4128
|
updatePrevWall(wallId: string, prevWallId: string): void;
|
|
4127
4129
|
updateNextWall(wallId: string, nextWallId: string): void;
|
|
4128
4130
|
createNewWall(start: Corner, end: Corner, height: number, thickness: number, frontColor?: ColorRepresentation, backColor?: ColorRepresentation, frontTexture?: Texture, backTexture?: Texture): Wall;
|
|
@@ -4130,6 +4132,10 @@ declare class WallService implements OnDestroy {
|
|
|
4130
4132
|
addCornersForIntersections(): void;
|
|
4131
4133
|
mergeWithIntersected(corner: Corner): boolean;
|
|
4132
4134
|
removeWall(wall: Wall): void;
|
|
4135
|
+
/** Merges two collinear walls around a degree-2 corner into a single wall. */
|
|
4136
|
+
joinCollinearWallsAt(corner: Corner): void;
|
|
4137
|
+
/** True when the two walls are in line through 'corner' (angle ~180°). */
|
|
4138
|
+
private _areCollinearThroughCorner;
|
|
4133
4139
|
updateWallHeights(newHeight: number): void;
|
|
4134
4140
|
resetRoomWalls(): void;
|
|
4135
4141
|
updateWalls(): void;
|
|
@@ -6552,6 +6558,7 @@ declare class FloorplanRenderService implements OnDestroy {
|
|
|
6552
6558
|
removeTempWall(): void;
|
|
6553
6559
|
private _clear;
|
|
6554
6560
|
private _drawGrid;
|
|
6561
|
+
private _drawBackground;
|
|
6555
6562
|
private _drawRooms;
|
|
6556
6563
|
private _pickDrawRoomId;
|
|
6557
6564
|
private _drawWallsWithNoRoom;
|
|
@@ -6660,15 +6667,6 @@ declare class FloorplannerComponent implements AfterViewInit, OnDestroy {
|
|
|
6660
6667
|
private _subs;
|
|
6661
6668
|
private _selectedFloor;
|
|
6662
6669
|
private _modeBeforeRightMouseMove;
|
|
6663
|
-
private _diagramBackground;
|
|
6664
|
-
private _diagramBackgroundScale;
|
|
6665
|
-
private _diagramBackgroundCurrentScale;
|
|
6666
|
-
private _diagramBackgroundHeight;
|
|
6667
|
-
private _diagramBackgroundWidth;
|
|
6668
|
-
private _diagramBackgroundActiveZoom;
|
|
6669
|
-
private _diagramBackgroundAlpha;
|
|
6670
|
-
private _showDiagramBackground;
|
|
6671
|
-
private _diagramScale;
|
|
6672
6670
|
private _cameraZoom;
|
|
6673
6671
|
private _lastTouchPoint;
|
|
6674
6672
|
private _readyToDraw;
|
|
@@ -6683,6 +6681,7 @@ declare class FloorplannerComponent implements AfterViewInit, OnDestroy {
|
|
|
6683
6681
|
handleDecimalsChoice(decimals: number): void;
|
|
6684
6682
|
draw(): void;
|
|
6685
6683
|
private _requestDraw;
|
|
6684
|
+
private _clearBackground;
|
|
6686
6685
|
showStartMessage(): void;
|
|
6687
6686
|
resizeView(): void;
|
|
6688
6687
|
reset(): void;
|
|
@@ -6713,9 +6712,7 @@ declare class FloorplannerComponent implements AfterViewInit, OnDestroy {
|
|
|
6713
6712
|
private _checkMoveWallOrCorner;
|
|
6714
6713
|
private _moveSelectedCorner;
|
|
6715
6714
|
private _moveSelectedWall;
|
|
6716
|
-
private _drawBackground;
|
|
6717
6715
|
private _handleWindowResize;
|
|
6718
|
-
private _clear;
|
|
6719
6716
|
private _updateWallPosition;
|
|
6720
6717
|
private _scale;
|
|
6721
6718
|
private _draw;
|
|
@@ -8046,8 +8043,6 @@ declare class UploadModelDialogComponent implements AfterViewInit {
|
|
|
8046
8043
|
}
|
|
8047
8044
|
|
|
8048
8045
|
declare class ModelUploaderComponent {
|
|
8049
|
-
settingsService: HomedecoratorSettingsService;
|
|
8050
|
-
private _messageService;
|
|
8051
8046
|
fileUploadInput: ElementRef;
|
|
8052
8047
|
fileUploaded: EventEmitter<UploadFileData>;
|
|
8053
8048
|
file: File | null;
|
|
@@ -8056,7 +8051,6 @@ declare class ModelUploaderComponent {
|
|
|
8056
8051
|
uploadError: string;
|
|
8057
8052
|
private _maxFileSize;
|
|
8058
8053
|
private _allowedFiles;
|
|
8059
|
-
constructor(settingsService: HomedecoratorSettingsService, _messageService: MessageBusService);
|
|
8060
8054
|
onChange(event: any): void;
|
|
8061
8055
|
upload(fileExtension: string): Promise<void>;
|
|
8062
8056
|
fileToArrayBuffer(file: File): Promise<ArrayBuffer>;
|
|
@@ -8782,8 +8776,8 @@ declare class DrawDialogComponent implements OnDestroy, OnInit, AfterViewInit {
|
|
|
8782
8776
|
handleMouseMove(event: MouseEvent): void;
|
|
8783
8777
|
handleMouseUp(event: MouseEvent): void;
|
|
8784
8778
|
handleMouseLeave(event: MouseEvent): void;
|
|
8785
|
-
clickingZoom(option: string): void;
|
|
8786
8779
|
handleMouseWheel(event: WheelEvent): void;
|
|
8780
|
+
handleContextMenu(event: MouseEvent): boolean;
|
|
8787
8781
|
getEventLocation(e: any): {
|
|
8788
8782
|
x: any;
|
|
8789
8783
|
y: any;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@colijnit/homedecorator",
|
|
3
|
-
"version": "262.1.
|
|
3
|
+
"version": "262.1.4",
|
|
4
4
|
"description": "Homedecorator application based on 262 version of iOne backend",
|
|
5
5
|
"repository": "npm/npm",
|
|
6
6
|
"author": "Colijn IT",
|
|
@@ -17,7 +17,12 @@
|
|
|
17
17
|
"@colijnit/ioneconnector": ">=262.1.3",
|
|
18
18
|
"@colijnit/mainapi": ">=262.1.1",
|
|
19
19
|
"@colijnit/relationapi": ">=262.1.0",
|
|
20
|
-
"@colijnit/transactionapi": ">=262.1.0"
|
|
20
|
+
"@colijnit/transactionapi": ">=262.1.0",
|
|
21
|
+
"@types/three": "0.178.1",
|
|
22
|
+
"three": "0.178.0",
|
|
23
|
+
"three-bvh-csg": "0.0.17",
|
|
24
|
+
"three-gpu-pathtracer": "0.0.22",
|
|
25
|
+
"three-mesh-bvh": "^0.9.9"
|
|
21
26
|
},
|
|
22
27
|
"dependencies": {
|
|
23
28
|
"@tweenjs/tween.js": "^25.0.0",
|
|
@@ -34,10 +39,6 @@
|
|
|
34
39
|
"polygon-tools": "^0.4.8",
|
|
35
40
|
"postprocessing": "^6.36.1",
|
|
36
41
|
"textdiff-patch": "^1.0.5",
|
|
37
|
-
"three": "^0.178.0",
|
|
38
|
-
"three-bvh-csg": "0.0.17",
|
|
39
|
-
"three-gpu-pathtracer": "0.0.22",
|
|
40
|
-
"three-mesh-bvh": "^0.9.9",
|
|
41
42
|
"tslib": "^2.3.0"
|
|
42
43
|
},
|
|
43
44
|
"module": "fesm2022/colijnit-homedecorator.mjs",
|