@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,45 @@
1
+ declare class Layer {
2
+ static create(state: any, name?: string, altitude?: number): {
3
+ updatedState: any;
4
+ };
5
+ static select(state: any, layerID: string): {
6
+ updatedState: any;
7
+ };
8
+ static selectElement(state: any, layerID: string, elementPrototype: string, elementID: string): {
9
+ updatedState: any;
10
+ };
11
+ static unselect(state: any, layerID: string, elementPrototype: string, elementID: string): {
12
+ updatedState: any;
13
+ };
14
+ static unselectAll(state: any, layerID: string): {
15
+ updatedState: any;
16
+ };
17
+ static setProperties(state: any, layerID: string, properties: any): {
18
+ updatedState: any;
19
+ };
20
+ static remove(state: any, layerID: string): {
21
+ updatedState: any;
22
+ };
23
+ static removeElement(state: any, layerID: string, elementPrototype: string, elementID: string): {
24
+ updatedState: any;
25
+ };
26
+ static detectAndUpdateAreas(state: any, layerID: string): {
27
+ updatedState: any;
28
+ };
29
+ static removeZeroLengthLines(state: any, layerID: string): {
30
+ updatedState: any;
31
+ };
32
+ static mergeEqualsVertices(state: any, layerID: string, vertexID: string): {
33
+ updatedState: any;
34
+ };
35
+ static setPropertiesOnSelected(state: any, layerID: string, properties: any): {
36
+ updatedState: any;
37
+ };
38
+ static updatePropertiesOnSelected(state: any, layerID: string, properties: any): {
39
+ updatedState: any;
40
+ };
41
+ static setAttributesOnSelected(state: any, layerID: string, attributes: any): {
42
+ updatedState: any;
43
+ };
44
+ }
45
+ export default Layer;
@@ -0,0 +1,76 @@
1
+ import { List } from "immutable";
2
+ declare class Line {
3
+ static create(state: any, layerID: string, type: string, x0: number, y0: number, x1: number, y1: number, properties?: any): {
4
+ updatedState: any;
5
+ line: any;
6
+ };
7
+ static select(state: any, layerID: string, lineID: string): {
8
+ updatedState: any;
9
+ };
10
+ static remove(state: any, layerID: string, lineID: string): {
11
+ updatedState: any;
12
+ };
13
+ static unselect(state: any, layerID: string, lineID: string): {
14
+ updatedState: any;
15
+ };
16
+ static split(state: any, layerID: string, lineID: string, x: number, y: number): {
17
+ updatedState: any;
18
+ lines: List<any>;
19
+ };
20
+ static addFromPoints(state: any, layerID: string, type: string, points: List<{
21
+ x: number;
22
+ y: number;
23
+ }>, properties: any, holes: any[]): {
24
+ updatedState: any;
25
+ lines: List<Line>;
26
+ };
27
+ static createAvoidingIntersections(state: any, layerID: string, type: string, x0: number, y0: number, x1: number, y1: number, oldProperties?: any, oldHoles?: any): {
28
+ updatedState: any;
29
+ lines: List<Line>;
30
+ };
31
+ static replaceVertex(state: any, layerID: string, lineID: string, vertexIndex: number, x: number, y: number): {
32
+ updatedState: any;
33
+ line: any;
34
+ vertex: any;
35
+ };
36
+ static selectToolDrawingLine(state: any, sceneComponentType: string): {
37
+ updatedState: any;
38
+ };
39
+ static beginDrawingLine(state: any, layerID: string, x: number, y: number): {
40
+ updatedState: any;
41
+ };
42
+ static updateDrawingLine(state: any, x: number, y: number): {
43
+ updatedState: any;
44
+ };
45
+ static endDrawingLine(state: any, x: number, y: number): {
46
+ updatedState: any;
47
+ };
48
+ static beginDraggingLine(state: any, layerID: string, lineID: string, x: number, y: number): {
49
+ updatedState: any;
50
+ };
51
+ static updateDraggingLine(state: any, x: number, y: number): {
52
+ updatedState: any;
53
+ };
54
+ static endDraggingLine(state: any, x: number, y: number): {
55
+ updatedState: any;
56
+ };
57
+ static setProperties(state: any, layerID: string, lineID: string, properties: any): {
58
+ updatedState: any;
59
+ };
60
+ static setJsProperties(state: any, layerID: string, lineID: string, properties: any): {
61
+ updatedState: any;
62
+ };
63
+ static updateProperties(state: any, layerID: string, lineID: string, properties: any[]): {
64
+ updatedState: any;
65
+ };
66
+ static updateJsProperties(state: any, layerID: string, lineID: string, properties: any): {
67
+ updatedState: any;
68
+ };
69
+ static setAttributes(state: any, layerID: string, lineID: string, lineAttributes: any): {
70
+ updatedState: any;
71
+ };
72
+ static setVerticesCoords(state: any, layerID: string, lineID: string, x1: number, y1: number, x2: number, y2: number): {
73
+ updatedState: any;
74
+ };
75
+ }
76
+ export { Line as default };
@@ -0,0 +1,105 @@
1
+ declare class Project {
2
+ static setAlterate(state: any): {
3
+ updatedState: any;
4
+ };
5
+ static openCatalog(state: any): {
6
+ updatedState: any;
7
+ };
8
+ static newProject(state: any): {
9
+ updatedState: any;
10
+ };
11
+ static loadProject(state: any, sceneJSON: any): {
12
+ updatedState: any;
13
+ };
14
+ static setProperties(state: any, layerID: string, properties: any): {
15
+ updatedState: any;
16
+ };
17
+ static updateProperties(state: any, layerID: string, properties: any): {
18
+ updatedState: any;
19
+ };
20
+ static setItemsAttributes(state: any, attributes: any): {
21
+ updatedState: any;
22
+ };
23
+ static setLinesAttributes(state: any, attributes: any): {
24
+ updatedState: any;
25
+ };
26
+ static setHolesAttributes(state: any, attributes: any): {
27
+ updatedState: any;
28
+ };
29
+ static unselectAll(state: any): {
30
+ updatedState: any;
31
+ };
32
+ static remove(state: any): {
33
+ updatedState: any;
34
+ };
35
+ static undo(state: any): {
36
+ updatedState: any;
37
+ };
38
+ static redo(state: any): {
39
+ updatedState: any;
40
+ };
41
+ static rollback(state: any): {
42
+ updatedState: any;
43
+ };
44
+ static setProjectProperties(state: any, properties: any): {
45
+ updatedState: any;
46
+ };
47
+ static openProjectConfigurator(state: any): {
48
+ updatedState: any;
49
+ };
50
+ static initCatalog(state: any, catalog: any): {
51
+ updatedState: any;
52
+ };
53
+ static updateMouseCoord(state: any, coords: any): {
54
+ updatedState: any;
55
+ };
56
+ static updateZoomScale(state: any, scale: any): {
57
+ updatedState: any;
58
+ };
59
+ static toggleSnap(state: any, mask: any): {
60
+ updatedState: any;
61
+ };
62
+ static throwError(state: any, error: any): {
63
+ updatedState: any;
64
+ };
65
+ static throwWarning(state: any, warning: any): {
66
+ updatedState: any;
67
+ };
68
+ static copyProperties(state: any, properties: any): {
69
+ updatedState: any;
70
+ };
71
+ static pasteProperties(state: any): {
72
+ updatedState: any;
73
+ };
74
+ static pushLastSelectedCatalogElementToHistory(state: any, element: any): {
75
+ updatedState: any;
76
+ };
77
+ static changeCatalogPage(state: any, oldPage: any, newPage: any): {
78
+ updatedState: any;
79
+ };
80
+ static goBackToCatalogPage(state: any, newPage: any): {
81
+ updatedState: any;
82
+ };
83
+ static setMode(state: any, mode: any): {
84
+ updatedState: any;
85
+ };
86
+ static addHorizontalGuide(state: any, coordinate: any): {
87
+ updatedState: any;
88
+ };
89
+ static addVerticalGuide(state: any, coordinate: any): {
90
+ updatedState: any;
91
+ };
92
+ static addCircularGuide(state: any, x: number, y: number, radius: number): {
93
+ updatedState: any;
94
+ };
95
+ static removeHorizontalGuide(state: any, guideID: string): {
96
+ updatedState: any;
97
+ };
98
+ static removeVerticalGuide(state: any, guideID: string): {
99
+ updatedState: any;
100
+ };
101
+ static removeCircularGuide(state: any, guideID: string): {
102
+ updatedState: any;
103
+ };
104
+ }
105
+ export default Project;
@@ -0,0 +1,34 @@
1
+ declare class Vertex {
2
+ static add(state: any, layerID: any, x: any, y: any, relatedPrototype: any, relatedID: any): {
3
+ updatedState: any;
4
+ vertex: any;
5
+ };
6
+ static setAttributes(state: any, layerID: any, vertexID: any, vertexAttributes: any): {
7
+ updatedState: any;
8
+ };
9
+ static addElement(state: any, layerID: any, vertexID: any, elementPrototype: any, elementID: any): {
10
+ updatedState: any;
11
+ };
12
+ static removeElement(state: any, layerID: any, vertexID: any, elementPrototype: any, elementID: any): {
13
+ updatedState: any;
14
+ };
15
+ static select(state: any, layerID: any, vertexID: any): {
16
+ updatedState: any;
17
+ };
18
+ static unselect(state: any, layerID: any, vertexID: any): {
19
+ updatedState: any;
20
+ };
21
+ static remove(state: any, layerID: any, vertexID: any, relatedPrototype: any, relatedID: any, forceRemove?: boolean): {
22
+ updatedState: any;
23
+ };
24
+ static beginDraggingVertex(state: any, layerID: any, vertexID: any): {
25
+ updatedState: any;
26
+ };
27
+ static updateDraggingVertex(state: any, x: any, y: any): {
28
+ updatedState: any;
29
+ };
30
+ static endDraggingVertex(state: any): {
31
+ updatedState: any;
32
+ };
33
+ }
34
+ export { Vertex as default };
@@ -0,0 +1,7 @@
1
+ import { type ButtonHTMLAttributes, type ReactNode } from "react";
2
+ export interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
3
+ size?: "small" | "normal" | "large";
4
+ styleHover?: React.CSSProperties;
5
+ children: ReactNode;
6
+ }
7
+ export default function Button({ type, size, style, styleHover, children, ...rest }: ButtonProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,14 @@
1
+ import React, { type ReactElement } from "react";
2
+ interface Dimensions {
3
+ top: number;
4
+ right: number;
5
+ bottom: number;
6
+ left: number;
7
+ width: number;
8
+ height: number;
9
+ }
10
+ interface ContainerDimensionsProps {
11
+ children: ((dims: Dimensions) => ReactElement | null) | ReactElement;
12
+ }
13
+ declare const ContainerDimensions: React.FC<ContainerDimensionsProps>;
14
+ export default ContainerDimensions;
@@ -0,0 +1,8 @@
1
+ import type Catalog from "../catalog/catalog";
2
+ interface ContentProps {
3
+ width: number;
4
+ height: number;
5
+ catalog: Catalog;
6
+ }
7
+ declare function Content({ width, height, catalog }: ContentProps): import("react/jsx-runtime").JSX.Element | null;
8
+ export default Content;
@@ -0,0 +1,9 @@
1
+ import React from "react";
2
+ interface ContentContainerProps {
3
+ children: React.ReactNode;
4
+ width: number;
5
+ height: number;
6
+ style?: React.CSSProperties;
7
+ }
8
+ export default function ContentContainer({ children, width, height, style, }: ContentContainerProps): import("react/jsx-runtime").JSX.Element;
9
+ export {};
@@ -0,0 +1,7 @@
1
+ import React from "react";
2
+ interface ContentTitleProps extends React.HTMLAttributes<HTMLHeadingElement> {
3
+ children: React.ReactNode;
4
+ style?: React.CSSProperties;
5
+ }
6
+ export default function ContentTitle({ children, style, ...props }: ContentTitleProps): import("react/jsx-runtime").JSX.Element;
7
+ export {};
@@ -0,0 +1,2 @@
1
+ import { type FormTextInputProps } from "./FormTextInput";
2
+ export default function FormColorInput({ onChange, ...props }: FormTextInputProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,6 @@
1
+ import React from "react";
2
+ interface FormLabelProps extends React.LabelHTMLAttributes<HTMLLabelElement> {
3
+ style?: React.CSSProperties;
4
+ }
5
+ export default function FormLabel({ children, style, className, ...props }: FormLabelProps): import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -0,0 +1,14 @@
1
+ import React from "react";
2
+ interface FormNumberInputProps {
3
+ value?: number | string;
4
+ style?: React.CSSProperties;
5
+ onChange: (e: React.ChangeEvent<HTMLInputElement>) => void;
6
+ onValid?: (event: Event) => void;
7
+ onInvalid?: (event: Event) => void;
8
+ min?: number;
9
+ max?: number;
10
+ precision?: number;
11
+ placeholder?: string;
12
+ }
13
+ declare const FormNumberInput: ({ value, min, max, precision, onChange, onValid, onInvalid, style, placeholder, }: FormNumberInputProps) => import("react/jsx-runtime").JSX.Element;
14
+ export default FormNumberInput;
@@ -0,0 +1,6 @@
1
+ import { type CSSProperties, type SelectHTMLAttributes } from "react";
2
+ interface FormSelectProps extends Omit<SelectHTMLAttributes<HTMLSelectElement>, "style"> {
3
+ style?: CSSProperties;
4
+ }
5
+ declare function FormSelect({ children, style, ...props }: FormSelectProps): import("react/jsx-runtime").JSX.Element;
6
+ export default FormSelect;
@@ -0,0 +1,6 @@
1
+ import { type CSSProperties, type InputHTMLAttributes } from "react";
2
+ export interface FormTextInputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "style"> {
3
+ style?: CSSProperties;
4
+ }
5
+ declare const FormTextInput: ({ style, ...props }: FormTextInputProps) => import("react/jsx-runtime").JSX.Element;
6
+ export default FormTextInput;
@@ -0,0 +1,11 @@
1
+ import { Map as ImmutableMap } from "immutable";
2
+ interface PropertyLengthMeasureProps {
3
+ value: ImmutableMap<any, any>;
4
+ onUpdate: (v: any) => void;
5
+ onValid?: (event: Event) => void;
6
+ configs: Record<string, any>;
7
+ sourceElement?: any;
8
+ internalState?: any;
9
+ }
10
+ declare const PropertyLengthMeasure: ({ value, onUpdate, onValid, configs, sourceElement, internalState, }: PropertyLengthMeasureProps) => import("react/jsx-runtime").JSX.Element;
11
+ export default PropertyLengthMeasure;
@@ -0,0 +1,10 @@
1
+ interface PropertyStringProps {
2
+ value: any;
3
+ onUpdate: (v: any) => void;
4
+ onValid?: (event: Event) => void;
5
+ configs: Record<string, any>;
6
+ sourceElement?: any;
7
+ internalState?: any;
8
+ }
9
+ declare const PropertyString: ({ value, onUpdate, configs, sourceElement, internalState, }: PropertyStringProps) => import("react/jsx-runtime").JSX.Element;
10
+ export default PropertyString;
@@ -0,0 +1,11 @@
1
+ interface SearchFieldInterface {
2
+ term?: string;
3
+ placeholder?: string;
4
+ noSpacing?: boolean;
5
+ onClick?: () => false;
6
+ isStatic?: boolean;
7
+ hasDropDown?: boolean;
8
+ onSearch: (term: string, event: React.ChangeEvent<HTMLInputElement>) => void;
9
+ }
10
+ declare const SearchInput: ({ term, placeholder, noSpacing, onClick, isStatic, hasDropDown, onSearch, }: SearchFieldInterface) => import("react/jsx-runtime").JSX.Element;
11
+ export default SearchInput;
@@ -0,0 +1,237 @@
1
+ export declare const NEW_PROJECT = "NEW_PROJECT";
2
+ export declare const LOAD_PROJECT = "LOAD_PROJECT";
3
+ export declare const SAVE_PROJECT = "SAVE_PROJECT";
4
+ export declare const OPEN_CATALOG = "OPEN_CATALOG";
5
+ export declare const SELECT_TOOL_EDIT = "SELECT_TOOL_EDIT";
6
+ export declare const UNSELECT_ALL = "UNSELECT_ALL";
7
+ export declare const SET_PROPERTIES = "SET_PROPERTIES";
8
+ export declare const SET_ITEMS_ATTRIBUTES = "SET_ITEMS_ATTRIBUTES";
9
+ export declare const SET_LINES_ATTRIBUTES = "SET_LINES_ATTRIBUTES";
10
+ export declare const SET_HOLES_ATTRIBUTES = "SET_HOLES_ATTRIBUTES";
11
+ export declare const REMOVE = "REMOVE";
12
+ export declare const UNDO = "UNDO";
13
+ export declare const ROLLBACK = "ROLLBACK";
14
+ export declare const SET_PROJECT_PROPERTIES = "SET_PROJECT_PROPERTIES";
15
+ export declare const OPEN_PROJECT_CONFIGURATOR = "OPEN_PROJECT_CONFIGURATOR";
16
+ export declare const INIT_CATALOG = "INIT_CATALOG";
17
+ export declare const UPDATE_MOUSE_COORDS = "UPDATE_MOUSE_COORDS";
18
+ export declare const UPDATE_ZOOM_SCALE = "UPDATE_ZOOM_SCALE";
19
+ export declare const TOGGLE_SNAP = "TOGGLE_SNAP";
20
+ export declare const CHANGE_CATALOG_PAGE = "CHANGE_CATALOG_PAGE";
21
+ export declare const GO_BACK_TO_CATALOG_PAGE = "GO_BACK_TO_CATALOG_PAGE";
22
+ export declare const THROW_ERROR = "THROW_ERROR";
23
+ export declare const THROW_WARNING = "THROW_WARNING";
24
+ export declare const COPY_PROPERTIES = "COPY_PROPERTIES";
25
+ export declare const PASTE_PROPERTIES = "PASTE_PROPERTIES";
26
+ export declare const PUSH_LAST_SELECTED_CATALOG_ELEMENT_TO_HISTORY = "PUSH_LAST_SELECTED_CATALOG_ELEMENT_TO_HISTORY";
27
+ export declare const ALTERATE_STATE = "ALTERATE_STATE";
28
+ export declare const SET_MODE = "SET_MODE";
29
+ export declare const ADD_HORIZONTAL_GUIDE = "ADD_HORIZONTAL_GUIDE";
30
+ export declare const ADD_VERTICAL_GUIDE = "ADD_VERTICAL_GUIDE";
31
+ export declare const ADD_CIRCULAR_GUIDE = "ADD_CIRCULAR_GUIDE";
32
+ export declare const REMOVE_HORIZONTAL_GUIDE = "REMOVE_HORIZONTAL_GUIDE";
33
+ export declare const REMOVE_VERTICAL_GUIDE = "REMOVE_VERTICAL_GUIDE";
34
+ export declare const REMOVE_CIRCULAR_GUIDE = "REMOVE_CIRCULAR_GUIDE";
35
+ export declare const SELECT_TOOL_ZOOM_IN = "SELECT_TOOL_ZOOM_IN";
36
+ export declare const SELECT_TOOL_ZOOM_OUT = "SELECT_TOOL_ZOOM_OUT";
37
+ export declare const SELECT_TOOL_PAN = "SELECT_TOOL_PAN";
38
+ export declare const UPDATE_2D_CAMERA = "UPDATE_2D_CAMERA";
39
+ export declare const SELECT_TOOL_3D_VIEW = "SELECT_TOOL_3D_VIEW";
40
+ export declare const SELECT_TOOL_3D_FIRST_PERSON = "SELECT_TOOL_3D_FIRST_PERSON";
41
+ export declare const SELECT_TOOL_DRAWING_ITEM = "SELECT_TOOL_DRAWING_ITEM";
42
+ export declare const UPDATE_DRAWING_ITEM = "UPDATE_DRAWING_ITEM";
43
+ export declare const END_DRAWING_ITEM = "END_DRAWING_ITEM";
44
+ export declare const BEGIN_DRAGGING_ITEM = "BEGIN_DRAGGING_ITEM";
45
+ export declare const UPDATE_DRAGGING_ITEM = "UPDATE_DRAGGING_ITEM";
46
+ export declare const END_DRAGGING_ITEM = "END_DRAGGING_ITEM";
47
+ export declare const BEGIN_ROTATING_ITEM = "BEGIN_ROTATING_ITEM";
48
+ export declare const UPDATE_ROTATING_ITEM = "UPDATE_ROTATING_ITEM";
49
+ export declare const END_ROTATING_ITEM = "END_ROTATING_ITEM";
50
+ export declare const ADD_GROUP = "ADD_GROUP";
51
+ export declare const ADD_GROUP_FROM_SELECTED = "ADD_GROUP_FROM_SELECTED";
52
+ export declare const SELECT_GROUP = "SELECT_GROUP";
53
+ export declare const UNSELECT_GROUP = "UNSELECT_GROUP";
54
+ export declare const ADD_TO_GROUP = "ADD_TO_GROUP";
55
+ export declare const REMOVE_FROM_GROUP = "REMOVE_FROM_GROUP";
56
+ export declare const SET_GROUP_PROPERTIES = "SET_GROUP_PROPERTIES";
57
+ export declare const SET_GROUP_ATTRIBUTES = "SET_GROUP_ATTRIBUTES";
58
+ export declare const SET_GROUP_BARYCENTER = "SET_GROUP_BARYCENTER";
59
+ export declare const REMOVE_GROUP = "REMOVE_GROUP";
60
+ export declare const REMOVE_GROUP_AND_DELETE_ELEMENTS = "REMOVE_GROUP_AND_DELETE_ELEMENTS";
61
+ export declare const GROUP_TRANSLATE = "GROUP_TRANSLATE";
62
+ export declare const GROUP_ROTATE = "GROUP_ROTATE";
63
+ export declare const SELECT_HOLE = "SELECT_HOLE";
64
+ export declare const SELECT_AREA = "SELECT_AREA";
65
+ export declare const SELECT_ITEM = "SELECT_ITEM";
66
+ export declare const SELECT_LINE = "SELECT_LINE";
67
+ export declare const SELECT_TOOL_DRAWING_LINE = "SELECT_TOOL_DRAWING_LINE";
68
+ export declare const BEGIN_DRAWING_LINE = "BEGIN_DRAWING_LINE";
69
+ export declare const UPDATE_DRAWING_LINE = "UPDATE_DRAWING_LINE";
70
+ export declare const END_DRAWING_LINE = "END_DRAWING_LINE";
71
+ export declare const SELECT_TOOL_DRAWING_HOLE = "SELECT_TOOL_DRAWING_HOLE";
72
+ export declare const UPDATE_DRAWING_HOLE = "UPDATE_DRAWING_HOLE";
73
+ export declare const END_DRAWING_HOLE = "END_DRAWING_HOLE";
74
+ export declare const BEGIN_DRAGGING_LINE = "BEGIN_DRAGGING_LINE";
75
+ export declare const UPDATE_DRAGGING_LINE = "UPDATE_DRAGGING_LINE";
76
+ export declare const END_DRAGGING_LINE = "END_DRAGGING_LINE";
77
+ export declare const SELECT_TOOL_UPLOAD_IMAGE = "SELECT_TOOL_UPLOAD_IMAGE";
78
+ export declare const BEGIN_UPLOADING_IMAGE = "BEGIN_UPLOADING_IMAGE";
79
+ export declare const END_UPLOADING_IMAGE = "END_UPLOADING_IMAGE";
80
+ export declare const BEGIN_FITTING_IMAGE = "BEGIN_FITTING_IMAGE";
81
+ export declare const END_FITTING_IMAGE = "END_FITTING_IMAGE";
82
+ export declare const BEGIN_DRAGGING_HOLE = "BEGIN_DRAGGING_HOLE";
83
+ export declare const UPDATE_DRAGGING_HOLE = "UPDATE_DRAGGING_HOLE";
84
+ export declare const END_DRAGGING_HOLE = "END_DRAGGING_HOLE";
85
+ export declare const BEGIN_DRAGGING_VERTEX = "BEGIN_DRAGGING_VERTEX";
86
+ export declare const UPDATE_DRAGGING_VERTEX = "UPDATE_DRAGGING_VERTEX";
87
+ export declare const END_DRAGGING_VERTEX = "END_DRAGGING_VERTEX";
88
+ export declare const SET_LAYER_PROPERTIES = "SET_LAYER_PROPERTIES";
89
+ export declare const ADD_LAYER = "ADD_LAYER";
90
+ export declare const SELECT_LAYER = "SELECT_LAYER";
91
+ export declare const REMOVE_LAYER = "REMOVE_LAYER";
92
+ export declare const PROJECT_ACTIONS: {
93
+ NEW_PROJECT: string;
94
+ LOAD_PROJECT: string;
95
+ SAVE_PROJECT: string;
96
+ OPEN_CATALOG: string;
97
+ SELECT_TOOL_EDIT: string;
98
+ UNSELECT_ALL: string;
99
+ SET_PROPERTIES: string;
100
+ SET_ITEMS_ATTRIBUTES: string;
101
+ SET_LINES_ATTRIBUTES: string;
102
+ SET_HOLES_ATTRIBUTES: string;
103
+ REMOVE: string;
104
+ UNDO: string;
105
+ ROLLBACK: string;
106
+ SET_PROJECT_PROPERTIES: string;
107
+ OPEN_PROJECT_CONFIGURATOR: string;
108
+ INIT_CATALOG: string;
109
+ UPDATE_MOUSE_COORDS: string;
110
+ UPDATE_ZOOM_SCALE: string;
111
+ TOGGLE_SNAP: string;
112
+ CHANGE_CATALOG_PAGE: string;
113
+ GO_BACK_TO_CATALOG_PAGE: string;
114
+ THROW_ERROR: string;
115
+ THROW_WARNING: string;
116
+ COPY_PROPERTIES: string;
117
+ PASTE_PROPERTIES: string;
118
+ PUSH_LAST_SELECTED_CATALOG_ELEMENT_TO_HISTORY: string;
119
+ ALTERATE_STATE: string;
120
+ SET_MODE: string;
121
+ ADD_HORIZONTAL_GUIDE: string;
122
+ ADD_VERTICAL_GUIDE: string;
123
+ ADD_CIRCULAR_GUIDE: string;
124
+ REMOVE_HORIZONTAL_GUIDE: string;
125
+ REMOVE_VERTICAL_GUIDE: string;
126
+ REMOVE_CIRCULAR_GUIDE: string;
127
+ };
128
+ export declare const VIEWER2D_ACTIONS: {
129
+ SELECT_TOOL_ZOOM_IN: string;
130
+ SELECT_TOOL_ZOOM_OUT: string;
131
+ SELECT_TOOL_PAN: string;
132
+ UPDATE_2D_CAMERA: string;
133
+ };
134
+ export declare const VIEWER3D_ACTIONS: {
135
+ SELECT_TOOL_3D_VIEW: string;
136
+ SELECT_TOOL_3D_FIRST_PERSON: string;
137
+ };
138
+ export declare const ITEMS_ACTIONS: {
139
+ SELECT_ITEM: string;
140
+ SELECT_TOOL_DRAWING_ITEM: string;
141
+ UPDATE_DRAWING_ITEM: string;
142
+ END_DRAWING_ITEM: string;
143
+ BEGIN_DRAGGING_ITEM: string;
144
+ UPDATE_DRAGGING_ITEM: string;
145
+ END_DRAGGING_ITEM: string;
146
+ BEGIN_ROTATING_ITEM: string;
147
+ UPDATE_ROTATING_ITEM: string;
148
+ END_ROTATING_ITEM: string;
149
+ };
150
+ export declare const HOLE_ACTIONS: {
151
+ SELECT_HOLE: string;
152
+ SELECT_TOOL_DRAWING_HOLE: string;
153
+ UPDATE_DRAWING_HOLE: string;
154
+ END_DRAWING_HOLE: string;
155
+ BEGIN_DRAGGING_HOLE: string;
156
+ UPDATE_DRAGGING_HOLE: string;
157
+ END_DRAGGING_HOLE: string;
158
+ };
159
+ export declare const LINE_ACTIONS: {
160
+ SELECT_LINE: string;
161
+ SELECT_TOOL_DRAWING_LINE: string;
162
+ BEGIN_DRAWING_LINE: string;
163
+ UPDATE_DRAWING_LINE: string;
164
+ END_DRAWING_LINE: string;
165
+ BEGIN_DRAGGING_LINE: string;
166
+ UPDATE_DRAGGING_LINE: string;
167
+ END_DRAGGING_LINE: string;
168
+ };
169
+ export declare const AREA_ACTIONS: {
170
+ SELECT_AREA: string;
171
+ };
172
+ export declare const GROUP_ACTIONS: {
173
+ ADD_GROUP: string;
174
+ ADD_GROUP_FROM_SELECTED: string;
175
+ SELECT_GROUP: string;
176
+ UNSELECT_GROUP: string;
177
+ ADD_TO_GROUP: string;
178
+ REMOVE_FROM_GROUP: string;
179
+ SET_GROUP_PROPERTIES: string;
180
+ SET_GROUP_ATTRIBUTES: string;
181
+ SET_GROUP_BARYCENTER: string;
182
+ REMOVE_GROUP: string;
183
+ REMOVE_GROUP_AND_DELETE_ELEMENTS: string;
184
+ GROUP_TRANSLATE: string;
185
+ GROUP_ROTATE: string;
186
+ };
187
+ export declare const SCENE_ACTIONS: {
188
+ ADD_LAYER: string;
189
+ SET_LAYER_PROPERTIES: string;
190
+ SELECT_LAYER: string;
191
+ REMOVE_LAYER: string;
192
+ };
193
+ export declare const VERTEX_ACTIONS: {
194
+ BEGIN_DRAGGING_VERTEX: string;
195
+ UPDATE_DRAGGING_VERTEX: string;
196
+ END_DRAGGING_VERTEX: string;
197
+ };
198
+ export declare const MODE_IDLE = "MODE_IDLE";
199
+ export declare const MODE_2D_ZOOM_IN = "MODE_2D_ZOOM_IN";
200
+ export declare const MODE_2D_ZOOM_OUT = "MODE_2D_ZOOM_OUT";
201
+ export declare const MODE_2D_PAN = "MODE_2D_PAN";
202
+ export declare const MODE_3D_VIEW = "MODE_3D_VIEW";
203
+ export declare const MODE_3D_FIRST_PERSON = "MODE_3D_FIRST_PERSON";
204
+ export declare const MODE_WAITING_DRAWING_LINE = "MODE_WAITING_DRAWING_LINE";
205
+ export declare const MODE_DRAGGING_LINE = "MODE_DRAGGING_LINE";
206
+ export declare const MODE_DRAGGING_VERTEX = "MODE_DRAGGING_VERTEX";
207
+ export declare const MODE_DRAGGING_ITEM = "MODE_DRAGGING_ITEM";
208
+ export declare const MODE_DRAGGING_HOLE = "MODE_DRAGGING_HOLE";
209
+ export declare const MODE_DRAWING_LINE = "MODE_DRAWING_LINE";
210
+ export declare const MODE_DRAWING_HOLE = "MODE_DRAWING_HOLE";
211
+ export declare const MODE_DRAWING_ITEM = "MODE_DRAWING_ITEM";
212
+ export declare const MODE_ROTATING_ITEM = "MODE_ROTATING_ITEM";
213
+ export declare const MODE_UPLOADING_IMAGE = "MODE_UPLOADING_IMAGE";
214
+ export declare const MODE_FITTING_IMAGE = "MODE_FITTING_IMAGE";
215
+ export declare const MODE_VIEWING_CATALOG = "MODE_VIEWING_CATALOG";
216
+ export declare const MODE_CONFIGURING_PROJECT = "MODE_CONFIGURING_PROJECT";
217
+ export declare const MODE_SNAPPING: string[];
218
+ export declare const UNIT_MILLIMETER = "mm";
219
+ export declare const UNIT_CENTIMETER = "cm";
220
+ export declare const UNIT_METER = "m";
221
+ export declare const UNIT_INCH = "in";
222
+ export declare const UNIT_FOOT = "ft";
223
+ export declare const UNIT_MILE = "mi";
224
+ export declare const UNITS_LENGTH: string[];
225
+ export declare const EPSILON = 0.000001;
226
+ export declare const KEYBOARD_BUTTON_CODE: {
227
+ DELETE: number;
228
+ BACKSPACE: number;
229
+ ESC: number;
230
+ Z: number;
231
+ ALT: number;
232
+ C: number;
233
+ V: number;
234
+ CTRL: number;
235
+ ENTER: number;
236
+ TAB: number;
237
+ };
@@ -0,0 +1,11 @@
1
+ interface FooterContentButtonProps {
2
+ text: string;
3
+ textStyle?: React.CSSProperties;
4
+ icon?: () => JSX.Element;
5
+ iconStyle?: React.CSSProperties;
6
+ content: React.ReactNode;
7
+ title?: string;
8
+ titleStyle?: React.CSSProperties;
9
+ }
10
+ declare const FooterContentButton: ({ title, icon, textStyle, text, titleStyle, content, }: FooterContentButtonProps) => import("react/jsx-runtime").JSX.Element;
11
+ export default FooterContentButton;
@@ -0,0 +1,9 @@
1
+ interface FooterToggleButtonProps {
2
+ toggleOn: () => void;
3
+ toggleOff: () => void;
4
+ text: string;
5
+ toggleState: boolean;
6
+ title: string;
7
+ }
8
+ declare const FooterToggleButton: ({ text, title, toggleState, toggleOn, toggleOff, }: FooterToggleButtonProps) => import("react/jsx-runtime").JSX.Element;
9
+ export default FooterToggleButton;
@@ -0,0 +1,2 @@
1
+ declare const Footerbar: () => import("react/jsx-runtime").JSX.Element;
2
+ export default Footerbar;
@@ -0,0 +1,4 @@
1
+ import Footerbar from "./Footerbar";
2
+ import FooterToggleButton from "./FooterToggleButton";
3
+ import FooterContentButton from "./FooterContentButton";
4
+ export { Footerbar, FooterToggleButton, FooterContentButton };