@colijnit/inphoto 300.1.2 → 300.1.3

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
@@ -468,6 +468,7 @@ declare class InphotoSceneService implements OnDestroy {
468
468
  constructor(_objectsService: InphotoItemService);
469
469
  ngOnDestroy(): void;
470
470
  init(element: ElementRef<HTMLDivElement>): void;
471
+ resize(width: number, height: number): void;
471
472
  getSceneAsImage(): string;
472
473
  addObjectToScene(result: ArticleConfiguration): void;
473
474
  placeObject(object: Object3D): void;
@@ -742,9 +743,10 @@ declare class EditCanvasComponent implements AfterViewInit {
742
743
  stopDrawing(): void;
743
744
  undoLastStroke(color?: ColorPalette): void;
744
745
  clearColor(color: ColorPalette): void;
745
- private _syncLayersFromData;
746
746
  clearCanvas(): void;
747
747
  loadBackground(): void;
748
+ private _applyCanvasSize;
749
+ private _syncLayersFromData;
748
750
  private _getLayer;
749
751
  private _resizeAndReplayLayers;
750
752
  private _render;
@@ -11,6 +11,12 @@
11
11
  position: relative;
12
12
  width: 100%;
13
13
  height: 100%;
14
+ display: flex;
15
+ align-items: center;
16
+ align-self: center;
17
+ min-width: 100vw;
18
+ justify-content: space-around;
19
+ min-height: 100vh;
14
20
 
15
21
  canvas {
16
22
  width: 100%;
@@ -7,14 +7,18 @@
7
7
  .three-container {
8
8
  width: 100%;
9
9
  height: 100%;
10
- min-height: 100vh;
10
+ display: flex;
11
+ align-items: center;
12
+ align-self: center;
11
13
  min-width: 100vw;
14
+ justify-content: space-around;
15
+ min-height: 100vh;
12
16
 
13
17
  canvas {
14
18
  width: 100%;
15
19
  height: 100%;
16
- min-height: 100vh;
17
- min-width: 100vw;
20
+ //min-height: 100vh;
21
+ //min-width: 100vw;
18
22
  }
19
23
  }
20
24
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@colijnit/inphoto",
3
- "version": "300.1.2",
3
+ "version": "300.1.3",
4
4
  "description": "Colijn IT inphoto module for Angular 20",
5
5
  "repository": "npm/npm",
6
6
  "author": "Colijn IT",