@itwin/imodel-components-react 4.17.1 → 5.0.0-dev.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +1 -6
- package/README.md +15 -2
- package/lib/{cjs/imodel-components-react → imodel-components-react}/UiIModelComponents.d.ts +1 -1
- package/lib/imodel-components-react/UiIModelComponents.d.ts.map +1 -0
- package/lib/{esm/imodel-components-react → imodel-components-react}/UiIModelComponents.js +4 -7
- package/lib/imodel-components-react/UiIModelComponents.js.map +1 -0
- package/lib/imodel-components-react/color/AlphaSlider.d.ts.map +1 -0
- package/lib/{esm/imodel-components-react → imodel-components-react}/color/AlphaSlider.js +1 -1
- package/lib/imodel-components-react/color/AlphaSlider.js.map +1 -0
- package/lib/imodel-components-react/color/ColorPickerButton.d.ts.map +1 -0
- package/lib/{esm/imodel-components-react → imodel-components-react}/color/ColorPickerButton.js +4 -3
- package/lib/imodel-components-react/color/ColorPickerButton.js.map +1 -0
- package/lib/{esm/imodel-components-react → imodel-components-react}/color/ColorPickerButton.scss +2 -4
- package/lib/imodel-components-react/color/ColorPickerDialog.d.ts.map +1 -0
- package/lib/imodel-components-react/color/ColorPickerDialog.js.map +1 -0
- package/lib/imodel-components-react/color/ColorPickerPopup.d.ts.map +1 -0
- package/lib/{esm/imodel-components-react → imodel-components-react}/color/ColorPickerPopup.js +4 -3
- package/lib/imodel-components-react/color/ColorPickerPopup.js.map +1 -0
- package/lib/imodel-components-react/color/HueSlider.d.ts.map +1 -0
- package/lib/{esm/imodel-components-react → imodel-components-react}/color/HueSlider.js +1 -1
- package/lib/{esm/imodel-components-react → imodel-components-react}/color/HueSlider.js.map +1 -1
- package/lib/imodel-components-react/color/SaturationPicker.d.ts.map +1 -0
- package/lib/{esm/imodel-components-react → imodel-components-react}/color/SaturationPicker.js +1 -1
- package/lib/imodel-components-react/color/SaturationPicker.js.map +1 -0
- package/lib/imodel-components-react/color/Swatch.d.ts.map +1 -0
- package/lib/{esm/imodel-components-react → imodel-components-react}/color/Swatch.js +1 -1
- package/lib/{esm/imodel-components-react → imodel-components-react}/color/Swatch.js.map +1 -1
- package/lib/imodel-components-react/color/getCSSColorFromDef.d.ts.map +1 -0
- package/lib/imodel-components-react/color/getCSSColorFromDef.js.map +1 -0
- package/lib/imodel-components-react/editors/ColorEditor.d.ts.map +1 -0
- package/lib/{esm/imodel-components-react → imodel-components-react}/editors/ColorEditor.js +3 -4
- package/lib/imodel-components-react/editors/ColorEditor.js.map +1 -0
- package/lib/{cjs/imodel-components-react → imodel-components-react}/editors/ColorEditor.scss +0 -2
- package/lib/imodel-components-react/editors/WeightEditor.d.ts.map +1 -0
- package/lib/{esm/imodel-components-react → imodel-components-react}/editors/WeightEditor.js +3 -4
- package/lib/imodel-components-react/editors/WeightEditor.js.map +1 -0
- package/lib/{cjs/imodel-components-react → imodel-components-react}/editors/WeightEditor.scss +0 -2
- package/lib/imodel-components-react/inputs/QuantityInput.d.ts.map +1 -0
- package/lib/{esm/imodel-components-react → imodel-components-react}/inputs/QuantityInput.js +1 -1
- package/lib/{esm/imodel-components-react → imodel-components-react}/inputs/QuantityInput.js.map +1 -1
- package/lib/imodel-components-react/inputs/QuantityNumberInput.d.ts.map +1 -0
- package/lib/imodel-components-react/inputs/QuantityNumberInput.js.map +1 -0
- package/lib/{cjs/imodel-components-react → imodel-components-react}/inputs/QuantityNumberInput.scss +1 -1
- package/lib/imodel-components-react/lineweight/Swatch.d.ts.map +1 -0
- package/lib/{esm/imodel-components-react → imodel-components-react}/lineweight/Swatch.js +1 -1
- package/lib/{esm/imodel-components-react → imodel-components-react}/lineweight/Swatch.js.map +1 -1
- package/lib/{cjs/imodel-components-react → imodel-components-react}/lineweight/Swatch.scss +2 -4
- package/lib/imodel-components-react/lineweight/WeightPickerButton.d.ts.map +1 -0
- package/lib/{esm/imodel-components-react → imodel-components-react}/lineweight/WeightPickerButton.js +1 -1
- package/lib/{esm/imodel-components-react → imodel-components-react}/lineweight/WeightPickerButton.js.map +1 -1
- package/lib/{esm/imodel-components-react → imodel-components-react}/lineweight/WeightPickerButton.scss +5 -6
- package/lib/imodel-components-react/navigationaids/Cube.d.ts.map +1 -0
- package/lib/imodel-components-react/navigationaids/Cube.js.map +1 -0
- package/lib/{esm/imodel-components-react → imodel-components-react}/navigationaids/CubeNavigationAid.d.ts +1 -1
- package/lib/imodel-components-react/navigationaids/CubeNavigationAid.d.ts.map +1 -0
- package/lib/{esm/imodel-components-react → imodel-components-react}/navigationaids/CubeNavigationAid.js +3 -3
- package/lib/imodel-components-react/navigationaids/CubeNavigationAid.js.map +1 -0
- package/lib/{esm/imodel-components-react → imodel-components-react}/navigationaids/CubeNavigationAid.scss +0 -2
- package/lib/imodel-components-react/navigationaids/DrawingNavigationAid.d.ts.map +1 -0
- package/lib/{esm/imodel-components-react → imodel-components-react}/navigationaids/DrawingNavigationAid.js +2 -2
- package/lib/imodel-components-react/navigationaids/DrawingNavigationAid.js.map +1 -0
- package/lib/{cjs/imodel-components-react → imodel-components-react}/navigationaids/DrawingNavigationAid.scss +9 -10
- package/lib/imodel-components-react/quantityformat/FormatPanel.d.ts.map +1 -0
- package/lib/{esm/imodel-components-react → imodel-components-react}/quantityformat/FormatPanel.js +6 -6
- package/lib/imodel-components-react/quantityformat/FormatPanel.js.map +1 -0
- package/lib/{esm/imodel-components-react → imodel-components-react}/quantityformat/FormatPanel.scss +0 -2
- package/lib/imodel-components-react/quantityformat/FormatPrecision.d.ts.map +1 -0
- package/lib/{esm/imodel-components-react → imodel-components-react}/quantityformat/FormatPrecision.js +3 -3
- package/lib/imodel-components-react/quantityformat/FormatPrecision.js.map +1 -0
- package/lib/imodel-components-react/quantityformat/FormatSample.d.ts.map +1 -0
- package/lib/{esm/imodel-components-react → imodel-components-react}/quantityformat/FormatSample.js +1 -1
- package/lib/imodel-components-react/quantityformat/FormatSample.js.map +1 -0
- package/lib/imodel-components-react/quantityformat/FormatType.d.ts.map +1 -0
- package/lib/{esm/imodel-components-react → imodel-components-react}/quantityformat/FormatType.js +1 -1
- package/lib/{esm/imodel-components-react → imodel-components-react}/quantityformat/FormatType.js.map +1 -1
- package/lib/imodel-components-react/quantityformat/FormatUnitLabel.d.ts.map +1 -0
- package/lib/{esm/imodel-components-react → imodel-components-react}/quantityformat/FormatUnitLabel.js +1 -1
- package/lib/{esm/imodel-components-react → imodel-components-react}/quantityformat/FormatUnitLabel.js.map +1 -1
- package/lib/imodel-components-react/quantityformat/FormatUnits.d.ts.map +1 -0
- package/lib/{esm/imodel-components-react → imodel-components-react}/quantityformat/FormatUnits.js +2 -2
- package/lib/imodel-components-react/quantityformat/FormatUnits.js.map +1 -0
- package/lib/imodel-components-react/quantityformat/MiscFormatOptions.d.ts.map +1 -0
- package/lib/{esm/imodel-components-react → imodel-components-react}/quantityformat/MiscFormatOptions.js +7 -7
- package/lib/imodel-components-react/quantityformat/MiscFormatOptions.js.map +1 -0
- package/lib/imodel-components-react/quantityformat/QuantityFormatPanel.d.ts.map +1 -0
- package/lib/{esm/imodel-components-react → imodel-components-react}/quantityformat/QuantityFormatPanel.js +1 -1
- package/lib/imodel-components-react/quantityformat/QuantityFormatPanel.js.map +1 -0
- package/lib/imodel-components-react/quantityformat/misc/DecimalPrecision.d.ts.map +1 -0
- package/lib/{esm/imodel-components-react → imodel-components-react}/quantityformat/misc/DecimalPrecision.js +1 -1
- package/lib/{esm/imodel-components-react → imodel-components-react}/quantityformat/misc/DecimalPrecision.js.map +1 -1
- package/lib/imodel-components-react/quantityformat/misc/DecimalSeparator.d.ts.map +1 -0
- package/lib/{esm/imodel-components-react → imodel-components-react}/quantityformat/misc/DecimalSeparator.js +1 -1
- package/lib/imodel-components-react/quantityformat/misc/DecimalSeparator.js.map +1 -0
- package/lib/imodel-components-react/quantityformat/misc/FractionPrecision.d.ts.map +1 -0
- package/lib/{esm/imodel-components-react → imodel-components-react}/quantityformat/misc/FractionPrecision.js +1 -1
- package/lib/imodel-components-react/quantityformat/misc/FractionPrecision.js.map +1 -0
- package/lib/imodel-components-react/quantityformat/misc/ScientificType.d.ts.map +1 -0
- package/lib/{esm/imodel-components-react → imodel-components-react}/quantityformat/misc/ScientificType.js +1 -1
- package/lib/imodel-components-react/quantityformat/misc/ScientificType.js.map +1 -0
- package/lib/imodel-components-react/quantityformat/misc/SignOption.d.ts.map +1 -0
- package/lib/{esm/imodel-components-react → imodel-components-react}/quantityformat/misc/SignOption.js +1 -1
- package/lib/imodel-components-react/quantityformat/misc/SignOption.js.map +1 -0
- package/lib/imodel-components-react/quantityformat/misc/StationSeparatorSelector.d.ts.map +1 -0
- package/lib/{esm/imodel-components-react → imodel-components-react}/quantityformat/misc/StationSeparatorSelector.js +1 -1
- package/lib/imodel-components-react/quantityformat/misc/StationSeparatorSelector.js.map +1 -0
- package/lib/imodel-components-react/quantityformat/misc/StationSizeSelector.d.ts.map +1 -0
- package/lib/{esm/imodel-components-react → imodel-components-react}/quantityformat/misc/StationSizeSelector.js +1 -1
- package/lib/imodel-components-react/quantityformat/misc/StationSizeSelector.js.map +1 -0
- package/lib/imodel-components-react/quantityformat/misc/ThousandsSelector.d.ts.map +1 -0
- package/lib/{esm/imodel-components-react → imodel-components-react}/quantityformat/misc/ThousandsSelector.js +1 -1
- package/lib/imodel-components-react/quantityformat/misc/ThousandsSelector.js.map +1 -0
- package/lib/imodel-components-react/quantityformat/misc/ThousandsSeparator.d.ts.map +1 -0
- package/lib/{esm/imodel-components-react → imodel-components-react}/quantityformat/misc/ThousandsSeparator.js +2 -2
- package/lib/imodel-components-react/quantityformat/misc/ThousandsSeparator.js.map +1 -0
- package/lib/imodel-components-react/quantityformat/misc/UnitDescr.d.ts.map +1 -0
- package/lib/imodel-components-react/quantityformat/misc/UnitDescr.js.map +1 -0
- package/lib/{cjs/imodel-components-react → imodel-components-react}/timeline/BaseSolarDataProvider.d.ts +1 -1
- package/lib/imodel-components-react/timeline/BaseSolarDataProvider.d.ts.map +1 -0
- package/lib/{esm/imodel-components-react → imodel-components-react}/timeline/BaseSolarDataProvider.js.map +1 -1
- package/lib/{cjs/imodel-components-react → imodel-components-react}/timeline/BaseTimelineDataProvider.d.ts +1 -1
- package/lib/imodel-components-react/timeline/BaseTimelineDataProvider.d.ts.map +1 -0
- package/lib/imodel-components-react/timeline/BaseTimelineDataProvider.js.map +1 -0
- package/lib/imodel-components-react/timeline/InlineEdit.d.ts.map +1 -0
- package/lib/imodel-components-react/timeline/InlineEdit.js.map +1 -0
- package/lib/{esm/imodel-components-react → imodel-components-react}/timeline/InlineEdit.scss +3 -5
- package/lib/imodel-components-react/timeline/PlayButton.d.ts.map +1 -0
- package/lib/{esm/imodel-components-react → imodel-components-react}/timeline/PlayButton.js +1 -1
- package/lib/imodel-components-react/timeline/PlayButton.js.map +1 -0
- package/lib/{cjs/imodel-components-react → imodel-components-react}/timeline/Scrubber.d.ts +2 -4
- package/lib/imodel-components-react/timeline/Scrubber.d.ts.map +1 -0
- package/lib/{esm/imodel-components-react → imodel-components-react}/timeline/Scrubber.js +19 -12
- package/lib/imodel-components-react/timeline/Scrubber.js.map +1 -0
- package/lib/{esm/imodel-components-react → imodel-components-react}/timeline/Scrubber.scss +1 -1
- package/lib/{esm/imodel-components-react → imodel-components-react}/timeline/SolarTimeline.d.ts +1 -1
- package/lib/imodel-components-react/timeline/SolarTimeline.d.ts.map +1 -0
- package/lib/{esm/imodel-components-react → imodel-components-react}/timeline/SolarTimeline.js +3 -3
- package/lib/imodel-components-react/timeline/SolarTimeline.js.map +1 -0
- package/lib/{esm/imodel-components-react → imodel-components-react}/timeline/SolarTimeline.scss +0 -2
- package/lib/imodel-components-react/timeline/SpeedTimeline.d.ts.map +1 -0
- package/lib/imodel-components-react/timeline/SpeedTimeline.js.map +1 -0
- package/lib/{cjs/imodel-components-react → imodel-components-react}/timeline/SpeedTimeline.scss +2 -4
- package/lib/{esm/imodel-components-react → imodel-components-react}/timeline/Timeline.scss +7 -9
- package/lib/{esm/imodel-components-react → imodel-components-react}/timeline/TimelineComponent.d.ts +1 -1
- package/lib/imodel-components-react/timeline/TimelineComponent.d.ts.map +1 -0
- package/lib/{esm/imodel-components-react → imodel-components-react}/timeline/TimelineComponent.js +5 -5
- package/lib/imodel-components-react/timeline/TimelineComponent.js.map +1 -0
- package/lib/imodel-components-react/timeline/interfaces.d.ts.map +1 -0
- package/lib/imodel-components-react/timeline/interfaces.js.map +1 -0
- package/lib/imodel-components-react/useTranslation.d.ts.map +1 -0
- package/lib/{esm/imodel-components-react → imodel-components-react}/useTranslation.js +2 -2
- package/lib/imodel-components-react/useTranslation.js.map +1 -0
- package/lib/imodel-components-react/viewport/ViewportComponent.d.ts.map +1 -0
- package/lib/{esm/imodel-components-react → imodel-components-react}/viewport/ViewportComponent.js +1 -1
- package/lib/imodel-components-react/viewport/ViewportComponent.js.map +1 -0
- package/lib/{cjs/imodel-components-react → imodel-components-react}/viewport/ViewportComponentEvents.d.ts +1 -1
- package/lib/imodel-components-react/viewport/ViewportComponentEvents.d.ts.map +1 -0
- package/lib/{esm/imodel-components-react → imodel-components-react}/viewport/ViewportComponentEvents.js +1 -1
- package/lib/imodel-components-react/viewport/ViewportComponentEvents.js.map +1 -0
- package/lib/imodel-components-react.d.ts +77 -0
- package/lib/imodel-components-react.d.ts.map +1 -0
- package/lib/imodel-components-react.js +90 -0
- package/lib/imodel-components-react.js.map +1 -0
- package/lib/internal.d.ts +2 -0
- package/lib/internal.d.ts.map +1 -0
- package/lib/{esm/imodel-components-react/navigationaids/Cube.scss → internal.js} +2 -15
- package/lib/internal.js.map +1 -0
- package/package.json +46 -36
- package/lib/cjs/imodel-components-react/UiIModelComponents.d.ts.map +0 -1
- package/lib/cjs/imodel-components-react/UiIModelComponents.js +0 -78
- package/lib/cjs/imodel-components-react/UiIModelComponents.js.map +0 -1
- package/lib/cjs/imodel-components-react/color/AlphaSlider.d.ts.map +0 -1
- package/lib/cjs/imodel-components-react/color/AlphaSlider.js +0 -182
- package/lib/cjs/imodel-components-react/color/AlphaSlider.js.map +0 -1
- package/lib/cjs/imodel-components-react/color/ColorPickerButton.d.ts.map +0 -1
- package/lib/cjs/imodel-components-react/color/ColorPickerButton.js +0 -119
- package/lib/cjs/imodel-components-react/color/ColorPickerButton.js.map +0 -1
- package/lib/cjs/imodel-components-react/color/ColorPickerButton.scss +0 -90
- package/lib/cjs/imodel-components-react/color/ColorPickerDialog.d.ts.map +0 -1
- package/lib/cjs/imodel-components-react/color/ColorPickerDialog.js +0 -76
- package/lib/cjs/imodel-components-react/color/ColorPickerDialog.js.map +0 -1
- package/lib/cjs/imodel-components-react/color/ColorPickerPopup.d.ts.map +0 -1
- package/lib/cjs/imodel-components-react/color/ColorPickerPopup.js +0 -141
- package/lib/cjs/imodel-components-react/color/ColorPickerPopup.js.map +0 -1
- package/lib/cjs/imodel-components-react/color/HueSlider.d.ts.map +0 -1
- package/lib/cjs/imodel-components-react/color/HueSlider.js +0 -201
- package/lib/cjs/imodel-components-react/color/HueSlider.js.map +0 -1
- package/lib/cjs/imodel-components-react/color/SaturationPicker.d.ts.map +0 -1
- package/lib/cjs/imodel-components-react/color/SaturationPicker.js +0 -197
- package/lib/cjs/imodel-components-react/color/SaturationPicker.js.map +0 -1
- package/lib/cjs/imodel-components-react/color/Swatch.d.ts.map +0 -1
- package/lib/cjs/imodel-components-react/color/Swatch.js +0 -63
- package/lib/cjs/imodel-components-react/color/Swatch.js.map +0 -1
- package/lib/cjs/imodel-components-react/color/getCSSColorFromDef.d.ts.map +0 -1
- package/lib/cjs/imodel-components-react/color/getCSSColorFromDef.js +0 -24
- package/lib/cjs/imodel-components-react/color/getCSSColorFromDef.js.map +0 -1
- package/lib/cjs/imodel-components-react/editors/ColorEditor.d.ts.map +0 -1
- package/lib/cjs/imodel-components-react/editors/ColorEditor.js +0 -150
- package/lib/cjs/imodel-components-react/editors/ColorEditor.js.map +0 -1
- package/lib/cjs/imodel-components-react/editors/WeightEditor.d.ts.map +0 -1
- package/lib/cjs/imodel-components-react/editors/WeightEditor.js +0 -153
- package/lib/cjs/imodel-components-react/editors/WeightEditor.js.map +0 -1
- package/lib/cjs/imodel-components-react/inputs/QuantityInput.d.ts.map +0 -1
- package/lib/cjs/imodel-components-react/inputs/QuantityInput.js +0 -94
- package/lib/cjs/imodel-components-react/inputs/QuantityInput.js.map +0 -1
- package/lib/cjs/imodel-components-react/inputs/QuantityNumberInput.d.ts.map +0 -1
- package/lib/cjs/imodel-components-react/inputs/QuantityNumberInput.js +0 -265
- package/lib/cjs/imodel-components-react/inputs/QuantityNumberInput.js.map +0 -1
- package/lib/cjs/imodel-components-react/lineweight/Swatch.d.ts.map +0 -1
- package/lib/cjs/imodel-components-react/lineweight/Swatch.js +0 -84
- package/lib/cjs/imodel-components-react/lineweight/Swatch.js.map +0 -1
- package/lib/cjs/imodel-components-react/lineweight/WeightPickerButton.d.ts.map +0 -1
- package/lib/cjs/imodel-components-react/lineweight/WeightPickerButton.js +0 -160
- package/lib/cjs/imodel-components-react/lineweight/WeightPickerButton.js.map +0 -1
- package/lib/cjs/imodel-components-react/lineweight/WeightPickerButton.scss +0 -51
- package/lib/cjs/imodel-components-react/navigationaids/Cube.d.ts.map +0 -1
- package/lib/cjs/imodel-components-react/navigationaids/Cube.js +0 -151
- package/lib/cjs/imodel-components-react/navigationaids/Cube.js.map +0 -1
- package/lib/cjs/imodel-components-react/navigationaids/CubeNavigationAid.d.ts +0 -153
- package/lib/cjs/imodel-components-react/navigationaids/CubeNavigationAid.d.ts.map +0 -1
- package/lib/cjs/imodel-components-react/navigationaids/CubeNavigationAid.js +0 -683
- package/lib/cjs/imodel-components-react/navigationaids/CubeNavigationAid.js.map +0 -1
- package/lib/cjs/imodel-components-react/navigationaids/CubeNavigationAid.scss +0 -179
- package/lib/cjs/imodel-components-react/navigationaids/DrawingNavigationAid.d.ts.map +0 -1
- package/lib/cjs/imodel-components-react/navigationaids/DrawingNavigationAid.js +0 -736
- package/lib/cjs/imodel-components-react/navigationaids/DrawingNavigationAid.js.map +0 -1
- package/lib/cjs/imodel-components-react/quantityformat/FormatPanel.d.ts.map +0 -1
- package/lib/cjs/imodel-components-react/quantityformat/FormatPanel.js +0 -112
- package/lib/cjs/imodel-components-react/quantityformat/FormatPanel.js.map +0 -1
- package/lib/cjs/imodel-components-react/quantityformat/FormatPanel.scss +0 -55
- package/lib/cjs/imodel-components-react/quantityformat/FormatPrecision.d.ts.map +0 -1
- package/lib/cjs/imodel-components-react/quantityformat/FormatPrecision.js +0 -56
- package/lib/cjs/imodel-components-react/quantityformat/FormatPrecision.js.map +0 -1
- package/lib/cjs/imodel-components-react/quantityformat/FormatSample.d.ts.map +0 -1
- package/lib/cjs/imodel-components-react/quantityformat/FormatSample.js +0 -94
- package/lib/cjs/imodel-components-react/quantityformat/FormatSample.js.map +0 -1
- package/lib/cjs/imodel-components-react/quantityformat/FormatType.d.ts.map +0 -1
- package/lib/cjs/imodel-components-react/quantityformat/FormatType.js +0 -115
- package/lib/cjs/imodel-components-react/quantityformat/FormatType.js.map +0 -1
- package/lib/cjs/imodel-components-react/quantityformat/FormatUnitLabel.d.ts.map +0 -1
- package/lib/cjs/imodel-components-react/quantityformat/FormatUnitLabel.js +0 -117
- package/lib/cjs/imodel-components-react/quantityformat/FormatUnitLabel.js.map +0 -1
- package/lib/cjs/imodel-components-react/quantityformat/FormatUnits.d.ts.map +0 -1
- package/lib/cjs/imodel-components-react/quantityformat/FormatUnits.js +0 -137
- package/lib/cjs/imodel-components-react/quantityformat/FormatUnits.js.map +0 -1
- package/lib/cjs/imodel-components-react/quantityformat/MiscFormatOptions.d.ts.map +0 -1
- package/lib/cjs/imodel-components-react/quantityformat/MiscFormatOptions.js +0 -193
- package/lib/cjs/imodel-components-react/quantityformat/MiscFormatOptions.js.map +0 -1
- package/lib/cjs/imodel-components-react/quantityformat/QuantityFormatPanel.d.ts.map +0 -1
- package/lib/cjs/imodel-components-react/quantityformat/QuantityFormatPanel.js +0 -145
- package/lib/cjs/imodel-components-react/quantityformat/QuantityFormatPanel.js.map +0 -1
- package/lib/cjs/imodel-components-react/quantityformat/misc/DecimalPrecision.d.ts.map +0 -1
- package/lib/cjs/imodel-components-react/quantityformat/misc/DecimalPrecision.js +0 -104
- package/lib/cjs/imodel-components-react/quantityformat/misc/DecimalPrecision.js.map +0 -1
- package/lib/cjs/imodel-components-react/quantityformat/misc/DecimalSeparator.d.ts.map +0 -1
- package/lib/cjs/imodel-components-react/quantityformat/misc/DecimalSeparator.js +0 -59
- package/lib/cjs/imodel-components-react/quantityformat/misc/DecimalSeparator.js.map +0 -1
- package/lib/cjs/imodel-components-react/quantityformat/misc/FractionPrecision.d.ts.map +0 -1
- package/lib/cjs/imodel-components-react/quantityformat/misc/FractionPrecision.js +0 -87
- package/lib/cjs/imodel-components-react/quantityformat/misc/FractionPrecision.js.map +0 -1
- package/lib/cjs/imodel-components-react/quantityformat/misc/ScientificType.d.ts.map +0 -1
- package/lib/cjs/imodel-components-react/quantityformat/misc/ScientificType.js +0 -60
- package/lib/cjs/imodel-components-react/quantityformat/misc/ScientificType.js.map +0 -1
- package/lib/cjs/imodel-components-react/quantityformat/misc/SignOption.d.ts.map +0 -1
- package/lib/cjs/imodel-components-react/quantityformat/misc/SignOption.js +0 -68
- package/lib/cjs/imodel-components-react/quantityformat/misc/SignOption.js.map +0 -1
- package/lib/cjs/imodel-components-react/quantityformat/misc/StationSeparatorSelector.d.ts.map +0 -1
- package/lib/cjs/imodel-components-react/quantityformat/misc/StationSeparatorSelector.js +0 -76
- package/lib/cjs/imodel-components-react/quantityformat/misc/StationSeparatorSelector.js.map +0 -1
- package/lib/cjs/imodel-components-react/quantityformat/misc/StationSizeSelector.d.ts.map +0 -1
- package/lib/cjs/imodel-components-react/quantityformat/misc/StationSizeSelector.js +0 -59
- package/lib/cjs/imodel-components-react/quantityformat/misc/StationSizeSelector.js.map +0 -1
- package/lib/cjs/imodel-components-react/quantityformat/misc/ThousandsSelector.d.ts.map +0 -1
- package/lib/cjs/imodel-components-react/quantityformat/misc/ThousandsSelector.js +0 -65
- package/lib/cjs/imodel-components-react/quantityformat/misc/ThousandsSelector.js.map +0 -1
- package/lib/cjs/imodel-components-react/quantityformat/misc/ThousandsSeparator.d.ts.map +0 -1
- package/lib/cjs/imodel-components-react/quantityformat/misc/ThousandsSeparator.js +0 -106
- package/lib/cjs/imodel-components-react/quantityformat/misc/ThousandsSeparator.js.map +0 -1
- package/lib/cjs/imodel-components-react/quantityformat/misc/UnitDescr.d.ts.map +0 -1
- package/lib/cjs/imodel-components-react/quantityformat/misc/UnitDescr.js +0 -135
- package/lib/cjs/imodel-components-react/quantityformat/misc/UnitDescr.js.map +0 -1
- package/lib/cjs/imodel-components-react/timeline/BaseSolarDataProvider.d.ts.map +0 -1
- package/lib/cjs/imodel-components-react/timeline/BaseSolarDataProvider.js +0 -150
- package/lib/cjs/imodel-components-react/timeline/BaseSolarDataProvider.js.map +0 -1
- package/lib/cjs/imodel-components-react/timeline/BaseTimelineDataProvider.d.ts.map +0 -1
- package/lib/cjs/imodel-components-react/timeline/BaseTimelineDataProvider.js +0 -64
- package/lib/cjs/imodel-components-react/timeline/BaseTimelineDataProvider.js.map +0 -1
- package/lib/cjs/imodel-components-react/timeline/InlineEdit.d.ts.map +0 -1
- package/lib/cjs/imodel-components-react/timeline/InlineEdit.js +0 -86
- package/lib/cjs/imodel-components-react/timeline/InlineEdit.js.map +0 -1
- package/lib/cjs/imodel-components-react/timeline/InlineEdit.scss +0 -24
- package/lib/cjs/imodel-components-react/timeline/PlayButton.d.ts.map +0 -1
- package/lib/cjs/imodel-components-react/timeline/PlayButton.js +0 -50
- package/lib/cjs/imodel-components-react/timeline/PlayButton.js.map +0 -1
- package/lib/cjs/imodel-components-react/timeline/Scrubber.d.ts.map +0 -1
- package/lib/cjs/imodel-components-react/timeline/Scrubber.js +0 -185
- package/lib/cjs/imodel-components-react/timeline/Scrubber.js.map +0 -1
- package/lib/cjs/imodel-components-react/timeline/Scrubber.scss +0 -105
- package/lib/cjs/imodel-components-react/timeline/SolarTimeline.d.ts +0 -60
- package/lib/cjs/imodel-components-react/timeline/SolarTimeline.d.ts.map +0 -1
- package/lib/cjs/imodel-components-react/timeline/SolarTimeline.js +0 -358
- package/lib/cjs/imodel-components-react/timeline/SolarTimeline.js.map +0 -1
- package/lib/cjs/imodel-components-react/timeline/SolarTimeline.scss +0 -45
- package/lib/cjs/imodel-components-react/timeline/SpeedTimeline.d.ts.map +0 -1
- package/lib/cjs/imodel-components-react/timeline/SpeedTimeline.js +0 -57
- package/lib/cjs/imodel-components-react/timeline/SpeedTimeline.js.map +0 -1
- package/lib/cjs/imodel-components-react/timeline/Timeline.scss +0 -165
- package/lib/cjs/imodel-components-react/timeline/TimelineComponent.d.ts +0 -100
- package/lib/cjs/imodel-components-react/timeline/TimelineComponent.d.ts.map +0 -1
- package/lib/cjs/imodel-components-react/timeline/TimelineComponent.js +0 -286
- package/lib/cjs/imodel-components-react/timeline/TimelineComponent.js.map +0 -1
- package/lib/cjs/imodel-components-react/timeline/interfaces.d.ts.map +0 -1
- package/lib/cjs/imodel-components-react/timeline/interfaces.js +0 -46
- package/lib/cjs/imodel-components-react/timeline/interfaces.js.map +0 -1
- package/lib/cjs/imodel-components-react/useTranslation.d.ts.map +0 -1
- package/lib/cjs/imodel-components-react/useTranslation.js +0 -52
- package/lib/cjs/imodel-components-react/useTranslation.js.map +0 -1
- package/lib/cjs/imodel-components-react/viewport/ViewportComponent.d.ts.map +0 -1
- package/lib/cjs/imodel-components-react/viewport/ViewportComponent.js +0 -267
- package/lib/cjs/imodel-components-react/viewport/ViewportComponent.js.map +0 -1
- package/lib/cjs/imodel-components-react/viewport/ViewportComponentEvents.d.ts.map +0 -1
- package/lib/cjs/imodel-components-react/viewport/ViewportComponentEvents.js +0 -119
- package/lib/cjs/imodel-components-react/viewport/ViewportComponentEvents.js.map +0 -1
- package/lib/cjs/imodel-components-react.d.ts +0 -80
- package/lib/cjs/imodel-components-react.d.ts.map +0 -1
- package/lib/cjs/imodel-components-react.js +0 -103
- package/lib/cjs/imodel-components-react.js.map +0 -1
- package/lib/esm/imodel-components-react/UiIModelComponents.d.ts +0 -29
- package/lib/esm/imodel-components-react/UiIModelComponents.d.ts.map +0 -1
- package/lib/esm/imodel-components-react/UiIModelComponents.js.map +0 -1
- package/lib/esm/imodel-components-react/UiIModelComponents.json +0 -150
- package/lib/esm/imodel-components-react/color/AlphaSlider.d.ts +0 -36
- package/lib/esm/imodel-components-react/color/AlphaSlider.d.ts.map +0 -1
- package/lib/esm/imodel-components-react/color/AlphaSlider.js.map +0 -1
- package/lib/esm/imodel-components-react/color/AlphaSlider.scss +0 -71
- package/lib/esm/imodel-components-react/color/ColorPickerButton.d.ts +0 -40
- package/lib/esm/imodel-components-react/color/ColorPickerButton.d.ts.map +0 -1
- package/lib/esm/imodel-components-react/color/ColorPickerButton.js.map +0 -1
- package/lib/esm/imodel-components-react/color/ColorPickerDialog.d.ts +0 -26
- package/lib/esm/imodel-components-react/color/ColorPickerDialog.d.ts.map +0 -1
- package/lib/esm/imodel-components-react/color/ColorPickerDialog.js.map +0 -1
- package/lib/esm/imodel-components-react/color/ColorPickerPopup.d.ts +0 -47
- package/lib/esm/imodel-components-react/color/ColorPickerPopup.d.ts.map +0 -1
- package/lib/esm/imodel-components-react/color/ColorPickerPopup.js.map +0 -1
- package/lib/esm/imodel-components-react/color/ColorPickerPopup.scss +0 -62
- package/lib/esm/imodel-components-react/color/HueSlider.d.ts +0 -25
- package/lib/esm/imodel-components-react/color/HueSlider.d.ts.map +0 -1
- package/lib/esm/imodel-components-react/color/HueSlider.scss +0 -78
- package/lib/esm/imodel-components-react/color/SaturationPicker.d.ts +0 -23
- package/lib/esm/imodel-components-react/color/SaturationPicker.d.ts.map +0 -1
- package/lib/esm/imodel-components-react/color/SaturationPicker.js.map +0 -1
- package/lib/esm/imodel-components-react/color/SaturationPicker.scss +0 -36
- package/lib/esm/imodel-components-react/color/Swatch.d.ts +0 -25
- package/lib/esm/imodel-components-react/color/Swatch.d.ts.map +0 -1
- package/lib/esm/imodel-components-react/color/Swatch.scss +0 -22
- package/lib/esm/imodel-components-react/color/getCSSColorFromDef.d.ts +0 -7
- package/lib/esm/imodel-components-react/color/getCSSColorFromDef.d.ts.map +0 -1
- package/lib/esm/imodel-components-react/color/getCSSColorFromDef.js.map +0 -1
- package/lib/esm/imodel-components-react/editors/ColorEditor.d.ts +0 -42
- package/lib/esm/imodel-components-react/editors/ColorEditor.d.ts.map +0 -1
- package/lib/esm/imodel-components-react/editors/ColorEditor.js.map +0 -1
- package/lib/esm/imodel-components-react/editors/ColorEditor.scss +0 -18
- package/lib/esm/imodel-components-react/editors/WeightEditor.d.ts +0 -44
- package/lib/esm/imodel-components-react/editors/WeightEditor.d.ts.map +0 -1
- package/lib/esm/imodel-components-react/editors/WeightEditor.js.map +0 -1
- package/lib/esm/imodel-components-react/editors/WeightEditor.scss +0 -16
- package/lib/esm/imodel-components-react/inputs/QuantityInput.d.ts +0 -26
- package/lib/esm/imodel-components-react/inputs/QuantityInput.d.ts.map +0 -1
- package/lib/esm/imodel-components-react/inputs/QuantityNumberInput.d.ts +0 -47
- package/lib/esm/imodel-components-react/inputs/QuantityNumberInput.d.ts.map +0 -1
- package/lib/esm/imodel-components-react/inputs/QuantityNumberInput.js.map +0 -1
- package/lib/esm/imodel-components-react/inputs/QuantityNumberInput.scss +0 -106
- package/lib/esm/imodel-components-react/lineweight/Swatch.d.ts +0 -33
- package/lib/esm/imodel-components-react/lineweight/Swatch.d.ts.map +0 -1
- package/lib/esm/imodel-components-react/lineweight/Swatch.scss +0 -48
- package/lib/esm/imodel-components-react/lineweight/WeightPickerButton.d.ts +0 -59
- package/lib/esm/imodel-components-react/lineweight/WeightPickerButton.d.ts.map +0 -1
- package/lib/esm/imodel-components-react/navigationaids/Cube.d.ts +0 -46
- package/lib/esm/imodel-components-react/navigationaids/Cube.d.ts.map +0 -1
- package/lib/esm/imodel-components-react/navigationaids/Cube.js.map +0 -1
- package/lib/esm/imodel-components-react/navigationaids/CubeNavigationAid.d.ts.map +0 -1
- package/lib/esm/imodel-components-react/navigationaids/CubeNavigationAid.js.map +0 -1
- package/lib/esm/imodel-components-react/navigationaids/DrawingNavigationAid.d.ts +0 -144
- package/lib/esm/imodel-components-react/navigationaids/DrawingNavigationAid.d.ts.map +0 -1
- package/lib/esm/imodel-components-react/navigationaids/DrawingNavigationAid.js.map +0 -1
- package/lib/esm/imodel-components-react/navigationaids/DrawingNavigationAid.scss +0 -134
- package/lib/esm/imodel-components-react/quantityformat/FormatPanel.d.ts +0 -29
- package/lib/esm/imodel-components-react/quantityformat/FormatPanel.d.ts.map +0 -1
- package/lib/esm/imodel-components-react/quantityformat/FormatPanel.js.map +0 -1
- package/lib/esm/imodel-components-react/quantityformat/FormatPrecision.d.ts +0 -19
- package/lib/esm/imodel-components-react/quantityformat/FormatPrecision.d.ts.map +0 -1
- package/lib/esm/imodel-components-react/quantityformat/FormatPrecision.js.map +0 -1
- package/lib/esm/imodel-components-react/quantityformat/FormatSample.d.ts +0 -20
- package/lib/esm/imodel-components-react/quantityformat/FormatSample.d.ts.map +0 -1
- package/lib/esm/imodel-components-react/quantityformat/FormatSample.js.map +0 -1
- package/lib/esm/imodel-components-react/quantityformat/FormatType.d.ts +0 -19
- package/lib/esm/imodel-components-react/quantityformat/FormatType.d.ts.map +0 -1
- package/lib/esm/imodel-components-react/quantityformat/FormatUnitLabel.d.ts +0 -19
- package/lib/esm/imodel-components-react/quantityformat/FormatUnitLabel.d.ts.map +0 -1
- package/lib/esm/imodel-components-react/quantityformat/FormatUnits.d.ts +0 -21
- package/lib/esm/imodel-components-react/quantityformat/FormatUnits.d.ts.map +0 -1
- package/lib/esm/imodel-components-react/quantityformat/FormatUnits.js.map +0 -1
- package/lib/esm/imodel-components-react/quantityformat/MiscFormatOptions.d.ts +0 -23
- package/lib/esm/imodel-components-react/quantityformat/MiscFormatOptions.d.ts.map +0 -1
- package/lib/esm/imodel-components-react/quantityformat/MiscFormatOptions.js.map +0 -1
- package/lib/esm/imodel-components-react/quantityformat/QuantityFormatPanel.d.ts +0 -24
- package/lib/esm/imodel-components-react/quantityformat/QuantityFormatPanel.d.ts.map +0 -1
- package/lib/esm/imodel-components-react/quantityformat/QuantityFormatPanel.js.map +0 -1
- package/lib/esm/imodel-components-react/quantityformat/misc/DecimalPrecision.d.ts +0 -18
- package/lib/esm/imodel-components-react/quantityformat/misc/DecimalPrecision.d.ts.map +0 -1
- package/lib/esm/imodel-components-react/quantityformat/misc/DecimalSeparator.d.ts +0 -18
- package/lib/esm/imodel-components-react/quantityformat/misc/DecimalSeparator.d.ts.map +0 -1
- package/lib/esm/imodel-components-react/quantityformat/misc/DecimalSeparator.js.map +0 -1
- package/lib/esm/imodel-components-react/quantityformat/misc/FractionPrecision.d.ts +0 -17
- package/lib/esm/imodel-components-react/quantityformat/misc/FractionPrecision.d.ts.map +0 -1
- package/lib/esm/imodel-components-react/quantityformat/misc/FractionPrecision.js.map +0 -1
- package/lib/esm/imodel-components-react/quantityformat/misc/ScientificType.d.ts +0 -19
- package/lib/esm/imodel-components-react/quantityformat/misc/ScientificType.d.ts.map +0 -1
- package/lib/esm/imodel-components-react/quantityformat/misc/ScientificType.js.map +0 -1
- package/lib/esm/imodel-components-react/quantityformat/misc/SignOption.d.ts +0 -18
- package/lib/esm/imodel-components-react/quantityformat/misc/SignOption.d.ts.map +0 -1
- package/lib/esm/imodel-components-react/quantityformat/misc/SignOption.js.map +0 -1
- package/lib/esm/imodel-components-react/quantityformat/misc/StationSeparatorSelector.d.ts +0 -18
- package/lib/esm/imodel-components-react/quantityformat/misc/StationSeparatorSelector.d.ts.map +0 -1
- package/lib/esm/imodel-components-react/quantityformat/misc/StationSeparatorSelector.js.map +0 -1
- package/lib/esm/imodel-components-react/quantityformat/misc/StationSizeSelector.d.ts +0 -18
- package/lib/esm/imodel-components-react/quantityformat/misc/StationSizeSelector.d.ts.map +0 -1
- package/lib/esm/imodel-components-react/quantityformat/misc/StationSizeSelector.js.map +0 -1
- package/lib/esm/imodel-components-react/quantityformat/misc/ThousandsSelector.d.ts +0 -18
- package/lib/esm/imodel-components-react/quantityformat/misc/ThousandsSelector.d.ts.map +0 -1
- package/lib/esm/imodel-components-react/quantityformat/misc/ThousandsSelector.js.map +0 -1
- package/lib/esm/imodel-components-react/quantityformat/misc/ThousandsSeparator.d.ts +0 -18
- package/lib/esm/imodel-components-react/quantityformat/misc/ThousandsSeparator.d.ts.map +0 -1
- package/lib/esm/imodel-components-react/quantityformat/misc/ThousandsSeparator.js.map +0 -1
- package/lib/esm/imodel-components-react/quantityformat/misc/UnitDescr.d.ts +0 -24
- package/lib/esm/imodel-components-react/quantityformat/misc/UnitDescr.d.ts.map +0 -1
- package/lib/esm/imodel-components-react/quantityformat/misc/UnitDescr.js.map +0 -1
- package/lib/esm/imodel-components-react/timeline/BaseSolarDataProvider.d.ts +0 -53
- package/lib/esm/imodel-components-react/timeline/BaseSolarDataProvider.d.ts.map +0 -1
- package/lib/esm/imodel-components-react/timeline/BaseTimelineDataProvider.d.ts +0 -32
- package/lib/esm/imodel-components-react/timeline/BaseTimelineDataProvider.d.ts.map +0 -1
- package/lib/esm/imodel-components-react/timeline/BaseTimelineDataProvider.js.map +0 -1
- package/lib/esm/imodel-components-react/timeline/InlineEdit.d.ts +0 -27
- package/lib/esm/imodel-components-react/timeline/InlineEdit.d.ts.map +0 -1
- package/lib/esm/imodel-components-react/timeline/InlineEdit.js.map +0 -1
- package/lib/esm/imodel-components-react/timeline/PlayButton.d.ts +0 -12
- package/lib/esm/imodel-components-react/timeline/PlayButton.d.ts.map +0 -1
- package/lib/esm/imodel-components-react/timeline/PlayButton.js.map +0 -1
- package/lib/esm/imodel-components-react/timeline/Scrubber.d.ts +0 -54
- package/lib/esm/imodel-components-react/timeline/Scrubber.d.ts.map +0 -1
- package/lib/esm/imodel-components-react/timeline/Scrubber.js.map +0 -1
- package/lib/esm/imodel-components-react/timeline/SolarTimeline.d.ts.map +0 -1
- package/lib/esm/imodel-components-react/timeline/SolarTimeline.js.map +0 -1
- package/lib/esm/imodel-components-react/timeline/SpeedTimeline.d.ts +0 -16
- package/lib/esm/imodel-components-react/timeline/SpeedTimeline.d.ts.map +0 -1
- package/lib/esm/imodel-components-react/timeline/SpeedTimeline.js.map +0 -1
- package/lib/esm/imodel-components-react/timeline/SpeedTimeline.scss +0 -40
- package/lib/esm/imodel-components-react/timeline/TimelineComponent.d.ts.map +0 -1
- package/lib/esm/imodel-components-react/timeline/TimelineComponent.js.map +0 -1
- package/lib/esm/imodel-components-react/timeline/TimelineComponent.scss +0 -48
- package/lib/esm/imodel-components-react/timeline/interfaces.d.ts +0 -146
- package/lib/esm/imodel-components-react/timeline/interfaces.d.ts.map +0 -1
- package/lib/esm/imodel-components-react/timeline/interfaces.js.map +0 -1
- package/lib/esm/imodel-components-react/useTranslation.d.ts +0 -7
- package/lib/esm/imodel-components-react/useTranslation.d.ts.map +0 -1
- package/lib/esm/imodel-components-react/useTranslation.js.map +0 -1
- package/lib/esm/imodel-components-react/viewport/ViewportComponent.d.ts +0 -43
- package/lib/esm/imodel-components-react/viewport/ViewportComponent.d.ts.map +0 -1
- package/lib/esm/imodel-components-react/viewport/ViewportComponent.js.map +0 -1
- package/lib/esm/imodel-components-react/viewport/ViewportComponentEvents.d.ts +0 -119
- package/lib/esm/imodel-components-react/viewport/ViewportComponentEvents.d.ts.map +0 -1
- package/lib/esm/imodel-components-react/viewport/ViewportComponentEvents.js.map +0 -1
- package/lib/esm/imodel-components-react.d.ts +0 -80
- package/lib/esm/imodel-components-react.d.ts.map +0 -1
- package/lib/esm/imodel-components-react.js +0 -85
- package/lib/esm/imodel-components-react.js.map +0 -1
- /package/lib/{cjs/imodel-components-react → imodel-components-react}/UiIModelComponents.json +0 -0
- /package/lib/{cjs/imodel-components-react → imodel-components-react}/color/AlphaSlider.d.ts +0 -0
- /package/lib/{cjs/imodel-components-react → imodel-components-react}/color/AlphaSlider.scss +0 -0
- /package/lib/{cjs/imodel-components-react → imodel-components-react}/color/ColorPickerButton.d.ts +0 -0
- /package/lib/{cjs/imodel-components-react → imodel-components-react}/color/ColorPickerDialog.d.ts +0 -0
- /package/lib/{esm/imodel-components-react → imodel-components-react}/color/ColorPickerDialog.js +0 -0
- /package/lib/{cjs/imodel-components-react → imodel-components-react}/color/ColorPickerPopup.d.ts +0 -0
- /package/lib/{cjs/imodel-components-react → imodel-components-react}/color/ColorPickerPopup.scss +0 -0
- /package/lib/{cjs/imodel-components-react → imodel-components-react}/color/HueSlider.d.ts +0 -0
- /package/lib/{cjs/imodel-components-react → imodel-components-react}/color/HueSlider.scss +0 -0
- /package/lib/{cjs/imodel-components-react → imodel-components-react}/color/SaturationPicker.d.ts +0 -0
- /package/lib/{cjs/imodel-components-react → imodel-components-react}/color/SaturationPicker.scss +0 -0
- /package/lib/{cjs/imodel-components-react → imodel-components-react}/color/Swatch.d.ts +0 -0
- /package/lib/{cjs/imodel-components-react → imodel-components-react}/color/Swatch.scss +0 -0
- /package/lib/{cjs/imodel-components-react → imodel-components-react}/color/getCSSColorFromDef.d.ts +0 -0
- /package/lib/{esm/imodel-components-react → imodel-components-react}/color/getCSSColorFromDef.js +0 -0
- /package/lib/{cjs/imodel-components-react → imodel-components-react}/editors/ColorEditor.d.ts +0 -0
- /package/lib/{cjs/imodel-components-react → imodel-components-react}/editors/WeightEditor.d.ts +0 -0
- /package/lib/{cjs/imodel-components-react → imodel-components-react}/inputs/QuantityInput.d.ts +0 -0
- /package/lib/{cjs/imodel-components-react → imodel-components-react}/inputs/QuantityNumberInput.d.ts +0 -0
- /package/lib/{esm/imodel-components-react → imodel-components-react}/inputs/QuantityNumberInput.js +0 -0
- /package/lib/{cjs/imodel-components-react → imodel-components-react}/lineweight/Swatch.d.ts +0 -0
- /package/lib/{cjs/imodel-components-react → imodel-components-react}/lineweight/WeightPickerButton.d.ts +0 -0
- /package/lib/{cjs/imodel-components-react → imodel-components-react}/navigationaids/Cube.d.ts +0 -0
- /package/lib/{esm/imodel-components-react → imodel-components-react}/navigationaids/Cube.js +0 -0
- /package/lib/{cjs/imodel-components-react → imodel-components-react}/navigationaids/Cube.scss +0 -0
- /package/lib/{cjs/imodel-components-react → imodel-components-react}/navigationaids/DrawingNavigationAid.d.ts +0 -0
- /package/lib/{cjs/imodel-components-react → imodel-components-react}/quantityformat/FormatPanel.d.ts +0 -0
- /package/lib/{cjs/imodel-components-react → imodel-components-react}/quantityformat/FormatPrecision.d.ts +0 -0
- /package/lib/{cjs/imodel-components-react → imodel-components-react}/quantityformat/FormatSample.d.ts +0 -0
- /package/lib/{cjs/imodel-components-react → imodel-components-react}/quantityformat/FormatType.d.ts +0 -0
- /package/lib/{cjs/imodel-components-react → imodel-components-react}/quantityformat/FormatUnitLabel.d.ts +0 -0
- /package/lib/{cjs/imodel-components-react → imodel-components-react}/quantityformat/FormatUnits.d.ts +0 -0
- /package/lib/{cjs/imodel-components-react → imodel-components-react}/quantityformat/MiscFormatOptions.d.ts +0 -0
- /package/lib/{cjs/imodel-components-react → imodel-components-react}/quantityformat/QuantityFormatPanel.d.ts +0 -0
- /package/lib/{cjs/imodel-components-react → imodel-components-react}/quantityformat/misc/DecimalPrecision.d.ts +0 -0
- /package/lib/{cjs/imodel-components-react → imodel-components-react}/quantityformat/misc/DecimalSeparator.d.ts +0 -0
- /package/lib/{cjs/imodel-components-react → imodel-components-react}/quantityformat/misc/FractionPrecision.d.ts +0 -0
- /package/lib/{cjs/imodel-components-react → imodel-components-react}/quantityformat/misc/ScientificType.d.ts +0 -0
- /package/lib/{cjs/imodel-components-react → imodel-components-react}/quantityformat/misc/SignOption.d.ts +0 -0
- /package/lib/{cjs/imodel-components-react → imodel-components-react}/quantityformat/misc/StationSeparatorSelector.d.ts +0 -0
- /package/lib/{cjs/imodel-components-react → imodel-components-react}/quantityformat/misc/StationSizeSelector.d.ts +0 -0
- /package/lib/{cjs/imodel-components-react → imodel-components-react}/quantityformat/misc/ThousandsSelector.d.ts +0 -0
- /package/lib/{cjs/imodel-components-react → imodel-components-react}/quantityformat/misc/ThousandsSeparator.d.ts +0 -0
- /package/lib/{cjs/imodel-components-react → imodel-components-react}/quantityformat/misc/UnitDescr.d.ts +0 -0
- /package/lib/{esm/imodel-components-react → imodel-components-react}/quantityformat/misc/UnitDescr.js +0 -0
- /package/lib/{esm/imodel-components-react → imodel-components-react}/timeline/BaseSolarDataProvider.js +0 -0
- /package/lib/{esm/imodel-components-react → imodel-components-react}/timeline/BaseTimelineDataProvider.js +0 -0
- /package/lib/{cjs/imodel-components-react → imodel-components-react}/timeline/InlineEdit.d.ts +0 -0
- /package/lib/{esm/imodel-components-react → imodel-components-react}/timeline/InlineEdit.js +0 -0
- /package/lib/{cjs/imodel-components-react → imodel-components-react}/timeline/PlayButton.d.ts +0 -0
- /package/lib/{cjs/imodel-components-react → imodel-components-react}/timeline/SpeedTimeline.d.ts +0 -0
- /package/lib/{esm/imodel-components-react → imodel-components-react}/timeline/SpeedTimeline.js +0 -0
- /package/lib/{cjs/imodel-components-react → imodel-components-react}/timeline/TimelineComponent.scss +0 -0
- /package/lib/{cjs/imodel-components-react → imodel-components-react}/timeline/interfaces.d.ts +0 -0
- /package/lib/{esm/imodel-components-react → imodel-components-react}/timeline/interfaces.js +0 -0
- /package/lib/{cjs/imodel-components-react → imodel-components-react}/useTranslation.d.ts +0 -0
- /package/lib/{cjs/imodel-components-react → imodel-components-react}/viewport/ViewportComponent.d.ts +0 -0
|
@@ -1,683 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*---------------------------------------------------------------------------------------------
|
|
3
|
-
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
4
|
-
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
5
|
-
*--------------------------------------------------------------------------------------------*/
|
|
6
|
-
/** @packageDocumentation
|
|
7
|
-
* @module NavigationAids
|
|
8
|
-
*/
|
|
9
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
12
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
13
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
14
|
-
}
|
|
15
|
-
Object.defineProperty(o, k2, desc);
|
|
16
|
-
}) : (function(o, m, k, k2) {
|
|
17
|
-
if (k2 === undefined) k2 = k;
|
|
18
|
-
o[k2] = m[k];
|
|
19
|
-
}));
|
|
20
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
21
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
22
|
-
}) : function(o, v) {
|
|
23
|
-
o["default"] = v;
|
|
24
|
-
});
|
|
25
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
26
|
-
if (mod && mod.__esModule) return mod;
|
|
27
|
-
var result = {};
|
|
28
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
29
|
-
__setModuleDefault(result, mod);
|
|
30
|
-
return result;
|
|
31
|
-
};
|
|
32
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
33
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
34
|
-
};
|
|
35
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.FaceCell = exports.NavCubeFace = exports.CubeNavigationAid = exports.CubeHover = exports.CubeNavigationHitBoxZ = exports.CubeNavigationHitBoxY = exports.CubeNavigationHitBoxX = void 0;
|
|
37
|
-
require("./CubeNavigationAid.scss");
|
|
38
|
-
const classnames_1 = __importDefault(require("classnames"));
|
|
39
|
-
const React = __importStar(require("react"));
|
|
40
|
-
const core_geometry_1 = require("@itwin/core-geometry");
|
|
41
|
-
const core_frontend_1 = require("@itwin/core-frontend");
|
|
42
|
-
const core_react_1 = require("@itwin/core-react");
|
|
43
|
-
const UiIModelComponents_1 = require("../UiIModelComponents");
|
|
44
|
-
const ViewportComponentEvents_1 = require("../viewport/ViewportComponentEvents");
|
|
45
|
-
const Cube_1 = require("./Cube");
|
|
46
|
-
const itwinui_icons_react_1 = require("@itwin/itwinui-icons-react");
|
|
47
|
-
/** @public */
|
|
48
|
-
var CubeNavigationHitBoxX;
|
|
49
|
-
(function (CubeNavigationHitBoxX) {
|
|
50
|
-
CubeNavigationHitBoxX[CubeNavigationHitBoxX["None"] = 0] = "None";
|
|
51
|
-
CubeNavigationHitBoxX[CubeNavigationHitBoxX["Right"] = 1] = "Right";
|
|
52
|
-
CubeNavigationHitBoxX[CubeNavigationHitBoxX["Left"] = -1] = "Left";
|
|
53
|
-
})(CubeNavigationHitBoxX || (exports.CubeNavigationHitBoxX = CubeNavigationHitBoxX = {}));
|
|
54
|
-
/** @public */
|
|
55
|
-
var CubeNavigationHitBoxY;
|
|
56
|
-
(function (CubeNavigationHitBoxY) {
|
|
57
|
-
CubeNavigationHitBoxY[CubeNavigationHitBoxY["None"] = 0] = "None";
|
|
58
|
-
CubeNavigationHitBoxY[CubeNavigationHitBoxY["Back"] = 1] = "Back";
|
|
59
|
-
CubeNavigationHitBoxY[CubeNavigationHitBoxY["Front"] = -1] = "Front";
|
|
60
|
-
})(CubeNavigationHitBoxY || (exports.CubeNavigationHitBoxY = CubeNavigationHitBoxY = {}));
|
|
61
|
-
/** @public */
|
|
62
|
-
var CubeNavigationHitBoxZ;
|
|
63
|
-
(function (CubeNavigationHitBoxZ) {
|
|
64
|
-
CubeNavigationHitBoxZ[CubeNavigationHitBoxZ["None"] = 0] = "None";
|
|
65
|
-
CubeNavigationHitBoxZ[CubeNavigationHitBoxZ["Top"] = 1] = "Top";
|
|
66
|
-
CubeNavigationHitBoxZ[CubeNavigationHitBoxZ["Bottom"] = -1] = "Bottom";
|
|
67
|
-
})(CubeNavigationHitBoxZ || (exports.CubeNavigationHitBoxZ = CubeNavigationHitBoxZ = {}));
|
|
68
|
-
const cubeNavigationFaceLocs = {
|
|
69
|
-
[Cube_1.Face.Left]: core_geometry_1.Vector3d.create(CubeNavigationHitBoxX.Left, CubeNavigationHitBoxY.None, CubeNavigationHitBoxZ.None),
|
|
70
|
-
[Cube_1.Face.Right]: core_geometry_1.Vector3d.create(CubeNavigationHitBoxX.Right, CubeNavigationHitBoxY.None, CubeNavigationHitBoxZ.None),
|
|
71
|
-
[Cube_1.Face.Back]: core_geometry_1.Vector3d.create(CubeNavigationHitBoxX.None, CubeNavigationHitBoxY.Back, CubeNavigationHitBoxZ.None),
|
|
72
|
-
[Cube_1.Face.Front]: core_geometry_1.Vector3d.create(CubeNavigationHitBoxX.None, CubeNavigationHitBoxY.Front, CubeNavigationHitBoxZ.None),
|
|
73
|
-
[Cube_1.Face.Bottom]: core_geometry_1.Vector3d.create(CubeNavigationHitBoxX.None, CubeNavigationHitBoxY.None, CubeNavigationHitBoxZ.Bottom),
|
|
74
|
-
[Cube_1.Face.Top]: core_geometry_1.Vector3d.create(CubeNavigationHitBoxX.None, CubeNavigationHitBoxY.None, CubeNavigationHitBoxZ.Top),
|
|
75
|
-
};
|
|
76
|
-
const cubeNavigationFaceRotations = {
|
|
77
|
-
[Cube_1.Face.Left]: core_geometry_1.Matrix3d.createRowValues(0, -1, 0, 0, 0, 1, -1, 0, 0),
|
|
78
|
-
[Cube_1.Face.Right]: core_geometry_1.Matrix3d.createRowValues(0, 1, 0, 0, 0, 1, 1, 0, 0),
|
|
79
|
-
[Cube_1.Face.Back]: core_geometry_1.Matrix3d.createRowValues(-1, 0, 0, 0, 0, 1, 0, 1, 0),
|
|
80
|
-
[Cube_1.Face.Front]: core_geometry_1.Matrix3d.createRowValues(1, 0, 0, 0, 0, 1, 0, -1, 0),
|
|
81
|
-
[Cube_1.Face.Bottom]: core_geometry_1.Matrix3d.createRowValues(1, 0, 0, 0, -1, 0, 0, 0, -1),
|
|
82
|
-
[Cube_1.Face.Top]: core_geometry_1.Matrix3d.createRowValues(1, 0, 0, 0, 1, 0, 0, 0, 1),
|
|
83
|
-
};
|
|
84
|
-
// data relating Up/Down/Left/Right directions relative to every surface
|
|
85
|
-
const cubeNavigationRoutes = {
|
|
86
|
-
[Cube_1.Face.Front]: {
|
|
87
|
-
up: Cube_1.Face.Top,
|
|
88
|
-
down: Cube_1.Face.Bottom,
|
|
89
|
-
left: Cube_1.Face.Left,
|
|
90
|
-
right: Cube_1.Face.Right,
|
|
91
|
-
},
|
|
92
|
-
[Cube_1.Face.Back]: {
|
|
93
|
-
up: Cube_1.Face.Top,
|
|
94
|
-
down: Cube_1.Face.Bottom,
|
|
95
|
-
left: Cube_1.Face.Right,
|
|
96
|
-
right: Cube_1.Face.Left,
|
|
97
|
-
},
|
|
98
|
-
[Cube_1.Face.Top]: {
|
|
99
|
-
up: Cube_1.Face.Back,
|
|
100
|
-
down: Cube_1.Face.Front,
|
|
101
|
-
left: Cube_1.Face.Left,
|
|
102
|
-
right: Cube_1.Face.Right,
|
|
103
|
-
},
|
|
104
|
-
[Cube_1.Face.Bottom]: {
|
|
105
|
-
up: Cube_1.Face.Front,
|
|
106
|
-
down: Cube_1.Face.Back,
|
|
107
|
-
left: Cube_1.Face.Left,
|
|
108
|
-
right: Cube_1.Face.Right,
|
|
109
|
-
},
|
|
110
|
-
[Cube_1.Face.Right]: {
|
|
111
|
-
up: Cube_1.Face.Top,
|
|
112
|
-
down: Cube_1.Face.Bottom,
|
|
113
|
-
left: Cube_1.Face.Front,
|
|
114
|
-
right: Cube_1.Face.Back,
|
|
115
|
-
},
|
|
116
|
-
[Cube_1.Face.Left]: {
|
|
117
|
-
up: Cube_1.Face.Top,
|
|
118
|
-
down: Cube_1.Face.Bottom,
|
|
119
|
-
left: Cube_1.Face.Back,
|
|
120
|
-
right: Cube_1.Face.Front,
|
|
121
|
-
},
|
|
122
|
-
};
|
|
123
|
-
/** The default tolerance (1.0e-6) is appropriate if very dirty viewing operations are expected. */
|
|
124
|
-
const DEFAULT_TOLERANCE = 1.0e-6;
|
|
125
|
-
/** @internal */
|
|
126
|
-
var CubeHover;
|
|
127
|
-
(function (CubeHover) {
|
|
128
|
-
CubeHover[CubeHover["None"] = 0] = "None";
|
|
129
|
-
CubeHover[CubeHover["Hover"] = 1] = "Hover";
|
|
130
|
-
CubeHover[CubeHover["Active"] = 2] = "Active";
|
|
131
|
-
})(CubeHover || (exports.CubeHover = CubeHover = {}));
|
|
132
|
-
/** Cube Navigation Aid Component
|
|
133
|
-
* @public
|
|
134
|
-
*/
|
|
135
|
-
class CubeNavigationAid extends React.Component {
|
|
136
|
-
constructor() {
|
|
137
|
-
super(...arguments);
|
|
138
|
-
this._start = core_geometry_1.Vector2d.createZero();
|
|
139
|
-
this.state = {
|
|
140
|
-
dragging: false,
|
|
141
|
-
startRotMatrix: core_geometry_1.Matrix3d.createIdentity(),
|
|
142
|
-
endRotMatrix: core_geometry_1.Matrix3d.createIdentity(),
|
|
143
|
-
animation: 1,
|
|
144
|
-
hoverMap: {},
|
|
145
|
-
face: Cube_1.Face.Top,
|
|
146
|
-
};
|
|
147
|
-
this._mounted = false;
|
|
148
|
-
this._labels = {
|
|
149
|
-
[Cube_1.Face.Right]: UiIModelComponents_1.UiIModelComponents.translate("cube.right"),
|
|
150
|
-
[Cube_1.Face.Left]: UiIModelComponents_1.UiIModelComponents.translate("cube.left"),
|
|
151
|
-
[Cube_1.Face.Back]: UiIModelComponents_1.UiIModelComponents.translate("cube.back"),
|
|
152
|
-
[Cube_1.Face.Front]: UiIModelComponents_1.UiIModelComponents.translate("cube.front"),
|
|
153
|
-
[Cube_1.Face.Top]: UiIModelComponents_1.UiIModelComponents.translate("cube.top"),
|
|
154
|
-
[Cube_1.Face.Bottom]: UiIModelComponents_1.UiIModelComponents.translate("cube.bottom"),
|
|
155
|
-
};
|
|
156
|
-
// Synchronize with rotation coming from the Viewport
|
|
157
|
-
this._handleViewRotationChangeEvent = (args) => {
|
|
158
|
-
const { animation, dragging, endRotMatrix } = this.state;
|
|
159
|
-
if (this.props.viewport === args.viewport && animation >= 1 && !dragging) {
|
|
160
|
-
const newMatrix = this.props.viewport.view.getRotation().clone();
|
|
161
|
-
if (!endRotMatrix.isAlmostEqual(newMatrix)) {
|
|
162
|
-
this.setState({
|
|
163
|
-
startRotMatrix: newMatrix,
|
|
164
|
-
endRotMatrix: newMatrix,
|
|
165
|
-
animation: 1,
|
|
166
|
-
face: Cube_1.Face.None,
|
|
167
|
-
});
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
};
|
|
171
|
-
this._animation = () => {
|
|
172
|
-
const t = Date.now();
|
|
173
|
-
const delta = this._lastTime ? t - this._lastTime : 16;
|
|
174
|
-
this._lastTime = t;
|
|
175
|
-
if (this.state.animation !== 1) {
|
|
176
|
-
const animation = Math.min(1, this.state.animation +
|
|
177
|
-
delta / (1000 * (this.props.animationTime || 0.4)));
|
|
178
|
-
if (this._mounted) {
|
|
179
|
-
this.setState({ animation }, () => {
|
|
180
|
-
this._animationFrame = setTimeout(this._animation, 16.667);
|
|
181
|
-
});
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
else {
|
|
185
|
-
this._lastTime = undefined;
|
|
186
|
-
this._animationEnd();
|
|
187
|
-
}
|
|
188
|
-
};
|
|
189
|
-
this._animationEnd = () => {
|
|
190
|
-
ViewportComponentEvents_1.ViewportComponentEvents.setCubeMatrix(this.state.endRotMatrix, this.state.face, true);
|
|
191
|
-
const startRotMatrix = this.state.endRotMatrix.clone();
|
|
192
|
-
if (this._mounted) {
|
|
193
|
-
this.setState({ startRotMatrix }, () => {
|
|
194
|
-
if (this.props.onAnimationEnd)
|
|
195
|
-
this.props.onAnimationEnd();
|
|
196
|
-
});
|
|
197
|
-
}
|
|
198
|
-
};
|
|
199
|
-
this._handleCellHoverChange = (vect, state) => {
|
|
200
|
-
if (this._isInteractionLocked()) {
|
|
201
|
-
this.props.onAnimationEnd?.();
|
|
202
|
-
return;
|
|
203
|
-
}
|
|
204
|
-
const hoverMap = this.state.hoverMap;
|
|
205
|
-
hoverMap[`${vect.x}-${vect.y}-${vect.z}`] = state;
|
|
206
|
-
this.setState({ hoverMap });
|
|
207
|
-
};
|
|
208
|
-
this._isInteractionLocked = () => {
|
|
209
|
-
// Locked by markup
|
|
210
|
-
if (undefined !== this.props.viewport &&
|
|
211
|
-
this.props.viewport === core_frontend_1.IModelApp.toolAdmin.markupView) {
|
|
212
|
-
return true;
|
|
213
|
-
}
|
|
214
|
-
return false;
|
|
215
|
-
};
|
|
216
|
-
this._onArrowClick = (arrow) => {
|
|
217
|
-
if (this._isInteractionLocked()) {
|
|
218
|
-
this.props.onAnimationEnd?.();
|
|
219
|
-
return;
|
|
220
|
-
}
|
|
221
|
-
const { newRotation, face } = this.getArrowRotationAndFace(arrow);
|
|
222
|
-
this._animateRotation(newRotation, face);
|
|
223
|
-
};
|
|
224
|
-
this._lastClientXY = core_geometry_1.Vector2d.createZero();
|
|
225
|
-
this._handleBoxMouseDown = (event) => {
|
|
226
|
-
if (this._isInteractionLocked()) {
|
|
227
|
-
this.props.onAnimationEnd?.();
|
|
228
|
-
return;
|
|
229
|
-
}
|
|
230
|
-
event.preventDefault();
|
|
231
|
-
// only start listening after drag is confirmed. Ie. the 3D box is clicked.
|
|
232
|
-
window.addEventListener("mousemove", this._onMouseMove, false);
|
|
233
|
-
window.addEventListener("mouseup", this._onMouseUp, false);
|
|
234
|
-
this._lastClientXY = core_geometry_1.Vector2d.create(event.clientX, event.clientY);
|
|
235
|
-
this._start = this._lastClientXY;
|
|
236
|
-
};
|
|
237
|
-
this._onMouseMove = (event) => {
|
|
238
|
-
const mousePos = core_geometry_1.Vector2d.create(event.clientX, event.clientY);
|
|
239
|
-
this._processDrag(mousePos);
|
|
240
|
-
};
|
|
241
|
-
this._onMouseUp = () => {
|
|
242
|
-
if (this.state.dragging) {
|
|
243
|
-
this.setState({ dragging: false });
|
|
244
|
-
ViewportComponentEvents_1.ViewportComponentEvents.setCubeMatrix(this.state.endRotMatrix, CubeNavigationAid._getMatrixFace(this.state.endRotMatrix), true);
|
|
245
|
-
}
|
|
246
|
-
// remove so event only triggers after this.onMouseStartDrag
|
|
247
|
-
window.removeEventListener("mousemove", this._onMouseMove);
|
|
248
|
-
window.removeEventListener("mouseup", this._onMouseUp);
|
|
249
|
-
};
|
|
250
|
-
this._handleBoxTouchStart = (event) => {
|
|
251
|
-
if (this._isInteractionLocked()) {
|
|
252
|
-
this.props.onAnimationEnd?.();
|
|
253
|
-
return;
|
|
254
|
-
}
|
|
255
|
-
if (1 !== event.targetTouches.length)
|
|
256
|
-
return;
|
|
257
|
-
window.addEventListener("touchmove", this._onTouchMove, false);
|
|
258
|
-
window.addEventListener("touchend", this._onTouchEnd, false);
|
|
259
|
-
this._lastClientXY = core_geometry_1.Vector2d.create(event.targetTouches[0].clientX, event.targetTouches[0].clientY);
|
|
260
|
-
this._start = this._lastClientXY;
|
|
261
|
-
};
|
|
262
|
-
this._onTouchMove = (event) => {
|
|
263
|
-
if (1 !== event.targetTouches.length)
|
|
264
|
-
return;
|
|
265
|
-
const mousePos = core_geometry_1.Vector2d.create(event.targetTouches[0].clientX, event.targetTouches[0].clientY);
|
|
266
|
-
this._processDrag(mousePos);
|
|
267
|
-
};
|
|
268
|
-
this._onTouchEnd = (event) => {
|
|
269
|
-
if (0 !== event.targetTouches.length)
|
|
270
|
-
return;
|
|
271
|
-
if (this.state.dragging) {
|
|
272
|
-
this.setState({ dragging: false });
|
|
273
|
-
ViewportComponentEvents_1.ViewportComponentEvents.setCubeMatrix(this.state.endRotMatrix, CubeNavigationAid._getMatrixFace(this.state.endRotMatrix), true);
|
|
274
|
-
}
|
|
275
|
-
window.removeEventListener("touchmove", this._onTouchMove);
|
|
276
|
-
window.removeEventListener("touchend", this._onTouchEnd);
|
|
277
|
-
};
|
|
278
|
-
this._handleFaceCellClick = (pos, face) => {
|
|
279
|
-
if (this._isInteractionLocked()) {
|
|
280
|
-
this.props.onAnimationEnd?.();
|
|
281
|
-
return;
|
|
282
|
-
}
|
|
283
|
-
const { endRotMatrix } = this.state;
|
|
284
|
-
let rotMatrix = core_geometry_1.Matrix3d.createRigidViewAxesZTowardsEye(pos.x, pos.y, pos.z).inverse();
|
|
285
|
-
if (rotMatrix) {
|
|
286
|
-
// if isMatrixFace and user is clicking on top/bottom, the current matrix face must be top or bottom
|
|
287
|
-
if (!CubeNavigationAid._isMatrixFace(endRotMatrix) &&
|
|
288
|
-
(face === Cube_1.Face.Top || face === Cube_1.Face.Bottom)) {
|
|
289
|
-
const angleAxis = endRotMatrix.getAxisAndAngleOfRotation();
|
|
290
|
-
if (angleAxis.ok) {
|
|
291
|
-
const xAx = endRotMatrix.columnX();
|
|
292
|
-
const a = Math.atan2(xAx.y, xAx.x);
|
|
293
|
-
const r = (Math.round((a * 2) / Math.PI) * Math.PI) / 2; // round to quarter turn intervals
|
|
294
|
-
const rot = core_geometry_1.Matrix3d.createRotationAroundAxisIndex(core_geometry_1.AxisIndex.Z, core_geometry_1.Angle.createRadians(r));
|
|
295
|
-
rotMatrix = rot.multiplyMatrixMatrix(rotMatrix);
|
|
296
|
-
}
|
|
297
|
-
}
|
|
298
|
-
this._animateRotation(rotMatrix, face);
|
|
299
|
-
}
|
|
300
|
-
window.removeEventListener("mousemove", this._onMouseMove);
|
|
301
|
-
};
|
|
302
|
-
this._animateRotation = (endRotMatrix, face) => {
|
|
303
|
-
if (this.state.endRotMatrix.isAlmostEqual(endRotMatrix))
|
|
304
|
-
return;
|
|
305
|
-
// set animation variables, let css transitions animate it.
|
|
306
|
-
this._animationFrame = setTimeout(this._animation, 16.667);
|
|
307
|
-
this.setState((prevState) => ({
|
|
308
|
-
startRotMatrix: prevState.endRotMatrix,
|
|
309
|
-
endRotMatrix,
|
|
310
|
-
animation: 0,
|
|
311
|
-
face,
|
|
312
|
-
}));
|
|
313
|
-
};
|
|
314
|
-
this._setRotation = (endRotMatrix, face) => {
|
|
315
|
-
ViewportComponentEvents_1.ViewportComponentEvents.setCubeMatrix(endRotMatrix, face);
|
|
316
|
-
// set variables, with animTime at 0 to prevent animation.
|
|
317
|
-
this.setState({
|
|
318
|
-
startRotMatrix: endRotMatrix,
|
|
319
|
-
endRotMatrix,
|
|
320
|
-
animation: 1,
|
|
321
|
-
face,
|
|
322
|
-
});
|
|
323
|
-
};
|
|
324
|
-
}
|
|
325
|
-
componentDidMount() {
|
|
326
|
-
this._mounted = true;
|
|
327
|
-
ViewportComponentEvents_1.ViewportComponentEvents.onViewRotationChangeEvent.addListener(this._handleViewRotationChangeEvent);
|
|
328
|
-
// set initial rotation
|
|
329
|
-
if (this.props.viewport) {
|
|
330
|
-
const newMatrix = this.props.viewport.view.getRotation().clone();
|
|
331
|
-
this.setState({
|
|
332
|
-
startRotMatrix: newMatrix,
|
|
333
|
-
endRotMatrix: newMatrix,
|
|
334
|
-
animation: 1,
|
|
335
|
-
});
|
|
336
|
-
}
|
|
337
|
-
}
|
|
338
|
-
componentWillUnmount() {
|
|
339
|
-
ViewportComponentEvents_1.ViewportComponentEvents.onViewRotationChangeEvent.removeListener(this._handleViewRotationChangeEvent);
|
|
340
|
-
clearTimeout(this._animationFrame);
|
|
341
|
-
this._mounted = false;
|
|
342
|
-
}
|
|
343
|
-
render() {
|
|
344
|
-
const { animation, startRotMatrix, endRotMatrix } = this.state;
|
|
345
|
-
const visible = CubeNavigationAid._isMatrixFace(endRotMatrix) && animation === 1.0;
|
|
346
|
-
const rotMatrix = CubeNavigationAid._interpolateRotMatrix(startRotMatrix, animation, endRotMatrix);
|
|
347
|
-
if (rotMatrix !== startRotMatrix && rotMatrix !== endRotMatrix)
|
|
348
|
-
ViewportComponentEvents_1.ViewportComponentEvents.setCubeMatrix(rotMatrix, Cube_1.Face.None);
|
|
349
|
-
const faces = {};
|
|
350
|
-
for (const key in this._labels) {
|
|
351
|
-
if (this._labels.hasOwnProperty(key)) {
|
|
352
|
-
const f = key;
|
|
353
|
-
const label = this._labels[f];
|
|
354
|
-
faces[f] = (React.createElement(NavCubeFace, { face: f, label: label, hoverMap: this.state.hoverMap, onFaceCellClick: this._handleFaceCellClick, onFaceCellHoverChange: this._handleCellHoverChange }));
|
|
355
|
-
}
|
|
356
|
-
}
|
|
357
|
-
const cubeClassNames = (0, classnames_1.default)("nav-cube", this.state.dragging && "cube-dragging");
|
|
358
|
-
const upTitle = this.getArrowTitle(Pointer.Up);
|
|
359
|
-
const downTitle = this.getArrowTitle(Pointer.Down);
|
|
360
|
-
const leftTitle = this.getArrowTitle(Pointer.Left);
|
|
361
|
-
const rightTitle = this.getArrowTitle(Pointer.Right);
|
|
362
|
-
return (React.createElement("div", { className: (0, classnames_1.default)("components-cube-container", this.props.className), style: this.props.style, "data-testid": "components-cube-navigation-aid", onMouseDown: this._handleBoxMouseDown, onTouchStart: this._handleBoxTouchStart, role: "presentation" },
|
|
363
|
-
React.createElement("div", { className: "cube-element-container" },
|
|
364
|
-
React.createElement(Cube_1.Cube, { className: cubeClassNames, rotMatrix: rotMatrix, faces: faces })),
|
|
365
|
-
React.createElement(PointerButton, { "data-testid": "cube-pointer-button-up", visible: visible, pointerType: Pointer.Up, onArrowClick: this._onArrowClick, title: upTitle }),
|
|
366
|
-
React.createElement(PointerButton, { "data-testid": "cube-pointer-button-down", visible: visible, pointerType: Pointer.Down, onArrowClick: this._onArrowClick, title: downTitle }),
|
|
367
|
-
React.createElement(PointerButton, { "data-testid": "cube-pointer-button-left", visible: visible, pointerType: Pointer.Left, onArrowClick: this._onArrowClick, title: leftTitle }),
|
|
368
|
-
React.createElement(PointerButton, { "data-testid": "cube-pointer-button-right", visible: visible, pointerType: Pointer.Right, onArrowClick: this._onArrowClick, title: rightTitle })));
|
|
369
|
-
}
|
|
370
|
-
static correctSmallNumber(value, tolerance) {
|
|
371
|
-
return Math.abs(value) < tolerance ? 0 : value;
|
|
372
|
-
}
|
|
373
|
-
/**
|
|
374
|
-
* Snap coordinates of a vector to zero and to each other so that the vector prefers to be
|
|
375
|
-
* * perpendicular to a face of the unit cube.
|
|
376
|
-
* * or pass through a nearby vertex or edge of the unit cube.
|
|
377
|
-
* @param zVector existing z vector.
|
|
378
|
-
* @param tolerance tolerance to determine if a z vector component is close to zero or 1.
|
|
379
|
-
*/
|
|
380
|
-
static snapVectorToCubeFeatures(zVector, tolerance) {
|
|
381
|
-
const x = CubeNavigationAid.correctSmallNumber(zVector.x, tolerance);
|
|
382
|
-
let y = CubeNavigationAid.correctSmallNumber(zVector.y, tolerance);
|
|
383
|
-
let z = CubeNavigationAid.correctSmallNumber(zVector.z, tolerance);
|
|
384
|
-
const xx = x === -0 ? Math.abs(x) : x;
|
|
385
|
-
const yy = y === -0 ? Math.abs(y) : y;
|
|
386
|
-
const zz = z === -0 ? Math.abs(z) : z;
|
|
387
|
-
// adjust any adjacent pair of near equal values to the first.
|
|
388
|
-
if (core_geometry_1.Geometry.isSameCoordinate(xx, yy, tolerance)) {
|
|
389
|
-
y = core_geometry_1.Geometry.split3WaySign(y, -xx, xx, xx);
|
|
390
|
-
}
|
|
391
|
-
if (core_geometry_1.Geometry.isSameCoordinate(yy, zz, tolerance)) {
|
|
392
|
-
z = core_geometry_1.Geometry.split3WaySign(z, -yy, yy, yy);
|
|
393
|
-
}
|
|
394
|
-
if (core_geometry_1.Geometry.isSameCoordinate(xx, zz, tolerance)) {
|
|
395
|
-
z = core_geometry_1.Geometry.split3WaySign(z, -xx, xx, xx);
|
|
396
|
-
}
|
|
397
|
-
return core_geometry_1.Vector3d.create(x, y, z);
|
|
398
|
-
}
|
|
399
|
-
/**
|
|
400
|
-
* Adjust a worldToView matrix to favor both
|
|
401
|
-
* * direct view at faces, edges, and corners of a view cube.
|
|
402
|
-
* * heads up
|
|
403
|
-
* @param worldToView candidate matrix
|
|
404
|
-
* @param tolerance tolerance for cleaning up fuzz. The default (1.0e-6) is appropriate if very dirty viewing operations are expected.
|
|
405
|
-
* @param result optional result.
|
|
406
|
-
*/
|
|
407
|
-
static snapWorldToViewMatrixToCubeFeatures(worldToView, tolerance, result, favorHeadsUpRotation) {
|
|
408
|
-
const oldZ = worldToView.rowZ();
|
|
409
|
-
const newZ = CubeNavigationAid.snapVectorToCubeFeatures(oldZ, tolerance);
|
|
410
|
-
const headsUp = !!favorHeadsUpRotation;
|
|
411
|
-
// If newZ is true up or down, it will have true 0 for x and y.
|
|
412
|
-
// special case this to take x direction from the input.
|
|
413
|
-
// This methodology results in always "righting" the face when rotation from an upside-down cube.
|
|
414
|
-
// The behavior was made opt-in in response to https://github.com/iTwin/appui/issues/259
|
|
415
|
-
if (!headsUp || (newZ.x === 0.0 && newZ.y === 0)) {
|
|
416
|
-
const perpVector = worldToView.rowX();
|
|
417
|
-
result = core_geometry_1.Matrix3d.createRigidFromColumns(newZ, perpVector, core_geometry_1.AxisOrder.ZXY, result);
|
|
418
|
-
}
|
|
419
|
-
else {
|
|
420
|
-
result = core_geometry_1.Matrix3d.createRigidViewAxesZTowardsEye(newZ.x, newZ.y, newZ.z, result);
|
|
421
|
-
}
|
|
422
|
-
if (result)
|
|
423
|
-
result.transposeInPlace();
|
|
424
|
-
return result;
|
|
425
|
-
}
|
|
426
|
-
getArrowRotationAndFace(arrow) {
|
|
427
|
-
const localRotationAxis = core_geometry_1.Vector3d.create(0, 0, 0);
|
|
428
|
-
switch (arrow) {
|
|
429
|
-
case Pointer.Up:
|
|
430
|
-
localRotationAxis.x = -1.0;
|
|
431
|
-
break;
|
|
432
|
-
case Pointer.Down:
|
|
433
|
-
localRotationAxis.x = 1.0;
|
|
434
|
-
break;
|
|
435
|
-
case Pointer.Left:
|
|
436
|
-
localRotationAxis.y = -1.0;
|
|
437
|
-
break;
|
|
438
|
-
default:
|
|
439
|
-
localRotationAxis.y = 1.0;
|
|
440
|
-
break;
|
|
441
|
-
}
|
|
442
|
-
const localRotation = core_geometry_1.Matrix3d.createRotationAroundVector(localRotationAxis, core_geometry_1.Angle.createDegrees(-90));
|
|
443
|
-
const newRotation = localRotation.multiplyMatrixMatrix(this.state.endRotMatrix);
|
|
444
|
-
CubeNavigationAid.snapWorldToViewMatrixToCubeFeatures(newRotation, DEFAULT_TOLERANCE, newRotation, this.props.favorHeadsUpRotation);
|
|
445
|
-
const face = CubeNavigationAid._getMatrixFace(newRotation);
|
|
446
|
-
return { newRotation, face };
|
|
447
|
-
}
|
|
448
|
-
getArrowTitle(arrow) {
|
|
449
|
-
const { face } = this.getArrowRotationAndFace(arrow);
|
|
450
|
-
return this._labels[face];
|
|
451
|
-
}
|
|
452
|
-
_processDrag(mousePos) {
|
|
453
|
-
if (!this._start.isAlmostEqual(mousePos)) {
|
|
454
|
-
const movement = mousePos.minus(this._lastClientXY);
|
|
455
|
-
const diff = movement.scale(0.05);
|
|
456
|
-
const yaw = core_geometry_1.Angle.createRadians(diff.x);
|
|
457
|
-
const pitch = core_geometry_1.Angle.createRadians(diff.y);
|
|
458
|
-
const matX = core_geometry_1.Matrix3d.createRotationAroundAxisIndex(core_geometry_1.AxisIndex.X, pitch);
|
|
459
|
-
const matZ = core_geometry_1.Matrix3d.createRotationAroundAxisIndex(core_geometry_1.AxisIndex.Z, yaw);
|
|
460
|
-
const mat = matX
|
|
461
|
-
.multiplyMatrixMatrix(this.state.startRotMatrix)
|
|
462
|
-
.multiplyMatrixMatrix(matZ);
|
|
463
|
-
this._setRotation(mat, CubeNavigationAid._getMatrixFace(mat));
|
|
464
|
-
if (!this.state.dragging)
|
|
465
|
-
this.setState({ dragging: true });
|
|
466
|
-
}
|
|
467
|
-
this._lastClientXY = mousePos;
|
|
468
|
-
}
|
|
469
|
-
}
|
|
470
|
-
exports.CubeNavigationAid = CubeNavigationAid;
|
|
471
|
-
CubeNavigationAid._animationFn = (t) => t < 0.5 ? 2 * t ** 2 : -1 + (4 - 2 * t) * t;
|
|
472
|
-
CubeNavigationAid._isMatrixFace = (matrix) => {
|
|
473
|
-
let sum = 0;
|
|
474
|
-
for (const coff of matrix.coffs) {
|
|
475
|
-
if (core_geometry_1.Geometry.isAlmostEqualNumber(Math.abs(coff), 1))
|
|
476
|
-
sum++;
|
|
477
|
-
}
|
|
478
|
-
// Assuming matrix is a proper rotation matrix:
|
|
479
|
-
// if matrix viewing a face, there will be a total of 3 values either almost -1, or almost 1.
|
|
480
|
-
return sum === 3;
|
|
481
|
-
};
|
|
482
|
-
CubeNavigationAid._getMatrixFace = (rotMatrix) => {
|
|
483
|
-
if (!CubeNavigationAid._isMatrixFace(rotMatrix)) {
|
|
484
|
-
return Cube_1.Face.None;
|
|
485
|
-
}
|
|
486
|
-
if (rotMatrix.coffs[6] === cubeNavigationFaceRotations[Cube_1.Face.Top].coffs[6] &&
|
|
487
|
-
rotMatrix.coffs[7] === cubeNavigationFaceRotations[Cube_1.Face.Top].coffs[7] &&
|
|
488
|
-
rotMatrix.coffs[8] === cubeNavigationFaceRotations[Cube_1.Face.Top].coffs[8])
|
|
489
|
-
return Cube_1.Face.Top;
|
|
490
|
-
if (rotMatrix.coffs[6] ===
|
|
491
|
-
cubeNavigationFaceRotations[Cube_1.Face.Bottom].coffs[6] &&
|
|
492
|
-
rotMatrix.coffs[7] ===
|
|
493
|
-
cubeNavigationFaceRotations[Cube_1.Face.Bottom].coffs[7] &&
|
|
494
|
-
rotMatrix.coffs[8] === cubeNavigationFaceRotations[Cube_1.Face.Bottom].coffs[8])
|
|
495
|
-
return Cube_1.Face.Bottom;
|
|
496
|
-
if (rotMatrix.coffs[6] === cubeNavigationFaceRotations[Cube_1.Face.Left].coffs[6] &&
|
|
497
|
-
rotMatrix.coffs[7] === cubeNavigationFaceRotations[Cube_1.Face.Left].coffs[7] &&
|
|
498
|
-
rotMatrix.coffs[8] === cubeNavigationFaceRotations[Cube_1.Face.Left].coffs[8])
|
|
499
|
-
return Cube_1.Face.Left;
|
|
500
|
-
if (rotMatrix.coffs[6] === cubeNavigationFaceRotations[Cube_1.Face.Right].coffs[6] &&
|
|
501
|
-
rotMatrix.coffs[7] === cubeNavigationFaceRotations[Cube_1.Face.Right].coffs[7] &&
|
|
502
|
-
rotMatrix.coffs[8] === cubeNavigationFaceRotations[Cube_1.Face.Right].coffs[8])
|
|
503
|
-
return Cube_1.Face.Right;
|
|
504
|
-
if (rotMatrix.coffs[6] === cubeNavigationFaceRotations[Cube_1.Face.Back].coffs[6] &&
|
|
505
|
-
rotMatrix.coffs[7] === cubeNavigationFaceRotations[Cube_1.Face.Back].coffs[7] &&
|
|
506
|
-
rotMatrix.coffs[8] === cubeNavigationFaceRotations[Cube_1.Face.Back].coffs[8])
|
|
507
|
-
return Cube_1.Face.Back;
|
|
508
|
-
if (rotMatrix.coffs[6] === cubeNavigationFaceRotations[Cube_1.Face.Front].coffs[6] &&
|
|
509
|
-
rotMatrix.coffs[7] === cubeNavigationFaceRotations[Cube_1.Face.Front].coffs[7] &&
|
|
510
|
-
rotMatrix.coffs[8] === cubeNavigationFaceRotations[Cube_1.Face.Front].coffs[8])
|
|
511
|
-
return Cube_1.Face.Front;
|
|
512
|
-
return Cube_1.Face.None;
|
|
513
|
-
};
|
|
514
|
-
CubeNavigationAid._interpolateRotMatrix = (start, anim, end) => {
|
|
515
|
-
if (anim === 0)
|
|
516
|
-
return start;
|
|
517
|
-
if (anim === 1 || start.isAlmostEqual(end))
|
|
518
|
-
return end;
|
|
519
|
-
const startInverse = start.transpose();
|
|
520
|
-
const diff = end.multiplyMatrixMatrix(startInverse);
|
|
521
|
-
const angleAxis = diff.getAxisAndAngleOfRotation();
|
|
522
|
-
if (angleAxis.ok) {
|
|
523
|
-
const angle = core_geometry_1.Angle.createRadians(angleAxis.angle.radians * CubeNavigationAid._animationFn(anim));
|
|
524
|
-
const newDiff = core_geometry_1.Matrix3d.createRotationAroundVector(angleAxis.axis, angle);
|
|
525
|
-
if (newDiff) {
|
|
526
|
-
const newMatrix = newDiff.multiplyMatrixMatrix(start);
|
|
527
|
-
return newMatrix;
|
|
528
|
-
}
|
|
529
|
-
}
|
|
530
|
-
return end;
|
|
531
|
-
};
|
|
532
|
-
/** @internal */
|
|
533
|
-
class NavCubeFace extends React.Component {
|
|
534
|
-
includeCell(vector) {
|
|
535
|
-
const { x, y, z } = vector;
|
|
536
|
-
const omittedCell = (y === 0 && x !== 0 && z !== 0) ||
|
|
537
|
-
(y !== 0 && x === 0 && z !== 0) ||
|
|
538
|
-
(y !== 0 && x !== 0 && z === 0);
|
|
539
|
-
return !omittedCell;
|
|
540
|
-
}
|
|
541
|
-
render() {
|
|
542
|
-
const { face, hoverMap, onFaceCellClick, onFaceCellHoverChange, label } = this.props;
|
|
543
|
-
return (React.createElement("div", { className: "nav-cube-face", "data-testid": "nav-cube-face" }, [-1, 0, 1].map((y) => {
|
|
544
|
-
return (React.createElement(FaceRow, { key: y, center: y === 0 }, [-1, 0, 1].map((x) => {
|
|
545
|
-
const vector = NavCubeFace.faceCellToPos(face, x, y);
|
|
546
|
-
if (this.includeCell(vector)) {
|
|
547
|
-
// return a fully functional cell
|
|
548
|
-
return (React.createElement(FaceCell, { key: x, onFaceCellHoverChange: onFaceCellHoverChange, onFaceCellClick: onFaceCellClick, hoverMap: hoverMap, vector: vector, face: face, center: x === 0 }, x === 0 && y === 0 && label));
|
|
549
|
-
}
|
|
550
|
-
else {
|
|
551
|
-
// return a placeholder cell
|
|
552
|
-
return (React.createElement(FaceCell, { key: x, vector: vector, face: face, center: x === 0 }));
|
|
553
|
-
}
|
|
554
|
-
})));
|
|
555
|
-
})));
|
|
556
|
-
}
|
|
557
|
-
}
|
|
558
|
-
exports.NavCubeFace = NavCubeFace;
|
|
559
|
-
NavCubeFace.faceCellToPos = (face, x, y) => {
|
|
560
|
-
const faceVect = cubeNavigationFaceLocs[face];
|
|
561
|
-
const route = cubeNavigationRoutes[face];
|
|
562
|
-
const faceX = x < 0 ? route.left : x > 0 ? route.right : Cube_1.Face.None;
|
|
563
|
-
const xVect = faceX !== Cube_1.Face.None
|
|
564
|
-
? cubeNavigationFaceLocs[faceX]
|
|
565
|
-
: core_geometry_1.Vector3d.createZero();
|
|
566
|
-
const faceY = y < 0 ? route.up : y > 0 ? route.down : Cube_1.Face.None;
|
|
567
|
-
const yVect = faceY !== Cube_1.Face.None
|
|
568
|
-
? cubeNavigationFaceLocs[faceY]
|
|
569
|
-
: core_geometry_1.Vector3d.createZero();
|
|
570
|
-
return faceVect.plus(xVect).plus(yVect);
|
|
571
|
-
};
|
|
572
|
-
class FaceRow extends React.Component {
|
|
573
|
-
render() {
|
|
574
|
-
const { center, children, ...props } = this.props;
|
|
575
|
-
const classNames = (0, classnames_1.default)("face-row", center && "cube-center");
|
|
576
|
-
return (React.createElement("div", { className: classNames, ...props }, children));
|
|
577
|
-
}
|
|
578
|
-
}
|
|
579
|
-
/** @internal */
|
|
580
|
-
class FaceCell extends React.Component {
|
|
581
|
-
constructor() {
|
|
582
|
-
super(...arguments);
|
|
583
|
-
this._handleMouseOver = () => {
|
|
584
|
-
const { vector } = this.props;
|
|
585
|
-
this.props.onFaceCellHoverChange &&
|
|
586
|
-
this.props.onFaceCellHoverChange(vector, CubeHover.Hover);
|
|
587
|
-
};
|
|
588
|
-
this._handleMouseOut = () => {
|
|
589
|
-
const { vector } = this.props;
|
|
590
|
-
this.props.onFaceCellHoverChange &&
|
|
591
|
-
this.props.onFaceCellHoverChange(vector, CubeHover.None);
|
|
592
|
-
};
|
|
593
|
-
this._handleMouseDown = (event) => {
|
|
594
|
-
const { clientX, clientY } = event;
|
|
595
|
-
this.handlePointerDown(clientX, clientY);
|
|
596
|
-
};
|
|
597
|
-
this._handleMouseUp = (event) => {
|
|
598
|
-
const { clientX, clientY } = event;
|
|
599
|
-
this.handlePointerUp(clientX, clientY);
|
|
600
|
-
};
|
|
601
|
-
this._handleTouchStart = (event) => {
|
|
602
|
-
event.preventDefault();
|
|
603
|
-
event.targetTouches.length === 1 &&
|
|
604
|
-
this.handlePointerDown(event.targetTouches[0].clientX, event.targetTouches[0].clientY);
|
|
605
|
-
};
|
|
606
|
-
this._handleTouchEnd = (event) => {
|
|
607
|
-
event.preventDefault();
|
|
608
|
-
event.changedTouches.length === 1 &&
|
|
609
|
-
this.handlePointerUp(event.changedTouches[0].clientX, event.changedTouches[0].clientY);
|
|
610
|
-
};
|
|
611
|
-
}
|
|
612
|
-
render() {
|
|
613
|
-
const { center, children, onFaceCellClick, onFaceCellHoverChange, hoverMap, face, vector, ...props } = this.props;
|
|
614
|
-
const { x, y, z } = vector;
|
|
615
|
-
const n = `${x}-${y}-${z}`;
|
|
616
|
-
const hover = hoverMap && hoverMap[n] === CubeHover.Hover;
|
|
617
|
-
const active = hoverMap && hoverMap[n] === CubeHover.Active;
|
|
618
|
-
const classNames = (0, classnames_1.default)("face-cell", center && "cube-center", hover && "cube-hover", active && "cube-active");
|
|
619
|
-
return (React.createElement("div", { onMouseDown: this._handleMouseDown, onMouseUp: this._handleMouseUp,
|
|
620
|
-
// eslint-disable-next-line jsx-a11y/mouse-events-have-key-events
|
|
621
|
-
onMouseOver: this._handleMouseOver,
|
|
622
|
-
// eslint-disable-next-line jsx-a11y/mouse-events-have-key-events
|
|
623
|
-
onMouseOut: this._handleMouseOut, onTouchStart: this._handleTouchStart, onTouchEnd: this._handleTouchEnd, "data-testid": `nav-cube-face-cell-${face}-${n}`, className: classNames, role: "presentation", ...props }, children));
|
|
624
|
-
}
|
|
625
|
-
handlePointerDown(x, y) {
|
|
626
|
-
const { vector } = this.props;
|
|
627
|
-
this._startMouse = core_geometry_1.Point2d.create(x, y);
|
|
628
|
-
this.props.onFaceCellHoverChange &&
|
|
629
|
-
this.props.onFaceCellHoverChange(vector, CubeHover.Active);
|
|
630
|
-
}
|
|
631
|
-
handlePointerUp(x, y) {
|
|
632
|
-
const { vector, face } = this.props;
|
|
633
|
-
this.props.onFaceCellHoverChange &&
|
|
634
|
-
this.props.onFaceCellHoverChange(vector, CubeHover.None);
|
|
635
|
-
const mouse = core_geometry_1.Point2d.create(x, y);
|
|
636
|
-
if (this._startMouse && this._startMouse.isAlmostEqual(mouse)) {
|
|
637
|
-
const isFace = Math.abs(vector.x) + Math.abs(vector.y) + Math.abs(vector.z) === 1;
|
|
638
|
-
this.props.onFaceCellClick &&
|
|
639
|
-
this.props.onFaceCellClick(vector, isFace ? face : Cube_1.Face.None);
|
|
640
|
-
}
|
|
641
|
-
}
|
|
642
|
-
}
|
|
643
|
-
exports.FaceCell = FaceCell;
|
|
644
|
-
var Pointer;
|
|
645
|
-
(function (Pointer) {
|
|
646
|
-
Pointer[Pointer["None"] = 0] = "None";
|
|
647
|
-
Pointer[Pointer["Up"] = 1] = "Up";
|
|
648
|
-
Pointer[Pointer["Down"] = 2] = "Down";
|
|
649
|
-
Pointer[Pointer["Left"] = 3] = "Left";
|
|
650
|
-
Pointer[Pointer["Right"] = 4] = "Right";
|
|
651
|
-
})(Pointer || (Pointer = {}));
|
|
652
|
-
// eslint-disable-next-line deprecation/deprecation
|
|
653
|
-
const pointerIconSpec = {
|
|
654
|
-
[Pointer.Up]: React.createElement(itwinui_icons_react_1.SvgCaretDown, null),
|
|
655
|
-
[Pointer.Down]: React.createElement(itwinui_icons_react_1.SvgCaretUp, null),
|
|
656
|
-
[Pointer.Left]: React.createElement(itwinui_icons_react_1.SvgCaretRight, null),
|
|
657
|
-
[Pointer.Right]: React.createElement(itwinui_icons_react_1.SvgCaretLeft, null),
|
|
658
|
-
};
|
|
659
|
-
const pointerClass = {
|
|
660
|
-
[Pointer.Up]: "cube-up",
|
|
661
|
-
[Pointer.Down]: "cube-down",
|
|
662
|
-
[Pointer.Left]: "cube-left",
|
|
663
|
-
[Pointer.Right]: "cube-right",
|
|
664
|
-
};
|
|
665
|
-
class PointerButton extends React.Component {
|
|
666
|
-
constructor() {
|
|
667
|
-
super(...arguments);
|
|
668
|
-
this._handleClick = (event) => {
|
|
669
|
-
const { pointerType } = this.props;
|
|
670
|
-
event.preventDefault();
|
|
671
|
-
this.props.onArrowClick(pointerType);
|
|
672
|
-
};
|
|
673
|
-
}
|
|
674
|
-
render() {
|
|
675
|
-
const { visible, pointerType, onArrowClick, title, ...props } = this.props;
|
|
676
|
-
const classes = (0, classnames_1.default)("cube-pointer", "icon", pointerClass[pointerType], visible && "cube-visible");
|
|
677
|
-
return (
|
|
678
|
-
// eslint-disable-next-line jsx-a11y/click-events-have-key-events
|
|
679
|
-
React.createElement("div", { className: classes, role: "button", tabIndex: -1, title: title, ...props, onClick: this._handleClick },
|
|
680
|
-
React.createElement(core_react_1.Icon, { iconSpec: pointerIconSpec[pointerType] })));
|
|
681
|
-
}
|
|
682
|
-
}
|
|
683
|
-
//# sourceMappingURL=CubeNavigationAid.js.map
|