@itwin/imodel-components-react 4.17.6 → 5.0.0-dev.3

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 (541) hide show
  1. package/CHANGELOG.md +1 -31
  2. package/README.md +15 -2
  3. package/lib/cjs/imodel-components-react/color/ColorPickerButton.scss +2 -4
  4. package/lib/cjs/imodel-components-react/editors/ColorEditor.scss +0 -2
  5. package/lib/cjs/imodel-components-react/editors/WeightEditor.scss +0 -2
  6. package/lib/cjs/imodel-components-react/inputs/QuantityNumberInput.scss +1 -1
  7. package/lib/cjs/imodel-components-react/lineweight/Swatch.scss +2 -4
  8. package/lib/cjs/imodel-components-react/lineweight/WeightPickerButton.scss +5 -6
  9. package/lib/cjs/imodel-components-react/navigationaids/CubeNavigationAid.scss +0 -2
  10. package/lib/cjs/imodel-components-react/navigationaids/DrawingNavigationAid.scss +9 -10
  11. package/lib/cjs/imodel-components-react/quantityformat/FormatPanel.scss +0 -2
  12. package/lib/cjs/imodel-components-react/timeline/InlineEdit.scss +3 -5
  13. package/lib/cjs/imodel-components-react/timeline/Scrubber.scss +1 -1
  14. package/lib/cjs/imodel-components-react/timeline/SolarTimeline.scss +0 -2
  15. package/lib/cjs/imodel-components-react/timeline/SpeedTimeline.scss +2 -4
  16. package/lib/cjs/imodel-components-react/timeline/Timeline.scss +7 -9
  17. package/lib/esm/imodel-components-react/color/ColorPickerButton.scss +2 -4
  18. package/lib/esm/imodel-components-react/editors/ColorEditor.scss +0 -2
  19. package/lib/esm/imodel-components-react/editors/WeightEditor.scss +0 -2
  20. package/lib/esm/imodel-components-react/inputs/QuantityNumberInput.scss +1 -1
  21. package/lib/esm/imodel-components-react/lineweight/Swatch.scss +2 -4
  22. package/lib/esm/imodel-components-react/lineweight/WeightPickerButton.scss +5 -6
  23. package/lib/esm/imodel-components-react/navigationaids/CubeNavigationAid.scss +0 -2
  24. package/lib/esm/imodel-components-react/navigationaids/DrawingNavigationAid.scss +9 -10
  25. package/lib/esm/imodel-components-react/quantityformat/FormatPanel.scss +0 -2
  26. package/lib/esm/imodel-components-react/timeline/InlineEdit.scss +3 -5
  27. package/lib/esm/imodel-components-react/timeline/Scrubber.scss +1 -1
  28. package/lib/esm/imodel-components-react/timeline/SolarTimeline.scss +0 -2
  29. package/lib/esm/imodel-components-react/timeline/SpeedTimeline.scss +2 -4
  30. package/lib/esm/imodel-components-react/timeline/Timeline.scss +7 -9
  31. package/lib/{cjs/imodel-components-react → imodel-components-react}/UiIModelComponents.d.ts +1 -1
  32. package/lib/imodel-components-react/UiIModelComponents.d.ts.map +1 -0
  33. package/lib/{esm/imodel-components-react → imodel-components-react}/UiIModelComponents.js +4 -7
  34. package/lib/imodel-components-react/UiIModelComponents.js.map +1 -0
  35. package/lib/imodel-components-react/color/AlphaSlider.d.ts.map +1 -0
  36. package/lib/{esm/imodel-components-react → imodel-components-react}/color/AlphaSlider.js +1 -1
  37. package/lib/imodel-components-react/color/AlphaSlider.js.map +1 -0
  38. package/lib/imodel-components-react/color/AlphaSlider.scss +71 -0
  39. package/lib/imodel-components-react/color/ColorPickerButton.d.ts.map +1 -0
  40. package/lib/{esm/imodel-components-react → imodel-components-react}/color/ColorPickerButton.js +4 -3
  41. package/lib/imodel-components-react/color/ColorPickerButton.js.map +1 -0
  42. package/lib/imodel-components-react/color/ColorPickerButton.scss +88 -0
  43. package/lib/imodel-components-react/color/ColorPickerDialog.d.ts.map +1 -0
  44. package/lib/imodel-components-react/color/ColorPickerDialog.js.map +1 -0
  45. package/lib/imodel-components-react/color/ColorPickerPopup.d.ts.map +1 -0
  46. package/lib/{esm/imodel-components-react → imodel-components-react}/color/ColorPickerPopup.js +4 -3
  47. package/lib/imodel-components-react/color/ColorPickerPopup.js.map +1 -0
  48. package/lib/imodel-components-react/color/ColorPickerPopup.scss +62 -0
  49. package/lib/imodel-components-react/color/HueSlider.d.ts.map +1 -0
  50. package/lib/{esm/imodel-components-react → imodel-components-react}/color/HueSlider.js +1 -1
  51. package/lib/{esm/imodel-components-react → imodel-components-react}/color/HueSlider.js.map +1 -1
  52. package/lib/imodel-components-react/color/HueSlider.scss +78 -0
  53. package/lib/imodel-components-react/color/SaturationPicker.d.ts.map +1 -0
  54. package/lib/{esm/imodel-components-react → imodel-components-react}/color/SaturationPicker.js +1 -1
  55. package/lib/imodel-components-react/color/SaturationPicker.js.map +1 -0
  56. package/lib/imodel-components-react/color/SaturationPicker.scss +36 -0
  57. package/lib/imodel-components-react/color/Swatch.d.ts.map +1 -0
  58. package/lib/{esm/imodel-components-react → imodel-components-react}/color/Swatch.js +1 -1
  59. package/lib/{esm/imodel-components-react → imodel-components-react}/color/Swatch.js.map +1 -1
  60. package/lib/imodel-components-react/color/Swatch.scss +22 -0
  61. package/lib/imodel-components-react/color/getCSSColorFromDef.d.ts.map +1 -0
  62. package/lib/imodel-components-react/color/getCSSColorFromDef.js.map +1 -0
  63. package/lib/imodel-components-react/editors/ColorEditor.d.ts.map +1 -0
  64. package/lib/{esm/imodel-components-react → imodel-components-react}/editors/ColorEditor.js +3 -4
  65. package/lib/imodel-components-react/editors/ColorEditor.js.map +1 -0
  66. package/lib/imodel-components-react/editors/ColorEditor.scss +16 -0
  67. package/lib/imodel-components-react/editors/WeightEditor.d.ts.map +1 -0
  68. package/lib/{esm/imodel-components-react → imodel-components-react}/editors/WeightEditor.js +3 -4
  69. package/lib/imodel-components-react/editors/WeightEditor.js.map +1 -0
  70. package/lib/imodel-components-react/editors/WeightEditor.scss +14 -0
  71. package/lib/imodel-components-react/inputs/QuantityInput.d.ts.map +1 -0
  72. package/lib/{esm/imodel-components-react → imodel-components-react}/inputs/QuantityInput.js +1 -1
  73. package/lib/{esm/imodel-components-react → imodel-components-react}/inputs/QuantityInput.js.map +1 -1
  74. package/lib/imodel-components-react/inputs/QuantityNumberInput.d.ts.map +1 -0
  75. package/lib/imodel-components-react/inputs/QuantityNumberInput.js.map +1 -0
  76. package/lib/imodel-components-react/inputs/QuantityNumberInput.scss +106 -0
  77. package/lib/imodel-components-react/lineweight/Swatch.d.ts.map +1 -0
  78. package/lib/{esm/imodel-components-react → imodel-components-react}/lineweight/Swatch.js +1 -1
  79. package/lib/{esm/imodel-components-react → imodel-components-react}/lineweight/Swatch.js.map +1 -1
  80. package/lib/imodel-components-react/lineweight/Swatch.scss +46 -0
  81. package/lib/imodel-components-react/lineweight/WeightPickerButton.d.ts.map +1 -0
  82. package/lib/{esm/imodel-components-react → imodel-components-react}/lineweight/WeightPickerButton.js +1 -1
  83. package/lib/{esm/imodel-components-react → imodel-components-react}/lineweight/WeightPickerButton.js.map +1 -1
  84. package/lib/imodel-components-react/lineweight/WeightPickerButton.scss +50 -0
  85. package/lib/imodel-components-react/navigationaids/Cube.d.ts.map +1 -0
  86. package/lib/imodel-components-react/navigationaids/Cube.js.map +1 -0
  87. package/lib/imodel-components-react/navigationaids/Cube.scss +19 -0
  88. package/lib/{esm/imodel-components-react → imodel-components-react}/navigationaids/CubeNavigationAid.d.ts +1 -1
  89. package/lib/imodel-components-react/navigationaids/CubeNavigationAid.d.ts.map +1 -0
  90. package/lib/{esm/imodel-components-react → imodel-components-react}/navigationaids/CubeNavigationAid.js +3 -3
  91. package/lib/imodel-components-react/navigationaids/CubeNavigationAid.js.map +1 -0
  92. package/lib/imodel-components-react/navigationaids/CubeNavigationAid.scss +177 -0
  93. package/lib/imodel-components-react/navigationaids/DrawingNavigationAid.d.ts.map +1 -0
  94. package/lib/{esm/imodel-components-react → imodel-components-react}/navigationaids/DrawingNavigationAid.js +2 -2
  95. package/lib/imodel-components-react/navigationaids/DrawingNavigationAid.js.map +1 -0
  96. package/lib/imodel-components-react/navigationaids/DrawingNavigationAid.scss +133 -0
  97. package/lib/imodel-components-react/quantityformat/FormatPanel.d.ts.map +1 -0
  98. package/lib/{esm/imodel-components-react → imodel-components-react}/quantityformat/FormatPanel.js +6 -6
  99. package/lib/imodel-components-react/quantityformat/FormatPanel.js.map +1 -0
  100. package/lib/imodel-components-react/quantityformat/FormatPanel.scss +53 -0
  101. package/lib/imodel-components-react/quantityformat/FormatPrecision.d.ts.map +1 -0
  102. package/lib/{esm/imodel-components-react → imodel-components-react}/quantityformat/FormatPrecision.js +3 -3
  103. package/lib/imodel-components-react/quantityformat/FormatPrecision.js.map +1 -0
  104. package/lib/imodel-components-react/quantityformat/FormatSample.d.ts.map +1 -0
  105. package/lib/{esm/imodel-components-react → imodel-components-react}/quantityformat/FormatSample.js +1 -1
  106. package/lib/imodel-components-react/quantityformat/FormatSample.js.map +1 -0
  107. package/lib/imodel-components-react/quantityformat/FormatType.d.ts.map +1 -0
  108. package/lib/{esm/imodel-components-react → imodel-components-react}/quantityformat/FormatType.js +1 -1
  109. package/lib/{esm/imodel-components-react → imodel-components-react}/quantityformat/FormatType.js.map +1 -1
  110. package/lib/imodel-components-react/quantityformat/FormatUnitLabel.d.ts.map +1 -0
  111. package/lib/{esm/imodel-components-react → imodel-components-react}/quantityformat/FormatUnitLabel.js +1 -1
  112. package/lib/{esm/imodel-components-react → imodel-components-react}/quantityformat/FormatUnitLabel.js.map +1 -1
  113. package/lib/imodel-components-react/quantityformat/FormatUnits.d.ts.map +1 -0
  114. package/lib/{esm/imodel-components-react → imodel-components-react}/quantityformat/FormatUnits.js +2 -2
  115. package/lib/imodel-components-react/quantityformat/FormatUnits.js.map +1 -0
  116. package/lib/imodel-components-react/quantityformat/MiscFormatOptions.d.ts.map +1 -0
  117. package/lib/{esm/imodel-components-react → imodel-components-react}/quantityformat/MiscFormatOptions.js +7 -7
  118. package/lib/imodel-components-react/quantityformat/MiscFormatOptions.js.map +1 -0
  119. package/lib/imodel-components-react/quantityformat/QuantityFormatPanel.d.ts.map +1 -0
  120. package/lib/{esm/imodel-components-react → imodel-components-react}/quantityformat/QuantityFormatPanel.js +1 -1
  121. package/lib/imodel-components-react/quantityformat/QuantityFormatPanel.js.map +1 -0
  122. package/lib/imodel-components-react/quantityformat/misc/DecimalPrecision.d.ts.map +1 -0
  123. package/lib/{esm/imodel-components-react → imodel-components-react}/quantityformat/misc/DecimalPrecision.js +1 -1
  124. package/lib/{esm/imodel-components-react → imodel-components-react}/quantityformat/misc/DecimalPrecision.js.map +1 -1
  125. package/lib/imodel-components-react/quantityformat/misc/DecimalSeparator.d.ts.map +1 -0
  126. package/lib/{esm/imodel-components-react → imodel-components-react}/quantityformat/misc/DecimalSeparator.js +1 -1
  127. package/lib/imodel-components-react/quantityformat/misc/DecimalSeparator.js.map +1 -0
  128. package/lib/imodel-components-react/quantityformat/misc/FractionPrecision.d.ts.map +1 -0
  129. package/lib/{esm/imodel-components-react → imodel-components-react}/quantityformat/misc/FractionPrecision.js +1 -1
  130. package/lib/imodel-components-react/quantityformat/misc/FractionPrecision.js.map +1 -0
  131. package/lib/imodel-components-react/quantityformat/misc/ScientificType.d.ts.map +1 -0
  132. package/lib/{esm/imodel-components-react → imodel-components-react}/quantityformat/misc/ScientificType.js +1 -1
  133. package/lib/imodel-components-react/quantityformat/misc/ScientificType.js.map +1 -0
  134. package/lib/imodel-components-react/quantityformat/misc/SignOption.d.ts.map +1 -0
  135. package/lib/{esm/imodel-components-react → imodel-components-react}/quantityformat/misc/SignOption.js +1 -1
  136. package/lib/imodel-components-react/quantityformat/misc/SignOption.js.map +1 -0
  137. package/lib/imodel-components-react/quantityformat/misc/StationSeparatorSelector.d.ts.map +1 -0
  138. package/lib/{esm/imodel-components-react → imodel-components-react}/quantityformat/misc/StationSeparatorSelector.js +1 -1
  139. package/lib/imodel-components-react/quantityformat/misc/StationSeparatorSelector.js.map +1 -0
  140. package/lib/imodel-components-react/quantityformat/misc/StationSizeSelector.d.ts.map +1 -0
  141. package/lib/{esm/imodel-components-react → imodel-components-react}/quantityformat/misc/StationSizeSelector.js +1 -1
  142. package/lib/imodel-components-react/quantityformat/misc/StationSizeSelector.js.map +1 -0
  143. package/lib/imodel-components-react/quantityformat/misc/ThousandsSelector.d.ts.map +1 -0
  144. package/lib/{esm/imodel-components-react → imodel-components-react}/quantityformat/misc/ThousandsSelector.js +1 -1
  145. package/lib/imodel-components-react/quantityformat/misc/ThousandsSelector.js.map +1 -0
  146. package/lib/imodel-components-react/quantityformat/misc/ThousandsSeparator.d.ts.map +1 -0
  147. package/lib/{esm/imodel-components-react → imodel-components-react}/quantityformat/misc/ThousandsSeparator.js +2 -2
  148. package/lib/imodel-components-react/quantityformat/misc/ThousandsSeparator.js.map +1 -0
  149. package/lib/imodel-components-react/quantityformat/misc/UnitDescr.d.ts.map +1 -0
  150. package/lib/imodel-components-react/quantityformat/misc/UnitDescr.js.map +1 -0
  151. package/lib/{cjs/imodel-components-react → imodel-components-react}/timeline/BaseSolarDataProvider.d.ts +1 -1
  152. package/lib/imodel-components-react/timeline/BaseSolarDataProvider.d.ts.map +1 -0
  153. package/lib/{esm/imodel-components-react → imodel-components-react}/timeline/BaseSolarDataProvider.js.map +1 -1
  154. package/lib/{cjs/imodel-components-react → imodel-components-react}/timeline/BaseTimelineDataProvider.d.ts +1 -1
  155. package/lib/imodel-components-react/timeline/BaseTimelineDataProvider.d.ts.map +1 -0
  156. package/lib/imodel-components-react/timeline/BaseTimelineDataProvider.js.map +1 -0
  157. package/lib/imodel-components-react/timeline/InlineEdit.d.ts.map +1 -0
  158. package/lib/imodel-components-react/timeline/InlineEdit.js.map +1 -0
  159. package/lib/imodel-components-react/timeline/InlineEdit.scss +22 -0
  160. package/lib/imodel-components-react/timeline/PlayButton.d.ts.map +1 -0
  161. package/lib/{esm/imodel-components-react → imodel-components-react}/timeline/PlayButton.js +1 -1
  162. package/lib/imodel-components-react/timeline/PlayButton.js.map +1 -0
  163. package/lib/{cjs/imodel-components-react → imodel-components-react}/timeline/Scrubber.d.ts +2 -4
  164. package/lib/imodel-components-react/timeline/Scrubber.d.ts.map +1 -0
  165. package/lib/{esm/imodel-components-react → imodel-components-react}/timeline/Scrubber.js +19 -12
  166. package/lib/imodel-components-react/timeline/Scrubber.js.map +1 -0
  167. package/lib/imodel-components-react/timeline/Scrubber.scss +105 -0
  168. package/lib/{esm/imodel-components-react → imodel-components-react}/timeline/SolarTimeline.d.ts +1 -1
  169. package/lib/imodel-components-react/timeline/SolarTimeline.d.ts.map +1 -0
  170. package/lib/{esm/imodel-components-react → imodel-components-react}/timeline/SolarTimeline.js +3 -3
  171. package/lib/imodel-components-react/timeline/SolarTimeline.js.map +1 -0
  172. package/lib/imodel-components-react/timeline/SolarTimeline.scss +43 -0
  173. package/lib/imodel-components-react/timeline/SpeedTimeline.d.ts.map +1 -0
  174. package/lib/imodel-components-react/timeline/SpeedTimeline.js.map +1 -0
  175. package/lib/imodel-components-react/timeline/SpeedTimeline.scss +38 -0
  176. package/lib/imodel-components-react/timeline/Timeline.scss +163 -0
  177. package/lib/{esm/imodel-components-react → imodel-components-react}/timeline/TimelineComponent.d.ts +1 -1
  178. package/lib/imodel-components-react/timeline/TimelineComponent.d.ts.map +1 -0
  179. package/lib/{esm/imodel-components-react → imodel-components-react}/timeline/TimelineComponent.js +5 -5
  180. package/lib/imodel-components-react/timeline/TimelineComponent.js.map +1 -0
  181. package/lib/imodel-components-react/timeline/TimelineComponent.scss +48 -0
  182. package/lib/imodel-components-react/timeline/interfaces.d.ts.map +1 -0
  183. package/lib/imodel-components-react/timeline/interfaces.js.map +1 -0
  184. package/lib/imodel-components-react/useTranslation.d.ts.map +1 -0
  185. package/lib/{esm/imodel-components-react → imodel-components-react}/useTranslation.js +2 -2
  186. package/lib/imodel-components-react/useTranslation.js.map +1 -0
  187. package/lib/imodel-components-react/viewport/ViewportComponent.d.ts.map +1 -0
  188. package/lib/{esm/imodel-components-react → imodel-components-react}/viewport/ViewportComponent.js +1 -1
  189. package/lib/imodel-components-react/viewport/ViewportComponent.js.map +1 -0
  190. package/lib/{cjs/imodel-components-react → imodel-components-react}/viewport/ViewportComponentEvents.d.ts +1 -1
  191. package/lib/imodel-components-react/viewport/ViewportComponentEvents.d.ts.map +1 -0
  192. package/lib/{esm/imodel-components-react → imodel-components-react}/viewport/ViewportComponentEvents.js +1 -1
  193. package/lib/imodel-components-react/viewport/ViewportComponentEvents.js.map +1 -0
  194. package/lib/imodel-components-react.d.ts +77 -0
  195. package/lib/imodel-components-react.d.ts.map +1 -0
  196. package/lib/imodel-components-react.js +90 -0
  197. package/lib/imodel-components-react.js.map +1 -0
  198. package/lib/internal.d.ts +2 -0
  199. package/lib/internal.d.ts.map +1 -0
  200. package/lib/internal.js +6 -0
  201. package/lib/internal.js.map +1 -0
  202. package/package.json +51 -46
  203. package/lib/cjs/imodel-components-react/UiIModelComponents.d.ts.map +0 -1
  204. package/lib/cjs/imodel-components-react/UiIModelComponents.js +0 -78
  205. package/lib/cjs/imodel-components-react/UiIModelComponents.js.map +0 -1
  206. package/lib/cjs/imodel-components-react/color/AlphaSlider.d.ts.map +0 -1
  207. package/lib/cjs/imodel-components-react/color/AlphaSlider.js +0 -182
  208. package/lib/cjs/imodel-components-react/color/AlphaSlider.js.map +0 -1
  209. package/lib/cjs/imodel-components-react/color/ColorPickerButton.d.ts.map +0 -1
  210. package/lib/cjs/imodel-components-react/color/ColorPickerButton.js +0 -119
  211. package/lib/cjs/imodel-components-react/color/ColorPickerButton.js.map +0 -1
  212. package/lib/cjs/imodel-components-react/color/ColorPickerDialog.d.ts.map +0 -1
  213. package/lib/cjs/imodel-components-react/color/ColorPickerDialog.js +0 -76
  214. package/lib/cjs/imodel-components-react/color/ColorPickerDialog.js.map +0 -1
  215. package/lib/cjs/imodel-components-react/color/ColorPickerPopup.d.ts.map +0 -1
  216. package/lib/cjs/imodel-components-react/color/ColorPickerPopup.js +0 -141
  217. package/lib/cjs/imodel-components-react/color/ColorPickerPopup.js.map +0 -1
  218. package/lib/cjs/imodel-components-react/color/HueSlider.d.ts.map +0 -1
  219. package/lib/cjs/imodel-components-react/color/HueSlider.js +0 -201
  220. package/lib/cjs/imodel-components-react/color/HueSlider.js.map +0 -1
  221. package/lib/cjs/imodel-components-react/color/SaturationPicker.d.ts.map +0 -1
  222. package/lib/cjs/imodel-components-react/color/SaturationPicker.js +0 -197
  223. package/lib/cjs/imodel-components-react/color/SaturationPicker.js.map +0 -1
  224. package/lib/cjs/imodel-components-react/color/Swatch.d.ts.map +0 -1
  225. package/lib/cjs/imodel-components-react/color/Swatch.js +0 -63
  226. package/lib/cjs/imodel-components-react/color/Swatch.js.map +0 -1
  227. package/lib/cjs/imodel-components-react/color/getCSSColorFromDef.d.ts.map +0 -1
  228. package/lib/cjs/imodel-components-react/color/getCSSColorFromDef.js +0 -24
  229. package/lib/cjs/imodel-components-react/color/getCSSColorFromDef.js.map +0 -1
  230. package/lib/cjs/imodel-components-react/editors/ColorEditor.d.ts.map +0 -1
  231. package/lib/cjs/imodel-components-react/editors/ColorEditor.js +0 -150
  232. package/lib/cjs/imodel-components-react/editors/ColorEditor.js.map +0 -1
  233. package/lib/cjs/imodel-components-react/editors/WeightEditor.d.ts.map +0 -1
  234. package/lib/cjs/imodel-components-react/editors/WeightEditor.js +0 -153
  235. package/lib/cjs/imodel-components-react/editors/WeightEditor.js.map +0 -1
  236. package/lib/cjs/imodel-components-react/inputs/QuantityInput.d.ts.map +0 -1
  237. package/lib/cjs/imodel-components-react/inputs/QuantityInput.js +0 -94
  238. package/lib/cjs/imodel-components-react/inputs/QuantityInput.js.map +0 -1
  239. package/lib/cjs/imodel-components-react/inputs/QuantityNumberInput.d.ts.map +0 -1
  240. package/lib/cjs/imodel-components-react/inputs/QuantityNumberInput.js +0 -265
  241. package/lib/cjs/imodel-components-react/inputs/QuantityNumberInput.js.map +0 -1
  242. package/lib/cjs/imodel-components-react/lineweight/Swatch.d.ts.map +0 -1
  243. package/lib/cjs/imodel-components-react/lineweight/Swatch.js +0 -84
  244. package/lib/cjs/imodel-components-react/lineweight/Swatch.js.map +0 -1
  245. package/lib/cjs/imodel-components-react/lineweight/WeightPickerButton.d.ts.map +0 -1
  246. package/lib/cjs/imodel-components-react/lineweight/WeightPickerButton.js +0 -160
  247. package/lib/cjs/imodel-components-react/lineweight/WeightPickerButton.js.map +0 -1
  248. package/lib/cjs/imodel-components-react/navigationaids/Cube.d.ts.map +0 -1
  249. package/lib/cjs/imodel-components-react/navigationaids/Cube.js +0 -151
  250. package/lib/cjs/imodel-components-react/navigationaids/Cube.js.map +0 -1
  251. package/lib/cjs/imodel-components-react/navigationaids/CubeNavigationAid.d.ts +0 -153
  252. package/lib/cjs/imodel-components-react/navigationaids/CubeNavigationAid.d.ts.map +0 -1
  253. package/lib/cjs/imodel-components-react/navigationaids/CubeNavigationAid.js +0 -683
  254. package/lib/cjs/imodel-components-react/navigationaids/CubeNavigationAid.js.map +0 -1
  255. package/lib/cjs/imodel-components-react/navigationaids/DrawingNavigationAid.d.ts.map +0 -1
  256. package/lib/cjs/imodel-components-react/navigationaids/DrawingNavigationAid.js +0 -736
  257. package/lib/cjs/imodel-components-react/navigationaids/DrawingNavigationAid.js.map +0 -1
  258. package/lib/cjs/imodel-components-react/quantityformat/FormatPanel.d.ts.map +0 -1
  259. package/lib/cjs/imodel-components-react/quantityformat/FormatPanel.js +0 -112
  260. package/lib/cjs/imodel-components-react/quantityformat/FormatPanel.js.map +0 -1
  261. package/lib/cjs/imodel-components-react/quantityformat/FormatPrecision.d.ts.map +0 -1
  262. package/lib/cjs/imodel-components-react/quantityformat/FormatPrecision.js +0 -56
  263. package/lib/cjs/imodel-components-react/quantityformat/FormatPrecision.js.map +0 -1
  264. package/lib/cjs/imodel-components-react/quantityformat/FormatSample.d.ts.map +0 -1
  265. package/lib/cjs/imodel-components-react/quantityformat/FormatSample.js +0 -94
  266. package/lib/cjs/imodel-components-react/quantityformat/FormatSample.js.map +0 -1
  267. package/lib/cjs/imodel-components-react/quantityformat/FormatType.d.ts.map +0 -1
  268. package/lib/cjs/imodel-components-react/quantityformat/FormatType.js +0 -115
  269. package/lib/cjs/imodel-components-react/quantityformat/FormatType.js.map +0 -1
  270. package/lib/cjs/imodel-components-react/quantityformat/FormatUnitLabel.d.ts.map +0 -1
  271. package/lib/cjs/imodel-components-react/quantityformat/FormatUnitLabel.js +0 -117
  272. package/lib/cjs/imodel-components-react/quantityformat/FormatUnitLabel.js.map +0 -1
  273. package/lib/cjs/imodel-components-react/quantityformat/FormatUnits.d.ts.map +0 -1
  274. package/lib/cjs/imodel-components-react/quantityformat/FormatUnits.js +0 -137
  275. package/lib/cjs/imodel-components-react/quantityformat/FormatUnits.js.map +0 -1
  276. package/lib/cjs/imodel-components-react/quantityformat/MiscFormatOptions.d.ts.map +0 -1
  277. package/lib/cjs/imodel-components-react/quantityformat/MiscFormatOptions.js +0 -193
  278. package/lib/cjs/imodel-components-react/quantityformat/MiscFormatOptions.js.map +0 -1
  279. package/lib/cjs/imodel-components-react/quantityformat/QuantityFormatPanel.d.ts.map +0 -1
  280. package/lib/cjs/imodel-components-react/quantityformat/QuantityFormatPanel.js +0 -145
  281. package/lib/cjs/imodel-components-react/quantityformat/QuantityFormatPanel.js.map +0 -1
  282. package/lib/cjs/imodel-components-react/quantityformat/misc/DecimalPrecision.d.ts.map +0 -1
  283. package/lib/cjs/imodel-components-react/quantityformat/misc/DecimalPrecision.js +0 -104
  284. package/lib/cjs/imodel-components-react/quantityformat/misc/DecimalPrecision.js.map +0 -1
  285. package/lib/cjs/imodel-components-react/quantityformat/misc/DecimalSeparator.d.ts.map +0 -1
  286. package/lib/cjs/imodel-components-react/quantityformat/misc/DecimalSeparator.js +0 -59
  287. package/lib/cjs/imodel-components-react/quantityformat/misc/DecimalSeparator.js.map +0 -1
  288. package/lib/cjs/imodel-components-react/quantityformat/misc/FractionPrecision.d.ts.map +0 -1
  289. package/lib/cjs/imodel-components-react/quantityformat/misc/FractionPrecision.js +0 -87
  290. package/lib/cjs/imodel-components-react/quantityformat/misc/FractionPrecision.js.map +0 -1
  291. package/lib/cjs/imodel-components-react/quantityformat/misc/ScientificType.d.ts.map +0 -1
  292. package/lib/cjs/imodel-components-react/quantityformat/misc/ScientificType.js +0 -60
  293. package/lib/cjs/imodel-components-react/quantityformat/misc/ScientificType.js.map +0 -1
  294. package/lib/cjs/imodel-components-react/quantityformat/misc/SignOption.d.ts.map +0 -1
  295. package/lib/cjs/imodel-components-react/quantityformat/misc/SignOption.js +0 -68
  296. package/lib/cjs/imodel-components-react/quantityformat/misc/SignOption.js.map +0 -1
  297. package/lib/cjs/imodel-components-react/quantityformat/misc/StationSeparatorSelector.d.ts.map +0 -1
  298. package/lib/cjs/imodel-components-react/quantityformat/misc/StationSeparatorSelector.js +0 -76
  299. package/lib/cjs/imodel-components-react/quantityformat/misc/StationSeparatorSelector.js.map +0 -1
  300. package/lib/cjs/imodel-components-react/quantityformat/misc/StationSizeSelector.d.ts.map +0 -1
  301. package/lib/cjs/imodel-components-react/quantityformat/misc/StationSizeSelector.js +0 -59
  302. package/lib/cjs/imodel-components-react/quantityformat/misc/StationSizeSelector.js.map +0 -1
  303. package/lib/cjs/imodel-components-react/quantityformat/misc/ThousandsSelector.d.ts.map +0 -1
  304. package/lib/cjs/imodel-components-react/quantityformat/misc/ThousandsSelector.js +0 -65
  305. package/lib/cjs/imodel-components-react/quantityformat/misc/ThousandsSelector.js.map +0 -1
  306. package/lib/cjs/imodel-components-react/quantityformat/misc/ThousandsSeparator.d.ts.map +0 -1
  307. package/lib/cjs/imodel-components-react/quantityformat/misc/ThousandsSeparator.js +0 -106
  308. package/lib/cjs/imodel-components-react/quantityformat/misc/ThousandsSeparator.js.map +0 -1
  309. package/lib/cjs/imodel-components-react/quantityformat/misc/UnitDescr.d.ts.map +0 -1
  310. package/lib/cjs/imodel-components-react/quantityformat/misc/UnitDescr.js +0 -135
  311. package/lib/cjs/imodel-components-react/quantityformat/misc/UnitDescr.js.map +0 -1
  312. package/lib/cjs/imodel-components-react/timeline/BaseSolarDataProvider.d.ts.map +0 -1
  313. package/lib/cjs/imodel-components-react/timeline/BaseSolarDataProvider.js +0 -150
  314. package/lib/cjs/imodel-components-react/timeline/BaseSolarDataProvider.js.map +0 -1
  315. package/lib/cjs/imodel-components-react/timeline/BaseTimelineDataProvider.d.ts.map +0 -1
  316. package/lib/cjs/imodel-components-react/timeline/BaseTimelineDataProvider.js +0 -64
  317. package/lib/cjs/imodel-components-react/timeline/BaseTimelineDataProvider.js.map +0 -1
  318. package/lib/cjs/imodel-components-react/timeline/InlineEdit.d.ts.map +0 -1
  319. package/lib/cjs/imodel-components-react/timeline/InlineEdit.js +0 -86
  320. package/lib/cjs/imodel-components-react/timeline/InlineEdit.js.map +0 -1
  321. package/lib/cjs/imodel-components-react/timeline/PlayButton.d.ts.map +0 -1
  322. package/lib/cjs/imodel-components-react/timeline/PlayButton.js +0 -50
  323. package/lib/cjs/imodel-components-react/timeline/PlayButton.js.map +0 -1
  324. package/lib/cjs/imodel-components-react/timeline/Scrubber.d.ts.map +0 -1
  325. package/lib/cjs/imodel-components-react/timeline/Scrubber.js +0 -185
  326. package/lib/cjs/imodel-components-react/timeline/Scrubber.js.map +0 -1
  327. package/lib/cjs/imodel-components-react/timeline/SolarTimeline.d.ts +0 -60
  328. package/lib/cjs/imodel-components-react/timeline/SolarTimeline.d.ts.map +0 -1
  329. package/lib/cjs/imodel-components-react/timeline/SolarTimeline.js +0 -358
  330. package/lib/cjs/imodel-components-react/timeline/SolarTimeline.js.map +0 -1
  331. package/lib/cjs/imodel-components-react/timeline/SpeedTimeline.d.ts.map +0 -1
  332. package/lib/cjs/imodel-components-react/timeline/SpeedTimeline.js +0 -57
  333. package/lib/cjs/imodel-components-react/timeline/SpeedTimeline.js.map +0 -1
  334. package/lib/cjs/imodel-components-react/timeline/TimelineComponent.d.ts +0 -100
  335. package/lib/cjs/imodel-components-react/timeline/TimelineComponent.d.ts.map +0 -1
  336. package/lib/cjs/imodel-components-react/timeline/TimelineComponent.js +0 -286
  337. package/lib/cjs/imodel-components-react/timeline/TimelineComponent.js.map +0 -1
  338. package/lib/cjs/imodel-components-react/timeline/interfaces.d.ts.map +0 -1
  339. package/lib/cjs/imodel-components-react/timeline/interfaces.js +0 -46
  340. package/lib/cjs/imodel-components-react/timeline/interfaces.js.map +0 -1
  341. package/lib/cjs/imodel-components-react/useTranslation.d.ts.map +0 -1
  342. package/lib/cjs/imodel-components-react/useTranslation.js +0 -52
  343. package/lib/cjs/imodel-components-react/useTranslation.js.map +0 -1
  344. package/lib/cjs/imodel-components-react/viewport/ViewportComponent.d.ts.map +0 -1
  345. package/lib/cjs/imodel-components-react/viewport/ViewportComponent.js +0 -267
  346. package/lib/cjs/imodel-components-react/viewport/ViewportComponent.js.map +0 -1
  347. package/lib/cjs/imodel-components-react/viewport/ViewportComponentEvents.d.ts.map +0 -1
  348. package/lib/cjs/imodel-components-react/viewport/ViewportComponentEvents.js +0 -119
  349. package/lib/cjs/imodel-components-react/viewport/ViewportComponentEvents.js.map +0 -1
  350. package/lib/cjs/imodel-components-react.d.ts +0 -80
  351. package/lib/cjs/imodel-components-react.d.ts.map +0 -1
  352. package/lib/cjs/imodel-components-react.js +0 -103
  353. package/lib/cjs/imodel-components-react.js.map +0 -1
  354. package/lib/esm/imodel-components-react/UiIModelComponents.d.ts +0 -29
  355. package/lib/esm/imodel-components-react/UiIModelComponents.d.ts.map +0 -1
  356. package/lib/esm/imodel-components-react/UiIModelComponents.js.map +0 -1
  357. package/lib/esm/imodel-components-react/UiIModelComponents.json +0 -150
  358. package/lib/esm/imodel-components-react/color/AlphaSlider.d.ts +0 -36
  359. package/lib/esm/imodel-components-react/color/AlphaSlider.d.ts.map +0 -1
  360. package/lib/esm/imodel-components-react/color/AlphaSlider.js.map +0 -1
  361. package/lib/esm/imodel-components-react/color/ColorPickerButton.d.ts +0 -40
  362. package/lib/esm/imodel-components-react/color/ColorPickerButton.d.ts.map +0 -1
  363. package/lib/esm/imodel-components-react/color/ColorPickerButton.js.map +0 -1
  364. package/lib/esm/imodel-components-react/color/ColorPickerDialog.d.ts +0 -26
  365. package/lib/esm/imodel-components-react/color/ColorPickerDialog.d.ts.map +0 -1
  366. package/lib/esm/imodel-components-react/color/ColorPickerDialog.js.map +0 -1
  367. package/lib/esm/imodel-components-react/color/ColorPickerPopup.d.ts +0 -47
  368. package/lib/esm/imodel-components-react/color/ColorPickerPopup.d.ts.map +0 -1
  369. package/lib/esm/imodel-components-react/color/ColorPickerPopup.js.map +0 -1
  370. package/lib/esm/imodel-components-react/color/HueSlider.d.ts +0 -25
  371. package/lib/esm/imodel-components-react/color/HueSlider.d.ts.map +0 -1
  372. package/lib/esm/imodel-components-react/color/SaturationPicker.d.ts +0 -23
  373. package/lib/esm/imodel-components-react/color/SaturationPicker.d.ts.map +0 -1
  374. package/lib/esm/imodel-components-react/color/SaturationPicker.js.map +0 -1
  375. package/lib/esm/imodel-components-react/color/Swatch.d.ts +0 -25
  376. package/lib/esm/imodel-components-react/color/Swatch.d.ts.map +0 -1
  377. package/lib/esm/imodel-components-react/color/getCSSColorFromDef.d.ts +0 -7
  378. package/lib/esm/imodel-components-react/color/getCSSColorFromDef.d.ts.map +0 -1
  379. package/lib/esm/imodel-components-react/color/getCSSColorFromDef.js.map +0 -1
  380. package/lib/esm/imodel-components-react/editors/ColorEditor.d.ts +0 -42
  381. package/lib/esm/imodel-components-react/editors/ColorEditor.d.ts.map +0 -1
  382. package/lib/esm/imodel-components-react/editors/ColorEditor.js.map +0 -1
  383. package/lib/esm/imodel-components-react/editors/WeightEditor.d.ts +0 -44
  384. package/lib/esm/imodel-components-react/editors/WeightEditor.d.ts.map +0 -1
  385. package/lib/esm/imodel-components-react/editors/WeightEditor.js.map +0 -1
  386. package/lib/esm/imodel-components-react/inputs/QuantityInput.d.ts +0 -26
  387. package/lib/esm/imodel-components-react/inputs/QuantityInput.d.ts.map +0 -1
  388. package/lib/esm/imodel-components-react/inputs/QuantityNumberInput.d.ts +0 -47
  389. package/lib/esm/imodel-components-react/inputs/QuantityNumberInput.d.ts.map +0 -1
  390. package/lib/esm/imodel-components-react/inputs/QuantityNumberInput.js.map +0 -1
  391. package/lib/esm/imodel-components-react/lineweight/Swatch.d.ts +0 -33
  392. package/lib/esm/imodel-components-react/lineweight/Swatch.d.ts.map +0 -1
  393. package/lib/esm/imodel-components-react/lineweight/WeightPickerButton.d.ts +0 -59
  394. package/lib/esm/imodel-components-react/lineweight/WeightPickerButton.d.ts.map +0 -1
  395. package/lib/esm/imodel-components-react/navigationaids/Cube.d.ts +0 -46
  396. package/lib/esm/imodel-components-react/navigationaids/Cube.d.ts.map +0 -1
  397. package/lib/esm/imodel-components-react/navigationaids/Cube.js.map +0 -1
  398. package/lib/esm/imodel-components-react/navigationaids/CubeNavigationAid.d.ts.map +0 -1
  399. package/lib/esm/imodel-components-react/navigationaids/CubeNavigationAid.js.map +0 -1
  400. package/lib/esm/imodel-components-react/navigationaids/DrawingNavigationAid.d.ts +0 -144
  401. package/lib/esm/imodel-components-react/navigationaids/DrawingNavigationAid.d.ts.map +0 -1
  402. package/lib/esm/imodel-components-react/navigationaids/DrawingNavigationAid.js.map +0 -1
  403. package/lib/esm/imodel-components-react/quantityformat/FormatPanel.d.ts +0 -29
  404. package/lib/esm/imodel-components-react/quantityformat/FormatPanel.d.ts.map +0 -1
  405. package/lib/esm/imodel-components-react/quantityformat/FormatPanel.js.map +0 -1
  406. package/lib/esm/imodel-components-react/quantityformat/FormatPrecision.d.ts +0 -19
  407. package/lib/esm/imodel-components-react/quantityformat/FormatPrecision.d.ts.map +0 -1
  408. package/lib/esm/imodel-components-react/quantityformat/FormatPrecision.js.map +0 -1
  409. package/lib/esm/imodel-components-react/quantityformat/FormatSample.d.ts +0 -20
  410. package/lib/esm/imodel-components-react/quantityformat/FormatSample.d.ts.map +0 -1
  411. package/lib/esm/imodel-components-react/quantityformat/FormatSample.js.map +0 -1
  412. package/lib/esm/imodel-components-react/quantityformat/FormatType.d.ts +0 -19
  413. package/lib/esm/imodel-components-react/quantityformat/FormatType.d.ts.map +0 -1
  414. package/lib/esm/imodel-components-react/quantityformat/FormatUnitLabel.d.ts +0 -19
  415. package/lib/esm/imodel-components-react/quantityformat/FormatUnitLabel.d.ts.map +0 -1
  416. package/lib/esm/imodel-components-react/quantityformat/FormatUnits.d.ts +0 -21
  417. package/lib/esm/imodel-components-react/quantityformat/FormatUnits.d.ts.map +0 -1
  418. package/lib/esm/imodel-components-react/quantityformat/FormatUnits.js.map +0 -1
  419. package/lib/esm/imodel-components-react/quantityformat/MiscFormatOptions.d.ts +0 -23
  420. package/lib/esm/imodel-components-react/quantityformat/MiscFormatOptions.d.ts.map +0 -1
  421. package/lib/esm/imodel-components-react/quantityformat/MiscFormatOptions.js.map +0 -1
  422. package/lib/esm/imodel-components-react/quantityformat/QuantityFormatPanel.d.ts +0 -24
  423. package/lib/esm/imodel-components-react/quantityformat/QuantityFormatPanel.d.ts.map +0 -1
  424. package/lib/esm/imodel-components-react/quantityformat/QuantityFormatPanel.js.map +0 -1
  425. package/lib/esm/imodel-components-react/quantityformat/misc/DecimalPrecision.d.ts +0 -18
  426. package/lib/esm/imodel-components-react/quantityformat/misc/DecimalPrecision.d.ts.map +0 -1
  427. package/lib/esm/imodel-components-react/quantityformat/misc/DecimalSeparator.d.ts +0 -18
  428. package/lib/esm/imodel-components-react/quantityformat/misc/DecimalSeparator.d.ts.map +0 -1
  429. package/lib/esm/imodel-components-react/quantityformat/misc/DecimalSeparator.js.map +0 -1
  430. package/lib/esm/imodel-components-react/quantityformat/misc/FractionPrecision.d.ts +0 -17
  431. package/lib/esm/imodel-components-react/quantityformat/misc/FractionPrecision.d.ts.map +0 -1
  432. package/lib/esm/imodel-components-react/quantityformat/misc/FractionPrecision.js.map +0 -1
  433. package/lib/esm/imodel-components-react/quantityformat/misc/ScientificType.d.ts +0 -19
  434. package/lib/esm/imodel-components-react/quantityformat/misc/ScientificType.d.ts.map +0 -1
  435. package/lib/esm/imodel-components-react/quantityformat/misc/ScientificType.js.map +0 -1
  436. package/lib/esm/imodel-components-react/quantityformat/misc/SignOption.d.ts +0 -18
  437. package/lib/esm/imodel-components-react/quantityformat/misc/SignOption.d.ts.map +0 -1
  438. package/lib/esm/imodel-components-react/quantityformat/misc/SignOption.js.map +0 -1
  439. package/lib/esm/imodel-components-react/quantityformat/misc/StationSeparatorSelector.d.ts +0 -18
  440. package/lib/esm/imodel-components-react/quantityformat/misc/StationSeparatorSelector.d.ts.map +0 -1
  441. package/lib/esm/imodel-components-react/quantityformat/misc/StationSeparatorSelector.js.map +0 -1
  442. package/lib/esm/imodel-components-react/quantityformat/misc/StationSizeSelector.d.ts +0 -18
  443. package/lib/esm/imodel-components-react/quantityformat/misc/StationSizeSelector.d.ts.map +0 -1
  444. package/lib/esm/imodel-components-react/quantityformat/misc/StationSizeSelector.js.map +0 -1
  445. package/lib/esm/imodel-components-react/quantityformat/misc/ThousandsSelector.d.ts +0 -18
  446. package/lib/esm/imodel-components-react/quantityformat/misc/ThousandsSelector.d.ts.map +0 -1
  447. package/lib/esm/imodel-components-react/quantityformat/misc/ThousandsSelector.js.map +0 -1
  448. package/lib/esm/imodel-components-react/quantityformat/misc/ThousandsSeparator.d.ts +0 -18
  449. package/lib/esm/imodel-components-react/quantityformat/misc/ThousandsSeparator.d.ts.map +0 -1
  450. package/lib/esm/imodel-components-react/quantityformat/misc/ThousandsSeparator.js.map +0 -1
  451. package/lib/esm/imodel-components-react/quantityformat/misc/UnitDescr.d.ts +0 -24
  452. package/lib/esm/imodel-components-react/quantityformat/misc/UnitDescr.d.ts.map +0 -1
  453. package/lib/esm/imodel-components-react/quantityformat/misc/UnitDescr.js.map +0 -1
  454. package/lib/esm/imodel-components-react/timeline/BaseSolarDataProvider.d.ts +0 -53
  455. package/lib/esm/imodel-components-react/timeline/BaseSolarDataProvider.d.ts.map +0 -1
  456. package/lib/esm/imodel-components-react/timeline/BaseTimelineDataProvider.d.ts +0 -32
  457. package/lib/esm/imodel-components-react/timeline/BaseTimelineDataProvider.d.ts.map +0 -1
  458. package/lib/esm/imodel-components-react/timeline/BaseTimelineDataProvider.js.map +0 -1
  459. package/lib/esm/imodel-components-react/timeline/InlineEdit.d.ts +0 -27
  460. package/lib/esm/imodel-components-react/timeline/InlineEdit.d.ts.map +0 -1
  461. package/lib/esm/imodel-components-react/timeline/InlineEdit.js.map +0 -1
  462. package/lib/esm/imodel-components-react/timeline/PlayButton.d.ts +0 -12
  463. package/lib/esm/imodel-components-react/timeline/PlayButton.d.ts.map +0 -1
  464. package/lib/esm/imodel-components-react/timeline/PlayButton.js.map +0 -1
  465. package/lib/esm/imodel-components-react/timeline/Scrubber.d.ts +0 -54
  466. package/lib/esm/imodel-components-react/timeline/Scrubber.d.ts.map +0 -1
  467. package/lib/esm/imodel-components-react/timeline/Scrubber.js.map +0 -1
  468. package/lib/esm/imodel-components-react/timeline/SolarTimeline.d.ts.map +0 -1
  469. package/lib/esm/imodel-components-react/timeline/SolarTimeline.js.map +0 -1
  470. package/lib/esm/imodel-components-react/timeline/SpeedTimeline.d.ts +0 -16
  471. package/lib/esm/imodel-components-react/timeline/SpeedTimeline.d.ts.map +0 -1
  472. package/lib/esm/imodel-components-react/timeline/SpeedTimeline.js.map +0 -1
  473. package/lib/esm/imodel-components-react/timeline/TimelineComponent.d.ts.map +0 -1
  474. package/lib/esm/imodel-components-react/timeline/TimelineComponent.js.map +0 -1
  475. package/lib/esm/imodel-components-react/timeline/interfaces.d.ts +0 -146
  476. package/lib/esm/imodel-components-react/timeline/interfaces.d.ts.map +0 -1
  477. package/lib/esm/imodel-components-react/timeline/interfaces.js.map +0 -1
  478. package/lib/esm/imodel-components-react/useTranslation.d.ts +0 -7
  479. package/lib/esm/imodel-components-react/useTranslation.d.ts.map +0 -1
  480. package/lib/esm/imodel-components-react/useTranslation.js.map +0 -1
  481. package/lib/esm/imodel-components-react/viewport/ViewportComponent.d.ts +0 -43
  482. package/lib/esm/imodel-components-react/viewport/ViewportComponent.d.ts.map +0 -1
  483. package/lib/esm/imodel-components-react/viewport/ViewportComponent.js.map +0 -1
  484. package/lib/esm/imodel-components-react/viewport/ViewportComponentEvents.d.ts +0 -119
  485. package/lib/esm/imodel-components-react/viewport/ViewportComponentEvents.d.ts.map +0 -1
  486. package/lib/esm/imodel-components-react/viewport/ViewportComponentEvents.js.map +0 -1
  487. package/lib/esm/imodel-components-react.d.ts +0 -80
  488. package/lib/esm/imodel-components-react.d.ts.map +0 -1
  489. package/lib/esm/imodel-components-react.js +0 -85
  490. package/lib/esm/imodel-components-react.js.map +0 -1
  491. /package/lib/{cjs/imodel-components-react → imodel-components-react}/UiIModelComponents.json +0 -0
  492. /package/lib/{cjs/imodel-components-react → imodel-components-react}/color/AlphaSlider.d.ts +0 -0
  493. /package/lib/{cjs/imodel-components-react → imodel-components-react}/color/ColorPickerButton.d.ts +0 -0
  494. /package/lib/{cjs/imodel-components-react → imodel-components-react}/color/ColorPickerDialog.d.ts +0 -0
  495. /package/lib/{esm/imodel-components-react → imodel-components-react}/color/ColorPickerDialog.js +0 -0
  496. /package/lib/{cjs/imodel-components-react → imodel-components-react}/color/ColorPickerPopup.d.ts +0 -0
  497. /package/lib/{cjs/imodel-components-react → imodel-components-react}/color/HueSlider.d.ts +0 -0
  498. /package/lib/{cjs/imodel-components-react → imodel-components-react}/color/SaturationPicker.d.ts +0 -0
  499. /package/lib/{cjs/imodel-components-react → imodel-components-react}/color/Swatch.d.ts +0 -0
  500. /package/lib/{cjs/imodel-components-react → imodel-components-react}/color/getCSSColorFromDef.d.ts +0 -0
  501. /package/lib/{esm/imodel-components-react → imodel-components-react}/color/getCSSColorFromDef.js +0 -0
  502. /package/lib/{cjs/imodel-components-react → imodel-components-react}/editors/ColorEditor.d.ts +0 -0
  503. /package/lib/{cjs/imodel-components-react → imodel-components-react}/editors/WeightEditor.d.ts +0 -0
  504. /package/lib/{cjs/imodel-components-react → imodel-components-react}/inputs/QuantityInput.d.ts +0 -0
  505. /package/lib/{cjs/imodel-components-react → imodel-components-react}/inputs/QuantityNumberInput.d.ts +0 -0
  506. /package/lib/{esm/imodel-components-react → imodel-components-react}/inputs/QuantityNumberInput.js +0 -0
  507. /package/lib/{cjs/imodel-components-react → imodel-components-react}/lineweight/Swatch.d.ts +0 -0
  508. /package/lib/{cjs/imodel-components-react → imodel-components-react}/lineweight/WeightPickerButton.d.ts +0 -0
  509. /package/lib/{cjs/imodel-components-react → imodel-components-react}/navigationaids/Cube.d.ts +0 -0
  510. /package/lib/{esm/imodel-components-react → imodel-components-react}/navigationaids/Cube.js +0 -0
  511. /package/lib/{cjs/imodel-components-react → imodel-components-react}/navigationaids/DrawingNavigationAid.d.ts +0 -0
  512. /package/lib/{cjs/imodel-components-react → imodel-components-react}/quantityformat/FormatPanel.d.ts +0 -0
  513. /package/lib/{cjs/imodel-components-react → imodel-components-react}/quantityformat/FormatPrecision.d.ts +0 -0
  514. /package/lib/{cjs/imodel-components-react → imodel-components-react}/quantityformat/FormatSample.d.ts +0 -0
  515. /package/lib/{cjs/imodel-components-react → imodel-components-react}/quantityformat/FormatType.d.ts +0 -0
  516. /package/lib/{cjs/imodel-components-react → imodel-components-react}/quantityformat/FormatUnitLabel.d.ts +0 -0
  517. /package/lib/{cjs/imodel-components-react → imodel-components-react}/quantityformat/FormatUnits.d.ts +0 -0
  518. /package/lib/{cjs/imodel-components-react → imodel-components-react}/quantityformat/MiscFormatOptions.d.ts +0 -0
  519. /package/lib/{cjs/imodel-components-react → imodel-components-react}/quantityformat/QuantityFormatPanel.d.ts +0 -0
  520. /package/lib/{cjs/imodel-components-react → imodel-components-react}/quantityformat/misc/DecimalPrecision.d.ts +0 -0
  521. /package/lib/{cjs/imodel-components-react → imodel-components-react}/quantityformat/misc/DecimalSeparator.d.ts +0 -0
  522. /package/lib/{cjs/imodel-components-react → imodel-components-react}/quantityformat/misc/FractionPrecision.d.ts +0 -0
  523. /package/lib/{cjs/imodel-components-react → imodel-components-react}/quantityformat/misc/ScientificType.d.ts +0 -0
  524. /package/lib/{cjs/imodel-components-react → imodel-components-react}/quantityformat/misc/SignOption.d.ts +0 -0
  525. /package/lib/{cjs/imodel-components-react → imodel-components-react}/quantityformat/misc/StationSeparatorSelector.d.ts +0 -0
  526. /package/lib/{cjs/imodel-components-react → imodel-components-react}/quantityformat/misc/StationSizeSelector.d.ts +0 -0
  527. /package/lib/{cjs/imodel-components-react → imodel-components-react}/quantityformat/misc/ThousandsSelector.d.ts +0 -0
  528. /package/lib/{cjs/imodel-components-react → imodel-components-react}/quantityformat/misc/ThousandsSeparator.d.ts +0 -0
  529. /package/lib/{cjs/imodel-components-react → imodel-components-react}/quantityformat/misc/UnitDescr.d.ts +0 -0
  530. /package/lib/{esm/imodel-components-react → imodel-components-react}/quantityformat/misc/UnitDescr.js +0 -0
  531. /package/lib/{esm/imodel-components-react → imodel-components-react}/timeline/BaseSolarDataProvider.js +0 -0
  532. /package/lib/{esm/imodel-components-react → imodel-components-react}/timeline/BaseTimelineDataProvider.js +0 -0
  533. /package/lib/{cjs/imodel-components-react → imodel-components-react}/timeline/InlineEdit.d.ts +0 -0
  534. /package/lib/{esm/imodel-components-react → imodel-components-react}/timeline/InlineEdit.js +0 -0
  535. /package/lib/{cjs/imodel-components-react → imodel-components-react}/timeline/PlayButton.d.ts +0 -0
  536. /package/lib/{cjs/imodel-components-react → imodel-components-react}/timeline/SpeedTimeline.d.ts +0 -0
  537. /package/lib/{esm/imodel-components-react → imodel-components-react}/timeline/SpeedTimeline.js +0 -0
  538. /package/lib/{cjs/imodel-components-react → imodel-components-react}/timeline/interfaces.d.ts +0 -0
  539. /package/lib/{esm/imodel-components-react → imodel-components-react}/timeline/interfaces.js +0 -0
  540. /package/lib/{cjs/imodel-components-react → imodel-components-react}/useTranslation.d.ts +0 -0
  541. /package/lib/{cjs/imodel-components-react → imodel-components-react}/viewport/ViewportComponent.d.ts +0 -0
@@ -1,736 +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.DrawingNavigationCanvas = exports.DrawingNavigationAid = exports.MapMode = void 0;
37
- require("./DrawingNavigationAid.scss");
38
- const classnames_1 = __importDefault(require("classnames"));
39
- const React = __importStar(require("react"));
40
- const ReactDOM = __importStar(require("react-dom"));
41
- const ts_key_enum_1 = require("ts-key-enum");
42
- const core_geometry_1 = require("@itwin/core-geometry");
43
- const core_frontend_1 = require("@itwin/core-frontend");
44
- const core_react_1 = require("@itwin/core-react");
45
- const UiIModelComponents_1 = require("../UiIModelComponents");
46
- const ViewportComponentEvents_1 = require("../viewport/ViewportComponentEvents");
47
- const itwinui_icons_react_1 = require("@itwin/itwinui-icons-react");
48
- // cSpell:ignore Quaternion Quaternions unrotate
49
- /* eslint-disable jsx-a11y/click-events-have-key-events */
50
- /**
51
- * Enum for mode that minimap is currently in
52
- * @internal
53
- */
54
- var MapMode;
55
- (function (MapMode) {
56
- MapMode["Opened"] = "map-opened";
57
- MapMode["Closed"] = "map-closed";
58
- })(MapMode || (exports.MapMode = MapMode = {}));
59
- /** A Drawing Navigation Aid.
60
- * @public
61
- */
62
- class DrawingNavigationAid extends React.Component {
63
- constructor(props) {
64
- super(props);
65
- this._rootElement = React.createRef();
66
- this._viewContainerElement = React.createRef();
67
- this._viewElement = React.createRef();
68
- this._rootOffset = DOMRect.fromRect({
69
- x: 0,
70
- y: 0,
71
- width: 0,
72
- height: 0,
73
- });
74
- this._mounted = false;
75
- this._isViewport3D = () => {
76
- return this.state.view !== undefined && this.state.view.is3d();
77
- };
78
- this._animation = () => {
79
- const t = Date.now();
80
- const delta = this._lastTime ? t - this._lastTime : 16;
81
- this._lastTime = t;
82
- if (this.state.animation !== 1) {
83
- const animation = Math.min(1, this.state.animation +
84
- delta / (1000 * (this.props.animationTime || 0.4)));
85
- this._updateFrustum();
86
- if (this._mounted) {
87
- this.setState({ animation }, () => {
88
- this._animationFrame = setTimeout(this._animation, 16.667);
89
- });
90
- }
91
- }
92
- else {
93
- this._lastTime = undefined;
94
- this._animationEnd();
95
- }
96
- };
97
- this._animationEnd = () => {
98
- const hasViewportMoved = !this.state.origin.isAlmostEqual(this.state.startOrigin) ||
99
- !this.state.rotation.isAlmostEqual(this.state.startRotation);
100
- const startMapOrigin = core_geometry_1.Point3d.createFrom(this.state.mapOrigin);
101
- const startMapExtents = core_geometry_1.Vector3d.createFrom(this.state.mapExtents);
102
- const startDrawingZoom = this.state.drawingZoom;
103
- const startOrigin = this.state.origin;
104
- const startRotation = this.state.rotation;
105
- if (this._mounted) {
106
- this.setState({
107
- startMapOrigin,
108
- startDrawingZoom,
109
- startOrigin,
110
- startRotation,
111
- startMapExtents,
112
- }, () => {
113
- if (this.props.onAnimationEnd)
114
- this.props.onAnimationEnd();
115
- if (hasViewportMoved)
116
- this._updateFrustum(true);
117
- });
118
- }
119
- };
120
- this._panAnimation = () => {
121
- const t = Date.now();
122
- if (this._lastPanTime === undefined)
123
- this._lastPanTime = t - 16.667;
124
- const delta = t - this._lastPanTime;
125
- this._lastPanTime = t;
126
- if (!this.state.panningDirection.isAlmostZero && this.state.isMoving) {
127
- const { panningDirection } = this.state;
128
- const offset = panningDirection.scale(delta / 1000 / this.state.drawingZoom);
129
- const mapOrigin = this.state.mapOrigin.plus(offset);
130
- const origin = this.state.origin.plus(offset);
131
- this._updateFrustum();
132
- if (this._mounted) {
133
- this.setState({ mapOrigin, origin, panningDirection }, () => {
134
- this._animationFrame = setTimeout(this._panAnimation, 16.667);
135
- });
136
- }
137
- }
138
- else {
139
- this._lastPanTime = undefined;
140
- this._updateFrustum(true);
141
- }
142
- };
143
- // Synchronize with rotation coming from the Viewport
144
- this._handleViewRotationChangeEvent = (args) => {
145
- if (!this.state.isMoving &&
146
- !this.state.isPanning &&
147
- this.props.viewport === args.viewport) {
148
- const extents = args.viewport.view.getExtents().clone();
149
- const rotation = args.viewport.view.getRotation().clone();
150
- const halfExtents = extents.scale(0.5);
151
- const offset = this.state.rotateMinimapWithView || this._isViewport3D()
152
- ? rotation.multiplyTransposeVector(halfExtents)
153
- : halfExtents;
154
- const origin = args.viewport.view.getOrigin().plus(offset);
155
- const deltaZoom = (this.state.extents.x - extents.x) / this.state.extents.x;
156
- let drawingZoom = this.state.drawingZoom / (1 - deltaZoom);
157
- const deltaOrigin = origin.minus(this.state.origin);
158
- let mapOrigin = this.state.mapOrigin.plus(deltaOrigin);
159
- mapOrigin = mapOrigin.plus(core_geometry_1.Vector3d.createFrom(origin.minus(mapOrigin)).scale(deltaZoom));
160
- if (this.state.viewId !== args.viewport.view.id) {
161
- const rect = this.state.rotateMinimapWithView || this._isViewport3D()
162
- ? extents
163
- : DrawingNavigationAid.findRotatedWindowDimensions(extents, rotation);
164
- const maxRectDim = Math.max(rect.y, rect.x);
165
- const maxExtentDim = Math.max(this.state.mapExtents.x, this.state.mapExtents.y);
166
- drawingZoom = maxExtentDim / (3 * maxRectDim);
167
- mapOrigin = origin.clone();
168
- this._viewport = args.viewport;
169
- this.setState({
170
- viewId: args.viewport.view.id,
171
- view: args.viewport.view.clone(),
172
- });
173
- }
174
- if (this._mounted) {
175
- this.setState({
176
- startOrigin: origin,
177
- origin,
178
- extents,
179
- startRotation: rotation,
180
- rotation,
181
- startMapOrigin: mapOrigin,
182
- mapOrigin,
183
- startDrawingZoom: drawingZoom,
184
- drawingZoom,
185
- });
186
- }
187
- }
188
- };
189
- this._updateFrustum = (complete = false) => {
190
- const halfExtents = this.state.extents.scale(0.5);
191
- const offset = this.state.rotateMinimapWithView || this._isViewport3D()
192
- ? this.state.rotation.multiplyTransposeVector(halfExtents)
193
- : halfExtents;
194
- const origin = this.state.origin.minus(offset);
195
- ViewportComponentEvents_1.ViewportComponentEvents.setDrawingViewportState(origin, this.state.rotation, complete);
196
- };
197
- this._toggleRotationMode = () => {
198
- const rotateMinimapWithView = !this.state.rotateMinimapWithView;
199
- this.setState({ rotateMinimapWithView }, () => {
200
- if (this._viewport)
201
- this._handleViewRotationChangeEvent({ viewport: this._viewport });
202
- });
203
- };
204
- this._handleKeyUp = (event) => {
205
- if (event.key === ts_key_enum_1.Key.Escape.valueOf() &&
206
- this.state.mode === MapMode.Opened) {
207
- this._closeLargeMap();
208
- }
209
- };
210
- this._lastClientXY = core_geometry_1.Point2d.createZero();
211
- this._handleMouseDown = (event) => {
212
- // Used only to determine if mouse was moved between mousedown and mouseup
213
- const mouseStart = core_geometry_1.Point2d.create(event.clientX, event.clientY);
214
- this.setState({ mouseStart });
215
- this._lastClientXY = core_geometry_1.Point2d.create(event.clientX, event.clientY);
216
- };
217
- this._handleDrawingMouseDown = (event) => {
218
- if (this.state.mode === MapMode.Opened) {
219
- event.preventDefault();
220
- this.setState({ isPanning: true });
221
- }
222
- };
223
- this._handleWindowMouseDown = (event) => {
224
- event.preventDefault();
225
- this.setState({ isMoving: true });
226
- };
227
- this._handleMouseDrag = (event) => {
228
- const mouse = core_geometry_1.Point2d.create(event.clientX, event.clientY);
229
- const movement = mouse.minus(this._lastClientXY);
230
- if (this.state.isMoving) {
231
- // add scaled mouse movement
232
- this._processWindowDrag(movement);
233
- }
234
- else {
235
- if (this.state.isPanning && this.state.mode === MapMode.Opened) {
236
- const vect = core_geometry_1.Vector3d.create(movement.x / this.state.drawingZoom, -movement.y / this.state.drawingZoom, 0);
237
- const offset = this.state.rotateMinimapWithView || this._isViewport3D()
238
- ? this.state.rotation.multiplyTransposeVector(vect)
239
- : vect;
240
- const mapOrigin = this.state.mapOrigin.minus(offset);
241
- this.setState({ startMapOrigin: mapOrigin, mapOrigin });
242
- }
243
- }
244
- this._lastClientXY = mouse;
245
- };
246
- this._handleMouseDragEnd = (event) => {
247
- const mouse = core_geometry_1.Point2d.create(event.clientX, event.clientY);
248
- if (mouse.isAlmostEqual(this.state.mouseStart) &&
249
- this.state.mode === MapMode.Closed &&
250
- (event.target === this._viewContainerElement.current ||
251
- event.target === this._viewElement.current)) {
252
- this._openLargeMap();
253
- }
254
- else if (this.state.isMoving) {
255
- this._processWindowEndDrag();
256
- }
257
- else if (this.state.isPanning) {
258
- if (this.state.mode === MapMode.Opened) {
259
- event.stopPropagation();
260
- this.setState({ isPanning: false });
261
- }
262
- }
263
- else if ((!(event.target instanceof Node) ||
264
- (this._rootElement.current &&
265
- !this._rootElement.current.contains(event.target))) &&
266
- mouse.isAlmostEqual(this.state.mouseStart)) {
267
- this._closeLargeMap();
268
- }
269
- this._lastClientXY = core_geometry_1.Point2d.create(event.clientX, event.clientY);
270
- };
271
- this._handleWindowTouchStart = (event) => {
272
- if (1 !== event.targetTouches.length)
273
- return;
274
- window.addEventListener("touchmove", this._onTouchMove, false);
275
- window.addEventListener("touchend", this._onTouchEnd, false);
276
- const mouseStart = core_geometry_1.Point2d.create(event.targetTouches[0].clientX, event.targetTouches[0].clientY);
277
- this.setState({ mouseStart });
278
- this._lastClientXY = mouseStart.clone();
279
- this.setState({ isMoving: true });
280
- };
281
- this._onTouchMove = (event) => {
282
- if (1 !== event.targetTouches.length)
283
- return;
284
- const mouse = core_geometry_1.Point2d.create(event.targetTouches[0].clientX, event.targetTouches[0].clientY);
285
- const movement = mouse.minus(this._lastClientXY);
286
- // add scaled mouse movement
287
- this._processWindowDrag(movement);
288
- this._lastClientXY = mouse;
289
- };
290
- this._onTouchEnd = (event) => {
291
- if (0 !== event.targetTouches.length)
292
- return;
293
- this._processWindowEndDrag();
294
- if (0 !== event.changedTouches.length)
295
- this._lastClientXY = core_geometry_1.Point2d.create(event.changedTouches[0].clientX, event.changedTouches[0].clientY); // Doesn't seem necessary...but _handleMouseDragEnd sets it...
296
- window.removeEventListener("touchmove", this._onTouchMove);
297
- window.removeEventListener("touchend", this._onTouchEnd);
298
- };
299
- this._getClosedMapSize = () => {
300
- if (this.props.closeSize === undefined)
301
- return DrawingNavigationAid.getDefaultClosedMapSize();
302
- return this.props.closeSize;
303
- };
304
- this._getOpenedMapSize = () => {
305
- if (this.props.openSize === undefined)
306
- return DrawingNavigationAid.getDefaultOpenedMapSize(this._rootOffset.right, this._rootOffset.top);
307
- return this.props.openSize;
308
- };
309
- this._openLargeMap = () => {
310
- if (this.state.mode === MapMode.Closed && this.state.animation === 1.0) {
311
- if (this._rootElement.current) {
312
- const rect = this._rootElement.current.getBoundingClientRect();
313
- this._rootOffset = rect;
314
- }
315
- const startMapExtents = core_geometry_1.Vector3d.createFrom(this.state.mapExtents);
316
- const mapExtents = this._getOpenedMapSize();
317
- this.setState({
318
- mode: MapMode.Opened,
319
- isMoving: false,
320
- isPanning: false,
321
- mapExtents,
322
- startMapExtents,
323
- animation: 0,
324
- }, () => {
325
- this._animationFrame = setTimeout(this._animation);
326
- });
327
- }
328
- };
329
- this._closeLargeMap = () => {
330
- if (this.state.mode === MapMode.Opened && this.state.animation === 1.0) {
331
- const startMapOrigin = this.state.mapOrigin;
332
- const mapOrigin = this.state.origin.clone();
333
- const startMapExtents = core_geometry_1.Vector3d.createFrom(this.state.mapExtents);
334
- const mapExtents = this._getClosedMapSize();
335
- const rect = this.state.rotateMinimapWithView || this._isViewport3D()
336
- ? this.state.extents
337
- : DrawingNavigationAid.findRotatedWindowDimensions(this.state.extents, this.state.rotation);
338
- const maxRectDim = Math.max(rect.y, rect.x);
339
- const maxExtentDim = Math.max(mapExtents.x, mapExtents.y);
340
- const drawingZoom = maxExtentDim / (3 * maxRectDim);
341
- const startDrawingZoom = this.state.drawingZoom;
342
- this.setState({
343
- mode: MapMode.Closed,
344
- startMapOrigin,
345
- mapOrigin,
346
- startDrawingZoom,
347
- drawingZoom,
348
- isMoving: false,
349
- isPanning: false,
350
- startMapExtents,
351
- mapExtents,
352
- panningDirection: core_geometry_1.Vector3d.createZero(),
353
- animation: 0,
354
- }, () => {
355
- this._animationFrame = setTimeout(this._animation, 16.667);
356
- });
357
- }
358
- };
359
- this._getPanVector = () => {
360
- const is3D = this._isViewport3D();
361
- const rect = this.state.rotateMinimapWithView || is3D
362
- ? this.state.extents
363
- : DrawingNavigationAid.findRotatedWindowDimensions(this.state.extents, this.state.rotation);
364
- const mapExtents = this.state.mapExtents.scale(1 / this.state.drawingZoom);
365
- const maxMagnitude = 80; // maximum acceleration
366
- const magnitudeTravel = 30; // How far, in pixels, that magnitude increases from 0 to max acceleration
367
- const diff = core_geometry_1.Vector3d.createFrom(this.state.origin.minus(this.state.mapOrigin));
368
- const diffVector = this.state.rotateMinimapWithView || is3D
369
- ? this.state.rotation.multiplyVector(diff)
370
- : diff;
371
- // capture any values
372
- const magnitudeVector = core_geometry_1.Vector3d.create(Math.max(0, Math.abs(diffVector.x) - (mapExtents.x - rect.x) / 2), Math.max(0, Math.abs(diffVector.y) - (mapExtents.y - rect.y) / 2));
373
- if (magnitudeVector.isAlmostZero)
374
- return core_geometry_1.Vector3d.createZero();
375
- const magnitude = (Math.min(magnitudeVector.magnitude() * this.state.drawingZoom, magnitudeTravel) /
376
- magnitudeTravel) *
377
- maxMagnitude;
378
- const vect = core_geometry_1.Vector3d.createFrom(this.state.origin.minus(this.state.mapOrigin)); // vect will never be zero or magnitude would also be zero
379
- const norm = vect.normalize();
380
- return norm.scale(magnitude); // norm is only undefined when vect is zero, in which it would have returned at magnitudeVector.isAlmostZero
381
- };
382
- this._handleWheel = (event) => {
383
- if (this.state.mode === MapMode.Opened && this.state.animation === 1) {
384
- const { mapOrigin, drawingZoom } = this.state;
385
- const mapSize = this._getOpenedMapSize();
386
- const mouseX = event.clientX - this._rootOffset.right + mapSize.x / 2;
387
- const mouseY = event.clientY - this._rootOffset.top - mapSize.y / 2;
388
- const is3D = this._isViewport3D();
389
- if (event.deltaY < 0) {
390
- const zoom = drawingZoom * 1.1;
391
- const vect = core_geometry_1.Vector3d.create((mouseX * 0.1) / zoom, (-mouseY * 0.1) / zoom, 0);
392
- const offset = this.state.rotateMinimapWithView || is3D
393
- ? this.state.rotation.multiplyTransposeVector(vect)
394
- : vect;
395
- const m = mapOrigin.plus(offset);
396
- this.setState({ mapOrigin: m, drawingZoom: zoom });
397
- }
398
- if (event.deltaY > 0) {
399
- const zoom = drawingZoom / 1.1;
400
- const vect = core_geometry_1.Vector3d.create((mouseX * 0.1) / drawingZoom, (-mouseY * 0.1) / drawingZoom, 0);
401
- const offset = this.state.rotateMinimapWithView || is3D
402
- ? this.state.rotation.multiplyTransposeVector(vect)
403
- : vect;
404
- const m = mapOrigin.minus(offset);
405
- this.setState({ mapOrigin: m, drawingZoom: zoom });
406
- }
407
- }
408
- };
409
- this._handleZoomIn = () => {
410
- const zoom = this.state.drawingZoom * 1.4;
411
- this.setState({ drawingZoom: zoom });
412
- };
413
- this._handleZoomOut = () => {
414
- const zoom = this.state.drawingZoom / 1.4;
415
- this.setState({ drawingZoom: zoom });
416
- };
417
- this._handleUnrotate = () => {
418
- const startRotation = this.state.rotation;
419
- const halfExtents = this.state.extents.scale(0.5);
420
- const offset = this.state.rotateMinimapWithView || this._isViewport3D()
421
- ? core_geometry_1.Vector3d.createZero()
422
- : this.state.rotation
423
- .multiplyTransposeVector(halfExtents)
424
- .minus(halfExtents);
425
- const startOrigin = this.state.origin;
426
- const origin = this.state.origin.plus(offset);
427
- const startMapOrigin = this.state.mapOrigin;
428
- const mapOrigin = this.state.mapOrigin.plus(offset);
429
- this.setState({
430
- animation: 0,
431
- startOrigin,
432
- origin,
433
- startMapOrigin,
434
- mapOrigin,
435
- startRotation,
436
- rotation: core_geometry_1.Matrix3d.createIdentity(),
437
- }, () => {
438
- this._animationFrame = setTimeout(this._animation, 16.667);
439
- });
440
- };
441
- const mode = props.initialMapMode || MapMode.Closed;
442
- const mapExtents = mode === MapMode.Closed
443
- ? this._getClosedMapSize()
444
- : this._getOpenedMapSize();
445
- const startMapExtents = mapExtents;
446
- this.state = {
447
- startOrigin: core_geometry_1.Point3d.createZero(),
448
- origin: core_geometry_1.Point3d.createZero(),
449
- extents: core_geometry_1.Vector3d.create(1, 1, 1),
450
- startRotation: core_geometry_1.Matrix3d.createIdentity(),
451
- rotation: core_geometry_1.Matrix3d.createIdentity(),
452
- startMapOrigin: core_geometry_1.Point3d.createZero(),
453
- mapOrigin: core_geometry_1.Point3d.createZero(),
454
- startMapExtents,
455
- mapExtents,
456
- mouseStart: core_geometry_1.Point2d.createZero(),
457
- panningDirection: core_geometry_1.Vector3d.createZero(),
458
- startDrawingZoom: 1.0,
459
- drawingZoom: 1.0,
460
- mode,
461
- animation: 1.0,
462
- viewId: props.initialView !== undefined ? props.initialView.id : "",
463
- view: props.initialView,
464
- isMoving: false,
465
- isPanning: false,
466
- rotateMinimapWithView: props.initialRotateMinimapWithView !== undefined
467
- ? props.initialRotateMinimapWithView
468
- : false,
469
- };
470
- }
471
- render() {
472
- const { startOrigin, origin, extents, startRotation, rotation, startMapOrigin, mapOrigin, startMapExtents, mapExtents, startDrawingZoom, drawingZoom, animation, viewId, mode, rotateMinimapWithView, } = this.state;
473
- const a = DrawingNavigationAid._animationFn(animation);
474
- const rot = core_geometry_1.Matrix3d.createFromQuaternion(core_geometry_1.Point4d.interpolateQuaternions(startRotation.toQuaternion(), a, rotation.toQuaternion()));
475
- const or = startOrigin.interpolate(a, origin);
476
- const map = startMapOrigin.interpolate(a, mapOrigin);
477
- const sz = startMapExtents.interpolate(a, mapExtents);
478
- const dz = core_geometry_1.Geometry.interpolate(startDrawingZoom, a, drawingZoom);
479
- const rootStyle = {
480
- width: sz.x,
481
- height: sz.y,
482
- ...this.props.style,
483
- };
484
- const is3D = this._isViewport3D();
485
- const tOr = rotateMinimapWithView || is3D
486
- ? rotation.multiplyVector(core_geometry_1.Vector3d.createFrom(or))
487
- : core_geometry_1.Vector3d.createFrom(or);
488
- const tMap = rotateMinimapWithView || is3D
489
- ? rotation.multiplyVector(core_geometry_1.Vector3d.createFrom(map))
490
- : core_geometry_1.Vector3d.createFrom(map);
491
- const tPosX = (tOr.x - extents.x / 2 - tMap.x) * dz + sz.x / 2;
492
- const tPosY = (-tOr.y - extents.y / 2 + tMap.y) * dz + sz.y / 2;
493
- const viewWindowStyle = {
494
- transform: `translate(${tPosX}px, ${tPosY}px)`,
495
- height: extents.y * dz,
496
- width: extents.x * dz,
497
- };
498
- if (!rotateMinimapWithView && !is3D)
499
- viewWindowStyle.transform =
500
- "matrix3d(" +
501
- `${rot.at(0, 0)}, ${rot.at(1, 0)}, ${rot.at(2, 0)}, 0, ` +
502
- `${rot.at(0, 1)}, ${rot.at(1, 1)}, ${rot.at(2, 1)}, 0, ` +
503
- `${rot.at(0, 2)}, ${rot.at(1, 2)}, ${rot.at(2, 2)}, 0, ` +
504
- `${tPosX}, ${tPosY}, 0, 1)`;
505
- const isAnimating = animation !== 1 && !startMapExtents.isExactEqual(mapExtents);
506
- if (mode === MapMode.Opened || isAnimating) {
507
- rootStyle.position = "fixed";
508
- rootStyle.right = window.innerWidth - this._rootOffset.right;
509
- rootStyle.top = this._rootOffset.top;
510
- }
511
- const halfExtents = extents.scale(0.5);
512
- const offset = rotateMinimapWithView || is3D
513
- ? core_geometry_1.Vector3d.createZero()
514
- : rotation.multiplyTransposeVector(halfExtents).minus(halfExtents);
515
- const e = sz.scale(1 / dz);
516
- const halfMapExtents = e.scale(0.5);
517
- const mapOffset = rotateMinimapWithView || is3D
518
- ? rotation.multiplyTransposeVector(halfMapExtents)
519
- : halfMapExtents;
520
- const viewManager = this.props.viewManagerOverride
521
- ? this.props.viewManagerOverride
522
- : core_frontend_1.IModelApp.viewManager;
523
- const screenViewport = this.props.screenViewportOverride
524
- ? this.props.screenViewportOverride
525
- : core_frontend_1.ScreenViewport;
526
- const nodes = (React.createElement("div", { className: (0, classnames_1.default)("components-drawing-navigation-aid", this.props.className), "data-testid": "components-drawing-navigation-aid", ref: this._rootElement, onWheel: this._handleWheel, onMouseDown: this._handleDrawingMouseDown, style: rootStyle, role: "presentation" },
527
- React.createElement(DrawingNavigationCanvas, { view: this.state.view, viewManagerOverride: viewManager, screenViewportOverride: screenViewport, viewId: viewId, origin: map.plus(offset).minus(mapOffset), extents: e, zoom: dz, rotation: rotateMinimapWithView || is3D ? rotation : core_geometry_1.Matrix3d.createIdentity() }),
528
- React.createElement("div", { className: "drawing-container", "data-testid": "drawing-container", ref: this._viewContainerElement },
529
- React.createElement("div", { className: "drawing-view-window", "data-testid": "drawing-view-window", onMouseDown: this._handleWindowMouseDown, onTouchStart: this._handleWindowTouchStart, style: viewWindowStyle, ref: this._viewElement, role: "presentation" }),
530
- !is3D && (React.createElement("div", { className: (0, classnames_1.default)("toggle-rotate-style", "icon", {
531
- checked: rotateMinimapWithView,
532
- }), "data-testid": "toggle-rotate-style", style: mode === MapMode.Closed && !isAnimating
533
- ? { bottom: 2, left: 2 }
534
- : {}, title: UiIModelComponents_1.UiIModelComponents.translate("drawing.rotateStyle"), onClick: this._toggleRotationMode, role: "presentation" },
535
- React.createElement(core_react_1.Icon, { iconSpec: React.createElement(itwinui_icons_react_1.SvgRotateLeft, null) }))),
536
- !rot.isIdentity && (React.createElement("div", { className: "unrotate-button", "data-testid": "drawing-unrotate-button", style: mode === MapMode.Closed && !isAnimating ? { top: 2 } : {}, onClick: this._handleUnrotate, role: "button", tabIndex: -1 }, UiIModelComponents_1.UiIModelComponents.translate("drawing.unrotate"))),
537
- mode === MapMode.Opened && !isAnimating && (React.createElement(React.Fragment, null,
538
- React.createElement("div", { className: "close", "data-testid": "drawing-close-button", onClick: this._closeLargeMap, role: "button", tabIndex: -1 },
539
- React.createElement("div", { className: "close-icon icon" },
540
- React.createElement(core_react_1.Icon, { iconSpec: React.createElement(itwinui_icons_react_1.SvgSortUp, null) }))),
541
- React.createElement("div", { className: "zoom" },
542
- React.createElement("div", { className: "zoom-button icon", "data-testid": "drawing-zoom-in-button", onClick: this._handleZoomIn, role: "button", tabIndex: -1 },
543
- React.createElement(core_react_1.Icon, { iconSpec: React.createElement(itwinui_icons_react_1.SvgAdd, null) })),
544
- React.createElement("div", { className: "zoom-button icon", "data-testid": "drawing-zoom-out-button", onClick: this._handleZoomOut, role: "button", tabIndex: -1 },
545
- React.createElement(core_react_1.Icon, { iconSpec: React.createElement(itwinui_icons_react_1.SvgRemove, null) }))))))));
546
- if (mode === MapMode.Closed &&
547
- (animation === 1.0 || startMapExtents.isExactEqual(mapExtents))) {
548
- return nodes;
549
- }
550
- else {
551
- let drawingPortal = document.querySelector("#components-drawing-portal");
552
- if (!drawingPortal) {
553
- drawingPortal = document.createElement("div");
554
- drawingPortal.id = "components-drawing-portal";
555
- document.body.appendChild(drawingPortal);
556
- }
557
- return ReactDOM.createPortal(nodes, drawingPortal);
558
- }
559
- }
560
- componentDidMount() {
561
- this._mounted = true;
562
- ViewportComponentEvents_1.ViewportComponentEvents.onViewRotationChangeEvent.addListener(this._handleViewRotationChangeEvent);
563
- window.addEventListener("mousedown", this._handleMouseDown);
564
- window.addEventListener("mouseup", this._handleMouseDragEnd);
565
- window.addEventListener("mousemove", this._handleMouseDrag);
566
- window.addEventListener("keyup", this._handleKeyUp);
567
- }
568
- componentWillUnmount() {
569
- ViewportComponentEvents_1.ViewportComponentEvents.onViewRotationChangeEvent.removeListener(this._handleViewRotationChangeEvent);
570
- window.removeEventListener("mousedown", this._handleMouseDown);
571
- window.removeEventListener("mouseup", this._handleMouseDragEnd);
572
- window.removeEventListener("mousemove", this._handleMouseDrag);
573
- window.removeEventListener("keyup", this._handleKeyUp);
574
- clearTimeout(this._animationFrame);
575
- if (this.props.onAnimationEnd)
576
- this.props.onAnimationEnd();
577
- const rt = document.getElementById("components-drawing-portal");
578
- if (rt && rt.parentElement !== null && rt.children.length === 0) {
579
- rt.parentElement.removeChild(rt);
580
- }
581
- this._mounted = false;
582
- }
583
- _processWindowDrag(movement) {
584
- const vect = core_geometry_1.Vector3d.create(movement.x / this.state.drawingZoom, -movement.y / this.state.drawingZoom, 0);
585
- const offset = this.state.rotateMinimapWithView || this._isViewport3D()
586
- ? this.state.rotation.multiplyTransposeVector(vect)
587
- : vect;
588
- const origin = this.state.origin.plus(offset);
589
- const panningDirection = this._getPanVector();
590
- const wasAlmostZero = this.state.panningDirection.isAlmostZero;
591
- this.setState({ startOrigin: origin, origin, panningDirection, isPanning: false }, () => {
592
- this._updateFrustum();
593
- if (wasAlmostZero && !this.state.panningDirection.isAlmostZero) {
594
- this._animationFrame = setTimeout(this._panAnimation, 16.667);
595
- }
596
- });
597
- }
598
- _processWindowEndDrag() {
599
- this.setState({ isMoving: false });
600
- this._updateFrustum(true);
601
- if (this.state.mode === MapMode.Closed) {
602
- setTimeout(() => {
603
- const startMapOrigin = this.state.mapOrigin;
604
- const mapOrigin = this.state.origin.clone();
605
- if (this._mounted) {
606
- this.setState({ startMapOrigin, mapOrigin, animation: 0 }, () => {
607
- this._animationFrame = setTimeout(this._animation, 16.667);
608
- });
609
- }
610
- }, 0);
611
- }
612
- }
613
- }
614
- exports.DrawingNavigationAid = DrawingNavigationAid;
615
- DrawingNavigationAid._animationFn = (t) => t < 0.5 ? 2 * t ** 2 : -1 + (4 - 2 * t) * t;
616
- /** @internal */
617
- DrawingNavigationAid.getDefaultClosedMapSize = () => {
618
- return core_geometry_1.Vector3d.create(96, 96);
619
- };
620
- /** @internal */
621
- DrawingNavigationAid.getDefaultOpenedMapSize = (paddingX = 0, paddingY = 0) => {
622
- return core_geometry_1.Vector3d.create(window.innerWidth / 3 - 2 * (window.innerWidth - paddingX), window.innerHeight / 3 - 2 * paddingY);
623
- };
624
- /** @internal */
625
- DrawingNavigationAid.findRotatedWindowDimensions = (extents, rotation) => {
626
- const cos = rotation.at(0, 0);
627
- const sin = rotation.at(1, 0);
628
- // extents.x/y should be divided in half, but we don't have to do that immediately.
629
- const cosWidth = cos * extents.x;
630
- const sinHeight = sin * extents.y;
631
- const sinWidth = cos * extents.x;
632
- const cosHeight = sin * extents.y;
633
- const a = Math.atan2(sin, cos);
634
- if (a % Math.PI >= 0 && a % Math.PI < Math.PI / 2) {
635
- const y1 = -cosHeight - sinWidth;
636
- const x2 = cosWidth + sinHeight;
637
- const y3 = cosHeight + sinWidth;
638
- const x4 = -cosWidth - sinHeight;
639
- // Instead, divide total difference
640
- return core_geometry_1.Vector3d.create(Math.abs(x2 - x4) / 2, Math.abs(y1 - y3) / 2);
641
- }
642
- else {
643
- const x1 = -cosWidth + sinHeight;
644
- const y2 = -cosHeight + sinWidth;
645
- const x3 = cosWidth - sinHeight;
646
- const y4 = cosHeight - sinWidth;
647
- return core_geometry_1.Vector3d.create(Math.abs(x1 - x3) / 2, Math.abs(y2 - y4) / 2);
648
- }
649
- };
650
- /** @internal */
651
- class DrawingNavigationCanvas extends React.Component {
652
- constructor() {
653
- super(...arguments);
654
- this._canvasElement = React.createRef();
655
- this._update = () => {
656
- if (this._vp) {
657
- const max = Math.max(this.props.extents.x, this.props.extents.y);
658
- this._vp.view.extentLimits = { max, min: core_geometry_1.Constant.oneMillimeter };
659
- this._vp.view.setOrigin(this.props.origin);
660
- this._vp.view.setRotation(this.props.rotation);
661
- this._vp.view.setExtents(this.props.extents);
662
- this._vp.applyViewState(this._vp.view);
663
- }
664
- };
665
- }
666
- render() {
667
- return (React.createElement("div", { className: "drawing-canvas", "data-testid": "drawing-canvas", ref: this._canvasElement }));
668
- }
669
- componentDidMount() {
670
- if (this._canvasElement.current && this.props.view !== undefined) {
671
- const viewManager = this.props.viewManagerOverride
672
- ? this.props.viewManagerOverride
673
- : core_frontend_1.IModelApp.viewManager;
674
- const screenViewport = this.props.screenViewportOverride
675
- ? this.props.screenViewportOverride
676
- : core_frontend_1.ScreenViewport;
677
- const previousView = viewManager.selectedView;
678
- this._vp = screenViewport.create(this._canvasElement.current, this.props.view);
679
- this.customizeViewport(this._vp);
680
- viewManager.addViewport(this._vp);
681
- void viewManager.setSelectedView(previousView); // switch to original viewport
682
- this._update();
683
- }
684
- }
685
- customizeViewport(vp) {
686
- if (vp.logo.style)
687
- vp.logo.style.display = "none";
688
- if (vp.viewFlags.acsTriad)
689
- vp.viewFlags = vp.viewFlags.with("acsTriad", false);
690
- }
691
- componentDidUpdate(oldProps) {
692
- const viewManager = this.props.viewManagerOverride
693
- ? this.props.viewManagerOverride
694
- : core_frontend_1.IModelApp.viewManager;
695
- if (this.props.view !== undefined) {
696
- if (oldProps.view !== this.props.view) {
697
- const screenViewport = this.props.screenViewportOverride
698
- ? this.props.screenViewportOverride
699
- : core_frontend_1.ScreenViewport;
700
- if (oldProps !== undefined &&
701
- oldProps.viewId !== "" &&
702
- oldProps.viewId !== this.props.viewId &&
703
- this._vp) {
704
- viewManager.dropViewport(this._vp, true);
705
- }
706
- if (this._canvasElement.current &&
707
- (this.props.canvasSizeOverride ||
708
- (this._canvasElement.current.clientWidth !== 0 &&
709
- this._canvasElement.current.clientHeight !== 0))) {
710
- const previousView = viewManager.selectedView;
711
- this._vp = screenViewport.create(this._canvasElement.current, this.props.view.clone());
712
- this.customizeViewport(this._vp);
713
- viewManager.addViewport(this._vp);
714
- void viewManager.setSelectedView(previousView); // switch to original viewport
715
- this._update();
716
- }
717
- }
718
- else if (!this.props.origin.isExactEqual(oldProps.origin) ||
719
- !this.props.extents.isExactEqual(oldProps.extents) ||
720
- this.props.zoom !== oldProps.zoom ||
721
- !this.props.rotation.isExactEqual(oldProps.rotation)) {
722
- this._update();
723
- }
724
- }
725
- }
726
- componentWillUnmount() {
727
- if (this._vp) {
728
- const viewManager = this.props.viewManagerOverride
729
- ? this.props.viewManagerOverride
730
- : core_frontend_1.IModelApp.viewManager;
731
- viewManager.dropViewport(this._vp, true);
732
- }
733
- }
734
- }
735
- exports.DrawingNavigationCanvas = DrawingNavigationCanvas;
736
- //# sourceMappingURL=DrawingNavigationAid.js.map