@colijnit/homedecorator 262.1.3 → 262.1.5

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/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { OnDestroy, OnInit, TemplateRef, ChangeDetectorRef, PipeTransform, ElementRef, AfterViewInit, EventEmitter, OnChanges, SimpleChanges, Injector } from '@angular/core';
2
+ import { OnDestroy, OnInit, TemplateRef, ChangeDetectorRef, Injector, PipeTransform, ElementRef, AfterViewInit, EventEmitter, OnChanges, SimpleChanges } from '@angular/core';
3
3
  import * as i7 from '@angular/material/icon';
4
4
  import { MatIconRegistry } from '@angular/material/icon';
5
5
  import { SafeHtml, EventManager, DomSanitizer, SafeResourceUrl } from '@angular/platform-browser';
@@ -31,10 +31,10 @@ import { ExternalSource } from '@colijnit/articleapi/build/model/external-source
31
31
  import { ArticleFullObject } from '@colijnit/articleapi/build/model/article-full-object';
32
32
  import { ArticleCategory } from '@colijnit/configuratorapi/build/model/article-category';
33
33
  import { ArticleFlat } from '@colijnit/articleapi/build/model/article-flat.bo';
34
- import { ArticleExtended } from '@colijnit/articleapi/build/model/article-extended.bo';
35
34
  import { ExternalSourceArticleAddInterface } from '@colijnit/articleapi/build/interface/external-source-article-add.interface';
36
35
  import { CoDomainValue } from '@colijnit/mainapi/build/model/co-domain-value.bo';
37
36
  import { ObjectConfiguration } from '@colijnit/ioneconnector/build/model/object-configuration';
37
+ import { ArticleExtended } from '@colijnit/articleapi/build/model/article-extended.bo';
38
38
  import { SelectorStructure } from '@colijnit/configuratorapi/build/model/selector-structure.bo';
39
39
  import * as i7$2 from '@colijnit/catalog';
40
40
  import { CatalogExternalSourcesService, FilterOrder, CatalogService, ExternalSourceViewmodel } from '@colijnit/catalog';
@@ -704,7 +704,7 @@ declare class HomedecoratorAppEventService {
704
704
  hideOutline: Subject<void>;
705
705
  objectMovingOrRotating: Subject<void>;
706
706
  addToCart: Subject<{
707
- article: string | ArticleExtended;
707
+ article: string | ArticleFullObject;
708
708
  quantity: number;
709
709
  }>;
710
710
  addExternalSourceToCart: Subject<ExternalSourceArticleAddInterface>;
@@ -773,6 +773,7 @@ declare class HomedecoratorConnectorAdapterService implements OnDestroy {
773
773
  getDecosAsync(): Promise<DecoNode[]>;
774
774
  getAnswerPrices(): Promise<AnswerPrice[]>;
775
775
  getJsonConfiguredArticles(goodId: number, goodType: string, quantity: number, externalSource?: boolean, showLoader?: boolean, instanceId?: string, configuratorStatistics?: ConfiguratorStatisticsEnvironment): Promise<string>;
776
+ prepareArticleForCart(goodId: number, quantity?: number, shouldGetArticleTree?: boolean, showLoader?: boolean, instanceId?: string): Promise<ArticleFullObject | string>;
776
777
  setInstanceToConfigure(id: string): Promise<DataServiceResponseData>;
777
778
  selectAnswer(answer: Answer, userInput?: string): Promise<DataServiceResponseData>;
778
779
  cancelAnswer(getAnswersAndQuestion?: boolean): Promise<DataServiceResponseData>;
@@ -1229,7 +1230,7 @@ declare class HomedecoratorConnectorService implements OnDestroy {
1229
1230
  getInternalParameter(param: InternalParam): Promise<string>;
1230
1231
  getDefaultLanguage(upId: number): Promise<string>;
1231
1232
  googleTranslateEnabled(): Promise<boolean>;
1232
- getJsonConfiguredArticles(goodId: number, goodType: string, quantity: number, externalSource?: boolean, showLoader?: boolean, instanceId?: string, configuratorStatistics?: ConfiguratorStatisticsEnvironment): Promise<any>;
1233
+ prepareArticleForCart(goodId: number, quantity: number, externalSource?: boolean, showLoader?: boolean, instanceId?: string): Promise<ArticleFullObject | string>;
1233
1234
  setInstance(id: string): Promise<DataServiceResponseData>;
1234
1235
  copyInstanceAndSaveOriginalConfiguration(instanceId: string, result: CustomFloorGroupResult): Promise<string>;
1235
1236
  copyInstanceAndLoseOriginalConfiguration(instanceId: string, result: CustomFloorGroupResult): Promise<string>;
@@ -1261,7 +1262,7 @@ declare class HomedecoratorConnectorService implements OnDestroy {
1261
1262
  private _isAllSelectionPublished;
1262
1263
  private _isAnswerPublished;
1263
1264
  private _preloadCachedImages;
1264
- addToCart(goodId: number, goodType: string, quantity: number, instanceId: string, externalSource: boolean): Promise<string>;
1265
+ addToCart(goodId: number, goodType: string, quantity: number, instanceId: string, externalSource: boolean): Promise<ArticleFullObject | string>;
1265
1266
  handleAnswersReceived(): void;
1266
1267
  getGoogleTranslation(sourceLang: string, targetLang: string, list: string[]): Promise<string>;
1267
1268
  getExternalSourceFromId(externalSourceId: number): ExternalSource;
@@ -2960,6 +2961,7 @@ declare class HomedecoratorComponent implements OnInit, OnDestroy {
2960
2961
  private _sceneService;
2961
2962
  private _webWorkerService;
2962
2963
  private _configurationPresetLoadService;
2964
+ private _injector;
2963
2965
  generalFilterOrders: FilterOrder[];
2964
2966
  purchaseFilterOrders: FilterOrder[];
2965
2967
  logisticsFilterOrders: FilterOrder[];
@@ -2982,7 +2984,7 @@ declare class HomedecoratorComponent implements OnInit, OnDestroy {
2982
2984
  private _settings;
2983
2985
  private _eventService;
2984
2986
  constructor(appService: HomedecoratorAppService, // don't remove this, needs to be created on a high level
2985
- controllerService: HomedecoratorConnectorService, appState: AppStateService, presetsService: PresetsService, screenAnalysis: ScreenSizeAnalysisService, _iconRegistry: MatIconRegistry, _domSanitizer: DomSanitizer, _messageService: MessageBusService, _homedecoratorService: HomedecoratorService, _parentEventService: HomedecoratorAppEventService, _ownEventService: HomedecoratorAppEventService, _integrationService: IntegrationService, _sceneService: SceneService, _webWorkerService: WebWorkerService, _configurationPresetLoadService: ConfigurationPresetLoadService);
2987
+ controllerService: HomedecoratorConnectorService, appState: AppStateService, presetsService: PresetsService, screenAnalysis: ScreenSizeAnalysisService, _iconRegistry: MatIconRegistry, _domSanitizer: DomSanitizer, _messageService: MessageBusService, _homedecoratorService: HomedecoratorService, _parentEventService: HomedecoratorAppEventService, _ownEventService: HomedecoratorAppEventService, _integrationService: IntegrationService, _sceneService: SceneService, _webWorkerService: WebWorkerService, _configurationPresetLoadService: ConfigurationPresetLoadService, _injector: Injector);
2986
2988
  ngOnInit(): Promise<void>;
2987
2989
  ngOnDestroy(): void;
2988
2990
  registerCustomIcons(): void;
@@ -2994,7 +2996,7 @@ declare class HomedecoratorComponent implements OnInit, OnDestroy {
2994
2996
  private _startWithPreset;
2995
2997
  private _setCommunication;
2996
2998
  private _initConnection;
2997
- static ɵfac: i0.ɵɵFactoryDeclaration<HomedecoratorComponent, [null, null, null, null, null, null, null, null, null, { optional: true; skipSelf: true; }, { optional: true; self: true; }, null, null, null, null]>;
2999
+ static ɵfac: i0.ɵɵFactoryDeclaration<HomedecoratorComponent, [null, null, null, null, null, null, null, null, null, { optional: true; skipSelf: true; }, { optional: true; self: true; }, null, null, null, null, null]>;
2998
3000
  static ɵcmp: i0.ɵɵComponentDeclaration<HomedecoratorComponent, "co-homedecorator", never, { "generalFilterOrders": { "alias": "generalFilterOrders"; "required": false; }; "purchaseFilterOrders": { "alias": "purchaseFilterOrders"; "required": false; }; "logisticsFilterOrders": { "alias": "logisticsFilterOrders"; "required": false; }; "initCommunication": { "alias": "initCommunication"; "required": false; }; "projectToLoad": { "alias": "projectToLoad"; "required": false; }; "shareButton": { "alias": "shareButton"; "required": false; }; "loadWithConfigurationPreset": { "alias": "loadWithConfigurationPreset"; "required": false; }; "settings": { "alias": "settings"; "required": false; }; }, {}, never, never, false, never>;
2999
3001
  }
3000
3002
 
@@ -4123,6 +4125,8 @@ declare class WallService implements OnDestroy {
4123
4125
  getAllInWallItems(): InWallItem[];
4124
4126
  getClosestWall(itemX: number, itemZ: number, ignoreVisible?: boolean): Wall;
4125
4127
  splitWall(wall: Wall, corner: Corner): void;
4128
+ /** Picks the wall whose closest point (clamped to the segment) is nearest to (x, z). */
4129
+ private _closestWallForPoint;
4126
4130
  updatePrevWall(wallId: string, prevWallId: string): void;
4127
4131
  updateNextWall(wallId: string, nextWallId: string): void;
4128
4132
  createNewWall(start: Corner, end: Corner, height: number, thickness: number, frontColor?: ColorRepresentation, backColor?: ColorRepresentation, frontTexture?: Texture, backTexture?: Texture): Wall;
@@ -4130,6 +4134,10 @@ declare class WallService implements OnDestroy {
4130
4134
  addCornersForIntersections(): void;
4131
4135
  mergeWithIntersected(corner: Corner): boolean;
4132
4136
  removeWall(wall: Wall): void;
4137
+ /** Merges two collinear walls around a degree-2 corner into a single wall. */
4138
+ joinCollinearWallsAt(corner: Corner): void;
4139
+ /** True when the two walls are in line through 'corner' (angle ~180°). */
4140
+ private _areCollinearThroughCorner;
4133
4141
  updateWallHeights(newHeight: number): void;
4134
4142
  resetRoomWalls(): void;
4135
4143
  updateWalls(): void;
@@ -6207,7 +6215,7 @@ declare class RenderService implements OnDestroy {
6207
6215
  private _appEventService;
6208
6216
  private _dictionaryService;
6209
6217
  renderImageChanged: BehaviorSubject<string>;
6210
- renderImageError: BehaviorSubject<string>;
6218
+ renderImageError: Subject<string>;
6211
6219
  blenderRenderStarted: Subject<boolean>;
6212
6220
  renderUpdateImageChanged: BehaviorSubject<{
6213
6221
  image: string;
@@ -6552,6 +6560,7 @@ declare class FloorplanRenderService implements OnDestroy {
6552
6560
  removeTempWall(): void;
6553
6561
  private _clear;
6554
6562
  private _drawGrid;
6563
+ private _drawBackground;
6555
6564
  private _drawRooms;
6556
6565
  private _pickDrawRoomId;
6557
6566
  private _drawWallsWithNoRoom;
@@ -6660,15 +6669,6 @@ declare class FloorplannerComponent implements AfterViewInit, OnDestroy {
6660
6669
  private _subs;
6661
6670
  private _selectedFloor;
6662
6671
  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
6672
  private _cameraZoom;
6673
6673
  private _lastTouchPoint;
6674
6674
  private _readyToDraw;
@@ -6683,6 +6683,7 @@ declare class FloorplannerComponent implements AfterViewInit, OnDestroy {
6683
6683
  handleDecimalsChoice(decimals: number): void;
6684
6684
  draw(): void;
6685
6685
  private _requestDraw;
6686
+ private _clearBackground;
6686
6687
  showStartMessage(): void;
6687
6688
  resizeView(): void;
6688
6689
  reset(): void;
@@ -6713,9 +6714,7 @@ declare class FloorplannerComponent implements AfterViewInit, OnDestroy {
6713
6714
  private _checkMoveWallOrCorner;
6714
6715
  private _moveSelectedCorner;
6715
6716
  private _moveSelectedWall;
6716
- private _drawBackground;
6717
6717
  private _handleWindowResize;
6718
- private _clear;
6719
6718
  private _updateWallPosition;
6720
6719
  private _scale;
6721
6720
  private _draw;
@@ -8046,8 +8045,6 @@ declare class UploadModelDialogComponent implements AfterViewInit {
8046
8045
  }
8047
8046
 
8048
8047
  declare class ModelUploaderComponent {
8049
- settingsService: HomedecoratorSettingsService;
8050
- private _messageService;
8051
8048
  fileUploadInput: ElementRef;
8052
8049
  fileUploaded: EventEmitter<UploadFileData>;
8053
8050
  file: File | null;
@@ -8056,7 +8053,6 @@ declare class ModelUploaderComponent {
8056
8053
  uploadError: string;
8057
8054
  private _maxFileSize;
8058
8055
  private _allowedFiles;
8059
- constructor(settingsService: HomedecoratorSettingsService, _messageService: MessageBusService);
8060
8056
  onChange(event: any): void;
8061
8057
  upload(fileExtension: string): Promise<void>;
8062
8058
  fileToArrayBuffer(file: File): Promise<ArrayBuffer>;
@@ -8782,8 +8778,8 @@ declare class DrawDialogComponent implements OnDestroy, OnInit, AfterViewInit {
8782
8778
  handleMouseMove(event: MouseEvent): void;
8783
8779
  handleMouseUp(event: MouseEvent): void;
8784
8780
  handleMouseLeave(event: MouseEvent): void;
8785
- clickingZoom(option: string): void;
8786
8781
  handleMouseWheel(event: WheelEvent): void;
8782
+ handleContextMenu(event: MouseEvent): boolean;
8787
8783
  getEventLocation(e: any): {
8788
8784
  x: any;
8789
8785
  y: any;
@@ -9408,8 +9404,6 @@ declare class DialogModule {
9408
9404
  }
9409
9405
 
9410
9406
  declare class HomedecoratorModule {
9411
- private _injector;
9412
- constructor(_injector: Injector);
9413
9407
  static ɵfac: i0.ɵɵFactoryDeclaration<HomedecoratorModule, never>;
9414
9408
  static ɵmod: i0.ɵɵNgModuleDeclaration<HomedecoratorModule, [typeof HomedecoratorComponent], [typeof i3.CommonModule, typeof ProgressBarModule, typeof LoadingOverlayModule, typeof HdLoaderModule, typeof ExportDialogModule, typeof InfoDialogModule, typeof PluginsModule, typeof DialogModule, typeof i10$2.A11yModule, typeof i25.ProductConfiguratorModule, typeof i6.CoreComponentsTranslationModule, typeof i25.LiteSelectorModule], [typeof HomedecoratorComponent]>;
9415
9409
  static ɵinj: i0.ɵɵInjectorDeclaration<HomedecoratorModule>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@colijnit/homedecorator",
3
- "version": "262.1.3",
3
+ "version": "262.1.5",
4
4
  "description": "Homedecorator application based on 262 version of iOne backend",
5
5
  "repository": "npm/npm",
6
6
  "author": "Colijn IT",
@@ -10,14 +10,19 @@
10
10
  "@angular/common": ">=20.0.0",
11
11
  "@angular/core": ">=20.0.0",
12
12
  "@colijnit/catalog": ">=262.1.0",
13
- "@colijnit/articleapi": ">=262.1.0",
13
+ "@colijnit/articleapi": ">=262.1.4",
14
14
  "@colijnit/configurator": ">=262.1.0",
15
15
  "@colijnit/configuratorapi": ">=262.1.0",
16
16
  "@colijnit/corecomponents_v12": ">=262.1.0",
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",