@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.
Files changed (533) hide show
  1. package/CHANGELOG.md +1 -6
  2. package/README.md +15 -2
  3. package/lib/{cjs/imodel-components-react → imodel-components-react}/UiIModelComponents.d.ts +1 -1
  4. package/lib/imodel-components-react/UiIModelComponents.d.ts.map +1 -0
  5. package/lib/{esm/imodel-components-react → imodel-components-react}/UiIModelComponents.js +4 -7
  6. package/lib/imodel-components-react/UiIModelComponents.js.map +1 -0
  7. package/lib/imodel-components-react/color/AlphaSlider.d.ts.map +1 -0
  8. package/lib/{esm/imodel-components-react → imodel-components-react}/color/AlphaSlider.js +1 -1
  9. package/lib/imodel-components-react/color/AlphaSlider.js.map +1 -0
  10. package/lib/imodel-components-react/color/ColorPickerButton.d.ts.map +1 -0
  11. package/lib/{esm/imodel-components-react → imodel-components-react}/color/ColorPickerButton.js +4 -3
  12. package/lib/imodel-components-react/color/ColorPickerButton.js.map +1 -0
  13. package/lib/{esm/imodel-components-react → imodel-components-react}/color/ColorPickerButton.scss +2 -4
  14. package/lib/imodel-components-react/color/ColorPickerDialog.d.ts.map +1 -0
  15. package/lib/imodel-components-react/color/ColorPickerDialog.js.map +1 -0
  16. package/lib/imodel-components-react/color/ColorPickerPopup.d.ts.map +1 -0
  17. package/lib/{esm/imodel-components-react → imodel-components-react}/color/ColorPickerPopup.js +4 -3
  18. package/lib/imodel-components-react/color/ColorPickerPopup.js.map +1 -0
  19. package/lib/imodel-components-react/color/HueSlider.d.ts.map +1 -0
  20. package/lib/{esm/imodel-components-react → imodel-components-react}/color/HueSlider.js +1 -1
  21. package/lib/{esm/imodel-components-react → imodel-components-react}/color/HueSlider.js.map +1 -1
  22. package/lib/imodel-components-react/color/SaturationPicker.d.ts.map +1 -0
  23. package/lib/{esm/imodel-components-react → imodel-components-react}/color/SaturationPicker.js +1 -1
  24. package/lib/imodel-components-react/color/SaturationPicker.js.map +1 -0
  25. package/lib/imodel-components-react/color/Swatch.d.ts.map +1 -0
  26. package/lib/{esm/imodel-components-react → imodel-components-react}/color/Swatch.js +1 -1
  27. package/lib/{esm/imodel-components-react → imodel-components-react}/color/Swatch.js.map +1 -1
  28. package/lib/imodel-components-react/color/getCSSColorFromDef.d.ts.map +1 -0
  29. package/lib/imodel-components-react/color/getCSSColorFromDef.js.map +1 -0
  30. package/lib/imodel-components-react/editors/ColorEditor.d.ts.map +1 -0
  31. package/lib/{esm/imodel-components-react → imodel-components-react}/editors/ColorEditor.js +3 -4
  32. package/lib/imodel-components-react/editors/ColorEditor.js.map +1 -0
  33. package/lib/{cjs/imodel-components-react → imodel-components-react}/editors/ColorEditor.scss +0 -2
  34. package/lib/imodel-components-react/editors/WeightEditor.d.ts.map +1 -0
  35. package/lib/{esm/imodel-components-react → imodel-components-react}/editors/WeightEditor.js +3 -4
  36. package/lib/imodel-components-react/editors/WeightEditor.js.map +1 -0
  37. package/lib/{cjs/imodel-components-react → imodel-components-react}/editors/WeightEditor.scss +0 -2
  38. package/lib/imodel-components-react/inputs/QuantityInput.d.ts.map +1 -0
  39. package/lib/{esm/imodel-components-react → imodel-components-react}/inputs/QuantityInput.js +1 -1
  40. package/lib/{esm/imodel-components-react → imodel-components-react}/inputs/QuantityInput.js.map +1 -1
  41. package/lib/imodel-components-react/inputs/QuantityNumberInput.d.ts.map +1 -0
  42. package/lib/imodel-components-react/inputs/QuantityNumberInput.js.map +1 -0
  43. package/lib/{cjs/imodel-components-react → imodel-components-react}/inputs/QuantityNumberInput.scss +1 -1
  44. package/lib/imodel-components-react/lineweight/Swatch.d.ts.map +1 -0
  45. package/lib/{esm/imodel-components-react → imodel-components-react}/lineweight/Swatch.js +1 -1
  46. package/lib/{esm/imodel-components-react → imodel-components-react}/lineweight/Swatch.js.map +1 -1
  47. package/lib/{cjs/imodel-components-react → imodel-components-react}/lineweight/Swatch.scss +2 -4
  48. package/lib/imodel-components-react/lineweight/WeightPickerButton.d.ts.map +1 -0
  49. package/lib/{esm/imodel-components-react → imodel-components-react}/lineweight/WeightPickerButton.js +1 -1
  50. package/lib/{esm/imodel-components-react → imodel-components-react}/lineweight/WeightPickerButton.js.map +1 -1
  51. package/lib/{esm/imodel-components-react → imodel-components-react}/lineweight/WeightPickerButton.scss +5 -6
  52. package/lib/imodel-components-react/navigationaids/Cube.d.ts.map +1 -0
  53. package/lib/imodel-components-react/navigationaids/Cube.js.map +1 -0
  54. package/lib/{esm/imodel-components-react → imodel-components-react}/navigationaids/CubeNavigationAid.d.ts +1 -1
  55. package/lib/imodel-components-react/navigationaids/CubeNavigationAid.d.ts.map +1 -0
  56. package/lib/{esm/imodel-components-react → imodel-components-react}/navigationaids/CubeNavigationAid.js +3 -3
  57. package/lib/imodel-components-react/navigationaids/CubeNavigationAid.js.map +1 -0
  58. package/lib/{esm/imodel-components-react → imodel-components-react}/navigationaids/CubeNavigationAid.scss +0 -2
  59. package/lib/imodel-components-react/navigationaids/DrawingNavigationAid.d.ts.map +1 -0
  60. package/lib/{esm/imodel-components-react → imodel-components-react}/navigationaids/DrawingNavigationAid.js +2 -2
  61. package/lib/imodel-components-react/navigationaids/DrawingNavigationAid.js.map +1 -0
  62. package/lib/{cjs/imodel-components-react → imodel-components-react}/navigationaids/DrawingNavigationAid.scss +9 -10
  63. package/lib/imodel-components-react/quantityformat/FormatPanel.d.ts.map +1 -0
  64. package/lib/{esm/imodel-components-react → imodel-components-react}/quantityformat/FormatPanel.js +6 -6
  65. package/lib/imodel-components-react/quantityformat/FormatPanel.js.map +1 -0
  66. package/lib/{esm/imodel-components-react → imodel-components-react}/quantityformat/FormatPanel.scss +0 -2
  67. package/lib/imodel-components-react/quantityformat/FormatPrecision.d.ts.map +1 -0
  68. package/lib/{esm/imodel-components-react → imodel-components-react}/quantityformat/FormatPrecision.js +3 -3
  69. package/lib/imodel-components-react/quantityformat/FormatPrecision.js.map +1 -0
  70. package/lib/imodel-components-react/quantityformat/FormatSample.d.ts.map +1 -0
  71. package/lib/{esm/imodel-components-react → imodel-components-react}/quantityformat/FormatSample.js +1 -1
  72. package/lib/imodel-components-react/quantityformat/FormatSample.js.map +1 -0
  73. package/lib/imodel-components-react/quantityformat/FormatType.d.ts.map +1 -0
  74. package/lib/{esm/imodel-components-react → imodel-components-react}/quantityformat/FormatType.js +1 -1
  75. package/lib/{esm/imodel-components-react → imodel-components-react}/quantityformat/FormatType.js.map +1 -1
  76. package/lib/imodel-components-react/quantityformat/FormatUnitLabel.d.ts.map +1 -0
  77. package/lib/{esm/imodel-components-react → imodel-components-react}/quantityformat/FormatUnitLabel.js +1 -1
  78. package/lib/{esm/imodel-components-react → imodel-components-react}/quantityformat/FormatUnitLabel.js.map +1 -1
  79. package/lib/imodel-components-react/quantityformat/FormatUnits.d.ts.map +1 -0
  80. package/lib/{esm/imodel-components-react → imodel-components-react}/quantityformat/FormatUnits.js +2 -2
  81. package/lib/imodel-components-react/quantityformat/FormatUnits.js.map +1 -0
  82. package/lib/imodel-components-react/quantityformat/MiscFormatOptions.d.ts.map +1 -0
  83. package/lib/{esm/imodel-components-react → imodel-components-react}/quantityformat/MiscFormatOptions.js +7 -7
  84. package/lib/imodel-components-react/quantityformat/MiscFormatOptions.js.map +1 -0
  85. package/lib/imodel-components-react/quantityformat/QuantityFormatPanel.d.ts.map +1 -0
  86. package/lib/{esm/imodel-components-react → imodel-components-react}/quantityformat/QuantityFormatPanel.js +1 -1
  87. package/lib/imodel-components-react/quantityformat/QuantityFormatPanel.js.map +1 -0
  88. package/lib/imodel-components-react/quantityformat/misc/DecimalPrecision.d.ts.map +1 -0
  89. package/lib/{esm/imodel-components-react → imodel-components-react}/quantityformat/misc/DecimalPrecision.js +1 -1
  90. package/lib/{esm/imodel-components-react → imodel-components-react}/quantityformat/misc/DecimalPrecision.js.map +1 -1
  91. package/lib/imodel-components-react/quantityformat/misc/DecimalSeparator.d.ts.map +1 -0
  92. package/lib/{esm/imodel-components-react → imodel-components-react}/quantityformat/misc/DecimalSeparator.js +1 -1
  93. package/lib/imodel-components-react/quantityformat/misc/DecimalSeparator.js.map +1 -0
  94. package/lib/imodel-components-react/quantityformat/misc/FractionPrecision.d.ts.map +1 -0
  95. package/lib/{esm/imodel-components-react → imodel-components-react}/quantityformat/misc/FractionPrecision.js +1 -1
  96. package/lib/imodel-components-react/quantityformat/misc/FractionPrecision.js.map +1 -0
  97. package/lib/imodel-components-react/quantityformat/misc/ScientificType.d.ts.map +1 -0
  98. package/lib/{esm/imodel-components-react → imodel-components-react}/quantityformat/misc/ScientificType.js +1 -1
  99. package/lib/imodel-components-react/quantityformat/misc/ScientificType.js.map +1 -0
  100. package/lib/imodel-components-react/quantityformat/misc/SignOption.d.ts.map +1 -0
  101. package/lib/{esm/imodel-components-react → imodel-components-react}/quantityformat/misc/SignOption.js +1 -1
  102. package/lib/imodel-components-react/quantityformat/misc/SignOption.js.map +1 -0
  103. package/lib/imodel-components-react/quantityformat/misc/StationSeparatorSelector.d.ts.map +1 -0
  104. package/lib/{esm/imodel-components-react → imodel-components-react}/quantityformat/misc/StationSeparatorSelector.js +1 -1
  105. package/lib/imodel-components-react/quantityformat/misc/StationSeparatorSelector.js.map +1 -0
  106. package/lib/imodel-components-react/quantityformat/misc/StationSizeSelector.d.ts.map +1 -0
  107. package/lib/{esm/imodel-components-react → imodel-components-react}/quantityformat/misc/StationSizeSelector.js +1 -1
  108. package/lib/imodel-components-react/quantityformat/misc/StationSizeSelector.js.map +1 -0
  109. package/lib/imodel-components-react/quantityformat/misc/ThousandsSelector.d.ts.map +1 -0
  110. package/lib/{esm/imodel-components-react → imodel-components-react}/quantityformat/misc/ThousandsSelector.js +1 -1
  111. package/lib/imodel-components-react/quantityformat/misc/ThousandsSelector.js.map +1 -0
  112. package/lib/imodel-components-react/quantityformat/misc/ThousandsSeparator.d.ts.map +1 -0
  113. package/lib/{esm/imodel-components-react → imodel-components-react}/quantityformat/misc/ThousandsSeparator.js +2 -2
  114. package/lib/imodel-components-react/quantityformat/misc/ThousandsSeparator.js.map +1 -0
  115. package/lib/imodel-components-react/quantityformat/misc/UnitDescr.d.ts.map +1 -0
  116. package/lib/imodel-components-react/quantityformat/misc/UnitDescr.js.map +1 -0
  117. package/lib/{cjs/imodel-components-react → imodel-components-react}/timeline/BaseSolarDataProvider.d.ts +1 -1
  118. package/lib/imodel-components-react/timeline/BaseSolarDataProvider.d.ts.map +1 -0
  119. package/lib/{esm/imodel-components-react → imodel-components-react}/timeline/BaseSolarDataProvider.js.map +1 -1
  120. package/lib/{cjs/imodel-components-react → imodel-components-react}/timeline/BaseTimelineDataProvider.d.ts +1 -1
  121. package/lib/imodel-components-react/timeline/BaseTimelineDataProvider.d.ts.map +1 -0
  122. package/lib/imodel-components-react/timeline/BaseTimelineDataProvider.js.map +1 -0
  123. package/lib/imodel-components-react/timeline/InlineEdit.d.ts.map +1 -0
  124. package/lib/imodel-components-react/timeline/InlineEdit.js.map +1 -0
  125. package/lib/{esm/imodel-components-react → imodel-components-react}/timeline/InlineEdit.scss +3 -5
  126. package/lib/imodel-components-react/timeline/PlayButton.d.ts.map +1 -0
  127. package/lib/{esm/imodel-components-react → imodel-components-react}/timeline/PlayButton.js +1 -1
  128. package/lib/imodel-components-react/timeline/PlayButton.js.map +1 -0
  129. package/lib/{cjs/imodel-components-react → imodel-components-react}/timeline/Scrubber.d.ts +2 -4
  130. package/lib/imodel-components-react/timeline/Scrubber.d.ts.map +1 -0
  131. package/lib/{esm/imodel-components-react → imodel-components-react}/timeline/Scrubber.js +19 -12
  132. package/lib/imodel-components-react/timeline/Scrubber.js.map +1 -0
  133. package/lib/{esm/imodel-components-react → imodel-components-react}/timeline/Scrubber.scss +1 -1
  134. package/lib/{esm/imodel-components-react → imodel-components-react}/timeline/SolarTimeline.d.ts +1 -1
  135. package/lib/imodel-components-react/timeline/SolarTimeline.d.ts.map +1 -0
  136. package/lib/{esm/imodel-components-react → imodel-components-react}/timeline/SolarTimeline.js +3 -3
  137. package/lib/imodel-components-react/timeline/SolarTimeline.js.map +1 -0
  138. package/lib/{esm/imodel-components-react → imodel-components-react}/timeline/SolarTimeline.scss +0 -2
  139. package/lib/imodel-components-react/timeline/SpeedTimeline.d.ts.map +1 -0
  140. package/lib/imodel-components-react/timeline/SpeedTimeline.js.map +1 -0
  141. package/lib/{cjs/imodel-components-react → imodel-components-react}/timeline/SpeedTimeline.scss +2 -4
  142. package/lib/{esm/imodel-components-react → imodel-components-react}/timeline/Timeline.scss +7 -9
  143. package/lib/{esm/imodel-components-react → imodel-components-react}/timeline/TimelineComponent.d.ts +1 -1
  144. package/lib/imodel-components-react/timeline/TimelineComponent.d.ts.map +1 -0
  145. package/lib/{esm/imodel-components-react → imodel-components-react}/timeline/TimelineComponent.js +5 -5
  146. package/lib/imodel-components-react/timeline/TimelineComponent.js.map +1 -0
  147. package/lib/imodel-components-react/timeline/interfaces.d.ts.map +1 -0
  148. package/lib/imodel-components-react/timeline/interfaces.js.map +1 -0
  149. package/lib/imodel-components-react/useTranslation.d.ts.map +1 -0
  150. package/lib/{esm/imodel-components-react → imodel-components-react}/useTranslation.js +2 -2
  151. package/lib/imodel-components-react/useTranslation.js.map +1 -0
  152. package/lib/imodel-components-react/viewport/ViewportComponent.d.ts.map +1 -0
  153. package/lib/{esm/imodel-components-react → imodel-components-react}/viewport/ViewportComponent.js +1 -1
  154. package/lib/imodel-components-react/viewport/ViewportComponent.js.map +1 -0
  155. package/lib/{cjs/imodel-components-react → imodel-components-react}/viewport/ViewportComponentEvents.d.ts +1 -1
  156. package/lib/imodel-components-react/viewport/ViewportComponentEvents.d.ts.map +1 -0
  157. package/lib/{esm/imodel-components-react → imodel-components-react}/viewport/ViewportComponentEvents.js +1 -1
  158. package/lib/imodel-components-react/viewport/ViewportComponentEvents.js.map +1 -0
  159. package/lib/imodel-components-react.d.ts +77 -0
  160. package/lib/imodel-components-react.d.ts.map +1 -0
  161. package/lib/imodel-components-react.js +90 -0
  162. package/lib/imodel-components-react.js.map +1 -0
  163. package/lib/internal.d.ts +2 -0
  164. package/lib/internal.d.ts.map +1 -0
  165. package/lib/{esm/imodel-components-react/navigationaids/Cube.scss → internal.js} +2 -15
  166. package/lib/internal.js.map +1 -0
  167. package/package.json +46 -36
  168. package/lib/cjs/imodel-components-react/UiIModelComponents.d.ts.map +0 -1
  169. package/lib/cjs/imodel-components-react/UiIModelComponents.js +0 -78
  170. package/lib/cjs/imodel-components-react/UiIModelComponents.js.map +0 -1
  171. package/lib/cjs/imodel-components-react/color/AlphaSlider.d.ts.map +0 -1
  172. package/lib/cjs/imodel-components-react/color/AlphaSlider.js +0 -182
  173. package/lib/cjs/imodel-components-react/color/AlphaSlider.js.map +0 -1
  174. package/lib/cjs/imodel-components-react/color/ColorPickerButton.d.ts.map +0 -1
  175. package/lib/cjs/imodel-components-react/color/ColorPickerButton.js +0 -119
  176. package/lib/cjs/imodel-components-react/color/ColorPickerButton.js.map +0 -1
  177. package/lib/cjs/imodel-components-react/color/ColorPickerButton.scss +0 -90
  178. package/lib/cjs/imodel-components-react/color/ColorPickerDialog.d.ts.map +0 -1
  179. package/lib/cjs/imodel-components-react/color/ColorPickerDialog.js +0 -76
  180. package/lib/cjs/imodel-components-react/color/ColorPickerDialog.js.map +0 -1
  181. package/lib/cjs/imodel-components-react/color/ColorPickerPopup.d.ts.map +0 -1
  182. package/lib/cjs/imodel-components-react/color/ColorPickerPopup.js +0 -141
  183. package/lib/cjs/imodel-components-react/color/ColorPickerPopup.js.map +0 -1
  184. package/lib/cjs/imodel-components-react/color/HueSlider.d.ts.map +0 -1
  185. package/lib/cjs/imodel-components-react/color/HueSlider.js +0 -201
  186. package/lib/cjs/imodel-components-react/color/HueSlider.js.map +0 -1
  187. package/lib/cjs/imodel-components-react/color/SaturationPicker.d.ts.map +0 -1
  188. package/lib/cjs/imodel-components-react/color/SaturationPicker.js +0 -197
  189. package/lib/cjs/imodel-components-react/color/SaturationPicker.js.map +0 -1
  190. package/lib/cjs/imodel-components-react/color/Swatch.d.ts.map +0 -1
  191. package/lib/cjs/imodel-components-react/color/Swatch.js +0 -63
  192. package/lib/cjs/imodel-components-react/color/Swatch.js.map +0 -1
  193. package/lib/cjs/imodel-components-react/color/getCSSColorFromDef.d.ts.map +0 -1
  194. package/lib/cjs/imodel-components-react/color/getCSSColorFromDef.js +0 -24
  195. package/lib/cjs/imodel-components-react/color/getCSSColorFromDef.js.map +0 -1
  196. package/lib/cjs/imodel-components-react/editors/ColorEditor.d.ts.map +0 -1
  197. package/lib/cjs/imodel-components-react/editors/ColorEditor.js +0 -150
  198. package/lib/cjs/imodel-components-react/editors/ColorEditor.js.map +0 -1
  199. package/lib/cjs/imodel-components-react/editors/WeightEditor.d.ts.map +0 -1
  200. package/lib/cjs/imodel-components-react/editors/WeightEditor.js +0 -153
  201. package/lib/cjs/imodel-components-react/editors/WeightEditor.js.map +0 -1
  202. package/lib/cjs/imodel-components-react/inputs/QuantityInput.d.ts.map +0 -1
  203. package/lib/cjs/imodel-components-react/inputs/QuantityInput.js +0 -94
  204. package/lib/cjs/imodel-components-react/inputs/QuantityInput.js.map +0 -1
  205. package/lib/cjs/imodel-components-react/inputs/QuantityNumberInput.d.ts.map +0 -1
  206. package/lib/cjs/imodel-components-react/inputs/QuantityNumberInput.js +0 -265
  207. package/lib/cjs/imodel-components-react/inputs/QuantityNumberInput.js.map +0 -1
  208. package/lib/cjs/imodel-components-react/lineweight/Swatch.d.ts.map +0 -1
  209. package/lib/cjs/imodel-components-react/lineweight/Swatch.js +0 -84
  210. package/lib/cjs/imodel-components-react/lineweight/Swatch.js.map +0 -1
  211. package/lib/cjs/imodel-components-react/lineweight/WeightPickerButton.d.ts.map +0 -1
  212. package/lib/cjs/imodel-components-react/lineweight/WeightPickerButton.js +0 -160
  213. package/lib/cjs/imodel-components-react/lineweight/WeightPickerButton.js.map +0 -1
  214. package/lib/cjs/imodel-components-react/lineweight/WeightPickerButton.scss +0 -51
  215. package/lib/cjs/imodel-components-react/navigationaids/Cube.d.ts.map +0 -1
  216. package/lib/cjs/imodel-components-react/navigationaids/Cube.js +0 -151
  217. package/lib/cjs/imodel-components-react/navigationaids/Cube.js.map +0 -1
  218. package/lib/cjs/imodel-components-react/navigationaids/CubeNavigationAid.d.ts +0 -153
  219. package/lib/cjs/imodel-components-react/navigationaids/CubeNavigationAid.d.ts.map +0 -1
  220. package/lib/cjs/imodel-components-react/navigationaids/CubeNavigationAid.js +0 -683
  221. package/lib/cjs/imodel-components-react/navigationaids/CubeNavigationAid.js.map +0 -1
  222. package/lib/cjs/imodel-components-react/navigationaids/CubeNavigationAid.scss +0 -179
  223. package/lib/cjs/imodel-components-react/navigationaids/DrawingNavigationAid.d.ts.map +0 -1
  224. package/lib/cjs/imodel-components-react/navigationaids/DrawingNavigationAid.js +0 -736
  225. package/lib/cjs/imodel-components-react/navigationaids/DrawingNavigationAid.js.map +0 -1
  226. package/lib/cjs/imodel-components-react/quantityformat/FormatPanel.d.ts.map +0 -1
  227. package/lib/cjs/imodel-components-react/quantityformat/FormatPanel.js +0 -112
  228. package/lib/cjs/imodel-components-react/quantityformat/FormatPanel.js.map +0 -1
  229. package/lib/cjs/imodel-components-react/quantityformat/FormatPanel.scss +0 -55
  230. package/lib/cjs/imodel-components-react/quantityformat/FormatPrecision.d.ts.map +0 -1
  231. package/lib/cjs/imodel-components-react/quantityformat/FormatPrecision.js +0 -56
  232. package/lib/cjs/imodel-components-react/quantityformat/FormatPrecision.js.map +0 -1
  233. package/lib/cjs/imodel-components-react/quantityformat/FormatSample.d.ts.map +0 -1
  234. package/lib/cjs/imodel-components-react/quantityformat/FormatSample.js +0 -94
  235. package/lib/cjs/imodel-components-react/quantityformat/FormatSample.js.map +0 -1
  236. package/lib/cjs/imodel-components-react/quantityformat/FormatType.d.ts.map +0 -1
  237. package/lib/cjs/imodel-components-react/quantityformat/FormatType.js +0 -115
  238. package/lib/cjs/imodel-components-react/quantityformat/FormatType.js.map +0 -1
  239. package/lib/cjs/imodel-components-react/quantityformat/FormatUnitLabel.d.ts.map +0 -1
  240. package/lib/cjs/imodel-components-react/quantityformat/FormatUnitLabel.js +0 -117
  241. package/lib/cjs/imodel-components-react/quantityformat/FormatUnitLabel.js.map +0 -1
  242. package/lib/cjs/imodel-components-react/quantityformat/FormatUnits.d.ts.map +0 -1
  243. package/lib/cjs/imodel-components-react/quantityformat/FormatUnits.js +0 -137
  244. package/lib/cjs/imodel-components-react/quantityformat/FormatUnits.js.map +0 -1
  245. package/lib/cjs/imodel-components-react/quantityformat/MiscFormatOptions.d.ts.map +0 -1
  246. package/lib/cjs/imodel-components-react/quantityformat/MiscFormatOptions.js +0 -193
  247. package/lib/cjs/imodel-components-react/quantityformat/MiscFormatOptions.js.map +0 -1
  248. package/lib/cjs/imodel-components-react/quantityformat/QuantityFormatPanel.d.ts.map +0 -1
  249. package/lib/cjs/imodel-components-react/quantityformat/QuantityFormatPanel.js +0 -145
  250. package/lib/cjs/imodel-components-react/quantityformat/QuantityFormatPanel.js.map +0 -1
  251. package/lib/cjs/imodel-components-react/quantityformat/misc/DecimalPrecision.d.ts.map +0 -1
  252. package/lib/cjs/imodel-components-react/quantityformat/misc/DecimalPrecision.js +0 -104
  253. package/lib/cjs/imodel-components-react/quantityformat/misc/DecimalPrecision.js.map +0 -1
  254. package/lib/cjs/imodel-components-react/quantityformat/misc/DecimalSeparator.d.ts.map +0 -1
  255. package/lib/cjs/imodel-components-react/quantityformat/misc/DecimalSeparator.js +0 -59
  256. package/lib/cjs/imodel-components-react/quantityformat/misc/DecimalSeparator.js.map +0 -1
  257. package/lib/cjs/imodel-components-react/quantityformat/misc/FractionPrecision.d.ts.map +0 -1
  258. package/lib/cjs/imodel-components-react/quantityformat/misc/FractionPrecision.js +0 -87
  259. package/lib/cjs/imodel-components-react/quantityformat/misc/FractionPrecision.js.map +0 -1
  260. package/lib/cjs/imodel-components-react/quantityformat/misc/ScientificType.d.ts.map +0 -1
  261. package/lib/cjs/imodel-components-react/quantityformat/misc/ScientificType.js +0 -60
  262. package/lib/cjs/imodel-components-react/quantityformat/misc/ScientificType.js.map +0 -1
  263. package/lib/cjs/imodel-components-react/quantityformat/misc/SignOption.d.ts.map +0 -1
  264. package/lib/cjs/imodel-components-react/quantityformat/misc/SignOption.js +0 -68
  265. package/lib/cjs/imodel-components-react/quantityformat/misc/SignOption.js.map +0 -1
  266. package/lib/cjs/imodel-components-react/quantityformat/misc/StationSeparatorSelector.d.ts.map +0 -1
  267. package/lib/cjs/imodel-components-react/quantityformat/misc/StationSeparatorSelector.js +0 -76
  268. package/lib/cjs/imodel-components-react/quantityformat/misc/StationSeparatorSelector.js.map +0 -1
  269. package/lib/cjs/imodel-components-react/quantityformat/misc/StationSizeSelector.d.ts.map +0 -1
  270. package/lib/cjs/imodel-components-react/quantityformat/misc/StationSizeSelector.js +0 -59
  271. package/lib/cjs/imodel-components-react/quantityformat/misc/StationSizeSelector.js.map +0 -1
  272. package/lib/cjs/imodel-components-react/quantityformat/misc/ThousandsSelector.d.ts.map +0 -1
  273. package/lib/cjs/imodel-components-react/quantityformat/misc/ThousandsSelector.js +0 -65
  274. package/lib/cjs/imodel-components-react/quantityformat/misc/ThousandsSelector.js.map +0 -1
  275. package/lib/cjs/imodel-components-react/quantityformat/misc/ThousandsSeparator.d.ts.map +0 -1
  276. package/lib/cjs/imodel-components-react/quantityformat/misc/ThousandsSeparator.js +0 -106
  277. package/lib/cjs/imodel-components-react/quantityformat/misc/ThousandsSeparator.js.map +0 -1
  278. package/lib/cjs/imodel-components-react/quantityformat/misc/UnitDescr.d.ts.map +0 -1
  279. package/lib/cjs/imodel-components-react/quantityformat/misc/UnitDescr.js +0 -135
  280. package/lib/cjs/imodel-components-react/quantityformat/misc/UnitDescr.js.map +0 -1
  281. package/lib/cjs/imodel-components-react/timeline/BaseSolarDataProvider.d.ts.map +0 -1
  282. package/lib/cjs/imodel-components-react/timeline/BaseSolarDataProvider.js +0 -150
  283. package/lib/cjs/imodel-components-react/timeline/BaseSolarDataProvider.js.map +0 -1
  284. package/lib/cjs/imodel-components-react/timeline/BaseTimelineDataProvider.d.ts.map +0 -1
  285. package/lib/cjs/imodel-components-react/timeline/BaseTimelineDataProvider.js +0 -64
  286. package/lib/cjs/imodel-components-react/timeline/BaseTimelineDataProvider.js.map +0 -1
  287. package/lib/cjs/imodel-components-react/timeline/InlineEdit.d.ts.map +0 -1
  288. package/lib/cjs/imodel-components-react/timeline/InlineEdit.js +0 -86
  289. package/lib/cjs/imodel-components-react/timeline/InlineEdit.js.map +0 -1
  290. package/lib/cjs/imodel-components-react/timeline/InlineEdit.scss +0 -24
  291. package/lib/cjs/imodel-components-react/timeline/PlayButton.d.ts.map +0 -1
  292. package/lib/cjs/imodel-components-react/timeline/PlayButton.js +0 -50
  293. package/lib/cjs/imodel-components-react/timeline/PlayButton.js.map +0 -1
  294. package/lib/cjs/imodel-components-react/timeline/Scrubber.d.ts.map +0 -1
  295. package/lib/cjs/imodel-components-react/timeline/Scrubber.js +0 -185
  296. package/lib/cjs/imodel-components-react/timeline/Scrubber.js.map +0 -1
  297. package/lib/cjs/imodel-components-react/timeline/Scrubber.scss +0 -105
  298. package/lib/cjs/imodel-components-react/timeline/SolarTimeline.d.ts +0 -60
  299. package/lib/cjs/imodel-components-react/timeline/SolarTimeline.d.ts.map +0 -1
  300. package/lib/cjs/imodel-components-react/timeline/SolarTimeline.js +0 -358
  301. package/lib/cjs/imodel-components-react/timeline/SolarTimeline.js.map +0 -1
  302. package/lib/cjs/imodel-components-react/timeline/SolarTimeline.scss +0 -45
  303. package/lib/cjs/imodel-components-react/timeline/SpeedTimeline.d.ts.map +0 -1
  304. package/lib/cjs/imodel-components-react/timeline/SpeedTimeline.js +0 -57
  305. package/lib/cjs/imodel-components-react/timeline/SpeedTimeline.js.map +0 -1
  306. package/lib/cjs/imodel-components-react/timeline/Timeline.scss +0 -165
  307. package/lib/cjs/imodel-components-react/timeline/TimelineComponent.d.ts +0 -100
  308. package/lib/cjs/imodel-components-react/timeline/TimelineComponent.d.ts.map +0 -1
  309. package/lib/cjs/imodel-components-react/timeline/TimelineComponent.js +0 -286
  310. package/lib/cjs/imodel-components-react/timeline/TimelineComponent.js.map +0 -1
  311. package/lib/cjs/imodel-components-react/timeline/interfaces.d.ts.map +0 -1
  312. package/lib/cjs/imodel-components-react/timeline/interfaces.js +0 -46
  313. package/lib/cjs/imodel-components-react/timeline/interfaces.js.map +0 -1
  314. package/lib/cjs/imodel-components-react/useTranslation.d.ts.map +0 -1
  315. package/lib/cjs/imodel-components-react/useTranslation.js +0 -52
  316. package/lib/cjs/imodel-components-react/useTranslation.js.map +0 -1
  317. package/lib/cjs/imodel-components-react/viewport/ViewportComponent.d.ts.map +0 -1
  318. package/lib/cjs/imodel-components-react/viewport/ViewportComponent.js +0 -267
  319. package/lib/cjs/imodel-components-react/viewport/ViewportComponent.js.map +0 -1
  320. package/lib/cjs/imodel-components-react/viewport/ViewportComponentEvents.d.ts.map +0 -1
  321. package/lib/cjs/imodel-components-react/viewport/ViewportComponentEvents.js +0 -119
  322. package/lib/cjs/imodel-components-react/viewport/ViewportComponentEvents.js.map +0 -1
  323. package/lib/cjs/imodel-components-react.d.ts +0 -80
  324. package/lib/cjs/imodel-components-react.d.ts.map +0 -1
  325. package/lib/cjs/imodel-components-react.js +0 -103
  326. package/lib/cjs/imodel-components-react.js.map +0 -1
  327. package/lib/esm/imodel-components-react/UiIModelComponents.d.ts +0 -29
  328. package/lib/esm/imodel-components-react/UiIModelComponents.d.ts.map +0 -1
  329. package/lib/esm/imodel-components-react/UiIModelComponents.js.map +0 -1
  330. package/lib/esm/imodel-components-react/UiIModelComponents.json +0 -150
  331. package/lib/esm/imodel-components-react/color/AlphaSlider.d.ts +0 -36
  332. package/lib/esm/imodel-components-react/color/AlphaSlider.d.ts.map +0 -1
  333. package/lib/esm/imodel-components-react/color/AlphaSlider.js.map +0 -1
  334. package/lib/esm/imodel-components-react/color/AlphaSlider.scss +0 -71
  335. package/lib/esm/imodel-components-react/color/ColorPickerButton.d.ts +0 -40
  336. package/lib/esm/imodel-components-react/color/ColorPickerButton.d.ts.map +0 -1
  337. package/lib/esm/imodel-components-react/color/ColorPickerButton.js.map +0 -1
  338. package/lib/esm/imodel-components-react/color/ColorPickerDialog.d.ts +0 -26
  339. package/lib/esm/imodel-components-react/color/ColorPickerDialog.d.ts.map +0 -1
  340. package/lib/esm/imodel-components-react/color/ColorPickerDialog.js.map +0 -1
  341. package/lib/esm/imodel-components-react/color/ColorPickerPopup.d.ts +0 -47
  342. package/lib/esm/imodel-components-react/color/ColorPickerPopup.d.ts.map +0 -1
  343. package/lib/esm/imodel-components-react/color/ColorPickerPopup.js.map +0 -1
  344. package/lib/esm/imodel-components-react/color/ColorPickerPopup.scss +0 -62
  345. package/lib/esm/imodel-components-react/color/HueSlider.d.ts +0 -25
  346. package/lib/esm/imodel-components-react/color/HueSlider.d.ts.map +0 -1
  347. package/lib/esm/imodel-components-react/color/HueSlider.scss +0 -78
  348. package/lib/esm/imodel-components-react/color/SaturationPicker.d.ts +0 -23
  349. package/lib/esm/imodel-components-react/color/SaturationPicker.d.ts.map +0 -1
  350. package/lib/esm/imodel-components-react/color/SaturationPicker.js.map +0 -1
  351. package/lib/esm/imodel-components-react/color/SaturationPicker.scss +0 -36
  352. package/lib/esm/imodel-components-react/color/Swatch.d.ts +0 -25
  353. package/lib/esm/imodel-components-react/color/Swatch.d.ts.map +0 -1
  354. package/lib/esm/imodel-components-react/color/Swatch.scss +0 -22
  355. package/lib/esm/imodel-components-react/color/getCSSColorFromDef.d.ts +0 -7
  356. package/lib/esm/imodel-components-react/color/getCSSColorFromDef.d.ts.map +0 -1
  357. package/lib/esm/imodel-components-react/color/getCSSColorFromDef.js.map +0 -1
  358. package/lib/esm/imodel-components-react/editors/ColorEditor.d.ts +0 -42
  359. package/lib/esm/imodel-components-react/editors/ColorEditor.d.ts.map +0 -1
  360. package/lib/esm/imodel-components-react/editors/ColorEditor.js.map +0 -1
  361. package/lib/esm/imodel-components-react/editors/ColorEditor.scss +0 -18
  362. package/lib/esm/imodel-components-react/editors/WeightEditor.d.ts +0 -44
  363. package/lib/esm/imodel-components-react/editors/WeightEditor.d.ts.map +0 -1
  364. package/lib/esm/imodel-components-react/editors/WeightEditor.js.map +0 -1
  365. package/lib/esm/imodel-components-react/editors/WeightEditor.scss +0 -16
  366. package/lib/esm/imodel-components-react/inputs/QuantityInput.d.ts +0 -26
  367. package/lib/esm/imodel-components-react/inputs/QuantityInput.d.ts.map +0 -1
  368. package/lib/esm/imodel-components-react/inputs/QuantityNumberInput.d.ts +0 -47
  369. package/lib/esm/imodel-components-react/inputs/QuantityNumberInput.d.ts.map +0 -1
  370. package/lib/esm/imodel-components-react/inputs/QuantityNumberInput.js.map +0 -1
  371. package/lib/esm/imodel-components-react/inputs/QuantityNumberInput.scss +0 -106
  372. package/lib/esm/imodel-components-react/lineweight/Swatch.d.ts +0 -33
  373. package/lib/esm/imodel-components-react/lineweight/Swatch.d.ts.map +0 -1
  374. package/lib/esm/imodel-components-react/lineweight/Swatch.scss +0 -48
  375. package/lib/esm/imodel-components-react/lineweight/WeightPickerButton.d.ts +0 -59
  376. package/lib/esm/imodel-components-react/lineweight/WeightPickerButton.d.ts.map +0 -1
  377. package/lib/esm/imodel-components-react/navigationaids/Cube.d.ts +0 -46
  378. package/lib/esm/imodel-components-react/navigationaids/Cube.d.ts.map +0 -1
  379. package/lib/esm/imodel-components-react/navigationaids/Cube.js.map +0 -1
  380. package/lib/esm/imodel-components-react/navigationaids/CubeNavigationAid.d.ts.map +0 -1
  381. package/lib/esm/imodel-components-react/navigationaids/CubeNavigationAid.js.map +0 -1
  382. package/lib/esm/imodel-components-react/navigationaids/DrawingNavigationAid.d.ts +0 -144
  383. package/lib/esm/imodel-components-react/navigationaids/DrawingNavigationAid.d.ts.map +0 -1
  384. package/lib/esm/imodel-components-react/navigationaids/DrawingNavigationAid.js.map +0 -1
  385. package/lib/esm/imodel-components-react/navigationaids/DrawingNavigationAid.scss +0 -134
  386. package/lib/esm/imodel-components-react/quantityformat/FormatPanel.d.ts +0 -29
  387. package/lib/esm/imodel-components-react/quantityformat/FormatPanel.d.ts.map +0 -1
  388. package/lib/esm/imodel-components-react/quantityformat/FormatPanel.js.map +0 -1
  389. package/lib/esm/imodel-components-react/quantityformat/FormatPrecision.d.ts +0 -19
  390. package/lib/esm/imodel-components-react/quantityformat/FormatPrecision.d.ts.map +0 -1
  391. package/lib/esm/imodel-components-react/quantityformat/FormatPrecision.js.map +0 -1
  392. package/lib/esm/imodel-components-react/quantityformat/FormatSample.d.ts +0 -20
  393. package/lib/esm/imodel-components-react/quantityformat/FormatSample.d.ts.map +0 -1
  394. package/lib/esm/imodel-components-react/quantityformat/FormatSample.js.map +0 -1
  395. package/lib/esm/imodel-components-react/quantityformat/FormatType.d.ts +0 -19
  396. package/lib/esm/imodel-components-react/quantityformat/FormatType.d.ts.map +0 -1
  397. package/lib/esm/imodel-components-react/quantityformat/FormatUnitLabel.d.ts +0 -19
  398. package/lib/esm/imodel-components-react/quantityformat/FormatUnitLabel.d.ts.map +0 -1
  399. package/lib/esm/imodel-components-react/quantityformat/FormatUnits.d.ts +0 -21
  400. package/lib/esm/imodel-components-react/quantityformat/FormatUnits.d.ts.map +0 -1
  401. package/lib/esm/imodel-components-react/quantityformat/FormatUnits.js.map +0 -1
  402. package/lib/esm/imodel-components-react/quantityformat/MiscFormatOptions.d.ts +0 -23
  403. package/lib/esm/imodel-components-react/quantityformat/MiscFormatOptions.d.ts.map +0 -1
  404. package/lib/esm/imodel-components-react/quantityformat/MiscFormatOptions.js.map +0 -1
  405. package/lib/esm/imodel-components-react/quantityformat/QuantityFormatPanel.d.ts +0 -24
  406. package/lib/esm/imodel-components-react/quantityformat/QuantityFormatPanel.d.ts.map +0 -1
  407. package/lib/esm/imodel-components-react/quantityformat/QuantityFormatPanel.js.map +0 -1
  408. package/lib/esm/imodel-components-react/quantityformat/misc/DecimalPrecision.d.ts +0 -18
  409. package/lib/esm/imodel-components-react/quantityformat/misc/DecimalPrecision.d.ts.map +0 -1
  410. package/lib/esm/imodel-components-react/quantityformat/misc/DecimalSeparator.d.ts +0 -18
  411. package/lib/esm/imodel-components-react/quantityformat/misc/DecimalSeparator.d.ts.map +0 -1
  412. package/lib/esm/imodel-components-react/quantityformat/misc/DecimalSeparator.js.map +0 -1
  413. package/lib/esm/imodel-components-react/quantityformat/misc/FractionPrecision.d.ts +0 -17
  414. package/lib/esm/imodel-components-react/quantityformat/misc/FractionPrecision.d.ts.map +0 -1
  415. package/lib/esm/imodel-components-react/quantityformat/misc/FractionPrecision.js.map +0 -1
  416. package/lib/esm/imodel-components-react/quantityformat/misc/ScientificType.d.ts +0 -19
  417. package/lib/esm/imodel-components-react/quantityformat/misc/ScientificType.d.ts.map +0 -1
  418. package/lib/esm/imodel-components-react/quantityformat/misc/ScientificType.js.map +0 -1
  419. package/lib/esm/imodel-components-react/quantityformat/misc/SignOption.d.ts +0 -18
  420. package/lib/esm/imodel-components-react/quantityformat/misc/SignOption.d.ts.map +0 -1
  421. package/lib/esm/imodel-components-react/quantityformat/misc/SignOption.js.map +0 -1
  422. package/lib/esm/imodel-components-react/quantityformat/misc/StationSeparatorSelector.d.ts +0 -18
  423. package/lib/esm/imodel-components-react/quantityformat/misc/StationSeparatorSelector.d.ts.map +0 -1
  424. package/lib/esm/imodel-components-react/quantityformat/misc/StationSeparatorSelector.js.map +0 -1
  425. package/lib/esm/imodel-components-react/quantityformat/misc/StationSizeSelector.d.ts +0 -18
  426. package/lib/esm/imodel-components-react/quantityformat/misc/StationSizeSelector.d.ts.map +0 -1
  427. package/lib/esm/imodel-components-react/quantityformat/misc/StationSizeSelector.js.map +0 -1
  428. package/lib/esm/imodel-components-react/quantityformat/misc/ThousandsSelector.d.ts +0 -18
  429. package/lib/esm/imodel-components-react/quantityformat/misc/ThousandsSelector.d.ts.map +0 -1
  430. package/lib/esm/imodel-components-react/quantityformat/misc/ThousandsSelector.js.map +0 -1
  431. package/lib/esm/imodel-components-react/quantityformat/misc/ThousandsSeparator.d.ts +0 -18
  432. package/lib/esm/imodel-components-react/quantityformat/misc/ThousandsSeparator.d.ts.map +0 -1
  433. package/lib/esm/imodel-components-react/quantityformat/misc/ThousandsSeparator.js.map +0 -1
  434. package/lib/esm/imodel-components-react/quantityformat/misc/UnitDescr.d.ts +0 -24
  435. package/lib/esm/imodel-components-react/quantityformat/misc/UnitDescr.d.ts.map +0 -1
  436. package/lib/esm/imodel-components-react/quantityformat/misc/UnitDescr.js.map +0 -1
  437. package/lib/esm/imodel-components-react/timeline/BaseSolarDataProvider.d.ts +0 -53
  438. package/lib/esm/imodel-components-react/timeline/BaseSolarDataProvider.d.ts.map +0 -1
  439. package/lib/esm/imodel-components-react/timeline/BaseTimelineDataProvider.d.ts +0 -32
  440. package/lib/esm/imodel-components-react/timeline/BaseTimelineDataProvider.d.ts.map +0 -1
  441. package/lib/esm/imodel-components-react/timeline/BaseTimelineDataProvider.js.map +0 -1
  442. package/lib/esm/imodel-components-react/timeline/InlineEdit.d.ts +0 -27
  443. package/lib/esm/imodel-components-react/timeline/InlineEdit.d.ts.map +0 -1
  444. package/lib/esm/imodel-components-react/timeline/InlineEdit.js.map +0 -1
  445. package/lib/esm/imodel-components-react/timeline/PlayButton.d.ts +0 -12
  446. package/lib/esm/imodel-components-react/timeline/PlayButton.d.ts.map +0 -1
  447. package/lib/esm/imodel-components-react/timeline/PlayButton.js.map +0 -1
  448. package/lib/esm/imodel-components-react/timeline/Scrubber.d.ts +0 -54
  449. package/lib/esm/imodel-components-react/timeline/Scrubber.d.ts.map +0 -1
  450. package/lib/esm/imodel-components-react/timeline/Scrubber.js.map +0 -1
  451. package/lib/esm/imodel-components-react/timeline/SolarTimeline.d.ts.map +0 -1
  452. package/lib/esm/imodel-components-react/timeline/SolarTimeline.js.map +0 -1
  453. package/lib/esm/imodel-components-react/timeline/SpeedTimeline.d.ts +0 -16
  454. package/lib/esm/imodel-components-react/timeline/SpeedTimeline.d.ts.map +0 -1
  455. package/lib/esm/imodel-components-react/timeline/SpeedTimeline.js.map +0 -1
  456. package/lib/esm/imodel-components-react/timeline/SpeedTimeline.scss +0 -40
  457. package/lib/esm/imodel-components-react/timeline/TimelineComponent.d.ts.map +0 -1
  458. package/lib/esm/imodel-components-react/timeline/TimelineComponent.js.map +0 -1
  459. package/lib/esm/imodel-components-react/timeline/TimelineComponent.scss +0 -48
  460. package/lib/esm/imodel-components-react/timeline/interfaces.d.ts +0 -146
  461. package/lib/esm/imodel-components-react/timeline/interfaces.d.ts.map +0 -1
  462. package/lib/esm/imodel-components-react/timeline/interfaces.js.map +0 -1
  463. package/lib/esm/imodel-components-react/useTranslation.d.ts +0 -7
  464. package/lib/esm/imodel-components-react/useTranslation.d.ts.map +0 -1
  465. package/lib/esm/imodel-components-react/useTranslation.js.map +0 -1
  466. package/lib/esm/imodel-components-react/viewport/ViewportComponent.d.ts +0 -43
  467. package/lib/esm/imodel-components-react/viewport/ViewportComponent.d.ts.map +0 -1
  468. package/lib/esm/imodel-components-react/viewport/ViewportComponent.js.map +0 -1
  469. package/lib/esm/imodel-components-react/viewport/ViewportComponentEvents.d.ts +0 -119
  470. package/lib/esm/imodel-components-react/viewport/ViewportComponentEvents.d.ts.map +0 -1
  471. package/lib/esm/imodel-components-react/viewport/ViewportComponentEvents.js.map +0 -1
  472. package/lib/esm/imodel-components-react.d.ts +0 -80
  473. package/lib/esm/imodel-components-react.d.ts.map +0 -1
  474. package/lib/esm/imodel-components-react.js +0 -85
  475. package/lib/esm/imodel-components-react.js.map +0 -1
  476. /package/lib/{cjs/imodel-components-react → imodel-components-react}/UiIModelComponents.json +0 -0
  477. /package/lib/{cjs/imodel-components-react → imodel-components-react}/color/AlphaSlider.d.ts +0 -0
  478. /package/lib/{cjs/imodel-components-react → imodel-components-react}/color/AlphaSlider.scss +0 -0
  479. /package/lib/{cjs/imodel-components-react → imodel-components-react}/color/ColorPickerButton.d.ts +0 -0
  480. /package/lib/{cjs/imodel-components-react → imodel-components-react}/color/ColorPickerDialog.d.ts +0 -0
  481. /package/lib/{esm/imodel-components-react → imodel-components-react}/color/ColorPickerDialog.js +0 -0
  482. /package/lib/{cjs/imodel-components-react → imodel-components-react}/color/ColorPickerPopup.d.ts +0 -0
  483. /package/lib/{cjs/imodel-components-react → imodel-components-react}/color/ColorPickerPopup.scss +0 -0
  484. /package/lib/{cjs/imodel-components-react → imodel-components-react}/color/HueSlider.d.ts +0 -0
  485. /package/lib/{cjs/imodel-components-react → imodel-components-react}/color/HueSlider.scss +0 -0
  486. /package/lib/{cjs/imodel-components-react → imodel-components-react}/color/SaturationPicker.d.ts +0 -0
  487. /package/lib/{cjs/imodel-components-react → imodel-components-react}/color/SaturationPicker.scss +0 -0
  488. /package/lib/{cjs/imodel-components-react → imodel-components-react}/color/Swatch.d.ts +0 -0
  489. /package/lib/{cjs/imodel-components-react → imodel-components-react}/color/Swatch.scss +0 -0
  490. /package/lib/{cjs/imodel-components-react → imodel-components-react}/color/getCSSColorFromDef.d.ts +0 -0
  491. /package/lib/{esm/imodel-components-react → imodel-components-react}/color/getCSSColorFromDef.js +0 -0
  492. /package/lib/{cjs/imodel-components-react → imodel-components-react}/editors/ColorEditor.d.ts +0 -0
  493. /package/lib/{cjs/imodel-components-react → imodel-components-react}/editors/WeightEditor.d.ts +0 -0
  494. /package/lib/{cjs/imodel-components-react → imodel-components-react}/inputs/QuantityInput.d.ts +0 -0
  495. /package/lib/{cjs/imodel-components-react → imodel-components-react}/inputs/QuantityNumberInput.d.ts +0 -0
  496. /package/lib/{esm/imodel-components-react → imodel-components-react}/inputs/QuantityNumberInput.js +0 -0
  497. /package/lib/{cjs/imodel-components-react → imodel-components-react}/lineweight/Swatch.d.ts +0 -0
  498. /package/lib/{cjs/imodel-components-react → imodel-components-react}/lineweight/WeightPickerButton.d.ts +0 -0
  499. /package/lib/{cjs/imodel-components-react → imodel-components-react}/navigationaids/Cube.d.ts +0 -0
  500. /package/lib/{esm/imodel-components-react → imodel-components-react}/navigationaids/Cube.js +0 -0
  501. /package/lib/{cjs/imodel-components-react → imodel-components-react}/navigationaids/Cube.scss +0 -0
  502. /package/lib/{cjs/imodel-components-react → imodel-components-react}/navigationaids/DrawingNavigationAid.d.ts +0 -0
  503. /package/lib/{cjs/imodel-components-react → imodel-components-react}/quantityformat/FormatPanel.d.ts +0 -0
  504. /package/lib/{cjs/imodel-components-react → imodel-components-react}/quantityformat/FormatPrecision.d.ts +0 -0
  505. /package/lib/{cjs/imodel-components-react → imodel-components-react}/quantityformat/FormatSample.d.ts +0 -0
  506. /package/lib/{cjs/imodel-components-react → imodel-components-react}/quantityformat/FormatType.d.ts +0 -0
  507. /package/lib/{cjs/imodel-components-react → imodel-components-react}/quantityformat/FormatUnitLabel.d.ts +0 -0
  508. /package/lib/{cjs/imodel-components-react → imodel-components-react}/quantityformat/FormatUnits.d.ts +0 -0
  509. /package/lib/{cjs/imodel-components-react → imodel-components-react}/quantityformat/MiscFormatOptions.d.ts +0 -0
  510. /package/lib/{cjs/imodel-components-react → imodel-components-react}/quantityformat/QuantityFormatPanel.d.ts +0 -0
  511. /package/lib/{cjs/imodel-components-react → imodel-components-react}/quantityformat/misc/DecimalPrecision.d.ts +0 -0
  512. /package/lib/{cjs/imodel-components-react → imodel-components-react}/quantityformat/misc/DecimalSeparator.d.ts +0 -0
  513. /package/lib/{cjs/imodel-components-react → imodel-components-react}/quantityformat/misc/FractionPrecision.d.ts +0 -0
  514. /package/lib/{cjs/imodel-components-react → imodel-components-react}/quantityformat/misc/ScientificType.d.ts +0 -0
  515. /package/lib/{cjs/imodel-components-react → imodel-components-react}/quantityformat/misc/SignOption.d.ts +0 -0
  516. /package/lib/{cjs/imodel-components-react → imodel-components-react}/quantityformat/misc/StationSeparatorSelector.d.ts +0 -0
  517. /package/lib/{cjs/imodel-components-react → imodel-components-react}/quantityformat/misc/StationSizeSelector.d.ts +0 -0
  518. /package/lib/{cjs/imodel-components-react → imodel-components-react}/quantityformat/misc/ThousandsSelector.d.ts +0 -0
  519. /package/lib/{cjs/imodel-components-react → imodel-components-react}/quantityformat/misc/ThousandsSeparator.d.ts +0 -0
  520. /package/lib/{cjs/imodel-components-react → imodel-components-react}/quantityformat/misc/UnitDescr.d.ts +0 -0
  521. /package/lib/{esm/imodel-components-react → imodel-components-react}/quantityformat/misc/UnitDescr.js +0 -0
  522. /package/lib/{esm/imodel-components-react → imodel-components-react}/timeline/BaseSolarDataProvider.js +0 -0
  523. /package/lib/{esm/imodel-components-react → imodel-components-react}/timeline/BaseTimelineDataProvider.js +0 -0
  524. /package/lib/{cjs/imodel-components-react → imodel-components-react}/timeline/InlineEdit.d.ts +0 -0
  525. /package/lib/{esm/imodel-components-react → imodel-components-react}/timeline/InlineEdit.js +0 -0
  526. /package/lib/{cjs/imodel-components-react → imodel-components-react}/timeline/PlayButton.d.ts +0 -0
  527. /package/lib/{cjs/imodel-components-react → imodel-components-react}/timeline/SpeedTimeline.d.ts +0 -0
  528. /package/lib/{esm/imodel-components-react → imodel-components-react}/timeline/SpeedTimeline.js +0 -0
  529. /package/lib/{cjs/imodel-components-react → imodel-components-react}/timeline/TimelineComponent.scss +0 -0
  530. /package/lib/{cjs/imodel-components-react → imodel-components-react}/timeline/interfaces.d.ts +0 -0
  531. /package/lib/{esm/imodel-components-react → imodel-components-react}/timeline/interfaces.js +0 -0
  532. /package/lib/{cjs/imodel-components-react → imodel-components-react}/useTranslation.d.ts +0 -0
  533. /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