@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.
- package/README.md +1 -0
- package/dist/floor-planner.css +1 -0
- package/dist/floor-planner.es.js +33222 -0
- package/dist/floor-planner.umd.js +87 -0
- package/dist/types/helpers/default-plan.d.ts +53 -0
- package/dist/types/helpers/index.d.ts +2 -0
- package/dist/types/index.d.ts +6 -0
- package/dist/types/react-planner/ReactPlanner.d.ts +10 -0
- package/dist/types/react-planner/ReactPlannerLoader.d.ts +2 -0
- package/dist/types/react-planner/catalog/catalog.d.ts +62 -0
- package/dist/types/react-planner/catalog/factories/AreaFactory.d.ts +24 -0
- package/dist/types/react-planner/catalog/factories/WallFactory.d.ts +26 -0
- package/dist/types/react-planner/catalog/factories/area-factory-3d.d.ts +3 -0
- package/dist/types/react-planner/catalog/factories/index.d.ts +8 -0
- package/dist/types/react-planner/catalog/factories/wall-factory-3d.d.ts +3 -0
- package/dist/types/react-planner/catalog/index.d.ts +3 -0
- package/dist/types/react-planner/catalog/properties/PropertyCheckbox.d.ts +9 -0
- package/dist/types/react-planner/catalog/properties/PropertyColor.d.ts +9 -0
- package/dist/types/react-planner/catalog/properties/PropertyEnum.d.ts +9 -0
- package/dist/types/react-planner/catalog/properties/PropertyHidden.d.ts +1 -0
- package/dist/types/react-planner/catalog/properties/PropertyLengthMeasure.d.ts +11 -0
- package/dist/types/react-planner/catalog/properties/PropertyNumber.d.ts +10 -0
- package/dist/types/react-planner/catalog/properties/PropertyReadOnly.d.ts +9 -0
- package/dist/types/react-planner/catalog/properties/PropertyString.d.ts +9 -0
- package/dist/types/react-planner/catalog/properties/PropertyToggle.d.ts +9 -0
- package/dist/types/react-planner/catalog/properties/index.d.ts +22 -0
- package/dist/types/react-planner/catalog/properties/shared-property-style.d.ts +6 -0
- package/dist/types/react-planner/catalog-view/CatalogBreadcrumb.d.ts +5 -0
- package/dist/types/react-planner/catalog-view/CatalogItem.d.ts +5 -0
- package/dist/types/react-planner/catalog-view/CatalogList.d.ts +10 -0
- package/dist/types/react-planner/catalog-view/CatalogPageItem.d.ts +6 -0
- package/dist/types/react-planner/catalog-view/CatalogTurnBackPageItem.d.ts +5 -0
- package/dist/types/react-planner/class/area.d.ts +31 -0
- package/dist/types/react-planner/class/group.d.ts +45 -0
- package/dist/types/react-planner/class/guide.d.ts +25 -0
- package/dist/types/react-planner/class/hole.d.ts +47 -0
- package/dist/types/react-planner/class/index.d.ts +23 -0
- package/dist/types/react-planner/class/item.d.ts +61 -0
- package/dist/types/react-planner/class/layer.d.ts +45 -0
- package/dist/types/react-planner/class/line.d.ts +76 -0
- package/dist/types/react-planner/class/project.d.ts +105 -0
- package/dist/types/react-planner/class/vertex.d.ts +34 -0
- package/dist/types/react-planner/components/Button.d.ts +7 -0
- package/dist/types/react-planner/components/ContainerDimensions.d.ts +14 -0
- package/dist/types/react-planner/components/Content.d.ts +8 -0
- package/dist/types/react-planner/components/ContentContainer.d.ts +9 -0
- package/dist/types/react-planner/components/ContentTitle.d.ts +7 -0
- package/dist/types/react-planner/components/FormColorInput.d.ts +2 -0
- package/dist/types/react-planner/components/FormLabel.d.ts +6 -0
- package/dist/types/react-planner/components/FormNumberInput.d.ts +14 -0
- package/dist/types/react-planner/components/FormSelect.d.ts +6 -0
- package/dist/types/react-planner/components/FormTextInput.d.ts +6 -0
- package/dist/types/react-planner/components/PropertyLengthMeasure.d.ts +11 -0
- package/dist/types/react-planner/components/PropertyString.d.ts +10 -0
- package/dist/types/react-planner/components/SearchInput.d.ts +11 -0
- package/dist/types/react-planner/constants.d.ts +237 -0
- package/dist/types/react-planner/footer-bar/FooterContentButton.d.ts +11 -0
- package/dist/types/react-planner/footer-bar/FooterToggleButton.d.ts +9 -0
- package/dist/types/react-planner/footer-bar/Footerbar.d.ts +2 -0
- package/dist/types/react-planner/footer-bar/index.d.ts +4 -0
- package/dist/types/react-planner/header-bar/Headerbar.d.ts +6 -0
- package/dist/types/react-planner/hooks/useScreenshotBeforeUnload.d.ts +4 -0
- package/dist/types/react-planner/models.d.ts +214 -0
- package/dist/types/react-planner/plugins/autosave.d.ts +2 -0
- package/dist/types/react-planner/plugins/index.d.ts +8 -0
- package/dist/types/react-planner/plugins/keyboard.d.ts +2 -0
- package/dist/types/react-planner/sidebar/Panel.d.ts +8 -0
- package/dist/types/react-planner/sidebar/PanelElementEditor.d.ts +6 -0
- package/dist/types/react-planner/sidebar/PanelGroupEditor.d.ts +5 -0
- package/dist/types/react-planner/sidebar/Sidebar.d.ts +6 -0
- package/dist/types/react-planner/sidebar/panel-element-editor/AttributesEditor.d.ts +8 -0
- package/dist/types/react-planner/sidebar/panel-element-editor/ElementEditor.d.ts +8 -0
- package/dist/types/react-planner/sidebar/panel-element-editor/HoleAttributesEditor.d.ts +8 -0
- package/dist/types/react-planner/sidebar/panel-element-editor/ItemAttributesEditor.d.ts +8 -0
- package/dist/types/react-planner/sidebar/panel-element-editor/LineAttributesEditor.d.ts +8 -0
- package/dist/types/react-planner/sidebar/panel-element-editor/PanelElementEditorEmpty.d.ts +2 -0
- package/dist/types/react-planner/toolbar/Popup.d.ts +11 -0
- package/dist/types/react-planner/toolbar/Toolbar.d.ts +6 -0
- package/dist/types/react-planner/toolbar/ToolbarButton.d.ts +10 -0
- package/dist/types/react-planner/toolbar/ToolbarScreenshotButton.d.ts +5 -0
- package/dist/types/react-planner/translator/en.d.ts +80 -0
- package/dist/types/react-planner/translator/translator.d.ts +10 -0
- package/dist/types/react-planner/utils/area-polygon.d.ts +5 -0
- package/dist/types/react-planner/utils/browser.d.ts +2 -0
- package/dist/types/react-planner/utils/convert-units/convert.d.ts +40 -0
- package/dist/types/react-planner/utils/convert-units/definitions/apparentPower.d.ts +46 -0
- package/dist/types/react-planner/utils/convert-units/definitions/area.d.ts +87 -0
- package/dist/types/react-planner/utils/convert-units/definitions/current.d.ts +32 -0
- package/dist/types/react-planner/utils/convert-units/definitions/digital.d.ts +87 -0
- package/dist/types/react-planner/utils/convert-units/definitions/each.d.ts +26 -0
- package/dist/types/react-planner/utils/convert-units/definitions/energy.d.ts +60 -0
- package/dist/types/react-planner/utils/convert-units/definitions/frequency.d.ts +74 -0
- package/dist/types/react-planner/utils/convert-units/definitions/illuminance.d.ts +31 -0
- package/dist/types/react-planner/utils/convert-units/definitions/length.d.ts +80 -0
- package/dist/types/react-planner/utils/convert-units/definitions/mass.d.ts +73 -0
- package/dist/types/react-planner/utils/convert-units/definitions/partsPer.d.ts +40 -0
- package/dist/types/react-planner/utils/convert-units/definitions/power.d.ts +46 -0
- package/dist/types/react-planner/utils/convert-units/definitions/pressure.d.ts +73 -0
- package/dist/types/react-planner/utils/convert-units/definitions/reactiveEnergy.d.ts +46 -0
- package/dist/types/react-planner/utils/convert-units/definitions/reactivePower.d.ts +46 -0
- package/dist/types/react-planner/utils/convert-units/definitions/speed.d.ts +52 -0
- package/dist/types/react-planner/utils/convert-units/definitions/temperature.d.ts +48 -0
- package/dist/types/react-planner/utils/convert-units/definitions/time.d.ts +81 -0
- package/dist/types/react-planner/utils/convert-units/definitions/voltage.d.ts +32 -0
- package/dist/types/react-planner/utils/convert-units/definitions/volume.d.ts +192 -0
- package/dist/types/react-planner/utils/convert-units/definitions/volumeFlowRate.d.ts +276 -0
- package/dist/types/react-planner/utils/convert-units/index.d.ts +26 -0
- package/dist/types/react-planner/utils/convert-units/percentError.d.ts +1 -0
- package/dist/types/react-planner/utils/geometry.d.ts +161 -0
- package/dist/types/react-planner/utils/get-edges-of-subgraphs.d.ts +3 -0
- package/dist/types/react-planner/utils/graph-cycles.d.ts +9 -0
- package/dist/types/react-planner/utils/graph-inner-cycles.d.ts +6 -0
- package/dist/types/react-planner/utils/graph.d.ts +19 -0
- package/dist/types/react-planner/utils/history.d.ts +4 -0
- package/dist/types/react-planner/utils/id-broker.d.ts +4 -0
- package/dist/types/react-planner/utils/immutable-diff-patch.d.ts +8 -0
- package/dist/types/react-planner/utils/index.d.ts +22 -0
- package/dist/types/react-planner/utils/math.d.ts +3 -0
- package/dist/types/react-planner/utils/name-generator.d.ts +3 -0
- package/dist/types/react-planner/utils/objects-utils.d.ts +2 -0
- package/dist/types/react-planner/utils/screenshot.d.ts +1 -0
- package/dist/types/react-planner/utils/snap-scene.d.ts +2 -0
- package/dist/types/react-planner/utils/snap.d.ts +17 -0
- package/dist/types/react-planner/utils/threeCSG.es6.d.ts +41 -0
- package/dist/types/react-planner/utils/zoom.d.ts +8 -0
- package/dist/types/react-planner/viewer2d/Area.d.ts +8 -0
- package/dist/types/react-planner/viewer2d/GridHorizontalStreak.d.ts +7 -0
- package/dist/types/react-planner/viewer2d/GridVerticalStreak.d.ts +7 -0
- package/dist/types/react-planner/viewer2d/Grids.d.ts +5 -0
- package/dist/types/react-planner/viewer2d/Group.d.ts +9 -0
- package/dist/types/react-planner/viewer2d/Item.d.ts +9 -0
- package/dist/types/react-planner/viewer2d/Layer.d.ts +9 -0
- package/dist/types/react-planner/viewer2d/Line.d.ts +10 -0
- package/dist/types/react-planner/viewer2d/Ruler.d.ts +7 -0
- package/dist/types/react-planner/viewer2d/Scene.d.ts +9 -0
- package/dist/types/react-planner/viewer2d/Snap.d.ts +7 -0
- package/dist/types/react-planner/viewer2d/State.d.ts +6 -0
- package/dist/types/react-planner/viewer2d/Vertex.d.ts +6 -0
- package/dist/types/react-planner/viewer2d/Viewer2D.d.ts +8 -0
- package/dist/types/shared-style.d.ts +105 -0
- package/dist/types/store/ReactPlannerStore.d.ts +111 -0
- package/package.json +92 -0
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
metric: {
|
|
3
|
+
"m/s": {
|
|
4
|
+
name: {
|
|
5
|
+
singular: string;
|
|
6
|
+
plural: string;
|
|
7
|
+
};
|
|
8
|
+
to_anchor: number;
|
|
9
|
+
};
|
|
10
|
+
"km/h": {
|
|
11
|
+
name: {
|
|
12
|
+
singular: string;
|
|
13
|
+
plural: string;
|
|
14
|
+
};
|
|
15
|
+
to_anchor: number;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
imperial: {
|
|
19
|
+
"m/h": {
|
|
20
|
+
name: {
|
|
21
|
+
singular: string;
|
|
22
|
+
plural: string;
|
|
23
|
+
};
|
|
24
|
+
to_anchor: number;
|
|
25
|
+
};
|
|
26
|
+
knot: {
|
|
27
|
+
name: {
|
|
28
|
+
singular: string;
|
|
29
|
+
plural: string;
|
|
30
|
+
};
|
|
31
|
+
to_anchor: number;
|
|
32
|
+
};
|
|
33
|
+
"ft/s": {
|
|
34
|
+
name: {
|
|
35
|
+
singular: string;
|
|
36
|
+
plural: string;
|
|
37
|
+
};
|
|
38
|
+
to_anchor: number;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
_anchors: {
|
|
42
|
+
metric: {
|
|
43
|
+
unit: string;
|
|
44
|
+
ratio: number;
|
|
45
|
+
};
|
|
46
|
+
imperial: {
|
|
47
|
+
unit: string;
|
|
48
|
+
ratio: number;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
export default _default;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
metric: {
|
|
3
|
+
C: {
|
|
4
|
+
name: {
|
|
5
|
+
singular: string;
|
|
6
|
+
plural: string;
|
|
7
|
+
};
|
|
8
|
+
to_anchor: number;
|
|
9
|
+
anchor_shift: number;
|
|
10
|
+
};
|
|
11
|
+
K: {
|
|
12
|
+
name: {
|
|
13
|
+
singular: string;
|
|
14
|
+
plural: string;
|
|
15
|
+
};
|
|
16
|
+
to_anchor: number;
|
|
17
|
+
anchor_shift: number;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
imperial: {
|
|
21
|
+
F: {
|
|
22
|
+
name: {
|
|
23
|
+
singular: string;
|
|
24
|
+
plural: string;
|
|
25
|
+
};
|
|
26
|
+
to_anchor: number;
|
|
27
|
+
};
|
|
28
|
+
R: {
|
|
29
|
+
name: {
|
|
30
|
+
singular: string;
|
|
31
|
+
plural: string;
|
|
32
|
+
};
|
|
33
|
+
to_anchor: number;
|
|
34
|
+
anchor_shift: number;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
_anchors: {
|
|
38
|
+
metric: {
|
|
39
|
+
unit: string;
|
|
40
|
+
transform: (C: number) => number;
|
|
41
|
+
};
|
|
42
|
+
imperial: {
|
|
43
|
+
unit: string;
|
|
44
|
+
transform: (F: number) => number;
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
export default _default;
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
metric: {
|
|
3
|
+
ns: {
|
|
4
|
+
name: {
|
|
5
|
+
singular: string;
|
|
6
|
+
plural: string;
|
|
7
|
+
};
|
|
8
|
+
to_anchor: number;
|
|
9
|
+
};
|
|
10
|
+
mu: {
|
|
11
|
+
name: {
|
|
12
|
+
singular: string;
|
|
13
|
+
plural: string;
|
|
14
|
+
};
|
|
15
|
+
to_anchor: number;
|
|
16
|
+
};
|
|
17
|
+
ms: {
|
|
18
|
+
name: {
|
|
19
|
+
singular: string;
|
|
20
|
+
plural: string;
|
|
21
|
+
};
|
|
22
|
+
to_anchor: number;
|
|
23
|
+
};
|
|
24
|
+
s: {
|
|
25
|
+
name: {
|
|
26
|
+
singular: string;
|
|
27
|
+
plural: string;
|
|
28
|
+
};
|
|
29
|
+
to_anchor: number;
|
|
30
|
+
};
|
|
31
|
+
min: {
|
|
32
|
+
name: {
|
|
33
|
+
singular: string;
|
|
34
|
+
plural: string;
|
|
35
|
+
};
|
|
36
|
+
to_anchor: number;
|
|
37
|
+
};
|
|
38
|
+
h: {
|
|
39
|
+
name: {
|
|
40
|
+
singular: string;
|
|
41
|
+
plural: string;
|
|
42
|
+
};
|
|
43
|
+
to_anchor: number;
|
|
44
|
+
};
|
|
45
|
+
d: {
|
|
46
|
+
name: {
|
|
47
|
+
singular: string;
|
|
48
|
+
plural: string;
|
|
49
|
+
};
|
|
50
|
+
to_anchor: number;
|
|
51
|
+
};
|
|
52
|
+
week: {
|
|
53
|
+
name: {
|
|
54
|
+
singular: string;
|
|
55
|
+
plural: string;
|
|
56
|
+
};
|
|
57
|
+
to_anchor: number;
|
|
58
|
+
};
|
|
59
|
+
month: {
|
|
60
|
+
name: {
|
|
61
|
+
singular: string;
|
|
62
|
+
plural: string;
|
|
63
|
+
};
|
|
64
|
+
to_anchor: number;
|
|
65
|
+
};
|
|
66
|
+
year: {
|
|
67
|
+
name: {
|
|
68
|
+
singular: string;
|
|
69
|
+
plural: string;
|
|
70
|
+
};
|
|
71
|
+
to_anchor: number;
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
_anchors: {
|
|
75
|
+
metric: {
|
|
76
|
+
unit: string;
|
|
77
|
+
ratio: number;
|
|
78
|
+
};
|
|
79
|
+
};
|
|
80
|
+
};
|
|
81
|
+
export default _default;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
metric: {
|
|
3
|
+
V: {
|
|
4
|
+
name: {
|
|
5
|
+
singular: string;
|
|
6
|
+
plural: string;
|
|
7
|
+
};
|
|
8
|
+
to_anchor: number;
|
|
9
|
+
};
|
|
10
|
+
mV: {
|
|
11
|
+
name: {
|
|
12
|
+
singular: string;
|
|
13
|
+
plural: string;
|
|
14
|
+
};
|
|
15
|
+
to_anchor: number;
|
|
16
|
+
};
|
|
17
|
+
kV: {
|
|
18
|
+
name: {
|
|
19
|
+
singular: string;
|
|
20
|
+
plural: string;
|
|
21
|
+
};
|
|
22
|
+
to_anchor: number;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
_anchors: {
|
|
26
|
+
metric: {
|
|
27
|
+
unit: string;
|
|
28
|
+
ratio: number;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
export default _default;
|
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
metric: {
|
|
3
|
+
mm3: {
|
|
4
|
+
name: {
|
|
5
|
+
singular: string;
|
|
6
|
+
plural: string;
|
|
7
|
+
};
|
|
8
|
+
to_anchor: number;
|
|
9
|
+
};
|
|
10
|
+
cm3: {
|
|
11
|
+
name: {
|
|
12
|
+
singular: string;
|
|
13
|
+
plural: string;
|
|
14
|
+
};
|
|
15
|
+
to_anchor: number;
|
|
16
|
+
};
|
|
17
|
+
ml: {
|
|
18
|
+
name: {
|
|
19
|
+
singular: string;
|
|
20
|
+
plural: string;
|
|
21
|
+
};
|
|
22
|
+
to_anchor: number;
|
|
23
|
+
};
|
|
24
|
+
cl: {
|
|
25
|
+
name: {
|
|
26
|
+
singular: string;
|
|
27
|
+
plural: string;
|
|
28
|
+
};
|
|
29
|
+
to_anchor: number;
|
|
30
|
+
};
|
|
31
|
+
dl: {
|
|
32
|
+
name: {
|
|
33
|
+
singular: string;
|
|
34
|
+
plural: string;
|
|
35
|
+
};
|
|
36
|
+
to_anchor: number;
|
|
37
|
+
};
|
|
38
|
+
l: {
|
|
39
|
+
name: {
|
|
40
|
+
singular: string;
|
|
41
|
+
plural: string;
|
|
42
|
+
};
|
|
43
|
+
to_anchor: number;
|
|
44
|
+
};
|
|
45
|
+
kl: {
|
|
46
|
+
name: {
|
|
47
|
+
singular: string;
|
|
48
|
+
plural: string;
|
|
49
|
+
};
|
|
50
|
+
to_anchor: number;
|
|
51
|
+
};
|
|
52
|
+
m3: {
|
|
53
|
+
name: {
|
|
54
|
+
singular: string;
|
|
55
|
+
plural: string;
|
|
56
|
+
};
|
|
57
|
+
to_anchor: number;
|
|
58
|
+
};
|
|
59
|
+
km3: {
|
|
60
|
+
name: {
|
|
61
|
+
singular: string;
|
|
62
|
+
plural: string;
|
|
63
|
+
};
|
|
64
|
+
to_anchor: number;
|
|
65
|
+
};
|
|
66
|
+
krm: {
|
|
67
|
+
name: {
|
|
68
|
+
singular: string;
|
|
69
|
+
plural: string;
|
|
70
|
+
};
|
|
71
|
+
to_anchor: number;
|
|
72
|
+
};
|
|
73
|
+
tsk: {
|
|
74
|
+
name: {
|
|
75
|
+
singular: string;
|
|
76
|
+
plural: string;
|
|
77
|
+
};
|
|
78
|
+
to_anchor: number;
|
|
79
|
+
};
|
|
80
|
+
msk: {
|
|
81
|
+
name: {
|
|
82
|
+
singular: string;
|
|
83
|
+
plural: string;
|
|
84
|
+
};
|
|
85
|
+
to_anchor: number;
|
|
86
|
+
};
|
|
87
|
+
kkp: {
|
|
88
|
+
name: {
|
|
89
|
+
singular: string;
|
|
90
|
+
plural: string;
|
|
91
|
+
};
|
|
92
|
+
to_anchor: number;
|
|
93
|
+
};
|
|
94
|
+
glas: {
|
|
95
|
+
name: {
|
|
96
|
+
singular: string;
|
|
97
|
+
plural: string;
|
|
98
|
+
};
|
|
99
|
+
to_anchor: number;
|
|
100
|
+
};
|
|
101
|
+
kanna: {
|
|
102
|
+
name: {
|
|
103
|
+
singular: string;
|
|
104
|
+
plural: string;
|
|
105
|
+
};
|
|
106
|
+
to_anchor: number;
|
|
107
|
+
};
|
|
108
|
+
};
|
|
109
|
+
imperial: {
|
|
110
|
+
tsp: {
|
|
111
|
+
name: {
|
|
112
|
+
singular: string;
|
|
113
|
+
plural: string;
|
|
114
|
+
};
|
|
115
|
+
to_anchor: number;
|
|
116
|
+
};
|
|
117
|
+
Tbs: {
|
|
118
|
+
name: {
|
|
119
|
+
singular: string;
|
|
120
|
+
plural: string;
|
|
121
|
+
};
|
|
122
|
+
to_anchor: number;
|
|
123
|
+
};
|
|
124
|
+
in3: {
|
|
125
|
+
name: {
|
|
126
|
+
singular: string;
|
|
127
|
+
plural: string;
|
|
128
|
+
};
|
|
129
|
+
to_anchor: number;
|
|
130
|
+
};
|
|
131
|
+
"fl-oz": {
|
|
132
|
+
name: {
|
|
133
|
+
singular: string;
|
|
134
|
+
plural: string;
|
|
135
|
+
};
|
|
136
|
+
to_anchor: number;
|
|
137
|
+
};
|
|
138
|
+
cup: {
|
|
139
|
+
name: {
|
|
140
|
+
singular: string;
|
|
141
|
+
plural: string;
|
|
142
|
+
};
|
|
143
|
+
to_anchor: number;
|
|
144
|
+
};
|
|
145
|
+
pnt: {
|
|
146
|
+
name: {
|
|
147
|
+
singular: string;
|
|
148
|
+
plural: string;
|
|
149
|
+
};
|
|
150
|
+
to_anchor: number;
|
|
151
|
+
};
|
|
152
|
+
qt: {
|
|
153
|
+
name: {
|
|
154
|
+
singular: string;
|
|
155
|
+
plural: string;
|
|
156
|
+
};
|
|
157
|
+
to_anchor: number;
|
|
158
|
+
};
|
|
159
|
+
gal: {
|
|
160
|
+
name: {
|
|
161
|
+
singular: string;
|
|
162
|
+
plural: string;
|
|
163
|
+
};
|
|
164
|
+
to_anchor: number;
|
|
165
|
+
};
|
|
166
|
+
ft3: {
|
|
167
|
+
name: {
|
|
168
|
+
singular: string;
|
|
169
|
+
plural: string;
|
|
170
|
+
};
|
|
171
|
+
to_anchor: number;
|
|
172
|
+
};
|
|
173
|
+
yd3: {
|
|
174
|
+
name: {
|
|
175
|
+
singular: string;
|
|
176
|
+
plural: string;
|
|
177
|
+
};
|
|
178
|
+
to_anchor: number;
|
|
179
|
+
};
|
|
180
|
+
};
|
|
181
|
+
_anchors: {
|
|
182
|
+
metric: {
|
|
183
|
+
unit: string;
|
|
184
|
+
ratio: number;
|
|
185
|
+
};
|
|
186
|
+
imperial: {
|
|
187
|
+
unit: string;
|
|
188
|
+
ratio: number;
|
|
189
|
+
};
|
|
190
|
+
};
|
|
191
|
+
};
|
|
192
|
+
export default _default;
|
|
@@ -0,0 +1,276 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
metric: {
|
|
3
|
+
"mm3/s": {
|
|
4
|
+
name: {
|
|
5
|
+
singular: string;
|
|
6
|
+
plural: string;
|
|
7
|
+
};
|
|
8
|
+
to_anchor: number;
|
|
9
|
+
};
|
|
10
|
+
"cm3/s": {
|
|
11
|
+
name: {
|
|
12
|
+
singular: string;
|
|
13
|
+
plural: string;
|
|
14
|
+
};
|
|
15
|
+
to_anchor: number;
|
|
16
|
+
};
|
|
17
|
+
"ml/s": {
|
|
18
|
+
name: {
|
|
19
|
+
singular: string;
|
|
20
|
+
plural: string;
|
|
21
|
+
};
|
|
22
|
+
to_anchor: number;
|
|
23
|
+
};
|
|
24
|
+
"cl/s": {
|
|
25
|
+
name: {
|
|
26
|
+
singular: string;
|
|
27
|
+
plural: string;
|
|
28
|
+
};
|
|
29
|
+
to_anchor: number;
|
|
30
|
+
};
|
|
31
|
+
"dl/s": {
|
|
32
|
+
name: {
|
|
33
|
+
singular: string;
|
|
34
|
+
plural: string;
|
|
35
|
+
};
|
|
36
|
+
to_anchor: number;
|
|
37
|
+
};
|
|
38
|
+
"l/s": {
|
|
39
|
+
name: {
|
|
40
|
+
singular: string;
|
|
41
|
+
plural: string;
|
|
42
|
+
};
|
|
43
|
+
to_anchor: number;
|
|
44
|
+
};
|
|
45
|
+
"l/min": {
|
|
46
|
+
name: {
|
|
47
|
+
singular: string;
|
|
48
|
+
plural: string;
|
|
49
|
+
};
|
|
50
|
+
to_anchor: number;
|
|
51
|
+
};
|
|
52
|
+
"l/h": {
|
|
53
|
+
name: {
|
|
54
|
+
singular: string;
|
|
55
|
+
plural: string;
|
|
56
|
+
};
|
|
57
|
+
to_anchor: number;
|
|
58
|
+
};
|
|
59
|
+
"kl/s": {
|
|
60
|
+
name: {
|
|
61
|
+
singular: string;
|
|
62
|
+
plural: string;
|
|
63
|
+
};
|
|
64
|
+
to_anchor: number;
|
|
65
|
+
};
|
|
66
|
+
"kl/min": {
|
|
67
|
+
name: {
|
|
68
|
+
singular: string;
|
|
69
|
+
plural: string;
|
|
70
|
+
};
|
|
71
|
+
to_anchor: number;
|
|
72
|
+
};
|
|
73
|
+
"kl/h": {
|
|
74
|
+
name: {
|
|
75
|
+
singular: string;
|
|
76
|
+
plural: string;
|
|
77
|
+
};
|
|
78
|
+
to_anchor: number;
|
|
79
|
+
};
|
|
80
|
+
"m3/s": {
|
|
81
|
+
name: {
|
|
82
|
+
singular: string;
|
|
83
|
+
plural: string;
|
|
84
|
+
};
|
|
85
|
+
to_anchor: number;
|
|
86
|
+
};
|
|
87
|
+
"m3/min": {
|
|
88
|
+
name: {
|
|
89
|
+
singular: string;
|
|
90
|
+
plural: string;
|
|
91
|
+
};
|
|
92
|
+
to_anchor: number;
|
|
93
|
+
};
|
|
94
|
+
"m3/h": {
|
|
95
|
+
name: {
|
|
96
|
+
singular: string;
|
|
97
|
+
plural: string;
|
|
98
|
+
};
|
|
99
|
+
to_anchor: number;
|
|
100
|
+
};
|
|
101
|
+
"km3/s": {
|
|
102
|
+
name: {
|
|
103
|
+
singular: string;
|
|
104
|
+
plural: string;
|
|
105
|
+
};
|
|
106
|
+
to_anchor: number;
|
|
107
|
+
};
|
|
108
|
+
};
|
|
109
|
+
imperial: {
|
|
110
|
+
"tsp/s": {
|
|
111
|
+
name: {
|
|
112
|
+
singular: string;
|
|
113
|
+
plural: string;
|
|
114
|
+
};
|
|
115
|
+
to_anchor: number;
|
|
116
|
+
};
|
|
117
|
+
"Tbs/s": {
|
|
118
|
+
name: {
|
|
119
|
+
singular: string;
|
|
120
|
+
plural: string;
|
|
121
|
+
};
|
|
122
|
+
to_anchor: number;
|
|
123
|
+
};
|
|
124
|
+
"in3/s": {
|
|
125
|
+
name: {
|
|
126
|
+
singular: string;
|
|
127
|
+
plural: string;
|
|
128
|
+
};
|
|
129
|
+
to_anchor: number;
|
|
130
|
+
};
|
|
131
|
+
"in3/min": {
|
|
132
|
+
name: {
|
|
133
|
+
singular: string;
|
|
134
|
+
plural: string;
|
|
135
|
+
};
|
|
136
|
+
to_anchor: number;
|
|
137
|
+
};
|
|
138
|
+
"in3/h": {
|
|
139
|
+
name: {
|
|
140
|
+
singular: string;
|
|
141
|
+
plural: string;
|
|
142
|
+
};
|
|
143
|
+
to_anchor: number;
|
|
144
|
+
};
|
|
145
|
+
"fl-oz/s": {
|
|
146
|
+
name: {
|
|
147
|
+
singular: string;
|
|
148
|
+
plural: string;
|
|
149
|
+
};
|
|
150
|
+
to_anchor: number;
|
|
151
|
+
};
|
|
152
|
+
"fl-oz/min": {
|
|
153
|
+
name: {
|
|
154
|
+
singular: string;
|
|
155
|
+
plural: string;
|
|
156
|
+
};
|
|
157
|
+
to_anchor: number;
|
|
158
|
+
};
|
|
159
|
+
"fl-oz/h": {
|
|
160
|
+
name: {
|
|
161
|
+
singular: string;
|
|
162
|
+
plural: string;
|
|
163
|
+
};
|
|
164
|
+
to_anchor: number;
|
|
165
|
+
};
|
|
166
|
+
"cup/s": {
|
|
167
|
+
name: {
|
|
168
|
+
singular: string;
|
|
169
|
+
plural: string;
|
|
170
|
+
};
|
|
171
|
+
to_anchor: number;
|
|
172
|
+
};
|
|
173
|
+
"pnt/s": {
|
|
174
|
+
name: {
|
|
175
|
+
singular: string;
|
|
176
|
+
plural: string;
|
|
177
|
+
};
|
|
178
|
+
to_anchor: number;
|
|
179
|
+
};
|
|
180
|
+
"pnt/min": {
|
|
181
|
+
name: {
|
|
182
|
+
singular: string;
|
|
183
|
+
plural: string;
|
|
184
|
+
};
|
|
185
|
+
to_anchor: number;
|
|
186
|
+
};
|
|
187
|
+
"pnt/h": {
|
|
188
|
+
name: {
|
|
189
|
+
singular: string;
|
|
190
|
+
plural: string;
|
|
191
|
+
};
|
|
192
|
+
to_anchor: number;
|
|
193
|
+
};
|
|
194
|
+
"qt/s": {
|
|
195
|
+
name: {
|
|
196
|
+
singular: string;
|
|
197
|
+
plural: string;
|
|
198
|
+
};
|
|
199
|
+
to_anchor: number;
|
|
200
|
+
};
|
|
201
|
+
"gal/s": {
|
|
202
|
+
name: {
|
|
203
|
+
singular: string;
|
|
204
|
+
plural: string;
|
|
205
|
+
};
|
|
206
|
+
to_anchor: number;
|
|
207
|
+
};
|
|
208
|
+
"gal/min": {
|
|
209
|
+
name: {
|
|
210
|
+
singular: string;
|
|
211
|
+
plural: string;
|
|
212
|
+
};
|
|
213
|
+
to_anchor: number;
|
|
214
|
+
};
|
|
215
|
+
"gal/h": {
|
|
216
|
+
name: {
|
|
217
|
+
singular: string;
|
|
218
|
+
plural: string;
|
|
219
|
+
};
|
|
220
|
+
to_anchor: number;
|
|
221
|
+
};
|
|
222
|
+
"ft3/s": {
|
|
223
|
+
name: {
|
|
224
|
+
singular: string;
|
|
225
|
+
plural: string;
|
|
226
|
+
};
|
|
227
|
+
to_anchor: number;
|
|
228
|
+
};
|
|
229
|
+
"ft3/min": {
|
|
230
|
+
name: {
|
|
231
|
+
singular: string;
|
|
232
|
+
plural: string;
|
|
233
|
+
};
|
|
234
|
+
to_anchor: number;
|
|
235
|
+
};
|
|
236
|
+
"ft3/h": {
|
|
237
|
+
name: {
|
|
238
|
+
singular: string;
|
|
239
|
+
plural: string;
|
|
240
|
+
};
|
|
241
|
+
to_anchor: number;
|
|
242
|
+
};
|
|
243
|
+
"yd3/s": {
|
|
244
|
+
name: {
|
|
245
|
+
singular: string;
|
|
246
|
+
plural: string;
|
|
247
|
+
};
|
|
248
|
+
to_anchor: number;
|
|
249
|
+
};
|
|
250
|
+
"yd3/min": {
|
|
251
|
+
name: {
|
|
252
|
+
singular: string;
|
|
253
|
+
plural: string;
|
|
254
|
+
};
|
|
255
|
+
to_anchor: number;
|
|
256
|
+
};
|
|
257
|
+
"yd3/h": {
|
|
258
|
+
name: {
|
|
259
|
+
singular: string;
|
|
260
|
+
plural: string;
|
|
261
|
+
};
|
|
262
|
+
to_anchor: number;
|
|
263
|
+
};
|
|
264
|
+
};
|
|
265
|
+
_anchors: {
|
|
266
|
+
metric: {
|
|
267
|
+
unit: string;
|
|
268
|
+
ratio: number;
|
|
269
|
+
};
|
|
270
|
+
imperial: {
|
|
271
|
+
unit: string;
|
|
272
|
+
ratio: number;
|
|
273
|
+
};
|
|
274
|
+
};
|
|
275
|
+
};
|
|
276
|
+
export default _default;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import convert from "./convert";
|
|
2
|
+
type Distance = "mm" | "cm" | "m" | "km" | "in" | "ft-us" | "ft" | "yd" | "mi";
|
|
3
|
+
type Area = "mm2" | "cm2" | "m2" | "ha" | "km2" | "in2" | "ft2" | "ac" | "mi2";
|
|
4
|
+
type Mass = "mcg" | "mg" | "g" | "kg" | "oz" | "lb" | "mt" | "t";
|
|
5
|
+
type Volume = "mm3" | "cm3" | "ml" | "cl" | "dl" | "l" | "kl" | "m3" | "km3" | "tsp" | "Tbs" | "in3" | "fl-oz" | "cup" | "pnt" | "qt" | "gal" | "ft3" | "yd3";
|
|
6
|
+
type VolumeFlowRate = "mm3/s" | "cm3/s" | "ml/s" | "cl/s" | "dl/s" | "l/s" | "l/min" | "l/h" | "kl/s" | "kl/min" | "kl/h" | "m3/s" | "m3/min" | "m3/h" | "km3/s" | "tsp/s" | "Tbs/s" | "in3/s" | "in3/min" | "in3/h" | "fl-oz/s" | "fl-oz/min" | "fl-oz/h" | "cup/s" | "pnt/s" | "pnt/min" | "pnt/h" | "qt/s" | "gal/s" | "gal/min" | "gal/h" | "ft3/s" | "ft3/min" | "ft3/h" | "yd3/s" | "yd3/min" | "yd3/h";
|
|
7
|
+
type Temperature = "C" | "F" | "K" | "R";
|
|
8
|
+
type Time = "ns" | "mu" | "ms" | "s" | "min" | "h" | "d" | "week" | "month" | "year";
|
|
9
|
+
type Frequency = "Hz" | "mHz" | "kHz" | "MHz" | "GHz" | "THz" | "rpm" | "deg/s" | "rad/s";
|
|
10
|
+
type Speed = "m/s" | "km/h" | "m/h" | "knot" | "ft/s";
|
|
11
|
+
type Pace = "s/m" | "min/km" | "s/ft" | "min/mi";
|
|
12
|
+
type Pressure = "Pa" | "hPa" | "kPa" | "MPa" | "bar" | "torr" | "psi" | "ksi";
|
|
13
|
+
type Digital = "b" | "Kb" | "Mb" | "Gb" | "Tb" | "B" | "KB" | "MB" | "GB" | "TB";
|
|
14
|
+
type Illuminance = "lx" | "ft-cd";
|
|
15
|
+
type PartsPer = "ppm" | "ppb" | "ppt" | "ppq";
|
|
16
|
+
type Voltage = "V" | "mV" | "kV";
|
|
17
|
+
type Current = "A" | "mA" | "kA";
|
|
18
|
+
type Power = "W" | "mW" | "kW" | "MW" | "GW";
|
|
19
|
+
type ApparentPower = "VA" | "mVA" | "kVA" | "MVA" | "GVA";
|
|
20
|
+
type ReactivePower = "VAR" | "mVAR" | "kVAR" | "MVAR" | "GVAR";
|
|
21
|
+
type Energy = "Wh" | "mWh" | "kWh" | "MWh" | "GWh" | "J" | "kJ";
|
|
22
|
+
type ReactiveEnergy = "VARh" | "mVARh" | "kVARh" | "MVARh" | "GVARH";
|
|
23
|
+
type Angle = "deg" | "rad" | "grad" | "arcmin" | "arcsec";
|
|
24
|
+
type Unit = Distance | Area | Mass | Volume | VolumeFlowRate | Temperature | Time | Frequency | Speed | Pace | Pressure | Digital | Illuminance | PartsPer | Voltage | Current | Power | ApparentPower | ReactivePower | Energy | ReactiveEnergy | Angle;
|
|
25
|
+
export { type Unit };
|
|
26
|
+
export default convert;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function (expected: number, actual: number): number;
|