@osamash/floor-planner 1.0.0

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.
Files changed (142) hide show
  1. package/README.md +1 -0
  2. package/dist/floor-planner.css +1 -0
  3. package/dist/floor-planner.es.js +33222 -0
  4. package/dist/floor-planner.umd.js +87 -0
  5. package/dist/types/helpers/default-plan.d.ts +53 -0
  6. package/dist/types/helpers/index.d.ts +2 -0
  7. package/dist/types/index.d.ts +6 -0
  8. package/dist/types/react-planner/ReactPlanner.d.ts +10 -0
  9. package/dist/types/react-planner/ReactPlannerLoader.d.ts +2 -0
  10. package/dist/types/react-planner/catalog/catalog.d.ts +62 -0
  11. package/dist/types/react-planner/catalog/factories/AreaFactory.d.ts +24 -0
  12. package/dist/types/react-planner/catalog/factories/WallFactory.d.ts +26 -0
  13. package/dist/types/react-planner/catalog/factories/area-factory-3d.d.ts +3 -0
  14. package/dist/types/react-planner/catalog/factories/index.d.ts +8 -0
  15. package/dist/types/react-planner/catalog/factories/wall-factory-3d.d.ts +3 -0
  16. package/dist/types/react-planner/catalog/index.d.ts +3 -0
  17. package/dist/types/react-planner/catalog/properties/PropertyCheckbox.d.ts +9 -0
  18. package/dist/types/react-planner/catalog/properties/PropertyColor.d.ts +9 -0
  19. package/dist/types/react-planner/catalog/properties/PropertyEnum.d.ts +9 -0
  20. package/dist/types/react-planner/catalog/properties/PropertyHidden.d.ts +1 -0
  21. package/dist/types/react-planner/catalog/properties/PropertyLengthMeasure.d.ts +11 -0
  22. package/dist/types/react-planner/catalog/properties/PropertyNumber.d.ts +10 -0
  23. package/dist/types/react-planner/catalog/properties/PropertyReadOnly.d.ts +9 -0
  24. package/dist/types/react-planner/catalog/properties/PropertyString.d.ts +9 -0
  25. package/dist/types/react-planner/catalog/properties/PropertyToggle.d.ts +9 -0
  26. package/dist/types/react-planner/catalog/properties/index.d.ts +22 -0
  27. package/dist/types/react-planner/catalog/properties/shared-property-style.d.ts +6 -0
  28. package/dist/types/react-planner/catalog-view/CatalogBreadcrumb.d.ts +5 -0
  29. package/dist/types/react-planner/catalog-view/CatalogItem.d.ts +5 -0
  30. package/dist/types/react-planner/catalog-view/CatalogList.d.ts +10 -0
  31. package/dist/types/react-planner/catalog-view/CatalogPageItem.d.ts +6 -0
  32. package/dist/types/react-planner/catalog-view/CatalogTurnBackPageItem.d.ts +5 -0
  33. package/dist/types/react-planner/class/area.d.ts +31 -0
  34. package/dist/types/react-planner/class/group.d.ts +45 -0
  35. package/dist/types/react-planner/class/guide.d.ts +25 -0
  36. package/dist/types/react-planner/class/hole.d.ts +47 -0
  37. package/dist/types/react-planner/class/index.d.ts +23 -0
  38. package/dist/types/react-planner/class/item.d.ts +61 -0
  39. package/dist/types/react-planner/class/layer.d.ts +45 -0
  40. package/dist/types/react-planner/class/line.d.ts +76 -0
  41. package/dist/types/react-planner/class/project.d.ts +105 -0
  42. package/dist/types/react-planner/class/vertex.d.ts +34 -0
  43. package/dist/types/react-planner/components/Button.d.ts +7 -0
  44. package/dist/types/react-planner/components/ContainerDimensions.d.ts +14 -0
  45. package/dist/types/react-planner/components/Content.d.ts +8 -0
  46. package/dist/types/react-planner/components/ContentContainer.d.ts +9 -0
  47. package/dist/types/react-planner/components/ContentTitle.d.ts +7 -0
  48. package/dist/types/react-planner/components/FormColorInput.d.ts +2 -0
  49. package/dist/types/react-planner/components/FormLabel.d.ts +6 -0
  50. package/dist/types/react-planner/components/FormNumberInput.d.ts +14 -0
  51. package/dist/types/react-planner/components/FormSelect.d.ts +6 -0
  52. package/dist/types/react-planner/components/FormTextInput.d.ts +6 -0
  53. package/dist/types/react-planner/components/PropertyLengthMeasure.d.ts +11 -0
  54. package/dist/types/react-planner/components/PropertyString.d.ts +10 -0
  55. package/dist/types/react-planner/components/SearchInput.d.ts +11 -0
  56. package/dist/types/react-planner/constants.d.ts +237 -0
  57. package/dist/types/react-planner/footer-bar/FooterContentButton.d.ts +11 -0
  58. package/dist/types/react-planner/footer-bar/FooterToggleButton.d.ts +9 -0
  59. package/dist/types/react-planner/footer-bar/Footerbar.d.ts +2 -0
  60. package/dist/types/react-planner/footer-bar/index.d.ts +4 -0
  61. package/dist/types/react-planner/header-bar/Headerbar.d.ts +6 -0
  62. package/dist/types/react-planner/hooks/useScreenshotBeforeUnload.d.ts +4 -0
  63. package/dist/types/react-planner/models.d.ts +214 -0
  64. package/dist/types/react-planner/plugins/autosave.d.ts +2 -0
  65. package/dist/types/react-planner/plugins/index.d.ts +8 -0
  66. package/dist/types/react-planner/plugins/keyboard.d.ts +2 -0
  67. package/dist/types/react-planner/sidebar/Panel.d.ts +8 -0
  68. package/dist/types/react-planner/sidebar/PanelElementEditor.d.ts +6 -0
  69. package/dist/types/react-planner/sidebar/PanelGroupEditor.d.ts +5 -0
  70. package/dist/types/react-planner/sidebar/Sidebar.d.ts +6 -0
  71. package/dist/types/react-planner/sidebar/panel-element-editor/AttributesEditor.d.ts +8 -0
  72. package/dist/types/react-planner/sidebar/panel-element-editor/ElementEditor.d.ts +8 -0
  73. package/dist/types/react-planner/sidebar/panel-element-editor/HoleAttributesEditor.d.ts +8 -0
  74. package/dist/types/react-planner/sidebar/panel-element-editor/ItemAttributesEditor.d.ts +8 -0
  75. package/dist/types/react-planner/sidebar/panel-element-editor/LineAttributesEditor.d.ts +8 -0
  76. package/dist/types/react-planner/sidebar/panel-element-editor/PanelElementEditorEmpty.d.ts +2 -0
  77. package/dist/types/react-planner/toolbar/Popup.d.ts +11 -0
  78. package/dist/types/react-planner/toolbar/Toolbar.d.ts +6 -0
  79. package/dist/types/react-planner/toolbar/ToolbarButton.d.ts +10 -0
  80. package/dist/types/react-planner/toolbar/ToolbarScreenshotButton.d.ts +5 -0
  81. package/dist/types/react-planner/translator/en.d.ts +80 -0
  82. package/dist/types/react-planner/translator/translator.d.ts +10 -0
  83. package/dist/types/react-planner/utils/area-polygon.d.ts +5 -0
  84. package/dist/types/react-planner/utils/browser.d.ts +2 -0
  85. package/dist/types/react-planner/utils/convert-units/convert.d.ts +40 -0
  86. package/dist/types/react-planner/utils/convert-units/definitions/apparentPower.d.ts +46 -0
  87. package/dist/types/react-planner/utils/convert-units/definitions/area.d.ts +87 -0
  88. package/dist/types/react-planner/utils/convert-units/definitions/current.d.ts +32 -0
  89. package/dist/types/react-planner/utils/convert-units/definitions/digital.d.ts +87 -0
  90. package/dist/types/react-planner/utils/convert-units/definitions/each.d.ts +26 -0
  91. package/dist/types/react-planner/utils/convert-units/definitions/energy.d.ts +60 -0
  92. package/dist/types/react-planner/utils/convert-units/definitions/frequency.d.ts +74 -0
  93. package/dist/types/react-planner/utils/convert-units/definitions/illuminance.d.ts +31 -0
  94. package/dist/types/react-planner/utils/convert-units/definitions/length.d.ts +80 -0
  95. package/dist/types/react-planner/utils/convert-units/definitions/mass.d.ts +73 -0
  96. package/dist/types/react-planner/utils/convert-units/definitions/partsPer.d.ts +40 -0
  97. package/dist/types/react-planner/utils/convert-units/definitions/power.d.ts +46 -0
  98. package/dist/types/react-planner/utils/convert-units/definitions/pressure.d.ts +73 -0
  99. package/dist/types/react-planner/utils/convert-units/definitions/reactiveEnergy.d.ts +46 -0
  100. package/dist/types/react-planner/utils/convert-units/definitions/reactivePower.d.ts +46 -0
  101. package/dist/types/react-planner/utils/convert-units/definitions/speed.d.ts +52 -0
  102. package/dist/types/react-planner/utils/convert-units/definitions/temperature.d.ts +48 -0
  103. package/dist/types/react-planner/utils/convert-units/definitions/time.d.ts +81 -0
  104. package/dist/types/react-planner/utils/convert-units/definitions/voltage.d.ts +32 -0
  105. package/dist/types/react-planner/utils/convert-units/definitions/volume.d.ts +192 -0
  106. package/dist/types/react-planner/utils/convert-units/definitions/volumeFlowRate.d.ts +276 -0
  107. package/dist/types/react-planner/utils/convert-units/index.d.ts +26 -0
  108. package/dist/types/react-planner/utils/convert-units/percentError.d.ts +1 -0
  109. package/dist/types/react-planner/utils/geometry.d.ts +161 -0
  110. package/dist/types/react-planner/utils/get-edges-of-subgraphs.d.ts +3 -0
  111. package/dist/types/react-planner/utils/graph-cycles.d.ts +9 -0
  112. package/dist/types/react-planner/utils/graph-inner-cycles.d.ts +6 -0
  113. package/dist/types/react-planner/utils/graph.d.ts +19 -0
  114. package/dist/types/react-planner/utils/history.d.ts +4 -0
  115. package/dist/types/react-planner/utils/id-broker.d.ts +4 -0
  116. package/dist/types/react-planner/utils/immutable-diff-patch.d.ts +8 -0
  117. package/dist/types/react-planner/utils/index.d.ts +22 -0
  118. package/dist/types/react-planner/utils/math.d.ts +3 -0
  119. package/dist/types/react-planner/utils/name-generator.d.ts +3 -0
  120. package/dist/types/react-planner/utils/objects-utils.d.ts +2 -0
  121. package/dist/types/react-planner/utils/screenshot.d.ts +1 -0
  122. package/dist/types/react-planner/utils/snap-scene.d.ts +2 -0
  123. package/dist/types/react-planner/utils/snap.d.ts +17 -0
  124. package/dist/types/react-planner/utils/threeCSG.es6.d.ts +41 -0
  125. package/dist/types/react-planner/utils/zoom.d.ts +8 -0
  126. package/dist/types/react-planner/viewer2d/Area.d.ts +8 -0
  127. package/dist/types/react-planner/viewer2d/GridHorizontalStreak.d.ts +7 -0
  128. package/dist/types/react-planner/viewer2d/GridVerticalStreak.d.ts +7 -0
  129. package/dist/types/react-planner/viewer2d/Grids.d.ts +5 -0
  130. package/dist/types/react-planner/viewer2d/Group.d.ts +9 -0
  131. package/dist/types/react-planner/viewer2d/Item.d.ts +9 -0
  132. package/dist/types/react-planner/viewer2d/Layer.d.ts +9 -0
  133. package/dist/types/react-planner/viewer2d/Line.d.ts +10 -0
  134. package/dist/types/react-planner/viewer2d/Ruler.d.ts +7 -0
  135. package/dist/types/react-planner/viewer2d/Scene.d.ts +9 -0
  136. package/dist/types/react-planner/viewer2d/Snap.d.ts +7 -0
  137. package/dist/types/react-planner/viewer2d/State.d.ts +6 -0
  138. package/dist/types/react-planner/viewer2d/Vertex.d.ts +6 -0
  139. package/dist/types/react-planner/viewer2d/Viewer2D.d.ts +8 -0
  140. package/dist/types/shared-style.d.ts +105 -0
  141. package/dist/types/store/ReactPlannerStore.d.ts +111 -0
  142. package/package.json +92 -0
@@ -0,0 +1,53 @@
1
+ export declare const DefaultPlan: {
2
+ unit: string;
3
+ layers: {
4
+ "layer-1": {
5
+ id: string;
6
+ altitude: number;
7
+ order: number;
8
+ opacity: number;
9
+ name: string;
10
+ visible: boolean;
11
+ vertices: {};
12
+ lines: {};
13
+ holes: {};
14
+ areas: {};
15
+ items: {};
16
+ selected: {
17
+ vertices: never[];
18
+ lines: never[];
19
+ holes: never[];
20
+ areas: never[];
21
+ items: never[];
22
+ };
23
+ };
24
+ };
25
+ grids: {
26
+ h1: {
27
+ id: string;
28
+ type: string;
29
+ properties: {
30
+ step: number;
31
+ colors: string[];
32
+ };
33
+ };
34
+ v1: {
35
+ id: string;
36
+ type: string;
37
+ properties: {
38
+ step: number;
39
+ colors: string[];
40
+ };
41
+ };
42
+ };
43
+ selectedLayer: string;
44
+ groups: {};
45
+ width: number;
46
+ height: number;
47
+ meta: {};
48
+ guides: {
49
+ horizontal: {};
50
+ vertical: {};
51
+ circular: {};
52
+ };
53
+ };
@@ -0,0 +1,2 @@
1
+ import { type ClassValue } from "clsx";
2
+ export declare function cn(...inputs: ClassValue[]): string;
@@ -0,0 +1,6 @@
1
+ import ReactPlanner from "./react-planner/ReactPlanner";
2
+ import ReactPlannerLoader from "./react-planner/ReactPlannerLoader";
3
+ import convertUnits, { type Unit } from "./react-planner/utils/convert-units";
4
+ import Catalog, { AreaFactory, WallFactory } from "./react-planner/catalog";
5
+ export { Catalog, AreaFactory, WallFactory, convertUnits, type Unit, ReactPlannerLoader, };
6
+ export default ReactPlanner;
@@ -0,0 +1,10 @@
1
+ import { type Plan as PlanType } from "../store/ReactPlannerStore";
2
+ import "./react-planner.css";
3
+ interface ReactPlannerProps {
4
+ catalog: any;
5
+ plan: PlanType;
6
+ onBack?: () => void;
7
+ onSave?: (data: any) => void;
8
+ }
9
+ declare const ReactPlanner: ({ plan, catalog, onSave, onBack }: ReactPlannerProps) => import("react/jsx-runtime").JSX.Element;
10
+ export default ReactPlanner;
@@ -0,0 +1,2 @@
1
+ declare const ReactPlannerLoader: () => import("react/jsx-runtime").JSX.Element;
2
+ export default ReactPlannerLoader;
@@ -0,0 +1,62 @@
1
+ import type { Unit } from "../utils/convert-units";
2
+ import * as Three from "three";
3
+ interface LengthMeasure {
4
+ length: number;
5
+ unit: Unit;
6
+ }
7
+ interface ItemProperties {
8
+ altitude: {
9
+ label: string;
10
+ type: "length-measure";
11
+ defaultValue: LengthMeasure;
12
+ };
13
+ }
14
+ interface ItemInfo {
15
+ title: string;
16
+ tag: string[];
17
+ description: string;
18
+ image: string;
19
+ visibility: Record<string, boolean>;
20
+ }
21
+ interface Render2DFunction {
22
+ (element: any, layer: any, scene?: any): JSX.Element;
23
+ }
24
+ interface Render3DFunction {
25
+ (element: any, layer: any, scene: any): Promise<Three.Object3D>;
26
+ }
27
+ export interface CatalogElement {
28
+ name: string;
29
+ prototype: string;
30
+ info: ItemInfo;
31
+ properties: ItemProperties;
32
+ render2D: Render2DFunction;
33
+ render3D: Render3DFunction;
34
+ }
35
+ export interface CatalogCategory {
36
+ name: string;
37
+ label: string;
38
+ elements: CatalogElement[];
39
+ categories: CatalogCategory[];
40
+ }
41
+ export default class Catalog {
42
+ private elements;
43
+ categories: Record<string, CatalogCategory>;
44
+ private propertyTypes;
45
+ unit: Unit;
46
+ constructor(unit?: Unit);
47
+ getElement(type: string): CatalogElement;
48
+ getCategory(categoryName: string): CatalogCategory;
49
+ getPropertyType(type: string): any;
50
+ registerElement(json: any): void;
51
+ registerMultipleElements(elementArray: any[]): void;
52
+ registerPropertyType(type: string, Viewer: any, Editor: any): void;
53
+ registerMultiplePropertyType(propertyTypeArray: [string, any, any][]): void;
54
+ validateElement(json: any): boolean;
55
+ hasElement(type: string): boolean;
56
+ registerCategory(name: string, label: string, childs: any[]): CatalogCategory | null;
57
+ addToCategory(name: string, child: any): void;
58
+ categoryHasElement(categoryName: string, elementName: string): boolean;
59
+ validateCategory(name: string, _: string): boolean;
60
+ hasCategory(categoryName: string): boolean;
61
+ }
62
+ export {};
@@ -0,0 +1,24 @@
1
+ export default function AreaFactory(name: string, info: any, textures: any): {
2
+ name: string;
3
+ prototype: string;
4
+ info: any;
5
+ properties: {
6
+ patternColor: {
7
+ label: string;
8
+ type: string;
9
+ defaultValue: string;
10
+ };
11
+ thickness: {
12
+ label: string;
13
+ type: string;
14
+ defaultValue: {
15
+ length: number;
16
+ _length: number;
17
+ _unit: string;
18
+ };
19
+ };
20
+ };
21
+ render2D: (element: any, layer: any, scene: any) => import("react/jsx-runtime").JSX.Element;
22
+ render3D: (element: any, layer: any, scene: any) => Promise<import("three").Mesh<import("three").ShapeGeometry, import("three").MeshPhongMaterial, import("three").Object3DEventMap>>;
23
+ updateRender3D: (element: any, layer: any, scene: any, mesh: any, oldElement: any, differences: any, selfDestroy: any, selfBuild: any) => any;
24
+ };
@@ -0,0 +1,26 @@
1
+ export default function WallFactory(name: string, info: any, textures: any): {
2
+ name: string;
3
+ prototype: string;
4
+ info: any;
5
+ properties: {
6
+ height: {
7
+ label: string;
8
+ type: string;
9
+ defaultValue: {
10
+ length: number;
11
+ };
12
+ };
13
+ thickness: {
14
+ label: string;
15
+ type: string;
16
+ defaultValue: {
17
+ length: number;
18
+ _length: number;
19
+ _unit: string;
20
+ };
21
+ };
22
+ };
23
+ render2D: (element: any, layer: any, scene: any) => import("react/jsx-runtime").JSX.Element;
24
+ render3D: (element: any, layer: any, scene: any) => Promise<import("three").Group<import("three").Object3DEventMap>>;
25
+ updateRender3D: (element: any, layer: any, scene: any, mesh: any, oldElement: any, differences: any, selfDestroy: any, selfBuild: any) => any;
26
+ };
@@ -0,0 +1,3 @@
1
+ import { MeshPhongMaterial, ShapeGeometry, Mesh } from "three";
2
+ export declare function createArea(element: any, layer: any, scene: any, textures: any): Promise<Mesh<ShapeGeometry, MeshPhongMaterial, import("three").Object3DEventMap>>;
3
+ export declare function updatedArea(element: any, layer: any, scene: any, textures: any, mesh: any, oldElement: any, differences: any, selfDestroy: any, selfBuild: any): any;
@@ -0,0 +1,8 @@
1
+ import WallFactory from "./WallFactory";
2
+ import AreaFactory from "./AreaFactory";
3
+ export { WallFactory, AreaFactory };
4
+ declare const _default: {
5
+ WallFactory: typeof WallFactory;
6
+ AreaFactory: typeof AreaFactory;
7
+ };
8
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import { Group } from "three";
2
+ export declare function buildWall(element: any, layer: any, scene: any, textures: any): Promise<Group<import("three").Object3DEventMap>>;
3
+ export declare function updatedWall(element: any, layer: any, scene: any, textures: any, mesh: any, oldElement: any, differences: any, selfDestroy: any, selfBuild: any): any;
@@ -0,0 +1,3 @@
1
+ import Catalog from "./catalog";
2
+ export * from "./factories";
3
+ export default Catalog;
@@ -0,0 +1,9 @@
1
+ interface PropertyCheckboxProps {
2
+ value: any;
3
+ onUpdate: (value: any) => void;
4
+ configs: any;
5
+ sourceElement: any;
6
+ internalState: any;
7
+ }
8
+ export default function PropertyCheckbox({ value, onUpdate, configs, sourceElement, internalState, }: PropertyCheckboxProps): import("react/jsx-runtime").JSX.Element;
9
+ export {};
@@ -0,0 +1,9 @@
1
+ interface PropertyColorProps {
2
+ value: any;
3
+ onUpdate: (value: any) => void;
4
+ configs: any;
5
+ sourceElement: any;
6
+ internalState: any;
7
+ }
8
+ declare function PropertyColor({ value, onUpdate, configs, sourceElement, internalState, }: PropertyColorProps): import("react/jsx-runtime").JSX.Element;
9
+ export default PropertyColor;
@@ -0,0 +1,9 @@
1
+ interface PropertyEnumProps {
2
+ value: any;
3
+ onUpdate: (value: any) => void;
4
+ configs: any;
5
+ sourceElement: any;
6
+ internalState: any;
7
+ }
8
+ export default function PropertyEnum({ value, onUpdate, configs, sourceElement, internalState, }: PropertyEnumProps): import("react/jsx-runtime").JSX.Element;
9
+ export {};
@@ -0,0 +1 @@
1
+ export default function PropertyHidden(): null;
@@ -0,0 +1,11 @@
1
+ import { Map } from "immutable";
2
+ interface PropertyLengthMeasureProps {
3
+ value: Map<string, any>;
4
+ onUpdate: (value: Map<string, any>) => void;
5
+ onValid?: (isValid: boolean) => void;
6
+ configs: any;
7
+ sourceElement: any;
8
+ internalState: any;
9
+ }
10
+ export default function PropertyLengthMeasure({ value, onUpdate, onValid, configs, sourceElement, internalState, }: PropertyLengthMeasureProps): import("react/jsx-runtime").JSX.Element;
11
+ export {};
@@ -0,0 +1,10 @@
1
+ interface PropertyNumberProps {
2
+ value: any;
3
+ onUpdate: (value: any) => void;
4
+ onValid?: (event: any) => void;
5
+ configs: any;
6
+ sourceElement: any;
7
+ internalState: any;
8
+ }
9
+ export default function PropertyNumber({ value, onUpdate, onValid, configs, sourceElement, internalState, }: PropertyNumberProps): import("react/jsx-runtime").JSX.Element;
10
+ export {};
@@ -0,0 +1,9 @@
1
+ interface PropertyReadOnlyProps {
2
+ value: any;
3
+ onUpdate: (value: any) => void;
4
+ configs: any;
5
+ sourceElement?: any;
6
+ internalState?: any;
7
+ }
8
+ export default function PropertyReadOnly({ value, configs, }: PropertyReadOnlyProps): import("react/jsx-runtime").JSX.Element;
9
+ export {};
@@ -0,0 +1,9 @@
1
+ interface PropertyStringProps {
2
+ value: any;
3
+ onUpdate: (value: any) => void;
4
+ configs: any;
5
+ sourceElement: any;
6
+ internalState: any;
7
+ }
8
+ export default function PropertyString({ value, onUpdate, configs, sourceElement, internalState, }: PropertyStringProps): import("react/jsx-runtime").JSX.Element;
9
+ export {};
@@ -0,0 +1,9 @@
1
+ interface PropertyToggleProps {
2
+ value: any;
3
+ onUpdate: (value: any) => void;
4
+ configs: any;
5
+ sourceElement: any;
6
+ internalState: any;
7
+ }
8
+ export default function PropertyToggle({ value, onUpdate, configs, sourceElement, internalState, }: PropertyToggleProps): import("react/jsx-runtime").JSX.Element;
9
+ export {};
@@ -0,0 +1,22 @@
1
+ import PropertyColor from "./PropertyColor";
2
+ import PropertyEnum from "./PropertyEnum";
3
+ import PropertyString from "./PropertyString";
4
+ import PropertyNumber from "./PropertyNumber";
5
+ import PropertyLengthMeasure from "./PropertyLengthMeasure";
6
+ import PropertyToggle from "./PropertyToggle";
7
+ import PropertyCheckbox from "./PropertyCheckbox";
8
+ import PropertyHidden from "./PropertyHidden";
9
+ import PropertyReadOnly from "./PropertyReadOnly";
10
+ export { PropertyColor, PropertyEnum, PropertyString, PropertyNumber, PropertyLengthMeasure, PropertyToggle, PropertyCheckbox, PropertyHidden, PropertyReadOnly, };
11
+ declare const _default: {
12
+ PropertyColor: typeof PropertyColor;
13
+ PropertyEnum: typeof PropertyEnum;
14
+ PropertyString: typeof PropertyString;
15
+ PropertyNumber: typeof PropertyNumber;
16
+ PropertyLengthMeasure: typeof PropertyLengthMeasure;
17
+ PropertyToggle: typeof PropertyToggle;
18
+ PropertyCheckbox: typeof PropertyCheckbox;
19
+ PropertyHidden: typeof PropertyHidden;
20
+ PropertyReadOnly: typeof PropertyReadOnly;
21
+ };
22
+ export default _default;
@@ -0,0 +1,6 @@
1
+ import type { CSSProperties } from "react";
2
+ declare const PropertyStyle: {
3
+ tableStyle: CSSProperties;
4
+ firstTdStyle: CSSProperties;
5
+ };
6
+ export default PropertyStyle;
@@ -0,0 +1,5 @@
1
+ interface CatalogBreadcrumbProps {
2
+ names: any[];
3
+ }
4
+ declare const CatalogBreadcrumb: ({ names }: CatalogBreadcrumbProps) => import("react/jsx-runtime").JSX.Element;
5
+ export default CatalogBreadcrumb;
@@ -0,0 +1,5 @@
1
+ interface CatalogItemProps {
2
+ element: any;
3
+ }
4
+ declare const CatalogItem: ({ element }: CatalogItemProps) => import("react/jsx-runtime").JSX.Element;
5
+ export default CatalogItem;
@@ -0,0 +1,10 @@
1
+ import { type CSSProperties } from "react";
2
+ import type Catalog from "../catalog/catalog";
3
+ interface CatalogListProps {
4
+ width: number;
5
+ height: number;
6
+ catalog: Catalog;
7
+ style?: CSSProperties;
8
+ }
9
+ declare const CatalogList: ({ width, height, style, catalog }: CatalogListProps) => import("react/jsx-runtime").JSX.Element;
10
+ export default CatalogList;
@@ -0,0 +1,6 @@
1
+ interface CatalogPageItemProps {
2
+ page: any;
3
+ oldPage: any;
4
+ }
5
+ declare const CatalogPageItem: ({ page, oldPage }: CatalogPageItemProps) => import("react/jsx-runtime").JSX.Element;
6
+ export default CatalogPageItem;
@@ -0,0 +1,5 @@
1
+ interface CatalogTurnBackPageItemProps {
2
+ page: any;
3
+ }
4
+ declare const CatalogTurnBackPageItem: ({ page }: CatalogTurnBackPageItemProps) => import("react/jsx-runtime").JSX.Element;
5
+ export default CatalogTurnBackPageItem;
@@ -0,0 +1,31 @@
1
+ declare class Area {
2
+ static add(state: any, layerID: any, type: any, verticesCoords: any, catalog: any): {
3
+ updatedState: any;
4
+ area: undefined;
5
+ };
6
+ static select(state: any, layerID: any, areaID: any): {
7
+ updatedState: any;
8
+ };
9
+ static remove(state: any, layerID: any, areaID: any): {
10
+ updatedState: any;
11
+ };
12
+ static unselect(state: any, layerID: any, areaID: any): {
13
+ updatedState: any;
14
+ };
15
+ static setProperties(state: any, layerID: any, areaID: any, properties: any): {
16
+ updatedState: any;
17
+ };
18
+ static setJsProperties(state: any, layerID: any, areaID: any, properties: any): {
19
+ updatedState: any;
20
+ };
21
+ static updateProperties(state: any, layerID: any, areaID: any, properties: any): {
22
+ updatedState: any;
23
+ };
24
+ static updateJsProperties(state: any, layerID: any, areaID: any, properties: any): {
25
+ updatedState: any;
26
+ };
27
+ static setAttributes(state: any): {
28
+ updatedState: any;
29
+ };
30
+ }
31
+ export { Area as default };
@@ -0,0 +1,45 @@
1
+ declare class Group {
2
+ static select(state: any, groupID: any): {
3
+ updatedState: any;
4
+ };
5
+ static unselect(state: any, groupID: any): {
6
+ updatedState: any;
7
+ };
8
+ static create(state: any): {
9
+ updatedState: any;
10
+ };
11
+ static createFromSelectedElements(state: any): {
12
+ updatedState: any;
13
+ };
14
+ static addElement(state: any, groupID: any, layerID: any, elementPrototype: any, elementID: any): {
15
+ updatedState: any;
16
+ };
17
+ static setBarycenter(state: any, groupID: any, x: any, y: any): {
18
+ updatedState: any;
19
+ };
20
+ static reloadBaricenter(state: any, groupID: any): {
21
+ updatedState: any;
22
+ };
23
+ static removeElement(state: any, groupID: any, layerID: any, elementPrototype: any, elementID: any): {
24
+ updatedState: any;
25
+ };
26
+ static setAttributes(state: any, groupID: any, attributes: any): {
27
+ updatedState: any;
28
+ };
29
+ static setProperties(state: any, groupID: any, properties: any): {
30
+ updatedState: any;
31
+ };
32
+ static remove(state: any, groupID: any): {
33
+ updatedState: any;
34
+ };
35
+ static removeAndDeleteElements(state: any, groupID: any): {
36
+ updatedState: any;
37
+ };
38
+ static translate(state: any, groupID: any, x: any, y: any): {
39
+ updatedState: any;
40
+ };
41
+ static rotate(state: any, groupID: any, newAlpha: any): {
42
+ updatedState: any;
43
+ };
44
+ }
45
+ export default Group;
@@ -0,0 +1,25 @@
1
+ declare class HorizontalGuide {
2
+ static create(state: any, coordinate: any): {
3
+ updatedState: any;
4
+ };
5
+ static remove(state: any, hGuideID: any): {
6
+ updatedState: any;
7
+ };
8
+ }
9
+ declare class VerticalGuide {
10
+ static create(state: any, coordinate: any): {
11
+ updatedState: any;
12
+ };
13
+ static remove(state: any, vGuideID: any): {
14
+ updatedState: any;
15
+ };
16
+ }
17
+ declare class CircularGuide {
18
+ }
19
+ export { HorizontalGuide, VerticalGuide, CircularGuide };
20
+ declare const _default: {
21
+ HorizontalGuide: typeof HorizontalGuide;
22
+ VerticalGuide: typeof VerticalGuide;
23
+ CircularGuide: typeof CircularGuide;
24
+ };
25
+ export default _default;
@@ -0,0 +1,47 @@
1
+ declare class Hole {
2
+ static create(state: any, layerID: any, type: any, lineID: any, offset: any, properties?: any): {
3
+ updatedState: any;
4
+ hole: any;
5
+ };
6
+ static select(state: any, layerID: any, holeID: any): {
7
+ updatedState: any;
8
+ };
9
+ static remove(state: any, layerID: any, holeID: any): {
10
+ updatedState: any;
11
+ };
12
+ static unselect(state: any, layerID: any, holeID: any): {
13
+ updatedState: any;
14
+ };
15
+ static selectToolDrawingHole(state: any, sceneComponentType: any): {
16
+ updatedState: any;
17
+ };
18
+ static updateDrawingHole(state: any, layerID: any, x: any, y: any): {
19
+ updatedState: any;
20
+ };
21
+ static endDrawingHole(state: any, layerID: any, x: any, y: any): {
22
+ updatedState: any;
23
+ };
24
+ static beginDraggingHole(state: any, layerID: any, holeID: any, x: any, y: any): {
25
+ updatedState: any;
26
+ };
27
+ static updateDraggingHole(state: any, x: any, y: any): any;
28
+ static endDraggingHole(state: any, x: any, y: any): {
29
+ updatedState: any;
30
+ };
31
+ static setProperties(state: any, layerID: any, holeID: any, properties: any): {
32
+ updatedState: any;
33
+ };
34
+ static setJsProperties(state: any, layerID: any, holeID: any, properties: any): {
35
+ updatedState: any;
36
+ };
37
+ static updateProperties(state: any, layerID: any, holeID: any, properties: any): {
38
+ updatedState: any;
39
+ };
40
+ static updateJsProperties(state: any, layerID: any, holeID: any, properties: any): {
41
+ updatedState: any;
42
+ };
43
+ static setAttributes(state: any, layerID: any, holeID: any, holesAttributes: any): {
44
+ updatedState: any;
45
+ };
46
+ }
47
+ export { Hole as default };
@@ -0,0 +1,23 @@
1
+ import Project from "./project";
2
+ import Group from "./group";
3
+ import Layer from "./layer";
4
+ import Line from "./line";
5
+ import Hole from "./hole";
6
+ import Vertex from "./vertex";
7
+ import Area from "./area";
8
+ import Item from "./item";
9
+ import { HorizontalGuide, VerticalGuide } from "./guide";
10
+ export { Project, Group, Layer, Line, Hole, Vertex, Area, Item, HorizontalGuide, VerticalGuide, };
11
+ declare const _default: {
12
+ Project: typeof Project;
13
+ Group: typeof Group;
14
+ Layer: typeof Layer;
15
+ Line: typeof Line;
16
+ Hole: typeof Hole;
17
+ Vertex: typeof Vertex;
18
+ Area: typeof Area;
19
+ Item: typeof Item;
20
+ HorizontalGuide: typeof HorizontalGuide;
21
+ VerticalGuide: typeof VerticalGuide;
22
+ };
23
+ export default _default;
@@ -0,0 +1,61 @@
1
+ declare class Item {
2
+ static create(state: any, layerID: any, type: any, x: any, y: any, width: any, height: any, rotation: any): {
3
+ updatedState: any;
4
+ item: any;
5
+ };
6
+ static select(state: any, layerID: any, itemID: any): {
7
+ updatedState: any;
8
+ };
9
+ static remove(state: any, layerID: any, itemID: any): {
10
+ updatedState: any;
11
+ };
12
+ static unselect(state: any, layerID: string, itemID: string): {
13
+ updatedState: any;
14
+ };
15
+ static selectToolDrawingItem(state: any, sceneComponentType: string): {
16
+ updatedState: any;
17
+ };
18
+ static updateDrawingItem(state: any, layerID: string, x: number, y: number): {
19
+ updatedState: any;
20
+ };
21
+ static endDrawingItem(state: any, layerID: string, x: number, y: number): {
22
+ updatedState: any;
23
+ };
24
+ static beginDraggingItem(state: any, layerID: string, itemID: string, x: number, y: number): {
25
+ updatedState: any;
26
+ };
27
+ static updateDraggingItem(state: any, x: number, y: number): {
28
+ updatedState: any;
29
+ };
30
+ static endDraggingItem(state: any, x: any, y: any): {
31
+ updatedState: any;
32
+ };
33
+ static beginRotatingItem(state: any, layerID: any, itemID: any, x: number, y: number): {
34
+ updatedState: any;
35
+ };
36
+ static updateRotatingItem(state: any, x: any, y: any): {
37
+ updatedState: any;
38
+ };
39
+ static endRotatingItem(state: any, x: any, y: any): {
40
+ updatedState: any;
41
+ };
42
+ static setProperties(state: any, layerID: any, itemID: any, properties: any): {
43
+ updatedState: any;
44
+ };
45
+ static setJsProperties(state: any, layerID: any, itemID: any, properties: any): {
46
+ updatedState: any;
47
+ };
48
+ static updateProperties(state: any, layerID: any, itemID: any, properties: any): {
49
+ updatedState: any;
50
+ };
51
+ static updateJsProperties(state: any, layerID: any, itemID: any, properties: any): {
52
+ updatedState: any;
53
+ };
54
+ static setAttributes(state: any, layerID: any, itemID: any, itemAttributes: any): {
55
+ updatedState: any;
56
+ };
57
+ static setJsAttributes(state: any, layerID: any, itemID: any, itemAttributes: any): {
58
+ updatedState: any;
59
+ };
60
+ }
61
+ export { Item as default };