@osamash/floor-planner 1.2.0 → 1.2.2

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.
@@ -1,6 +1,6 @@
1
1
  import ReactPlanner from "./react-planner/ReactPlanner";
2
2
  import ReactPlannerLoader from "./react-planner/ReactPlannerLoader";
3
3
  import convertUnits, { type Unit } from "./react-planner/utils/convert-units";
4
- import Catalog, { AreaFactory, WallFactory, SurfaceFactory } from "./react-planner/catalog";
5
- export { Catalog, AreaFactory, WallFactory, SurfaceFactory, convertUnits, type Unit, ReactPlannerLoader, };
4
+ import Catalog, { AreaFactory, ItemFactory, WallFactory, SurfaceFactory } from "./react-planner/catalog";
5
+ export { Catalog, AreaFactory, ItemFactory, WallFactory, SurfaceFactory, convertUnits, type Unit, ReactPlannerLoader, };
6
6
  export default ReactPlanner;
@@ -0,0 +1,20 @@
1
+ import * as THREE from "three";
2
+ export default function (json: any): {
3
+ name: any;
4
+ prototype: any;
5
+ info: {
6
+ visibility?: {
7
+ catalog: boolean;
8
+ layerElementsVisible: boolean;
9
+ } | undefined;
10
+ title: any;
11
+ category: any;
12
+ tag: any;
13
+ description: any;
14
+ image: any;
15
+ };
16
+ properties: any;
17
+ render2D: (element: any, layer: any, scene: any) => import("react/jsx-runtime").JSX.Element;
18
+ render3D: (element: any, layer: any, scene: any) => Promise<THREE.Object3D<THREE.Object3DEventMap>>;
19
+ updateRender3D: (element: any, layer: any, scene: any, mesh: any, oldElement: any, differences: any, selfDestroy: any, selfBuild: any) => any;
20
+ };
@@ -1,9 +1,11 @@
1
1
  import AreaFactory from "./AreaFactory";
2
+ import ItemFactory from "./ItemFactory";
2
3
  import WallFactory from "./WallFactory";
3
4
  import SurfaceFactory from "./SurfaceFactory";
4
- export { AreaFactory, WallFactory, SurfaceFactory };
5
+ export { AreaFactory, ItemFactory, WallFactory, SurfaceFactory };
5
6
  declare const _default: {
6
7
  AreaFactory: typeof AreaFactory;
8
+ ItemFactory: typeof ItemFactory;
7
9
  WallFactory: typeof WallFactory;
8
10
  SurfaceFactory: typeof SurfaceFactory;
9
11
  };
@@ -0,0 +1,4 @@
1
+ import * as THREE from "three";
2
+ export declare function loadObjWithMaterial(mtlFile: string, objFile: string, imgPath: string): Promise<THREE.Object3D>;
3
+ export declare function load3dsModel(filePath: string, texturePath: string): Promise<THREE.Object3D>;
4
+ export declare function loadGLB(filePath: string): Promise<THREE.Object3D>;
@@ -1,8 +1,5 @@
1
- export declare const PERCENTAGE_ZOOM: {
2
- [key: string]: number;
3
- };
4
- export declare const SVG_MIN_ZOOM = 0.1;
5
- export declare const SVG_MAX_ZOOM = 5.5;
1
+ export declare const MIN_ZOOM = 0.6;
2
+ export declare const MAX_ZOOM = 5;
3
+ export declare const SVG_MIN_ZOOM = 0.6;
4
+ export declare const SVG_MAX_ZOOM = 5;
6
5
  export declare function zoomToPercentage(zoom: number): number;
7
- export declare function percentageToZoom(percentage: number): number;
8
- export declare function fixPercentage(percent: number, state: string): number;
@@ -1,7 +1,9 @@
1
+ import React from "react";
1
2
  interface RulerProps {
2
3
  length: number;
3
4
  unit: string;
4
5
  transform: string;
5
6
  }
6
- export default function Ruler({ length, unit, transform }: RulerProps): import("react/jsx-runtime").JSX.Element;
7
- export {};
7
+ declare function Ruler({ length, unit, transform }: RulerProps): import("react/jsx-runtime").JSX.Element;
8
+ declare const _default: React.MemoExoticComponent<typeof Ruler>;
9
+ export default _default;
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "files": [
12
12
  "dist"
13
13
  ],
14
- "version": "1.2.0",
14
+ "version": "1.2.2",
15
15
  "type": "module",
16
16
  "scripts": {
17
17
  "dev": "vite",