@itwin/imodel-components-react 4.17.0 → 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 (532) hide show
  1. package/README.md +15 -2
  2. package/lib/{cjs/imodel-components-react → imodel-components-react}/UiIModelComponents.d.ts +1 -1
  3. package/lib/imodel-components-react/UiIModelComponents.d.ts.map +1 -0
  4. package/lib/{esm/imodel-components-react → imodel-components-react}/UiIModelComponents.js +4 -7
  5. package/lib/imodel-components-react/UiIModelComponents.js.map +1 -0
  6. package/lib/imodel-components-react/color/AlphaSlider.d.ts.map +1 -0
  7. package/lib/{esm/imodel-components-react → imodel-components-react}/color/AlphaSlider.js +1 -1
  8. package/lib/imodel-components-react/color/AlphaSlider.js.map +1 -0
  9. package/lib/imodel-components-react/color/ColorPickerButton.d.ts.map +1 -0
  10. package/lib/{esm/imodel-components-react → imodel-components-react}/color/ColorPickerButton.js +4 -3
  11. package/lib/imodel-components-react/color/ColorPickerButton.js.map +1 -0
  12. package/lib/{esm/imodel-components-react → imodel-components-react}/color/ColorPickerButton.scss +2 -4
  13. package/lib/imodel-components-react/color/ColorPickerDialog.d.ts.map +1 -0
  14. package/lib/imodel-components-react/color/ColorPickerDialog.js.map +1 -0
  15. package/lib/imodel-components-react/color/ColorPickerPopup.d.ts.map +1 -0
  16. package/lib/{esm/imodel-components-react → imodel-components-react}/color/ColorPickerPopup.js +4 -3
  17. package/lib/imodel-components-react/color/ColorPickerPopup.js.map +1 -0
  18. package/lib/imodel-components-react/color/HueSlider.d.ts.map +1 -0
  19. package/lib/{esm/imodel-components-react → imodel-components-react}/color/HueSlider.js +1 -1
  20. package/lib/{esm/imodel-components-react → imodel-components-react}/color/HueSlider.js.map +1 -1
  21. package/lib/imodel-components-react/color/SaturationPicker.d.ts.map +1 -0
  22. package/lib/{esm/imodel-components-react → imodel-components-react}/color/SaturationPicker.js +1 -1
  23. package/lib/imodel-components-react/color/SaturationPicker.js.map +1 -0
  24. package/lib/imodel-components-react/color/Swatch.d.ts.map +1 -0
  25. package/lib/{esm/imodel-components-react → imodel-components-react}/color/Swatch.js +1 -1
  26. package/lib/{esm/imodel-components-react → imodel-components-react}/color/Swatch.js.map +1 -1
  27. package/lib/imodel-components-react/color/getCSSColorFromDef.d.ts.map +1 -0
  28. package/lib/imodel-components-react/color/getCSSColorFromDef.js.map +1 -0
  29. package/lib/imodel-components-react/editors/ColorEditor.d.ts.map +1 -0
  30. package/lib/{esm/imodel-components-react → imodel-components-react}/editors/ColorEditor.js +3 -4
  31. package/lib/imodel-components-react/editors/ColorEditor.js.map +1 -0
  32. package/lib/{cjs/imodel-components-react → imodel-components-react}/editors/ColorEditor.scss +0 -2
  33. package/lib/imodel-components-react/editors/WeightEditor.d.ts.map +1 -0
  34. package/lib/{esm/imodel-components-react → imodel-components-react}/editors/WeightEditor.js +3 -4
  35. package/lib/imodel-components-react/editors/WeightEditor.js.map +1 -0
  36. package/lib/{cjs/imodel-components-react → imodel-components-react}/editors/WeightEditor.scss +0 -2
  37. package/lib/imodel-components-react/inputs/QuantityInput.d.ts.map +1 -0
  38. package/lib/{esm/imodel-components-react → imodel-components-react}/inputs/QuantityInput.js +1 -1
  39. package/lib/{esm/imodel-components-react → imodel-components-react}/inputs/QuantityInput.js.map +1 -1
  40. package/lib/imodel-components-react/inputs/QuantityNumberInput.d.ts.map +1 -0
  41. package/lib/imodel-components-react/inputs/QuantityNumberInput.js.map +1 -0
  42. package/lib/{cjs/imodel-components-react → imodel-components-react}/inputs/QuantityNumberInput.scss +1 -1
  43. package/lib/imodel-components-react/lineweight/Swatch.d.ts.map +1 -0
  44. package/lib/{esm/imodel-components-react → imodel-components-react}/lineweight/Swatch.js +1 -1
  45. package/lib/{esm/imodel-components-react → imodel-components-react}/lineweight/Swatch.js.map +1 -1
  46. package/lib/{cjs/imodel-components-react → imodel-components-react}/lineweight/Swatch.scss +2 -4
  47. package/lib/imodel-components-react/lineweight/WeightPickerButton.d.ts.map +1 -0
  48. package/lib/{esm/imodel-components-react → imodel-components-react}/lineweight/WeightPickerButton.js +1 -1
  49. package/lib/{esm/imodel-components-react → imodel-components-react}/lineweight/WeightPickerButton.js.map +1 -1
  50. package/lib/{esm/imodel-components-react → imodel-components-react}/lineweight/WeightPickerButton.scss +5 -6
  51. package/lib/imodel-components-react/navigationaids/Cube.d.ts.map +1 -0
  52. package/lib/imodel-components-react/navigationaids/Cube.js.map +1 -0
  53. package/lib/{esm/imodel-components-react → imodel-components-react}/navigationaids/CubeNavigationAid.d.ts +1 -1
  54. package/lib/imodel-components-react/navigationaids/CubeNavigationAid.d.ts.map +1 -0
  55. package/lib/{esm/imodel-components-react → imodel-components-react}/navigationaids/CubeNavigationAid.js +3 -3
  56. package/lib/imodel-components-react/navigationaids/CubeNavigationAid.js.map +1 -0
  57. package/lib/{esm/imodel-components-react → imodel-components-react}/navigationaids/CubeNavigationAid.scss +1 -2
  58. package/lib/imodel-components-react/navigationaids/DrawingNavigationAid.d.ts.map +1 -0
  59. package/lib/{esm/imodel-components-react → imodel-components-react}/navigationaids/DrawingNavigationAid.js +2 -2
  60. package/lib/imodel-components-react/navigationaids/DrawingNavigationAid.js.map +1 -0
  61. package/lib/{cjs/imodel-components-react → imodel-components-react}/navigationaids/DrawingNavigationAid.scss +9 -10
  62. package/lib/imodel-components-react/quantityformat/FormatPanel.d.ts.map +1 -0
  63. package/lib/{esm/imodel-components-react → imodel-components-react}/quantityformat/FormatPanel.js +6 -6
  64. package/lib/imodel-components-react/quantityformat/FormatPanel.js.map +1 -0
  65. package/lib/{esm/imodel-components-react → imodel-components-react}/quantityformat/FormatPanel.scss +0 -2
  66. package/lib/imodel-components-react/quantityformat/FormatPrecision.d.ts.map +1 -0
  67. package/lib/{esm/imodel-components-react → imodel-components-react}/quantityformat/FormatPrecision.js +3 -3
  68. package/lib/imodel-components-react/quantityformat/FormatPrecision.js.map +1 -0
  69. package/lib/imodel-components-react/quantityformat/FormatSample.d.ts.map +1 -0
  70. package/lib/{esm/imodel-components-react → imodel-components-react}/quantityformat/FormatSample.js +1 -1
  71. package/lib/imodel-components-react/quantityformat/FormatSample.js.map +1 -0
  72. package/lib/imodel-components-react/quantityformat/FormatType.d.ts.map +1 -0
  73. package/lib/{esm/imodel-components-react → imodel-components-react}/quantityformat/FormatType.js +1 -1
  74. package/lib/{esm/imodel-components-react → imodel-components-react}/quantityformat/FormatType.js.map +1 -1
  75. package/lib/imodel-components-react/quantityformat/FormatUnitLabel.d.ts.map +1 -0
  76. package/lib/{esm/imodel-components-react → imodel-components-react}/quantityformat/FormatUnitLabel.js +1 -1
  77. package/lib/{esm/imodel-components-react → imodel-components-react}/quantityformat/FormatUnitLabel.js.map +1 -1
  78. package/lib/imodel-components-react/quantityformat/FormatUnits.d.ts.map +1 -0
  79. package/lib/{esm/imodel-components-react → imodel-components-react}/quantityformat/FormatUnits.js +2 -2
  80. package/lib/imodel-components-react/quantityformat/FormatUnits.js.map +1 -0
  81. package/lib/imodel-components-react/quantityformat/MiscFormatOptions.d.ts.map +1 -0
  82. package/lib/{esm/imodel-components-react → imodel-components-react}/quantityformat/MiscFormatOptions.js +7 -7
  83. package/lib/imodel-components-react/quantityformat/MiscFormatOptions.js.map +1 -0
  84. package/lib/imodel-components-react/quantityformat/QuantityFormatPanel.d.ts.map +1 -0
  85. package/lib/{esm/imodel-components-react → imodel-components-react}/quantityformat/QuantityFormatPanel.js +1 -1
  86. package/lib/imodel-components-react/quantityformat/QuantityFormatPanel.js.map +1 -0
  87. package/lib/imodel-components-react/quantityformat/misc/DecimalPrecision.d.ts.map +1 -0
  88. package/lib/{esm/imodel-components-react → imodel-components-react}/quantityformat/misc/DecimalPrecision.js +1 -1
  89. package/lib/{esm/imodel-components-react → imodel-components-react}/quantityformat/misc/DecimalPrecision.js.map +1 -1
  90. package/lib/imodel-components-react/quantityformat/misc/DecimalSeparator.d.ts.map +1 -0
  91. package/lib/{esm/imodel-components-react → imodel-components-react}/quantityformat/misc/DecimalSeparator.js +1 -1
  92. package/lib/imodel-components-react/quantityformat/misc/DecimalSeparator.js.map +1 -0
  93. package/lib/imodel-components-react/quantityformat/misc/FractionPrecision.d.ts.map +1 -0
  94. package/lib/{esm/imodel-components-react → imodel-components-react}/quantityformat/misc/FractionPrecision.js +1 -1
  95. package/lib/imodel-components-react/quantityformat/misc/FractionPrecision.js.map +1 -0
  96. package/lib/imodel-components-react/quantityformat/misc/ScientificType.d.ts.map +1 -0
  97. package/lib/{esm/imodel-components-react → imodel-components-react}/quantityformat/misc/ScientificType.js +1 -1
  98. package/lib/imodel-components-react/quantityformat/misc/ScientificType.js.map +1 -0
  99. package/lib/imodel-components-react/quantityformat/misc/SignOption.d.ts.map +1 -0
  100. package/lib/{esm/imodel-components-react → imodel-components-react}/quantityformat/misc/SignOption.js +1 -1
  101. package/lib/imodel-components-react/quantityformat/misc/SignOption.js.map +1 -0
  102. package/lib/imodel-components-react/quantityformat/misc/StationSeparatorSelector.d.ts.map +1 -0
  103. package/lib/{esm/imodel-components-react → imodel-components-react}/quantityformat/misc/StationSeparatorSelector.js +1 -1
  104. package/lib/imodel-components-react/quantityformat/misc/StationSeparatorSelector.js.map +1 -0
  105. package/lib/imodel-components-react/quantityformat/misc/StationSizeSelector.d.ts.map +1 -0
  106. package/lib/{esm/imodel-components-react → imodel-components-react}/quantityformat/misc/StationSizeSelector.js +1 -1
  107. package/lib/imodel-components-react/quantityformat/misc/StationSizeSelector.js.map +1 -0
  108. package/lib/imodel-components-react/quantityformat/misc/ThousandsSelector.d.ts.map +1 -0
  109. package/lib/{esm/imodel-components-react → imodel-components-react}/quantityformat/misc/ThousandsSelector.js +1 -1
  110. package/lib/imodel-components-react/quantityformat/misc/ThousandsSelector.js.map +1 -0
  111. package/lib/imodel-components-react/quantityformat/misc/ThousandsSeparator.d.ts.map +1 -0
  112. package/lib/{esm/imodel-components-react → imodel-components-react}/quantityformat/misc/ThousandsSeparator.js +2 -2
  113. package/lib/imodel-components-react/quantityformat/misc/ThousandsSeparator.js.map +1 -0
  114. package/lib/imodel-components-react/quantityformat/misc/UnitDescr.d.ts.map +1 -0
  115. package/lib/imodel-components-react/quantityformat/misc/UnitDescr.js.map +1 -0
  116. package/lib/{cjs/imodel-components-react → imodel-components-react}/timeline/BaseSolarDataProvider.d.ts +1 -1
  117. package/lib/imodel-components-react/timeline/BaseSolarDataProvider.d.ts.map +1 -0
  118. package/lib/{esm/imodel-components-react → imodel-components-react}/timeline/BaseSolarDataProvider.js.map +1 -1
  119. package/lib/{cjs/imodel-components-react → imodel-components-react}/timeline/BaseTimelineDataProvider.d.ts +1 -1
  120. package/lib/imodel-components-react/timeline/BaseTimelineDataProvider.d.ts.map +1 -0
  121. package/lib/imodel-components-react/timeline/BaseTimelineDataProvider.js.map +1 -0
  122. package/lib/imodel-components-react/timeline/InlineEdit.d.ts.map +1 -0
  123. package/lib/imodel-components-react/timeline/InlineEdit.js.map +1 -0
  124. package/lib/{esm/imodel-components-react → imodel-components-react}/timeline/InlineEdit.scss +3 -5
  125. package/lib/imodel-components-react/timeline/PlayButton.d.ts.map +1 -0
  126. package/lib/{esm/imodel-components-react → imodel-components-react}/timeline/PlayButton.js +1 -1
  127. package/lib/imodel-components-react/timeline/PlayButton.js.map +1 -0
  128. package/lib/{cjs/imodel-components-react → imodel-components-react}/timeline/Scrubber.d.ts +2 -4
  129. package/lib/imodel-components-react/timeline/Scrubber.d.ts.map +1 -0
  130. package/lib/{esm/imodel-components-react → imodel-components-react}/timeline/Scrubber.js +19 -12
  131. package/lib/imodel-components-react/timeline/Scrubber.js.map +1 -0
  132. package/lib/{esm/imodel-components-react → imodel-components-react}/timeline/Scrubber.scss +1 -1
  133. package/lib/{esm/imodel-components-react → imodel-components-react}/timeline/SolarTimeline.d.ts +1 -1
  134. package/lib/imodel-components-react/timeline/SolarTimeline.d.ts.map +1 -0
  135. package/lib/{esm/imodel-components-react → imodel-components-react}/timeline/SolarTimeline.js +3 -3
  136. package/lib/imodel-components-react/timeline/SolarTimeline.js.map +1 -0
  137. package/lib/{esm/imodel-components-react → imodel-components-react}/timeline/SolarTimeline.scss +0 -2
  138. package/lib/imodel-components-react/timeline/SpeedTimeline.d.ts.map +1 -0
  139. package/lib/imodel-components-react/timeline/SpeedTimeline.js.map +1 -0
  140. package/lib/{cjs/imodel-components-react → imodel-components-react}/timeline/SpeedTimeline.scss +2 -4
  141. package/lib/{esm/imodel-components-react → imodel-components-react}/timeline/Timeline.scss +7 -9
  142. package/lib/{esm/imodel-components-react → imodel-components-react}/timeline/TimelineComponent.d.ts +1 -1
  143. package/lib/imodel-components-react/timeline/TimelineComponent.d.ts.map +1 -0
  144. package/lib/{esm/imodel-components-react → imodel-components-react}/timeline/TimelineComponent.js +5 -5
  145. package/lib/imodel-components-react/timeline/TimelineComponent.js.map +1 -0
  146. package/lib/imodel-components-react/timeline/interfaces.d.ts.map +1 -0
  147. package/lib/imodel-components-react/timeline/interfaces.js.map +1 -0
  148. package/lib/imodel-components-react/useTranslation.d.ts.map +1 -0
  149. package/lib/{esm/imodel-components-react → imodel-components-react}/useTranslation.js +2 -2
  150. package/lib/imodel-components-react/useTranslation.js.map +1 -0
  151. package/lib/imodel-components-react/viewport/ViewportComponent.d.ts.map +1 -0
  152. package/lib/{esm/imodel-components-react → imodel-components-react}/viewport/ViewportComponent.js +1 -1
  153. package/lib/imodel-components-react/viewport/ViewportComponent.js.map +1 -0
  154. package/lib/{cjs/imodel-components-react → imodel-components-react}/viewport/ViewportComponentEvents.d.ts +1 -1
  155. package/lib/imodel-components-react/viewport/ViewportComponentEvents.d.ts.map +1 -0
  156. package/lib/{esm/imodel-components-react → imodel-components-react}/viewport/ViewportComponentEvents.js +1 -1
  157. package/lib/imodel-components-react/viewport/ViewportComponentEvents.js.map +1 -0
  158. package/lib/imodel-components-react.d.ts +77 -0
  159. package/lib/imodel-components-react.d.ts.map +1 -0
  160. package/lib/imodel-components-react.js +90 -0
  161. package/lib/imodel-components-react.js.map +1 -0
  162. package/lib/internal.d.ts +2 -0
  163. package/lib/internal.d.ts.map +1 -0
  164. package/lib/{esm/imodel-components-react/navigationaids/Cube.scss → internal.js} +2 -15
  165. package/lib/internal.js.map +1 -0
  166. package/package.json +46 -36
  167. package/lib/cjs/imodel-components-react/UiIModelComponents.d.ts.map +0 -1
  168. package/lib/cjs/imodel-components-react/UiIModelComponents.js +0 -78
  169. package/lib/cjs/imodel-components-react/UiIModelComponents.js.map +0 -1
  170. package/lib/cjs/imodel-components-react/color/AlphaSlider.d.ts.map +0 -1
  171. package/lib/cjs/imodel-components-react/color/AlphaSlider.js +0 -182
  172. package/lib/cjs/imodel-components-react/color/AlphaSlider.js.map +0 -1
  173. package/lib/cjs/imodel-components-react/color/ColorPickerButton.d.ts.map +0 -1
  174. package/lib/cjs/imodel-components-react/color/ColorPickerButton.js +0 -119
  175. package/lib/cjs/imodel-components-react/color/ColorPickerButton.js.map +0 -1
  176. package/lib/cjs/imodel-components-react/color/ColorPickerButton.scss +0 -90
  177. package/lib/cjs/imodel-components-react/color/ColorPickerDialog.d.ts.map +0 -1
  178. package/lib/cjs/imodel-components-react/color/ColorPickerDialog.js +0 -76
  179. package/lib/cjs/imodel-components-react/color/ColorPickerDialog.js.map +0 -1
  180. package/lib/cjs/imodel-components-react/color/ColorPickerPopup.d.ts.map +0 -1
  181. package/lib/cjs/imodel-components-react/color/ColorPickerPopup.js +0 -141
  182. package/lib/cjs/imodel-components-react/color/ColorPickerPopup.js.map +0 -1
  183. package/lib/cjs/imodel-components-react/color/HueSlider.d.ts.map +0 -1
  184. package/lib/cjs/imodel-components-react/color/HueSlider.js +0 -201
  185. package/lib/cjs/imodel-components-react/color/HueSlider.js.map +0 -1
  186. package/lib/cjs/imodel-components-react/color/SaturationPicker.d.ts.map +0 -1
  187. package/lib/cjs/imodel-components-react/color/SaturationPicker.js +0 -197
  188. package/lib/cjs/imodel-components-react/color/SaturationPicker.js.map +0 -1
  189. package/lib/cjs/imodel-components-react/color/Swatch.d.ts.map +0 -1
  190. package/lib/cjs/imodel-components-react/color/Swatch.js +0 -63
  191. package/lib/cjs/imodel-components-react/color/Swatch.js.map +0 -1
  192. package/lib/cjs/imodel-components-react/color/getCSSColorFromDef.d.ts.map +0 -1
  193. package/lib/cjs/imodel-components-react/color/getCSSColorFromDef.js +0 -24
  194. package/lib/cjs/imodel-components-react/color/getCSSColorFromDef.js.map +0 -1
  195. package/lib/cjs/imodel-components-react/editors/ColorEditor.d.ts.map +0 -1
  196. package/lib/cjs/imodel-components-react/editors/ColorEditor.js +0 -150
  197. package/lib/cjs/imodel-components-react/editors/ColorEditor.js.map +0 -1
  198. package/lib/cjs/imodel-components-react/editors/WeightEditor.d.ts.map +0 -1
  199. package/lib/cjs/imodel-components-react/editors/WeightEditor.js +0 -153
  200. package/lib/cjs/imodel-components-react/editors/WeightEditor.js.map +0 -1
  201. package/lib/cjs/imodel-components-react/inputs/QuantityInput.d.ts.map +0 -1
  202. package/lib/cjs/imodel-components-react/inputs/QuantityInput.js +0 -94
  203. package/lib/cjs/imodel-components-react/inputs/QuantityInput.js.map +0 -1
  204. package/lib/cjs/imodel-components-react/inputs/QuantityNumberInput.d.ts.map +0 -1
  205. package/lib/cjs/imodel-components-react/inputs/QuantityNumberInput.js +0 -265
  206. package/lib/cjs/imodel-components-react/inputs/QuantityNumberInput.js.map +0 -1
  207. package/lib/cjs/imodel-components-react/lineweight/Swatch.d.ts.map +0 -1
  208. package/lib/cjs/imodel-components-react/lineweight/Swatch.js +0 -84
  209. package/lib/cjs/imodel-components-react/lineweight/Swatch.js.map +0 -1
  210. package/lib/cjs/imodel-components-react/lineweight/WeightPickerButton.d.ts.map +0 -1
  211. package/lib/cjs/imodel-components-react/lineweight/WeightPickerButton.js +0 -160
  212. package/lib/cjs/imodel-components-react/lineweight/WeightPickerButton.js.map +0 -1
  213. package/lib/cjs/imodel-components-react/lineweight/WeightPickerButton.scss +0 -51
  214. package/lib/cjs/imodel-components-react/navigationaids/Cube.d.ts.map +0 -1
  215. package/lib/cjs/imodel-components-react/navigationaids/Cube.js +0 -151
  216. package/lib/cjs/imodel-components-react/navigationaids/Cube.js.map +0 -1
  217. package/lib/cjs/imodel-components-react/navigationaids/CubeNavigationAid.d.ts +0 -153
  218. package/lib/cjs/imodel-components-react/navigationaids/CubeNavigationAid.d.ts.map +0 -1
  219. package/lib/cjs/imodel-components-react/navigationaids/CubeNavigationAid.js +0 -683
  220. package/lib/cjs/imodel-components-react/navigationaids/CubeNavigationAid.js.map +0 -1
  221. package/lib/cjs/imodel-components-react/navigationaids/CubeNavigationAid.scss +0 -178
  222. package/lib/cjs/imodel-components-react/navigationaids/DrawingNavigationAid.d.ts.map +0 -1
  223. package/lib/cjs/imodel-components-react/navigationaids/DrawingNavigationAid.js +0 -736
  224. package/lib/cjs/imodel-components-react/navigationaids/DrawingNavigationAid.js.map +0 -1
  225. package/lib/cjs/imodel-components-react/quantityformat/FormatPanel.d.ts.map +0 -1
  226. package/lib/cjs/imodel-components-react/quantityformat/FormatPanel.js +0 -112
  227. package/lib/cjs/imodel-components-react/quantityformat/FormatPanel.js.map +0 -1
  228. package/lib/cjs/imodel-components-react/quantityformat/FormatPanel.scss +0 -55
  229. package/lib/cjs/imodel-components-react/quantityformat/FormatPrecision.d.ts.map +0 -1
  230. package/lib/cjs/imodel-components-react/quantityformat/FormatPrecision.js +0 -56
  231. package/lib/cjs/imodel-components-react/quantityformat/FormatPrecision.js.map +0 -1
  232. package/lib/cjs/imodel-components-react/quantityformat/FormatSample.d.ts.map +0 -1
  233. package/lib/cjs/imodel-components-react/quantityformat/FormatSample.js +0 -94
  234. package/lib/cjs/imodel-components-react/quantityformat/FormatSample.js.map +0 -1
  235. package/lib/cjs/imodel-components-react/quantityformat/FormatType.d.ts.map +0 -1
  236. package/lib/cjs/imodel-components-react/quantityformat/FormatType.js +0 -115
  237. package/lib/cjs/imodel-components-react/quantityformat/FormatType.js.map +0 -1
  238. package/lib/cjs/imodel-components-react/quantityformat/FormatUnitLabel.d.ts.map +0 -1
  239. package/lib/cjs/imodel-components-react/quantityformat/FormatUnitLabel.js +0 -117
  240. package/lib/cjs/imodel-components-react/quantityformat/FormatUnitLabel.js.map +0 -1
  241. package/lib/cjs/imodel-components-react/quantityformat/FormatUnits.d.ts.map +0 -1
  242. package/lib/cjs/imodel-components-react/quantityformat/FormatUnits.js +0 -137
  243. package/lib/cjs/imodel-components-react/quantityformat/FormatUnits.js.map +0 -1
  244. package/lib/cjs/imodel-components-react/quantityformat/MiscFormatOptions.d.ts.map +0 -1
  245. package/lib/cjs/imodel-components-react/quantityformat/MiscFormatOptions.js +0 -193
  246. package/lib/cjs/imodel-components-react/quantityformat/MiscFormatOptions.js.map +0 -1
  247. package/lib/cjs/imodel-components-react/quantityformat/QuantityFormatPanel.d.ts.map +0 -1
  248. package/lib/cjs/imodel-components-react/quantityformat/QuantityFormatPanel.js +0 -145
  249. package/lib/cjs/imodel-components-react/quantityformat/QuantityFormatPanel.js.map +0 -1
  250. package/lib/cjs/imodel-components-react/quantityformat/misc/DecimalPrecision.d.ts.map +0 -1
  251. package/lib/cjs/imodel-components-react/quantityformat/misc/DecimalPrecision.js +0 -104
  252. package/lib/cjs/imodel-components-react/quantityformat/misc/DecimalPrecision.js.map +0 -1
  253. package/lib/cjs/imodel-components-react/quantityformat/misc/DecimalSeparator.d.ts.map +0 -1
  254. package/lib/cjs/imodel-components-react/quantityformat/misc/DecimalSeparator.js +0 -59
  255. package/lib/cjs/imodel-components-react/quantityformat/misc/DecimalSeparator.js.map +0 -1
  256. package/lib/cjs/imodel-components-react/quantityformat/misc/FractionPrecision.d.ts.map +0 -1
  257. package/lib/cjs/imodel-components-react/quantityformat/misc/FractionPrecision.js +0 -87
  258. package/lib/cjs/imodel-components-react/quantityformat/misc/FractionPrecision.js.map +0 -1
  259. package/lib/cjs/imodel-components-react/quantityformat/misc/ScientificType.d.ts.map +0 -1
  260. package/lib/cjs/imodel-components-react/quantityformat/misc/ScientificType.js +0 -60
  261. package/lib/cjs/imodel-components-react/quantityformat/misc/ScientificType.js.map +0 -1
  262. package/lib/cjs/imodel-components-react/quantityformat/misc/SignOption.d.ts.map +0 -1
  263. package/lib/cjs/imodel-components-react/quantityformat/misc/SignOption.js +0 -68
  264. package/lib/cjs/imodel-components-react/quantityformat/misc/SignOption.js.map +0 -1
  265. package/lib/cjs/imodel-components-react/quantityformat/misc/StationSeparatorSelector.d.ts.map +0 -1
  266. package/lib/cjs/imodel-components-react/quantityformat/misc/StationSeparatorSelector.js +0 -76
  267. package/lib/cjs/imodel-components-react/quantityformat/misc/StationSeparatorSelector.js.map +0 -1
  268. package/lib/cjs/imodel-components-react/quantityformat/misc/StationSizeSelector.d.ts.map +0 -1
  269. package/lib/cjs/imodel-components-react/quantityformat/misc/StationSizeSelector.js +0 -59
  270. package/lib/cjs/imodel-components-react/quantityformat/misc/StationSizeSelector.js.map +0 -1
  271. package/lib/cjs/imodel-components-react/quantityformat/misc/ThousandsSelector.d.ts.map +0 -1
  272. package/lib/cjs/imodel-components-react/quantityformat/misc/ThousandsSelector.js +0 -65
  273. package/lib/cjs/imodel-components-react/quantityformat/misc/ThousandsSelector.js.map +0 -1
  274. package/lib/cjs/imodel-components-react/quantityformat/misc/ThousandsSeparator.d.ts.map +0 -1
  275. package/lib/cjs/imodel-components-react/quantityformat/misc/ThousandsSeparator.js +0 -106
  276. package/lib/cjs/imodel-components-react/quantityformat/misc/ThousandsSeparator.js.map +0 -1
  277. package/lib/cjs/imodel-components-react/quantityformat/misc/UnitDescr.d.ts.map +0 -1
  278. package/lib/cjs/imodel-components-react/quantityformat/misc/UnitDescr.js +0 -135
  279. package/lib/cjs/imodel-components-react/quantityformat/misc/UnitDescr.js.map +0 -1
  280. package/lib/cjs/imodel-components-react/timeline/BaseSolarDataProvider.d.ts.map +0 -1
  281. package/lib/cjs/imodel-components-react/timeline/BaseSolarDataProvider.js +0 -150
  282. package/lib/cjs/imodel-components-react/timeline/BaseSolarDataProvider.js.map +0 -1
  283. package/lib/cjs/imodel-components-react/timeline/BaseTimelineDataProvider.d.ts.map +0 -1
  284. package/lib/cjs/imodel-components-react/timeline/BaseTimelineDataProvider.js +0 -64
  285. package/lib/cjs/imodel-components-react/timeline/BaseTimelineDataProvider.js.map +0 -1
  286. package/lib/cjs/imodel-components-react/timeline/InlineEdit.d.ts.map +0 -1
  287. package/lib/cjs/imodel-components-react/timeline/InlineEdit.js +0 -86
  288. package/lib/cjs/imodel-components-react/timeline/InlineEdit.js.map +0 -1
  289. package/lib/cjs/imodel-components-react/timeline/InlineEdit.scss +0 -24
  290. package/lib/cjs/imodel-components-react/timeline/PlayButton.d.ts.map +0 -1
  291. package/lib/cjs/imodel-components-react/timeline/PlayButton.js +0 -50
  292. package/lib/cjs/imodel-components-react/timeline/PlayButton.js.map +0 -1
  293. package/lib/cjs/imodel-components-react/timeline/Scrubber.d.ts.map +0 -1
  294. package/lib/cjs/imodel-components-react/timeline/Scrubber.js +0 -185
  295. package/lib/cjs/imodel-components-react/timeline/Scrubber.js.map +0 -1
  296. package/lib/cjs/imodel-components-react/timeline/Scrubber.scss +0 -105
  297. package/lib/cjs/imodel-components-react/timeline/SolarTimeline.d.ts +0 -60
  298. package/lib/cjs/imodel-components-react/timeline/SolarTimeline.d.ts.map +0 -1
  299. package/lib/cjs/imodel-components-react/timeline/SolarTimeline.js +0 -358
  300. package/lib/cjs/imodel-components-react/timeline/SolarTimeline.js.map +0 -1
  301. package/lib/cjs/imodel-components-react/timeline/SolarTimeline.scss +0 -45
  302. package/lib/cjs/imodel-components-react/timeline/SpeedTimeline.d.ts.map +0 -1
  303. package/lib/cjs/imodel-components-react/timeline/SpeedTimeline.js +0 -57
  304. package/lib/cjs/imodel-components-react/timeline/SpeedTimeline.js.map +0 -1
  305. package/lib/cjs/imodel-components-react/timeline/Timeline.scss +0 -165
  306. package/lib/cjs/imodel-components-react/timeline/TimelineComponent.d.ts +0 -100
  307. package/lib/cjs/imodel-components-react/timeline/TimelineComponent.d.ts.map +0 -1
  308. package/lib/cjs/imodel-components-react/timeline/TimelineComponent.js +0 -286
  309. package/lib/cjs/imodel-components-react/timeline/TimelineComponent.js.map +0 -1
  310. package/lib/cjs/imodel-components-react/timeline/interfaces.d.ts.map +0 -1
  311. package/lib/cjs/imodel-components-react/timeline/interfaces.js +0 -46
  312. package/lib/cjs/imodel-components-react/timeline/interfaces.js.map +0 -1
  313. package/lib/cjs/imodel-components-react/useTranslation.d.ts.map +0 -1
  314. package/lib/cjs/imodel-components-react/useTranslation.js +0 -52
  315. package/lib/cjs/imodel-components-react/useTranslation.js.map +0 -1
  316. package/lib/cjs/imodel-components-react/viewport/ViewportComponent.d.ts.map +0 -1
  317. package/lib/cjs/imodel-components-react/viewport/ViewportComponent.js +0 -267
  318. package/lib/cjs/imodel-components-react/viewport/ViewportComponent.js.map +0 -1
  319. package/lib/cjs/imodel-components-react/viewport/ViewportComponentEvents.d.ts.map +0 -1
  320. package/lib/cjs/imodel-components-react/viewport/ViewportComponentEvents.js +0 -119
  321. package/lib/cjs/imodel-components-react/viewport/ViewportComponentEvents.js.map +0 -1
  322. package/lib/cjs/imodel-components-react.d.ts +0 -80
  323. package/lib/cjs/imodel-components-react.d.ts.map +0 -1
  324. package/lib/cjs/imodel-components-react.js +0 -103
  325. package/lib/cjs/imodel-components-react.js.map +0 -1
  326. package/lib/esm/imodel-components-react/UiIModelComponents.d.ts +0 -29
  327. package/lib/esm/imodel-components-react/UiIModelComponents.d.ts.map +0 -1
  328. package/lib/esm/imodel-components-react/UiIModelComponents.js.map +0 -1
  329. package/lib/esm/imodel-components-react/UiIModelComponents.json +0 -150
  330. package/lib/esm/imodel-components-react/color/AlphaSlider.d.ts +0 -36
  331. package/lib/esm/imodel-components-react/color/AlphaSlider.d.ts.map +0 -1
  332. package/lib/esm/imodel-components-react/color/AlphaSlider.js.map +0 -1
  333. package/lib/esm/imodel-components-react/color/AlphaSlider.scss +0 -71
  334. package/lib/esm/imodel-components-react/color/ColorPickerButton.d.ts +0 -40
  335. package/lib/esm/imodel-components-react/color/ColorPickerButton.d.ts.map +0 -1
  336. package/lib/esm/imodel-components-react/color/ColorPickerButton.js.map +0 -1
  337. package/lib/esm/imodel-components-react/color/ColorPickerDialog.d.ts +0 -26
  338. package/lib/esm/imodel-components-react/color/ColorPickerDialog.d.ts.map +0 -1
  339. package/lib/esm/imodel-components-react/color/ColorPickerDialog.js.map +0 -1
  340. package/lib/esm/imodel-components-react/color/ColorPickerPopup.d.ts +0 -47
  341. package/lib/esm/imodel-components-react/color/ColorPickerPopup.d.ts.map +0 -1
  342. package/lib/esm/imodel-components-react/color/ColorPickerPopup.js.map +0 -1
  343. package/lib/esm/imodel-components-react/color/ColorPickerPopup.scss +0 -62
  344. package/lib/esm/imodel-components-react/color/HueSlider.d.ts +0 -25
  345. package/lib/esm/imodel-components-react/color/HueSlider.d.ts.map +0 -1
  346. package/lib/esm/imodel-components-react/color/HueSlider.scss +0 -78
  347. package/lib/esm/imodel-components-react/color/SaturationPicker.d.ts +0 -23
  348. package/lib/esm/imodel-components-react/color/SaturationPicker.d.ts.map +0 -1
  349. package/lib/esm/imodel-components-react/color/SaturationPicker.js.map +0 -1
  350. package/lib/esm/imodel-components-react/color/SaturationPicker.scss +0 -36
  351. package/lib/esm/imodel-components-react/color/Swatch.d.ts +0 -25
  352. package/lib/esm/imodel-components-react/color/Swatch.d.ts.map +0 -1
  353. package/lib/esm/imodel-components-react/color/Swatch.scss +0 -22
  354. package/lib/esm/imodel-components-react/color/getCSSColorFromDef.d.ts +0 -7
  355. package/lib/esm/imodel-components-react/color/getCSSColorFromDef.d.ts.map +0 -1
  356. package/lib/esm/imodel-components-react/color/getCSSColorFromDef.js.map +0 -1
  357. package/lib/esm/imodel-components-react/editors/ColorEditor.d.ts +0 -42
  358. package/lib/esm/imodel-components-react/editors/ColorEditor.d.ts.map +0 -1
  359. package/lib/esm/imodel-components-react/editors/ColorEditor.js.map +0 -1
  360. package/lib/esm/imodel-components-react/editors/ColorEditor.scss +0 -18
  361. package/lib/esm/imodel-components-react/editors/WeightEditor.d.ts +0 -44
  362. package/lib/esm/imodel-components-react/editors/WeightEditor.d.ts.map +0 -1
  363. package/lib/esm/imodel-components-react/editors/WeightEditor.js.map +0 -1
  364. package/lib/esm/imodel-components-react/editors/WeightEditor.scss +0 -16
  365. package/lib/esm/imodel-components-react/inputs/QuantityInput.d.ts +0 -26
  366. package/lib/esm/imodel-components-react/inputs/QuantityInput.d.ts.map +0 -1
  367. package/lib/esm/imodel-components-react/inputs/QuantityNumberInput.d.ts +0 -47
  368. package/lib/esm/imodel-components-react/inputs/QuantityNumberInput.d.ts.map +0 -1
  369. package/lib/esm/imodel-components-react/inputs/QuantityNumberInput.js.map +0 -1
  370. package/lib/esm/imodel-components-react/inputs/QuantityNumberInput.scss +0 -106
  371. package/lib/esm/imodel-components-react/lineweight/Swatch.d.ts +0 -33
  372. package/lib/esm/imodel-components-react/lineweight/Swatch.d.ts.map +0 -1
  373. package/lib/esm/imodel-components-react/lineweight/Swatch.scss +0 -48
  374. package/lib/esm/imodel-components-react/lineweight/WeightPickerButton.d.ts +0 -59
  375. package/lib/esm/imodel-components-react/lineweight/WeightPickerButton.d.ts.map +0 -1
  376. package/lib/esm/imodel-components-react/navigationaids/Cube.d.ts +0 -46
  377. package/lib/esm/imodel-components-react/navigationaids/Cube.d.ts.map +0 -1
  378. package/lib/esm/imodel-components-react/navigationaids/Cube.js.map +0 -1
  379. package/lib/esm/imodel-components-react/navigationaids/CubeNavigationAid.d.ts.map +0 -1
  380. package/lib/esm/imodel-components-react/navigationaids/CubeNavigationAid.js.map +0 -1
  381. package/lib/esm/imodel-components-react/navigationaids/DrawingNavigationAid.d.ts +0 -144
  382. package/lib/esm/imodel-components-react/navigationaids/DrawingNavigationAid.d.ts.map +0 -1
  383. package/lib/esm/imodel-components-react/navigationaids/DrawingNavigationAid.js.map +0 -1
  384. package/lib/esm/imodel-components-react/navigationaids/DrawingNavigationAid.scss +0 -134
  385. package/lib/esm/imodel-components-react/quantityformat/FormatPanel.d.ts +0 -29
  386. package/lib/esm/imodel-components-react/quantityformat/FormatPanel.d.ts.map +0 -1
  387. package/lib/esm/imodel-components-react/quantityformat/FormatPanel.js.map +0 -1
  388. package/lib/esm/imodel-components-react/quantityformat/FormatPrecision.d.ts +0 -19
  389. package/lib/esm/imodel-components-react/quantityformat/FormatPrecision.d.ts.map +0 -1
  390. package/lib/esm/imodel-components-react/quantityformat/FormatPrecision.js.map +0 -1
  391. package/lib/esm/imodel-components-react/quantityformat/FormatSample.d.ts +0 -20
  392. package/lib/esm/imodel-components-react/quantityformat/FormatSample.d.ts.map +0 -1
  393. package/lib/esm/imodel-components-react/quantityformat/FormatSample.js.map +0 -1
  394. package/lib/esm/imodel-components-react/quantityformat/FormatType.d.ts +0 -19
  395. package/lib/esm/imodel-components-react/quantityformat/FormatType.d.ts.map +0 -1
  396. package/lib/esm/imodel-components-react/quantityformat/FormatUnitLabel.d.ts +0 -19
  397. package/lib/esm/imodel-components-react/quantityformat/FormatUnitLabel.d.ts.map +0 -1
  398. package/lib/esm/imodel-components-react/quantityformat/FormatUnits.d.ts +0 -21
  399. package/lib/esm/imodel-components-react/quantityformat/FormatUnits.d.ts.map +0 -1
  400. package/lib/esm/imodel-components-react/quantityformat/FormatUnits.js.map +0 -1
  401. package/lib/esm/imodel-components-react/quantityformat/MiscFormatOptions.d.ts +0 -23
  402. package/lib/esm/imodel-components-react/quantityformat/MiscFormatOptions.d.ts.map +0 -1
  403. package/lib/esm/imodel-components-react/quantityformat/MiscFormatOptions.js.map +0 -1
  404. package/lib/esm/imodel-components-react/quantityformat/QuantityFormatPanel.d.ts +0 -24
  405. package/lib/esm/imodel-components-react/quantityformat/QuantityFormatPanel.d.ts.map +0 -1
  406. package/lib/esm/imodel-components-react/quantityformat/QuantityFormatPanel.js.map +0 -1
  407. package/lib/esm/imodel-components-react/quantityformat/misc/DecimalPrecision.d.ts +0 -18
  408. package/lib/esm/imodel-components-react/quantityformat/misc/DecimalPrecision.d.ts.map +0 -1
  409. package/lib/esm/imodel-components-react/quantityformat/misc/DecimalSeparator.d.ts +0 -18
  410. package/lib/esm/imodel-components-react/quantityformat/misc/DecimalSeparator.d.ts.map +0 -1
  411. package/lib/esm/imodel-components-react/quantityformat/misc/DecimalSeparator.js.map +0 -1
  412. package/lib/esm/imodel-components-react/quantityformat/misc/FractionPrecision.d.ts +0 -17
  413. package/lib/esm/imodel-components-react/quantityformat/misc/FractionPrecision.d.ts.map +0 -1
  414. package/lib/esm/imodel-components-react/quantityformat/misc/FractionPrecision.js.map +0 -1
  415. package/lib/esm/imodel-components-react/quantityformat/misc/ScientificType.d.ts +0 -19
  416. package/lib/esm/imodel-components-react/quantityformat/misc/ScientificType.d.ts.map +0 -1
  417. package/lib/esm/imodel-components-react/quantityformat/misc/ScientificType.js.map +0 -1
  418. package/lib/esm/imodel-components-react/quantityformat/misc/SignOption.d.ts +0 -18
  419. package/lib/esm/imodel-components-react/quantityformat/misc/SignOption.d.ts.map +0 -1
  420. package/lib/esm/imodel-components-react/quantityformat/misc/SignOption.js.map +0 -1
  421. package/lib/esm/imodel-components-react/quantityformat/misc/StationSeparatorSelector.d.ts +0 -18
  422. package/lib/esm/imodel-components-react/quantityformat/misc/StationSeparatorSelector.d.ts.map +0 -1
  423. package/lib/esm/imodel-components-react/quantityformat/misc/StationSeparatorSelector.js.map +0 -1
  424. package/lib/esm/imodel-components-react/quantityformat/misc/StationSizeSelector.d.ts +0 -18
  425. package/lib/esm/imodel-components-react/quantityformat/misc/StationSizeSelector.d.ts.map +0 -1
  426. package/lib/esm/imodel-components-react/quantityformat/misc/StationSizeSelector.js.map +0 -1
  427. package/lib/esm/imodel-components-react/quantityformat/misc/ThousandsSelector.d.ts +0 -18
  428. package/lib/esm/imodel-components-react/quantityformat/misc/ThousandsSelector.d.ts.map +0 -1
  429. package/lib/esm/imodel-components-react/quantityformat/misc/ThousandsSelector.js.map +0 -1
  430. package/lib/esm/imodel-components-react/quantityformat/misc/ThousandsSeparator.d.ts +0 -18
  431. package/lib/esm/imodel-components-react/quantityformat/misc/ThousandsSeparator.d.ts.map +0 -1
  432. package/lib/esm/imodel-components-react/quantityformat/misc/ThousandsSeparator.js.map +0 -1
  433. package/lib/esm/imodel-components-react/quantityformat/misc/UnitDescr.d.ts +0 -24
  434. package/lib/esm/imodel-components-react/quantityformat/misc/UnitDescr.d.ts.map +0 -1
  435. package/lib/esm/imodel-components-react/quantityformat/misc/UnitDescr.js.map +0 -1
  436. package/lib/esm/imodel-components-react/timeline/BaseSolarDataProvider.d.ts +0 -53
  437. package/lib/esm/imodel-components-react/timeline/BaseSolarDataProvider.d.ts.map +0 -1
  438. package/lib/esm/imodel-components-react/timeline/BaseTimelineDataProvider.d.ts +0 -32
  439. package/lib/esm/imodel-components-react/timeline/BaseTimelineDataProvider.d.ts.map +0 -1
  440. package/lib/esm/imodel-components-react/timeline/BaseTimelineDataProvider.js.map +0 -1
  441. package/lib/esm/imodel-components-react/timeline/InlineEdit.d.ts +0 -27
  442. package/lib/esm/imodel-components-react/timeline/InlineEdit.d.ts.map +0 -1
  443. package/lib/esm/imodel-components-react/timeline/InlineEdit.js.map +0 -1
  444. package/lib/esm/imodel-components-react/timeline/PlayButton.d.ts +0 -12
  445. package/lib/esm/imodel-components-react/timeline/PlayButton.d.ts.map +0 -1
  446. package/lib/esm/imodel-components-react/timeline/PlayButton.js.map +0 -1
  447. package/lib/esm/imodel-components-react/timeline/Scrubber.d.ts +0 -54
  448. package/lib/esm/imodel-components-react/timeline/Scrubber.d.ts.map +0 -1
  449. package/lib/esm/imodel-components-react/timeline/Scrubber.js.map +0 -1
  450. package/lib/esm/imodel-components-react/timeline/SolarTimeline.d.ts.map +0 -1
  451. package/lib/esm/imodel-components-react/timeline/SolarTimeline.js.map +0 -1
  452. package/lib/esm/imodel-components-react/timeline/SpeedTimeline.d.ts +0 -16
  453. package/lib/esm/imodel-components-react/timeline/SpeedTimeline.d.ts.map +0 -1
  454. package/lib/esm/imodel-components-react/timeline/SpeedTimeline.js.map +0 -1
  455. package/lib/esm/imodel-components-react/timeline/SpeedTimeline.scss +0 -40
  456. package/lib/esm/imodel-components-react/timeline/TimelineComponent.d.ts.map +0 -1
  457. package/lib/esm/imodel-components-react/timeline/TimelineComponent.js.map +0 -1
  458. package/lib/esm/imodel-components-react/timeline/TimelineComponent.scss +0 -48
  459. package/lib/esm/imodel-components-react/timeline/interfaces.d.ts +0 -146
  460. package/lib/esm/imodel-components-react/timeline/interfaces.d.ts.map +0 -1
  461. package/lib/esm/imodel-components-react/timeline/interfaces.js.map +0 -1
  462. package/lib/esm/imodel-components-react/useTranslation.d.ts +0 -7
  463. package/lib/esm/imodel-components-react/useTranslation.d.ts.map +0 -1
  464. package/lib/esm/imodel-components-react/useTranslation.js.map +0 -1
  465. package/lib/esm/imodel-components-react/viewport/ViewportComponent.d.ts +0 -43
  466. package/lib/esm/imodel-components-react/viewport/ViewportComponent.d.ts.map +0 -1
  467. package/lib/esm/imodel-components-react/viewport/ViewportComponent.js.map +0 -1
  468. package/lib/esm/imodel-components-react/viewport/ViewportComponentEvents.d.ts +0 -119
  469. package/lib/esm/imodel-components-react/viewport/ViewportComponentEvents.d.ts.map +0 -1
  470. package/lib/esm/imodel-components-react/viewport/ViewportComponentEvents.js.map +0 -1
  471. package/lib/esm/imodel-components-react.d.ts +0 -80
  472. package/lib/esm/imodel-components-react.d.ts.map +0 -1
  473. package/lib/esm/imodel-components-react.js +0 -85
  474. package/lib/esm/imodel-components-react.js.map +0 -1
  475. /package/lib/{cjs/imodel-components-react → imodel-components-react}/UiIModelComponents.json +0 -0
  476. /package/lib/{cjs/imodel-components-react → imodel-components-react}/color/AlphaSlider.d.ts +0 -0
  477. /package/lib/{cjs/imodel-components-react → imodel-components-react}/color/AlphaSlider.scss +0 -0
  478. /package/lib/{cjs/imodel-components-react → imodel-components-react}/color/ColorPickerButton.d.ts +0 -0
  479. /package/lib/{cjs/imodel-components-react → imodel-components-react}/color/ColorPickerDialog.d.ts +0 -0
  480. /package/lib/{esm/imodel-components-react → imodel-components-react}/color/ColorPickerDialog.js +0 -0
  481. /package/lib/{cjs/imodel-components-react → imodel-components-react}/color/ColorPickerPopup.d.ts +0 -0
  482. /package/lib/{cjs/imodel-components-react → imodel-components-react}/color/ColorPickerPopup.scss +0 -0
  483. /package/lib/{cjs/imodel-components-react → imodel-components-react}/color/HueSlider.d.ts +0 -0
  484. /package/lib/{cjs/imodel-components-react → imodel-components-react}/color/HueSlider.scss +0 -0
  485. /package/lib/{cjs/imodel-components-react → imodel-components-react}/color/SaturationPicker.d.ts +0 -0
  486. /package/lib/{cjs/imodel-components-react → imodel-components-react}/color/SaturationPicker.scss +0 -0
  487. /package/lib/{cjs/imodel-components-react → imodel-components-react}/color/Swatch.d.ts +0 -0
  488. /package/lib/{cjs/imodel-components-react → imodel-components-react}/color/Swatch.scss +0 -0
  489. /package/lib/{cjs/imodel-components-react → imodel-components-react}/color/getCSSColorFromDef.d.ts +0 -0
  490. /package/lib/{esm/imodel-components-react → imodel-components-react}/color/getCSSColorFromDef.js +0 -0
  491. /package/lib/{cjs/imodel-components-react → imodel-components-react}/editors/ColorEditor.d.ts +0 -0
  492. /package/lib/{cjs/imodel-components-react → imodel-components-react}/editors/WeightEditor.d.ts +0 -0
  493. /package/lib/{cjs/imodel-components-react → imodel-components-react}/inputs/QuantityInput.d.ts +0 -0
  494. /package/lib/{cjs/imodel-components-react → imodel-components-react}/inputs/QuantityNumberInput.d.ts +0 -0
  495. /package/lib/{esm/imodel-components-react → imodel-components-react}/inputs/QuantityNumberInput.js +0 -0
  496. /package/lib/{cjs/imodel-components-react → imodel-components-react}/lineweight/Swatch.d.ts +0 -0
  497. /package/lib/{cjs/imodel-components-react → imodel-components-react}/lineweight/WeightPickerButton.d.ts +0 -0
  498. /package/lib/{cjs/imodel-components-react → imodel-components-react}/navigationaids/Cube.d.ts +0 -0
  499. /package/lib/{esm/imodel-components-react → imodel-components-react}/navigationaids/Cube.js +0 -0
  500. /package/lib/{cjs/imodel-components-react → imodel-components-react}/navigationaids/Cube.scss +0 -0
  501. /package/lib/{cjs/imodel-components-react → imodel-components-react}/navigationaids/DrawingNavigationAid.d.ts +0 -0
  502. /package/lib/{cjs/imodel-components-react → imodel-components-react}/quantityformat/FormatPanel.d.ts +0 -0
  503. /package/lib/{cjs/imodel-components-react → imodel-components-react}/quantityformat/FormatPrecision.d.ts +0 -0
  504. /package/lib/{cjs/imodel-components-react → imodel-components-react}/quantityformat/FormatSample.d.ts +0 -0
  505. /package/lib/{cjs/imodel-components-react → imodel-components-react}/quantityformat/FormatType.d.ts +0 -0
  506. /package/lib/{cjs/imodel-components-react → imodel-components-react}/quantityformat/FormatUnitLabel.d.ts +0 -0
  507. /package/lib/{cjs/imodel-components-react → imodel-components-react}/quantityformat/FormatUnits.d.ts +0 -0
  508. /package/lib/{cjs/imodel-components-react → imodel-components-react}/quantityformat/MiscFormatOptions.d.ts +0 -0
  509. /package/lib/{cjs/imodel-components-react → imodel-components-react}/quantityformat/QuantityFormatPanel.d.ts +0 -0
  510. /package/lib/{cjs/imodel-components-react → imodel-components-react}/quantityformat/misc/DecimalPrecision.d.ts +0 -0
  511. /package/lib/{cjs/imodel-components-react → imodel-components-react}/quantityformat/misc/DecimalSeparator.d.ts +0 -0
  512. /package/lib/{cjs/imodel-components-react → imodel-components-react}/quantityformat/misc/FractionPrecision.d.ts +0 -0
  513. /package/lib/{cjs/imodel-components-react → imodel-components-react}/quantityformat/misc/ScientificType.d.ts +0 -0
  514. /package/lib/{cjs/imodel-components-react → imodel-components-react}/quantityformat/misc/SignOption.d.ts +0 -0
  515. /package/lib/{cjs/imodel-components-react → imodel-components-react}/quantityformat/misc/StationSeparatorSelector.d.ts +0 -0
  516. /package/lib/{cjs/imodel-components-react → imodel-components-react}/quantityformat/misc/StationSizeSelector.d.ts +0 -0
  517. /package/lib/{cjs/imodel-components-react → imodel-components-react}/quantityformat/misc/ThousandsSelector.d.ts +0 -0
  518. /package/lib/{cjs/imodel-components-react → imodel-components-react}/quantityformat/misc/ThousandsSeparator.d.ts +0 -0
  519. /package/lib/{cjs/imodel-components-react → imodel-components-react}/quantityformat/misc/UnitDescr.d.ts +0 -0
  520. /package/lib/{esm/imodel-components-react → imodel-components-react}/quantityformat/misc/UnitDescr.js +0 -0
  521. /package/lib/{esm/imodel-components-react → imodel-components-react}/timeline/BaseSolarDataProvider.js +0 -0
  522. /package/lib/{esm/imodel-components-react → imodel-components-react}/timeline/BaseTimelineDataProvider.js +0 -0
  523. /package/lib/{cjs/imodel-components-react → imodel-components-react}/timeline/InlineEdit.d.ts +0 -0
  524. /package/lib/{esm/imodel-components-react → imodel-components-react}/timeline/InlineEdit.js +0 -0
  525. /package/lib/{cjs/imodel-components-react → imodel-components-react}/timeline/PlayButton.d.ts +0 -0
  526. /package/lib/{cjs/imodel-components-react → imodel-components-react}/timeline/SpeedTimeline.d.ts +0 -0
  527. /package/lib/{esm/imodel-components-react → imodel-components-react}/timeline/SpeedTimeline.js +0 -0
  528. /package/lib/{cjs/imodel-components-react → imodel-components-react}/timeline/TimelineComponent.scss +0 -0
  529. /package/lib/{cjs/imodel-components-react → imodel-components-react}/timeline/interfaces.d.ts +0 -0
  530. /package/lib/{esm/imodel-components-react → imodel-components-react}/timeline/interfaces.js +0 -0
  531. /package/lib/{cjs/imodel-components-react → imodel-components-react}/useTranslation.d.ts +0 -0
  532. /package/lib/{cjs/imodel-components-react → imodel-components-react}/viewport/ViewportComponent.d.ts +0 -0
@@ -1 +0,0 @@
1
- {"version":3,"file":"CubeNavigationAid.js","sourceRoot":"","sources":["../../../../src/imodel-components-react/navigationaids/CubeNavigationAid.tsx"],"names":[],"mappings":"AAAA;;;gGAGgG;AAChG;;GAEG;AAEH,OAAO,0BAA0B,CAAC;AAClC,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EACL,KAAK,EACL,SAAS,EACT,SAAS,EACT,QAAQ,EACR,QAAQ,EACR,OAAO,EACP,QAAQ,EACR,QAAQ,GACT,MAAM,sBAAs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C,QAAQ,EACb,QAAQ,EAAE,CAAC,CAAC,EACZ,KAAK,EAAE,KAAK,KACR,KAAK,EACT,OAAO,EAAE,IAAI,CAAC,YAAY;YAG1B,oBAAC,IAAI,IAAC,QAAQ,EAAE,eAAe,CAAC,WAAW,CAAC,GAAI,CAC5C,CACP,CAAC;IACJ,CAAC;CAMF","sourcesContent":["/*---------------------------------------------------------------------------------------------\n * Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n * See LICENSE.md in the project root for license terms and full copyright notice.\n *--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module NavigationAids\n */\n\nimport \"./CubeNavigationAid.scss\";\nimport classnames from \"classnames\";\nimport * as React from \"react\";\nimport type { XYAndZ } from \"@itwin/core-geometry\";\nimport {\n Angle,\n AxisIndex,\n AxisOrder,\n Geometry,\n Matrix3d,\n Point2d,\n Vector2d,\n Vector3d,\n} from \"@itwin/core-geometry\";\nimport type { IModelConnection, Viewport } from \"@itwin/core-frontend\";\nimport { IModelApp } from \"@itwin/core-frontend\";\nimport type { CommonProps, IconSpec, ListenerType } from \"@itwin/core-react\";\nimport { Icon } from \"@itwin/core-react\";\nimport { UiIModelComponents } from \"../UiIModelComponents\";\nimport { ViewportComponentEvents } from \"../viewport/ViewportComponentEvents\";\nimport { Cube, Face } from \"./Cube\";\nimport {\n SvgCaretDown,\n SvgCaretLeft,\n SvgCaretRight,\n SvgCaretUp,\n} from \"@itwin/itwinui-icons-react\";\n\n/** @public */\nexport enum CubeNavigationHitBoxX {\n None = 0,\n Right = 1,\n Left = -1,\n}\n\n/** @public */\nexport enum CubeNavigationHitBoxY {\n None = 0,\n Back = 1,\n Front = -1,\n}\n\n/** @public */\nexport enum CubeNavigationHitBoxZ {\n None = 0,\n Top = 1,\n Bottom = -1,\n}\n\ninterface CubeNavigationRotationMap {\n up: Face;\n down: Face;\n left: Face;\n right: Face;\n}\n\nconst cubeNavigationFaceLocs: { [key: string]: Vector3d } = {\n [Face.Left]: Vector3d.create(\n CubeNavigationHitBoxX.Left,\n CubeNavigationHitBoxY.None,\n CubeNavigationHitBoxZ.None\n ),\n [Face.Right]: Vector3d.create(\n CubeNavigationHitBoxX.Right,\n CubeNavigationHitBoxY.None,\n CubeNavigationHitBoxZ.None\n ),\n [Face.Back]: Vector3d.create(\n CubeNavigationHitBoxX.None,\n CubeNavigationHitBoxY.Back,\n CubeNavigationHitBoxZ.None\n ),\n [Face.Front]: Vector3d.create(\n CubeNavigationHitBoxX.None,\n CubeNavigationHitBoxY.Front,\n CubeNavigationHitBoxZ.None\n ),\n [Face.Bottom]: Vector3d.create(\n CubeNavigationHitBoxX.None,\n CubeNavigationHitBoxY.None,\n CubeNavigationHitBoxZ.Bottom\n ),\n [Face.Top]: Vector3d.create(\n CubeNavigationHitBoxX.None,\n CubeNavigationHitBoxY.None,\n CubeNavigationHitBoxZ.Top\n ),\n};\n\nconst cubeNavigationFaceRotations: { [key: string]: Matrix3d } = {\n [Face.Left]: Matrix3d.createRowValues(0, -1, 0, 0, 0, 1, -1, 0, 0),\n [Face.Right]: Matrix3d.createRowValues(0, 1, 0, 0, 0, 1, 1, 0, 0),\n [Face.Back]: Matrix3d.createRowValues(-1, 0, 0, 0, 0, 1, 0, 1, 0),\n [Face.Front]: Matrix3d.createRowValues(1, 0, 0, 0, 0, 1, 0, -1, 0),\n [Face.Bottom]: Matrix3d.createRowValues(1, 0, 0, 0, -1, 0, 0, 0, -1),\n [Face.Top]: Matrix3d.createRowValues(1, 0, 0, 0, 1, 0, 0, 0, 1),\n};\n\n// data relating Up/Down/Left/Right directions relative to every surface\nconst cubeNavigationRoutes: { [key: string]: CubeNavigationRotationMap } = {\n [Face.Front]: {\n up: Face.Top,\n down: Face.Bottom,\n left: Face.Left,\n right: Face.Right,\n },\n [Face.Back]: {\n up: Face.Top,\n down: Face.Bottom,\n left: Face.Right,\n right: Face.Left,\n },\n [Face.Top]: {\n up: Face.Back,\n down: Face.Front,\n left: Face.Left,\n right: Face.Right,\n },\n [Face.Bottom]: {\n up: Face.Front,\n down: Face.Back,\n left: Face.Left,\n right: Face.Right,\n },\n [Face.Right]: {\n up: Face.Top,\n down: Face.Bottom,\n left: Face.Front,\n right: Face.Back,\n },\n [Face.Left]: {\n up: Face.Top,\n down: Face.Bottom,\n left: Face.Back,\n right: Face.Front,\n },\n};\n\n/** The default tolerance (1.0e-6) is appropriate if very dirty viewing operations are expected. */\nconst DEFAULT_TOLERANCE = 1.0e-6;\n\n/** @internal */\nexport enum CubeHover {\n None = 0,\n Hover,\n Active,\n}\n\n/** Properties for the [[CubeNavigationAid]] component\n * @public\n */\n// eslint-disable-next-line deprecation/deprecation\nexport interface CubeNavigationAidProps extends CommonProps {\n iModelConnection: IModelConnection;\n viewport?: Viewport;\n\n // used only in testing\n\n /** @internal */\n onAnimationEnd?: () => void;\n /** @internal */\n animationTime?: number;\n favorHeadsUpRotation?: boolean;\n}\n\n/** @public */\ninterface CubeNavigationAidState {\n dragging: boolean;\n startRotMatrix: Matrix3d;\n endRotMatrix: Matrix3d;\n animation: number;\n hoverMap: { [key: string]: CubeHover };\n face: Face;\n}\n\n/** Cube Navigation Aid Component\n * @public\n */\nexport class CubeNavigationAid extends React.Component<\n CubeNavigationAidProps,\n CubeNavigationAidState\n> {\n private _start: Vector2d = Vector2d.createZero();\n public override readonly state: Readonly<CubeNavigationAidState> = {\n dragging: false,\n startRotMatrix: Matrix3d.createIdentity(),\n endRotMatrix: Matrix3d.createIdentity(),\n animation: 1,\n hoverMap: {},\n face: Face.Top,\n };\n\n private _lastTime: number | undefined;\n private _animationFrame: any;\n private _mounted: boolean = false;\n private _labels: { [key: string]: string } = {\n [Face.Right]: UiIModelComponents.translate(\"cube.right\"),\n [Face.Left]: UiIModelComponents.translate(\"cube.left\"),\n [Face.Back]: UiIModelComponents.translate(\"cube.back\"),\n [Face.Front]: UiIModelComponents.translate(\"cube.front\"),\n [Face.Top]: UiIModelComponents.translate(\"cube.top\"),\n [Face.Bottom]: UiIModelComponents.translate(\"cube.bottom\"),\n };\n\n public override componentDidMount() {\n this._mounted = true;\n ViewportComponentEvents.onViewRotationChangeEvent.addListener(\n this._handleViewRotationChangeEvent\n );\n\n // set initial rotation\n if (this.props.viewport) {\n const newMatrix = this.props.viewport.view.getRotation().clone();\n this.setState({\n startRotMatrix: newMatrix,\n endRotMatrix: newMatrix,\n animation: 1,\n });\n }\n }\n\n public override componentWillUnmount() {\n ViewportComponentEvents.onViewRotationChangeEvent.removeListener(\n this._handleViewRotationChangeEvent\n );\n clearTimeout(this._animationFrame);\n this._mounted = false;\n }\n\n // Synchronize with rotation coming from the Viewport\n private _handleViewRotationChangeEvent: ListenerType<\n typeof ViewportComponentEvents.onViewRotationChangeEvent\n > = (args) => {\n const { animation, dragging, endRotMatrix } = this.state;\n if (this.props.viewport === args.viewport && animation >= 1 && !dragging) {\n const newMatrix = this.props.viewport.view.getRotation().clone();\n if (!endRotMatrix.isAlmostEqual(newMatrix)) {\n this.setState({\n startRotMatrix: newMatrix,\n endRotMatrix: newMatrix,\n animation: 1,\n face: Face.None,\n });\n }\n }\n };\n\n private _animation = () => {\n const t = Date.now();\n const delta = this._lastTime ? t - this._lastTime : 16;\n this._lastTime = t;\n if (this.state.animation !== 1) {\n const animation = Math.min(\n 1,\n this.state.animation +\n delta / (1000 * (this.props.animationTime || 0.4))\n );\n\n if (this._mounted) {\n this.setState({ animation }, () => {\n this._animationFrame = setTimeout(this._animation, 16.667);\n });\n }\n } else {\n this._lastTime = undefined;\n this._animationEnd();\n }\n };\n\n private _animationEnd = () => {\n ViewportComponentEvents.setCubeMatrix(\n this.state.endRotMatrix,\n this.state.face,\n true\n );\n const startRotMatrix = this.state.endRotMatrix.clone();\n if (this._mounted) {\n this.setState({ startRotMatrix }, () => {\n if (this.props.onAnimationEnd) this.props.onAnimationEnd();\n });\n }\n };\n\n private static _animationFn = (t: number) =>\n t < 0.5 ? 2 * t ** 2 : -1 + (4 - 2 * t) * t;\n\n private static _isMatrixFace = (matrix: Matrix3d): boolean => {\n let sum = 0;\n for (const coff of matrix.coffs) {\n if (Geometry.isAlmostEqualNumber(Math.abs(coff), 1)) sum++;\n }\n // Assuming matrix is a proper rotation matrix:\n // if matrix viewing a face, there will be a total of 3 values either almost -1, or almost 1.\n return sum === 3;\n };\n\n public override render(): React.ReactNode {\n const { animation, startRotMatrix, endRotMatrix } = this.state;\n const visible =\n CubeNavigationAid._isMatrixFace(endRotMatrix) && animation === 1.0;\n const rotMatrix = CubeNavigationAid._interpolateRotMatrix(\n startRotMatrix,\n animation,\n endRotMatrix\n );\n if (rotMatrix !== startRotMatrix && rotMatrix !== endRotMatrix)\n ViewportComponentEvents.setCubeMatrix(rotMatrix, Face.None);\n\n const faces: { [key: string]: React.ReactNode } = {};\n for (const key in this._labels) {\n if (this._labels.hasOwnProperty(key)) {\n const f = key as Face;\n const label = this._labels[f];\n faces[f] = (\n <NavCubeFace\n face={f}\n label={label}\n hoverMap={this.state.hoverMap}\n onFaceCellClick={this._handleFaceCellClick}\n onFaceCellHoverChange={this._handleCellHoverChange}\n />\n );\n }\n }\n\n const cubeClassNames = classnames(\n \"nav-cube\",\n this.state.dragging && \"cube-dragging\"\n );\n\n const upTitle = this.getArrowTitle(Pointer.Up);\n const downTitle = this.getArrowTitle(Pointer.Down);\n const leftTitle = this.getArrowTitle(Pointer.Left);\n const rightTitle = this.getArrowTitle(Pointer.Right);\n\n return (\n <div\n className={classnames(\n \"components-cube-container\",\n this.props.className\n )}\n style={this.props.style}\n data-testid=\"components-cube-navigation-aid\"\n onMouseDown={this._handleBoxMouseDown}\n onTouchStart={this._handleBoxTouchStart}\n role=\"presentation\"\n >\n <div className={\"cube-element-container\"}>\n <Cube\n className={cubeClassNames}\n rotMatrix={rotMatrix}\n faces={faces}\n />\n </div>\n <PointerButton\n data-testid=\"cube-pointer-button-up\"\n visible={visible}\n pointerType={Pointer.Up}\n onArrowClick={this._onArrowClick}\n title={upTitle}\n />\n <PointerButton\n data-testid=\"cube-pointer-button-down\"\n visible={visible}\n pointerType={Pointer.Down}\n onArrowClick={this._onArrowClick}\n title={downTitle}\n />\n <PointerButton\n data-testid=\"cube-pointer-button-left\"\n visible={visible}\n pointerType={Pointer.Left}\n onArrowClick={this._onArrowClick}\n title={leftTitle}\n />\n <PointerButton\n data-testid=\"cube-pointer-button-right\"\n visible={visible}\n pointerType={Pointer.Right}\n onArrowClick={this._onArrowClick}\n title={rightTitle}\n />\n </div>\n );\n }\n\n private _handleCellHoverChange = (vect: Vector3d, state: CubeHover) => {\n if (this._isInteractionLocked()) {\n this.props.onAnimationEnd?.();\n return;\n }\n const hoverMap = this.state.hoverMap;\n hoverMap[`${vect.x}-${vect.y}-${vect.z}`] = state;\n this.setState({ hoverMap });\n };\n\n private _isInteractionLocked = () => {\n // Locked by markup\n if (\n undefined !== this.props.viewport &&\n this.props.viewport === IModelApp.toolAdmin.markupView\n ) {\n return true;\n }\n return false;\n };\n\n private static _getMatrixFace = (rotMatrix: Matrix3d): Face => {\n if (!CubeNavigationAid._isMatrixFace(rotMatrix)) {\n return Face.None;\n }\n\n if (\n rotMatrix.coffs[6] === cubeNavigationFaceRotations[Face.Top].coffs[6] &&\n rotMatrix.coffs[7] === cubeNavigationFaceRotations[Face.Top].coffs[7] &&\n rotMatrix.coffs[8] === cubeNavigationFaceRotations[Face.Top].coffs[8]\n )\n return Face.Top;\n\n if (\n rotMatrix.coffs[6] ===\n cubeNavigationFaceRotations[Face.Bottom].coffs[6] &&\n rotMatrix.coffs[7] ===\n cubeNavigationFaceRotations[Face.Bottom].coffs[7] &&\n rotMatrix.coffs[8] === cubeNavigationFaceRotations[Face.Bottom].coffs[8]\n )\n return Face.Bottom;\n\n if (\n rotMatrix.coffs[6] === cubeNavigationFaceRotations[Face.Left].coffs[6] &&\n rotMatrix.coffs[7] === cubeNavigationFaceRotations[Face.Left].coffs[7] &&\n rotMatrix.coffs[8] === cubeNavigationFaceRotations[Face.Left].coffs[8]\n )\n return Face.Left;\n\n if (\n rotMatrix.coffs[6] === cubeNavigationFaceRotations[Face.Right].coffs[6] &&\n rotMatrix.coffs[7] === cubeNavigationFaceRotations[Face.Right].coffs[7] &&\n rotMatrix.coffs[8] === cubeNavigationFaceRotations[Face.Right].coffs[8]\n )\n return Face.Right;\n\n if (\n rotMatrix.coffs[6] === cubeNavigationFaceRotations[Face.Back].coffs[6] &&\n rotMatrix.coffs[7] === cubeNavigationFaceRotations[Face.Back].coffs[7] &&\n rotMatrix.coffs[8] === cubeNavigationFaceRotations[Face.Back].coffs[8]\n )\n return Face.Back;\n\n if (\n rotMatrix.coffs[6] === cubeNavigationFaceRotations[Face.Front].coffs[6] &&\n rotMatrix.coffs[7] === cubeNavigationFaceRotations[Face.Front].coffs[7] &&\n rotMatrix.coffs[8] === cubeNavigationFaceRotations[Face.Front].coffs[8]\n )\n return Face.Front;\n\n return Face.None;\n };\n\n private static _interpolateRotMatrix = (\n start: Matrix3d,\n anim: number,\n end: Matrix3d\n ): Matrix3d => {\n if (anim === 0) return start;\n if (anim === 1 || start.isAlmostEqual(end)) return end;\n const startInverse = start.transpose();\n const diff = end.multiplyMatrixMatrix(startInverse);\n const angleAxis = diff.getAxisAndAngleOfRotation();\n if (angleAxis.ok) {\n const angle = Angle.createRadians(\n angleAxis.angle.radians * CubeNavigationAid._animationFn(anim)\n );\n const newDiff = Matrix3d.createRotationAroundVector(\n angleAxis.axis,\n angle\n );\n if (newDiff) {\n const newMatrix = newDiff.multiplyMatrixMatrix(start);\n return newMatrix;\n }\n }\n return end;\n };\n\n private static correctSmallNumber(value: number, tolerance: number): number {\n return Math.abs(value) < tolerance ? 0 : value;\n }\n\n /**\n * Snap coordinates of a vector to zero and to each other so that the vector prefers to be\n * * perpendicular to a face of the unit cube.\n * * or pass through a nearby vertex or edge of the unit cube.\n * @param zVector existing z vector.\n * @param tolerance tolerance to determine if a z vector component is close to zero or 1.\n */\n private static snapVectorToCubeFeatures(\n zVector: XYAndZ,\n tolerance: number\n ): Vector3d {\n const x = CubeNavigationAid.correctSmallNumber(zVector.x, tolerance);\n let y = CubeNavigationAid.correctSmallNumber(zVector.y, tolerance);\n let z = CubeNavigationAid.correctSmallNumber(zVector.z, tolerance);\n\n const xx = x === -0 ? Math.abs(x) : x;\n const yy = y === -0 ? Math.abs(y) : y;\n const zz = z === -0 ? Math.abs(z) : z;\n\n // adjust any adjacent pair of near equal values to the first.\n if (Geometry.isSameCoordinate(xx, yy, tolerance)) {\n y = Geometry.split3WaySign(y, -xx, xx, xx);\n }\n if (Geometry.isSameCoordinate(yy, zz, tolerance)) {\n z = Geometry.split3WaySign(z, -yy, yy, yy);\n }\n if (Geometry.isSameCoordinate(xx, zz, tolerance)) {\n z = Geometry.split3WaySign(z, -xx, xx, xx);\n }\n return Vector3d.create(x, y, z);\n }\n\n /**\n * Adjust a worldToView matrix to favor both\n * * direct view at faces, edges, and corners of a view cube.\n * * heads up\n * @param worldToView candidate matrix\n * @param tolerance tolerance for cleaning up fuzz. The default (1.0e-6) is appropriate if very dirty viewing operations are expected.\n * @param result optional result.\n */\n private static snapWorldToViewMatrixToCubeFeatures(\n worldToView: Matrix3d,\n tolerance: number,\n result?: Matrix3d,\n favorHeadsUpRotation?: boolean\n ): Matrix3d {\n const oldZ = worldToView.rowZ();\n const newZ = CubeNavigationAid.snapVectorToCubeFeatures(oldZ, tolerance);\n const headsUp = !!favorHeadsUpRotation;\n // If newZ is true up or down, it will have true 0 for x and y.\n // special case this to take x direction from the input.\n // This methodology results in always \"righting\" the face when rotation from an upside-down cube.\n // The behavior was made opt-in in response to https://github.com/iTwin/appui/issues/259\n if (!headsUp || (newZ.x === 0.0 && newZ.y === 0)) {\n const perpVector = worldToView.rowX();\n result = Matrix3d.createRigidFromColumns(\n newZ,\n perpVector,\n AxisOrder.ZXY,\n result\n )!;\n } else {\n result = Matrix3d.createRigidViewAxesZTowardsEye(\n newZ.x,\n newZ.y,\n newZ.z,\n result\n );\n }\n if (result) result.transposeInPlace();\n return result;\n }\n\n private getArrowRotationAndFace(arrow: Pointer): {\n newRotation: Matrix3d;\n face: Face;\n } {\n const localRotationAxis = Vector3d.create(0, 0, 0);\n switch (arrow) {\n case Pointer.Up:\n localRotationAxis.x = -1.0;\n break;\n case Pointer.Down:\n localRotationAxis.x = 1.0;\n break;\n case Pointer.Left:\n localRotationAxis.y = -1.0;\n break;\n default:\n localRotationAxis.y = 1.0;\n break;\n }\n const localRotation = Matrix3d.createRotationAroundVector(\n localRotationAxis,\n Angle.createDegrees(-90)\n )!;\n const newRotation = localRotation.multiplyMatrixMatrix(\n this.state.endRotMatrix\n );\n CubeNavigationAid.snapWorldToViewMatrixToCubeFeatures(\n newRotation,\n DEFAULT_TOLERANCE,\n newRotation,\n this.props.favorHeadsUpRotation\n );\n const face = CubeNavigationAid._getMatrixFace(newRotation);\n return { newRotation, face };\n }\n\n private _onArrowClick = (arrow: Pointer) => {\n if (this._isInteractionLocked()) {\n this.props.onAnimationEnd?.();\n return;\n }\n const { newRotation, face } = this.getArrowRotationAndFace(arrow);\n this._animateRotation(newRotation, face);\n };\n\n private getArrowTitle(arrow: Pointer) {\n const { face } = this.getArrowRotationAndFace(arrow);\n return this._labels[face];\n }\n\n private _lastClientXY: Vector2d = Vector2d.createZero();\n private _processDrag(mousePos: Vector2d) {\n if (!this._start.isAlmostEqual(mousePos)) {\n const movement = mousePos.minus(this._lastClientXY);\n const diff = movement.scale(0.05);\n\n const yaw = Angle.createRadians(diff.x);\n const pitch = Angle.createRadians(diff.y);\n\n const matX = Matrix3d.createRotationAroundAxisIndex(AxisIndex.X, pitch);\n const matZ = Matrix3d.createRotationAroundAxisIndex(AxisIndex.Z, yaw);\n\n const mat = matX\n .multiplyMatrixMatrix(this.state.startRotMatrix)\n .multiplyMatrixMatrix(matZ);\n this._setRotation(mat, CubeNavigationAid._getMatrixFace(mat));\n if (!this.state.dragging) this.setState({ dragging: true });\n }\n this._lastClientXY = mousePos;\n }\n\n private _handleBoxMouseDown = (event: any) => {\n if (this._isInteractionLocked()) {\n this.props.onAnimationEnd?.();\n return;\n }\n event.preventDefault();\n // only start listening after drag is confirmed. Ie. the 3D box is clicked.\n window.addEventListener(\"mousemove\", this._onMouseMove, false);\n window.addEventListener(\"mouseup\", this._onMouseUp, false);\n this._lastClientXY = Vector2d.create(event.clientX, event.clientY);\n this._start = this._lastClientXY;\n };\n\n private _onMouseMove = (event: MouseEvent) => {\n const mousePos = Vector2d.create(event.clientX, event.clientY);\n this._processDrag(mousePos);\n };\n\n private _onMouseUp = () => {\n if (this.state.dragging) {\n this.setState({ dragging: false });\n ViewportComponentEvents.setCubeMatrix(\n this.state.endRotMatrix,\n CubeNavigationAid._getMatrixFace(this.state.endRotMatrix),\n true\n );\n }\n\n // remove so event only triggers after this.onMouseStartDrag\n window.removeEventListener(\"mousemove\", this._onMouseMove);\n window.removeEventListener(\"mouseup\", this._onMouseUp);\n };\n\n private _handleBoxTouchStart = (event: any) => {\n if (this._isInteractionLocked()) {\n this.props.onAnimationEnd?.();\n return;\n }\n if (1 !== event.targetTouches.length) return;\n window.addEventListener(\"touchmove\", this._onTouchMove, false);\n window.addEventListener(\"touchend\", this._onTouchEnd, false);\n this._lastClientXY = Vector2d.create(\n event.targetTouches[0].clientX,\n event.targetTouches[0].clientY\n );\n this._start = this._lastClientXY;\n };\n\n private _onTouchMove = (event: TouchEvent) => {\n if (1 !== event.targetTouches.length) return;\n const mousePos = Vector2d.create(\n event.targetTouches[0].clientX,\n event.targetTouches[0].clientY\n );\n this._processDrag(mousePos);\n };\n\n private _onTouchEnd = (event: TouchEvent) => {\n if (0 !== event.targetTouches.length) return;\n\n if (this.state.dragging) {\n this.setState({ dragging: false });\n ViewportComponentEvents.setCubeMatrix(\n this.state.endRotMatrix,\n CubeNavigationAid._getMatrixFace(this.state.endRotMatrix),\n true\n );\n }\n\n window.removeEventListener(\"touchmove\", this._onTouchMove);\n window.removeEventListener(\"touchend\", this._onTouchEnd);\n };\n\n private _handleFaceCellClick = (pos: Vector3d, face: Face) => {\n if (this._isInteractionLocked()) {\n this.props.onAnimationEnd?.();\n return;\n }\n const { endRotMatrix } = this.state;\n let rotMatrix = Matrix3d.createRigidViewAxesZTowardsEye(\n pos.x,\n pos.y,\n pos.z\n ).inverse();\n if (rotMatrix) {\n // if isMatrixFace and user is clicking on top/bottom, the current matrix face must be top or bottom\n if (\n !CubeNavigationAid._isMatrixFace(endRotMatrix) &&\n (face === Face.Top || face === Face.Bottom)\n ) {\n const angleAxis = endRotMatrix.getAxisAndAngleOfRotation();\n if (angleAxis.ok) {\n const xAx = endRotMatrix.columnX();\n const a = Math.atan2(xAx.y, xAx.x);\n const r = (Math.round((a * 2) / Math.PI) * Math.PI) / 2; // round to quarter turn intervals\n const rot = Matrix3d.createRotationAroundAxisIndex(\n AxisIndex.Z,\n Angle.createRadians(r)\n );\n rotMatrix = rot.multiplyMatrixMatrix(rotMatrix);\n }\n }\n this._animateRotation(rotMatrix, face);\n }\n window.removeEventListener(\"mousemove\", this._onMouseMove);\n };\n\n private _animateRotation = (endRotMatrix: Matrix3d, face: Face) => {\n if (this.state.endRotMatrix.isAlmostEqual(endRotMatrix)) return;\n // set animation variables, let css transitions animate it.\n this._animationFrame = setTimeout(this._animation, 16.667);\n this.setState((prevState) => ({\n startRotMatrix: prevState.endRotMatrix,\n endRotMatrix,\n animation: 0,\n face,\n }));\n };\n\n private _setRotation = (endRotMatrix: Matrix3d, face: Face) => {\n ViewportComponentEvents.setCubeMatrix(endRotMatrix, face);\n // set variables, with animTime at 0 to prevent animation.\n this.setState({\n startRotMatrix: endRotMatrix,\n endRotMatrix,\n animation: 1,\n face,\n });\n };\n}\n\n/** @internal */\nexport interface NavCubeFaceProps\n extends React.AllHTMLAttributes<HTMLDivElement> {\n face: Face;\n label: string;\n hoverMap: { [key: string]: CubeHover };\n onFaceCellClick: (vector: Vector3d, face: Face) => void;\n onFaceCellHoverChange: (vector: Vector3d, state: CubeHover) => void;\n}\n\n/** @internal */\nexport class NavCubeFace extends React.Component<NavCubeFaceProps> {\n private includeCell(vector: Vector3d): boolean {\n const { x, y, z } = vector;\n const omittedCell =\n (y === 0 && x !== 0 && z !== 0) ||\n (y !== 0 && x === 0 && z !== 0) ||\n (y !== 0 && x !== 0 && z === 0);\n return !omittedCell;\n }\n public override render(): React.ReactNode {\n const { face, hoverMap, onFaceCellClick, onFaceCellHoverChange, label } =\n this.props;\n return (\n <div className=\"nav-cube-face\" data-testid=\"nav-cube-face\">\n {[-1, 0, 1].map((y: number) => {\n return (\n <FaceRow key={y} center={y === 0}>\n {[-1, 0, 1].map((x: number) => {\n const vector = NavCubeFace.faceCellToPos(face, x, y);\n if (this.includeCell(vector)) {\n // return a fully functional cell\n return (\n <FaceCell\n key={x}\n onFaceCellHoverChange={onFaceCellHoverChange}\n onFaceCellClick={onFaceCellClick}\n hoverMap={hoverMap}\n vector={vector}\n face={face}\n center={x === 0}\n >\n {x === 0 && y === 0 && label}\n </FaceCell>\n );\n } else {\n // return a placeholder cell\n return (\n <FaceCell\n key={x}\n vector={vector}\n face={face}\n center={x === 0}\n />\n );\n }\n })}\n </FaceRow>\n );\n })}\n </div>\n );\n }\n public static faceCellToPos = (face: Face, x: number, y: number) => {\n const faceVect = cubeNavigationFaceLocs[face];\n const route = cubeNavigationRoutes[face];\n\n const faceX = x < 0 ? route.left : x > 0 ? route.right : Face.None;\n const xVect =\n faceX !== Face.None\n ? cubeNavigationFaceLocs[faceX]\n : Vector3d.createZero();\n\n const faceY = y < 0 ? route.up : y > 0 ? route.down : Face.None;\n const yVect =\n faceY !== Face.None\n ? cubeNavigationFaceLocs[faceY]\n : Vector3d.createZero();\n\n return faceVect.plus(xVect).plus(yVect);\n };\n}\n\ninterface FaceRowProps extends React.AllHTMLAttributes<HTMLDivElement> {\n center?: boolean;\n}\n\nclass FaceRow extends React.Component<FaceRowProps> {\n public override render(): React.ReactNode {\n const { center, children, ...props } = this.props;\n const classNames = classnames(\"face-row\", center && \"cube-center\");\n return (\n <div className={classNames} {...props}>\n {children}\n </div>\n );\n }\n}\n\n/** @internal */\nexport interface FaceCellProps extends React.AllHTMLAttributes<HTMLDivElement> {\n center?: boolean;\n onFaceCellClick?: (vector: Vector3d, face: Face) => void;\n onFaceCellHoverChange?: (vector: Vector3d, state: CubeHover) => void;\n hoverMap?: { [key: string]: CubeHover };\n vector: Vector3d;\n face: Face;\n}\n\n/** @internal */\nexport class FaceCell extends React.Component<FaceCellProps> {\n private _startMouse: Point2d | undefined;\n public override render(): React.ReactNode {\n const {\n center,\n children,\n onFaceCellClick,\n onFaceCellHoverChange,\n hoverMap,\n face,\n vector,\n ...props\n } = this.props;\n const { x, y, z } = vector;\n const n = `${x}-${y}-${z}`;\n const hover = hoverMap && hoverMap[n] === CubeHover.Hover;\n const active = hoverMap && hoverMap[n] === CubeHover.Active;\n const classNames = classnames(\n \"face-cell\",\n center && \"cube-center\",\n hover && \"cube-hover\",\n active && \"cube-active\"\n );\n\n return (\n <div\n onMouseDown={this._handleMouseDown}\n onMouseUp={this._handleMouseUp}\n // eslint-disable-next-line jsx-a11y/mouse-events-have-key-events\n onMouseOver={this._handleMouseOver}\n // eslint-disable-next-line jsx-a11y/mouse-events-have-key-events\n onMouseOut={this._handleMouseOut}\n onTouchStart={this._handleTouchStart}\n onTouchEnd={this._handleTouchEnd}\n data-testid={`nav-cube-face-cell-${face}-${n}`}\n className={classNames}\n role=\"presentation\"\n {...props}\n >\n {children}\n </div>\n );\n }\n private _handleMouseOver = () => {\n const { vector } = this.props;\n this.props.onFaceCellHoverChange &&\n this.props.onFaceCellHoverChange(vector, CubeHover.Hover);\n };\n private _handleMouseOut = () => {\n const { vector } = this.props;\n this.props.onFaceCellHoverChange &&\n this.props.onFaceCellHoverChange(vector, CubeHover.None);\n };\n private _handleMouseDown = (event: React.MouseEvent) => {\n const { clientX, clientY } = event;\n this.handlePointerDown(clientX, clientY);\n };\n private _handleMouseUp = (event: React.MouseEvent) => {\n const { clientX, clientY } = event;\n this.handlePointerUp(clientX, clientY);\n };\n\n private _handleTouchStart = (event: React.TouchEvent<HTMLDivElement>) => {\n event.preventDefault();\n event.targetTouches.length === 1 &&\n this.handlePointerDown(\n event.targetTouches[0].clientX,\n event.targetTouches[0].clientY\n );\n };\n\n private _handleTouchEnd = (event: React.TouchEvent<HTMLDivElement>) => {\n event.preventDefault();\n event.changedTouches.length === 1 &&\n this.handlePointerUp(\n event.changedTouches[0].clientX,\n event.changedTouches[0].clientY\n );\n };\n\n private handlePointerDown(x: number, y: number) {\n const { vector } = this.props;\n this._startMouse = Point2d.create(x, y);\n this.props.onFaceCellHoverChange &&\n this.props.onFaceCellHoverChange(vector, CubeHover.Active);\n }\n\n private handlePointerUp(x: number, y: number) {\n const { vector, face } = this.props;\n this.props.onFaceCellHoverChange &&\n this.props.onFaceCellHoverChange(vector, CubeHover.None);\n const mouse = Point2d.create(x, y);\n if (this._startMouse && this._startMouse.isAlmostEqual(mouse)) {\n const isFace =\n Math.abs(vector.x) + Math.abs(vector.y) + Math.abs(vector.z) === 1;\n this.props.onFaceCellClick &&\n this.props.onFaceCellClick(vector, isFace ? face : Face.None);\n }\n }\n}\n\nenum Pointer {\n None = 0,\n Up,\n Down,\n Left,\n Right,\n}\n\n// eslint-disable-next-line deprecation/deprecation\nconst pointerIconSpec: { [key: number]: IconSpec } = {\n [Pointer.Up]: <SvgCaretDown />,\n [Pointer.Down]: <SvgCaretUp />,\n [Pointer.Left]: <SvgCaretRight />,\n [Pointer.Right]: <SvgCaretLeft />,\n};\n\nconst pointerClass: { [key: number]: string } = {\n [Pointer.Up]: \"cube-up\",\n [Pointer.Down]: \"cube-down\",\n [Pointer.Left]: \"cube-left\",\n [Pointer.Right]: \"cube-right\",\n};\n\ninterface PointerProps extends React.AllHTMLAttributes<HTMLDivElement> {\n visible: boolean;\n pointerType: Pointer;\n onArrowClick(pointer: Pointer): void;\n title: string;\n [\"data-testid\"]?: string;\n}\n\nclass PointerButton extends React.Component<PointerProps> {\n public override render(): React.ReactNode {\n const { visible, pointerType, onArrowClick, title, ...props } = this.props;\n const classes = classnames(\n \"cube-pointer\",\n \"icon\",\n pointerClass[pointerType],\n visible && \"cube-visible\"\n );\n\n return (\n // eslint-disable-next-line jsx-a11y/click-events-have-key-events\n <div\n className={classes}\n role=\"button\"\n tabIndex={-1}\n title={title}\n {...props}\n onClick={this._handleClick}\n >\n {/* eslint-disable-next-line deprecation/deprecation */}\n <Icon iconSpec={pointerIconSpec[pointerType]} />\n </div>\n );\n }\n private _handleClick = (event: React.MouseEvent) => {\n const { pointerType } = this.props;\n event.preventDefault();\n this.props.onArrowClick(pointerType);\n };\n}\n"]}
@@ -1,144 +0,0 @@
1
- /** @packageDocumentation
2
- * @module NavigationAids
3
- */
4
- import "./DrawingNavigationAid.scss";
5
- import * as React from "react";
6
- import { Matrix3d, Point2d, Point3d, Vector3d } from "@itwin/core-geometry";
7
- import type { IModelConnection, ViewManager, Viewport, ViewState } from "@itwin/core-frontend";
8
- import { ScreenViewport } from "@itwin/core-frontend";
9
- import type { CommonProps } from "@itwin/core-react";
10
- /**
11
- * Enum for mode that minimap is currently in
12
- * @internal
13
- */
14
- export declare enum MapMode {
15
- Opened = "map-opened",
16
- Closed = "map-closed"
17
- }
18
- /** Properties for the [[DrawingNavigationAid]] component
19
- * @public
20
- */
21
- export interface DrawingNavigationAidProps extends CommonProps {
22
- iModelConnection: IModelConnection;
23
- viewport?: Viewport;
24
- /** @internal */
25
- animationTime?: number;
26
- /** @internal */
27
- openSize?: Vector3d;
28
- /** @internal */
29
- closeSize?: Vector3d;
30
- /** @internal */
31
- initialMapMode?: MapMode;
32
- /** @internal */
33
- onAnimationEnd?: () => void;
34
- /** @internal */
35
- initialRotateMinimapWithView?: boolean;
36
- /** @internal */
37
- initialView?: ViewState;
38
- /** @internal */
39
- viewManagerOverride?: ViewManager;
40
- /** @internal */
41
- screenViewportOverride?: typeof ScreenViewport;
42
- }
43
- /** @internal */
44
- interface DrawingNavigationAidState {
45
- startOrigin: Point3d;
46
- origin: Point3d;
47
- extents: Vector3d;
48
- startRotation: Matrix3d;
49
- rotation: Matrix3d;
50
- startMapOrigin: Point3d;
51
- mapOrigin: Point3d;
52
- startMapExtents: Vector3d;
53
- mapExtents: Vector3d;
54
- mouseStart: Point2d;
55
- panningDirection: Vector3d;
56
- startDrawingZoom: number;
57
- drawingZoom: number;
58
- mode: MapMode;
59
- animation: number;
60
- isMoving: boolean;
61
- isPanning: boolean;
62
- viewId: string;
63
- view: ViewState | undefined;
64
- rotateMinimapWithView: boolean;
65
- }
66
- /** A Drawing Navigation Aid.
67
- * @public
68
- */
69
- export declare class DrawingNavigationAid extends React.Component<DrawingNavigationAidProps, DrawingNavigationAidState> {
70
- private _rootElement;
71
- private _viewContainerElement;
72
- private _viewElement;
73
- private _rootOffset;
74
- private _viewport;
75
- private _animationFrame;
76
- private _mounted;
77
- readonly state: Readonly<DrawingNavigationAidState>;
78
- constructor(props: DrawingNavigationAidProps);
79
- render(): React.ReactNode;
80
- private _isViewport3D;
81
- private _lastTime;
82
- private static _animationFn;
83
- private _animation;
84
- private _animationEnd;
85
- private _lastPanTime;
86
- private _panAnimation;
87
- componentDidMount(): void;
88
- componentWillUnmount(): void;
89
- private _handleViewRotationChangeEvent;
90
- private _updateFrustum;
91
- private _toggleRotationMode;
92
- private _handleKeyUp;
93
- private _lastClientXY;
94
- private _processWindowDrag;
95
- private _processWindowEndDrag;
96
- private _handleMouseDown;
97
- private _handleDrawingMouseDown;
98
- private _handleWindowMouseDown;
99
- private _handleMouseDrag;
100
- private _handleMouseDragEnd;
101
- private _handleWindowTouchStart;
102
- private _onTouchMove;
103
- private _onTouchEnd;
104
- /** @internal */
105
- static getDefaultClosedMapSize: () => Vector3d;
106
- /** @internal */
107
- static getDefaultOpenedMapSize: (paddingX?: number, paddingY?: number) => Vector3d;
108
- private _getClosedMapSize;
109
- private _getOpenedMapSize;
110
- private _openLargeMap;
111
- private _closeLargeMap;
112
- private _getPanVector;
113
- private _handleWheel;
114
- private _handleZoomIn;
115
- private _handleZoomOut;
116
- private _handleUnrotate;
117
- /** @internal */
118
- static findRotatedWindowDimensions: (extents: Vector3d, rotation: Matrix3d) => Vector3d;
119
- }
120
- /** @internal */
121
- export interface DrawingNavigationCanvasProps {
122
- view: ViewState | undefined;
123
- viewId?: string;
124
- origin: Point3d;
125
- extents: Vector3d;
126
- zoom: number;
127
- rotation: Matrix3d;
128
- viewManagerOverride?: ViewManager;
129
- screenViewportOverride?: typeof ScreenViewport;
130
- canvasSizeOverride?: boolean;
131
- }
132
- /** @internal */
133
- export declare class DrawingNavigationCanvas extends React.Component<DrawingNavigationCanvasProps> {
134
- private _canvasElement;
135
- private _vp?;
136
- render(): React.ReactNode;
137
- componentDidMount(): void;
138
- private customizeViewport;
139
- private _update;
140
- componentDidUpdate(oldProps: DrawingNavigationCanvasProps): void;
141
- componentWillUnmount(): void;
142
- }
143
- export {};
144
- //# sourceMappingURL=DrawingNavigationAid.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DrawingNavigationAid.d.ts","sourceRoot":"","sources":["../../../../src/imodel-components-react/navigationaids/DrawingNavigationAid.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,6BAA6B,CAAC;AAErC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAGL,QAAQ,EACR,OAAO,EACP,OAAO,EAEP,QAAQ,EACT,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EACV,gBAAgB,EAChB,WAAW,EACX,QAAQ,EACR,SAAS,EACV,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAa,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACjE,OAAO,KAAK,EAAE,WAAW,EAAgB,MAAM,mBAAmB,CAAC;AAcnE;;;GAGG;AACH,oBAAY,OAAO;IACjB,MAAM,eAAe;IACrB,MAAM,eAAe;CACtB;AAED;;GAEG;AAEH,MAAM,WAAW,yBAA0B,SAAQ,WAAW;IAC5D,gBAAgB,EAAE,gBAAgB,CAAC;IACnC,QAAQ,CAAC,EAAE,QAAQ,CAAC;IAIpB,gBAAg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QAAQ,CAKT;IAEF,OAAO,CAAC,iBAAiB,CAIvB;IAEF,OAAO,CAAC,iBAAiB,CAOvB;IAEF,OAAO,CAAC,aAAa,CAsBnB;IAEF,OAAO,CAAC,cAAc,CAoCpB;IAEF,OAAO,CAAC,aAAa,CA0CnB;IAEF,OAAO,CAAC,YAAY,CAqClB;IAEF,OAAO,CAAC,aAAa,CAGnB;IAEF,OAAO,CAAC,cAAc,CAGpB;IAEF,OAAO,CAAC,eAAe,CA2BrB;IAEF,gBAAgB;IAChB,OAAc,2BAA2B,YAC9B,QAAQ,YACP,QAAQ,cA2BlB;CACH;AAED,gBAAgB;AAChB,MAAM,WAAW,4BAA4B;IAC3C,IAAI,EAAE,SAAS,GAAG,SAAS,CAAC;IAC5B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,QAAQ,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,QAAQ,CAAC;IACnB,mBAAmB,CAAC,EAAE,WAAW,CAAC;IAClC,sBAAsB,CAAC,EAAE,OAAO,cAAc,CAAC;IAC/C,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAC9B;AAED,gBAAgB;AAChB,qBAAa,uBAAwB,SAAQ,KAAK,CAAC,SAAS,CAAC,4BAA4B,CAAC;IACxF,OAAO,CAAC,cAAc,CAAqC;IAC3D,OAAO,CAAC,GAAG,CAAC,CAAiB;IAEb,MAAM,IAAI,KAAK,CAAC,SAAS;IAUzB,iBAAiB;IAqBjC,OAAO,CAAC,iBAAiB;IAOzB,OAAO,CAAC,OAAO,CASb;IAEc,kBAAkB,CAAC,QAAQ,EAAE,4BAA4B;IA4CzD,oBAAoB;CAQrC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"DrawingNavigationAid.js","sourceRoot":"","sources":["../../../../src/imodel-components-react/navigationaids/DrawingNavigationAid.tsx"],"names":[],"mappings":"AAAA;;;gGAGgG;AAChG;;GAEG;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C,WAAW,CAAC,WAAW,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;oBAClC,KAAK,WAAW,CAAC,eAAe,CAAC,YAAY,CAAC,CAAC,CAAC,8BAA8B;oBAC9E,IAAI,CAAC,OAAO,EAAE,CAAC;gBACjB,CAAC;YACH,CAAC;iBAAM,IACL,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,YAAY,CAAC,QAAQ,CAAC,MAAM,CAAC;gBAChD,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,YAAY,CAAC,QAAQ,CAAC,OAAO,CAAC;gBAClD,IAAI,CAAC,KAAK,CAAC,IAAI,KAAK,QAAQ,CAAC,IAAI;gBACjC,CAAC,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,YAAY,CAAC,QAAQ,CAAC,QAAQ,CAAC,EACpD,CAAC;gBACD,IAAI,CAAC,OAAO,EAAE,CAAC;YACjB,CAAC;QACH,CAAC;IACH,CAAC;IAEe,oBAAoB;QAClC,IAAI,IAAI,CAAC,GAAG,EAAE,CAAC;YACb,MAAM,WAAW,GAAG,IAAI,CAAC,KAAK,CAAC,mBAAmB;gBAChD,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,mBAAmB;gBAChC,CAAC,CAAC,SAAS,CAAC,WAAW,CAAC;YAC1B,WAAW,CAAC,YAAY,CAAC,IAAI,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC;QAC3C,CAAC;IACH,CAAC;CACF","sourcesContent":["/*---------------------------------------------------------------------------------------------\n * Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n * See LICENSE.md in the project root for license terms and full copyright notice.\n *--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module NavigationAids\n */\n\nimport \"./DrawingNavigationAid.scss\";\nimport classnames from \"classnames\";\nimport * as React from \"react\";\nimport * as ReactDOM from \"react-dom\";\nimport { Key } from \"ts-key-enum\";\nimport {\n Constant,\n Geometry,\n Matrix3d,\n Point2d,\n Point3d,\n Point4d,\n Vector3d,\n} from \"@itwin/core-geometry\";\nimport type {\n IModelConnection,\n ViewManager,\n Viewport,\n ViewState,\n} from \"@itwin/core-frontend\";\nimport { IModelApp, ScreenViewport } from \"@itwin/core-frontend\";\nimport type { CommonProps, ListenerType } from \"@itwin/core-react\";\nimport { Icon } from \"@itwin/core-react\";\nimport { UiIModelComponents } from \"../UiIModelComponents\";\nimport { ViewportComponentEvents } from \"../viewport/ViewportComponentEvents\";\nimport {\n SvgAdd,\n SvgRemove,\n SvgRotateLeft,\n SvgSortUp,\n} from \"@itwin/itwinui-icons-react\";\n\n// cSpell:ignore Quaternion Quaternions unrotate\n/* eslint-disable jsx-a11y/click-events-have-key-events */\n\n/**\n * Enum for mode that minimap is currently in\n * @internal\n */\nexport enum MapMode {\n Opened = \"map-opened\",\n Closed = \"map-closed\",\n}\n\n/** Properties for the [[DrawingNavigationAid]] component\n * @public\n */\n// eslint-disable-next-line deprecation/deprecation\nexport interface DrawingNavigationAidProps extends CommonProps {\n iModelConnection: IModelConnection;\n viewport?: Viewport;\n\n // used only in testing\n\n /** @internal */\n animationTime?: number;\n /** @internal */\n openSize?: Vector3d;\n /** @internal */\n closeSize?: Vector3d;\n /** @internal */\n initialMapMode?: MapMode;\n /** @internal */\n onAnimationEnd?: () => void;\n /** @internal */\n initialRotateMinimapWithView?: boolean;\n /** @internal */\n initialView?: ViewState;\n /** @internal */\n viewManagerOverride?: ViewManager;\n /** @internal */\n screenViewportOverride?: typeof ScreenViewport;\n}\n\n/** @internal */\ninterface DrawingNavigationAidState {\n startOrigin: Point3d;\n origin: Point3d;\n extents: Vector3d;\n startRotation: Matrix3d;\n rotation: Matrix3d;\n\n startMapOrigin: Point3d;\n mapOrigin: Point3d;\n startMapExtents: Vector3d;\n mapExtents: Vector3d;\n\n mouseStart: Point2d;\n panningDirection: Vector3d;\n startDrawingZoom: number;\n drawingZoom: number;\n\n mode: MapMode;\n animation: number;\n\n isMoving: boolean;\n isPanning: boolean;\n\n viewId: string;\n view: ViewState | undefined;\n\n rotateMinimapWithView: boolean;\n}\n\n/** A Drawing Navigation Aid.\n * @public\n */\nexport class DrawingNavigationAid extends React.Component<\n DrawingNavigationAidProps,\n DrawingNavigationAidState\n> {\n private _rootElement = React.createRef<HTMLDivElement>();\n private _viewContainerElement = React.createRef<HTMLDivElement>();\n private _viewElement = React.createRef<HTMLDivElement>();\n private _rootOffset: DOMRect = DOMRect.fromRect({\n x: 0,\n y: 0,\n width: 0,\n height: 0,\n });\n private _viewport: Viewport | undefined;\n private _animationFrame: any;\n private _mounted: boolean = false;\n\n public override readonly state: Readonly<DrawingNavigationAidState>;\n\n constructor(props: DrawingNavigationAidProps) {\n super(props);\n const mode = props.initialMapMode || MapMode.Closed;\n const mapExtents =\n mode === MapMode.Closed\n ? this._getClosedMapSize()\n : this._getOpenedMapSize();\n const startMapExtents = mapExtents;\n\n this.state = {\n startOrigin: Point3d.createZero(),\n origin: Point3d.createZero(),\n extents: Vector3d.create(1, 1, 1),\n startRotation: Matrix3d.createIdentity(),\n rotation: Matrix3d.createIdentity(),\n\n startMapOrigin: Point3d.createZero(),\n mapOrigin: Point3d.createZero(),\n startMapExtents,\n mapExtents,\n\n mouseStart: Point2d.createZero(),\n panningDirection: Vector3d.createZero(),\n startDrawingZoom: 1.0,\n drawingZoom: 1.0,\n\n mode,\n animation: 1.0,\n\n viewId: props.initialView !== undefined ? props.initialView.id : \"\",\n view: props.initialView,\n\n isMoving: false,\n isPanning: false,\n rotateMinimapWithView:\n props.initialRotateMinimapWithView !== undefined\n ? props.initialRotateMinimapWithView\n : false,\n };\n }\n\n public override render(): React.ReactNode {\n const {\n startOrigin,\n origin,\n extents,\n startRotation,\n rotation,\n startMapOrigin,\n mapOrigin,\n startMapExtents,\n mapExtents,\n startDrawingZoom,\n drawingZoom,\n animation,\n viewId,\n mode,\n rotateMinimapWithView,\n } = this.state;\n\n const a = DrawingNavigationAid._animationFn(animation);\n const rot = Matrix3d.createFromQuaternion(\n Point4d.interpolateQuaternions(\n startRotation.toQuaternion(),\n a,\n rotation.toQuaternion()\n )\n );\n const or = startOrigin.interpolate(a, origin);\n const map = startMapOrigin.interpolate(a, mapOrigin);\n const sz = startMapExtents.interpolate(a, mapExtents);\n const dz = Geometry.interpolate(startDrawingZoom, a, drawingZoom);\n\n const rootStyle: React.CSSProperties = {\n width: sz.x,\n height: sz.y,\n ...this.props.style,\n };\n const is3D = this._isViewport3D();\n\n const tOr =\n rotateMinimapWithView || is3D\n ? rotation.multiplyVector(Vector3d.createFrom(or))\n : Vector3d.createFrom(or);\n const tMap =\n rotateMinimapWithView || is3D\n ? rotation.multiplyVector(Vector3d.createFrom(map))\n : Vector3d.createFrom(map);\n\n const tPosX = (tOr.x - extents.x / 2 - tMap.x) * dz + sz.x / 2;\n const tPosY = (-tOr.y - extents.y / 2 + tMap.y) * dz + sz.y / 2;\n const viewWindowStyle = {\n transform: `translate(${tPosX}px, ${tPosY}px)`,\n height: extents.y * dz,\n width: extents.x * dz,\n };\n if (!rotateMinimapWithView && !is3D)\n viewWindowStyle.transform =\n \"matrix3d(\" +\n `${rot.at(0, 0)}, ${rot.at(1, 0)}, ${rot.at(2, 0)}, 0, ` +\n `${rot.at(0, 1)}, ${rot.at(1, 1)}, ${rot.at(2, 1)}, 0, ` +\n `${rot.at(0, 2)}, ${rot.at(1, 2)}, ${rot.at(2, 2)}, 0, ` +\n `${tPosX}, ${tPosY}, 0, 1)`;\n const isAnimating =\n animation !== 1 && !startMapExtents.isExactEqual(mapExtents);\n if (mode === MapMode.Opened || isAnimating) {\n rootStyle.position = \"fixed\";\n rootStyle.right = window.innerWidth - this._rootOffset.right;\n rootStyle.top = this._rootOffset.top;\n }\n\n const halfExtents = extents.scale(0.5);\n const offset =\n rotateMinimapWithView || is3D\n ? Vector3d.createZero()\n : rotation.multiplyTransposeVector(halfExtents).minus(halfExtents);\n\n const e = sz.scale(1 / dz);\n const halfMapExtents = e.scale(0.5);\n const mapOffset =\n rotateMinimapWithView || is3D\n ? rotation.multiplyTransposeVector(halfMapExtents)\n : halfMapExtents;\n const viewManager = this.props.viewManagerOverride\n ? this.props.viewManagerOverride\n : IModelApp.viewManager;\n const screenViewport = this.props.screenViewportOverride\n ? this.props.screenViewportOverride\n : ScreenViewport;\n const nodes = (\n <div\n className={classnames(\n \"components-drawing-navigation-aid\",\n this.props.className\n )}\n data-testid=\"components-drawing-navigation-aid\"\n ref={this._rootElement}\n onWheel={this._handleWheel}\n onMouseDown={this._handleDrawingMouseDown}\n style={rootStyle}\n role=\"presentation\"\n >\n <DrawingNavigationCanvas\n view={this.state.view}\n viewManagerOverride={viewManager}\n screenViewportOverride={screenViewport}\n viewId={viewId}\n origin={map.plus(offset).minus(mapOffset)}\n extents={e}\n zoom={dz}\n rotation={\n rotateMinimapWithView || is3D ? rotation : Matrix3d.createIdentity()\n }\n />\n <div\n className=\"drawing-container\"\n data-testid=\"drawing-container\"\n ref={this._viewContainerElement}\n >\n <div\n className=\"drawing-view-window\"\n data-testid=\"drawing-view-window\"\n onMouseDown={this._handleWindowMouseDown}\n onTouchStart={this._handleWindowTouchStart}\n style={viewWindowStyle}\n ref={this._viewElement}\n role=\"presentation\"\n />\n {!is3D && (\n <div\n className={classnames(\"toggle-rotate-style\", \"icon\", {\n checked: rotateMinimapWithView,\n })}\n data-testid=\"toggle-rotate-style\"\n style={\n mode === MapMode.Closed && !isAnimating\n ? { bottom: 2, left: 2 }\n : {}\n }\n title={UiIModelComponents.translate(\"drawing.rotateStyle\")}\n onClick={this._toggleRotationMode}\n role=\"presentation\"\n >\n {/* eslint-disable-next-line deprecation/deprecation */}\n <Icon iconSpec={<SvgRotateLeft />} />\n </div>\n )}\n {!rot.isIdentity && (\n <div\n className=\"unrotate-button\"\n data-testid=\"drawing-unrotate-button\"\n style={mode === MapMode.Closed && !isAnimating ? { top: 2 } : {}}\n onClick={this._handleUnrotate}\n role=\"button\"\n tabIndex={-1}\n >\n {UiIModelComponents.translate(\"drawing.unrotate\")}\n </div>\n )}\n {mode === MapMode.Opened && !isAnimating && (\n <>\n <div\n className=\"close\"\n data-testid=\"drawing-close-button\"\n onClick={this._closeLargeMap}\n role=\"button\"\n tabIndex={-1}\n >\n <div className=\"close-icon icon\">\n {/* eslint-disable-next-line deprecation/deprecation */}\n <Icon iconSpec={<SvgSortUp />} />\n </div>\n </div>\n <div className=\"zoom\">\n <div\n className=\"zoom-button icon\"\n data-testid=\"drawing-zoom-in-button\"\n onClick={this._handleZoomIn}\n role=\"button\"\n tabIndex={-1}\n >\n {/* eslint-disable-next-line deprecation/deprecation */}\n <Icon iconSpec={<SvgAdd />} />\n </div>\n <div\n className=\"zoom-button icon\"\n data-testid=\"drawing-zoom-out-button\"\n onClick={this._handleZoomOut}\n role=\"button\"\n tabIndex={-1}\n >\n {/* eslint-disable-next-line deprecation/deprecation */}\n <Icon iconSpec={<SvgRemove />} />\n </div>\n </div>\n </>\n )}\n </div>\n </div>\n );\n if (\n mode === MapMode.Closed &&\n (animation === 1.0 || startMapExtents.isExactEqual(mapExtents))\n ) {\n return nodes;\n } else {\n let drawingPortal = document.querySelector(\"#components-drawing-portal\");\n if (!drawingPortal) {\n drawingPortal = document.createElement(\"div\");\n drawingPortal.id = \"components-drawing-portal\";\n document.body.appendChild(drawingPortal);\n }\n return ReactDOM.createPortal(nodes, drawingPortal);\n }\n }\n\n private _isViewport3D = () => {\n return this.state.view !== undefined && this.state.view.is3d();\n };\n\n private _lastTime: number | undefined;\n\n private static _animationFn = (t: number) =>\n t < 0.5 ? 2 * t ** 2 : -1 + (4 - 2 * t) * t;\n\n private _animation = () => {\n const t = Date.now();\n const delta = this._lastTime ? t - this._lastTime : 16;\n this._lastTime = t;\n if (this.state.animation !== 1) {\n const animation = Math.min(\n 1,\n this.state.animation +\n delta / (1000 * (this.props.animationTime || 0.4))\n );\n this._updateFrustum();\n\n if (this._mounted) {\n this.setState({ animation }, () => {\n this._animationFrame = setTimeout(this._animation, 16.667);\n });\n }\n } else {\n this._lastTime = undefined;\n this._animationEnd();\n }\n };\n\n private _animationEnd = () => {\n const hasViewportMoved =\n !this.state.origin.isAlmostEqual(this.state.startOrigin) ||\n !this.state.rotation.isAlmostEqual(this.state.startRotation);\n const startMapOrigin = Point3d.createFrom(this.state.mapOrigin);\n const startMapExtents = Vector3d.createFrom(this.state.mapExtents);\n const startDrawingZoom = this.state.drawingZoom;\n const startOrigin = this.state.origin;\n const startRotation = this.state.rotation;\n if (this._mounted) {\n this.setState(\n {\n startMapOrigin,\n startDrawingZoom,\n startOrigin,\n startRotation,\n startMapExtents,\n },\n () => {\n if (this.props.onAnimationEnd) this.props.onAnimationEnd();\n if (hasViewportMoved) this._updateFrustum(true);\n }\n );\n }\n };\n\n private _lastPanTime: number | undefined;\n\n private _panAnimation = () => {\n const t = Date.now();\n if (this._lastPanTime === undefined) this._lastPanTime = t - 16.667;\n const delta = t - this._lastPanTime;\n this._lastPanTime = t;\n if (!this.state.panningDirection.isAlmostZero && this.state.isMoving) {\n const { panningDirection } = this.state;\n const offset = panningDirection.scale(\n delta / 1000 / this.state.drawingZoom\n );\n const mapOrigin = this.state.mapOrigin.plus(offset);\n\n const origin = this.state.origin.plus(offset);\n this._updateFrustum();\n if (this._mounted) {\n this.setState({ mapOrigin, origin, panningDirection }, () => {\n this._animationFrame = setTimeout(this._panAnimation, 16.667);\n });\n }\n } else {\n this._lastPanTime = undefined;\n this._updateFrustum(true);\n }\n };\n\n public override componentDidMount() {\n this._mounted = true;\n ViewportComponentEvents.onViewRotationChangeEvent.addListener(\n this._handleViewRotationChangeEvent\n );\n window.addEventListener(\"mousedown\", this._handleMouseDown as any);\n window.addEventListener(\"mouseup\", this._handleMouseDragEnd as any);\n window.addEventListener(\"mousemove\", this._handleMouseDrag as any);\n window.addEventListener(\"keyup\", this._handleKeyUp as any);\n }\n\n public override componentWillUnmount() {\n ViewportComponentEvents.onViewRotationChangeEvent.removeListener(\n this._handleViewRotationChangeEvent\n );\n window.removeEventListener(\"mousedown\", this._handleMouseDown as any);\n window.removeEventListener(\"mouseup\", this._handleMouseDragEnd as any);\n window.removeEventListener(\"mousemove\", this._handleMouseDrag as any);\n window.removeEventListener(\"keyup\", this._handleKeyUp as any);\n clearTimeout(this._animationFrame);\n if (this.props.onAnimationEnd) this.props.onAnimationEnd();\n\n const rt = document.getElementById(\n \"components-drawing-portal\"\n ) as HTMLDivElement;\n if (rt && rt.parentElement !== null && rt.children.length === 0) {\n rt.parentElement.removeChild(rt);\n }\n this._mounted = false;\n }\n\n // Synchronize with rotation coming from the Viewport\n private _handleViewRotationChangeEvent: ListenerType<\n typeof ViewportComponentEvents.onViewRotationChangeEvent\n > = (args) => {\n if (\n !this.state.isMoving &&\n !this.state.isPanning &&\n this.props.viewport === args.viewport\n ) {\n const extents = args.viewport.view.getExtents().clone();\n const rotation = args.viewport.view.getRotation().clone();\n const halfExtents = extents.scale(0.5);\n const offset =\n this.state.rotateMinimapWithView || this._isViewport3D()\n ? rotation.multiplyTransposeVector(halfExtents)\n : halfExtents;\n const origin = args.viewport.view.getOrigin().plus(offset);\n const deltaZoom =\n (this.state.extents.x - extents.x) / this.state.extents.x;\n let drawingZoom = this.state.drawingZoom / (1 - deltaZoom);\n const deltaOrigin = origin.minus(this.state.origin);\n let mapOrigin = this.state.mapOrigin.plus(deltaOrigin);\n mapOrigin = mapOrigin.plus(\n Vector3d.createFrom(origin.minus(mapOrigin)).scale(deltaZoom)\n );\n if (this.state.viewId !== args.viewport.view.id) {\n const rect =\n this.state.rotateMinimapWithView || this._isViewport3D()\n ? extents\n : DrawingNavigationAid.findRotatedWindowDimensions(\n extents,\n rotation\n );\n const maxRectDim = Math.max(rect.y, rect.x);\n const maxExtentDim = Math.max(\n this.state.mapExtents.x,\n this.state.mapExtents.y\n );\n drawingZoom = maxExtentDim / (3 * maxRectDim);\n mapOrigin = origin.clone();\n this._viewport = args.viewport;\n this.setState({\n viewId: args.viewport.view.id,\n view: args.viewport.view.clone(),\n });\n }\n if (this._mounted) {\n this.setState({\n startOrigin: origin,\n origin,\n extents,\n startRotation: rotation,\n rotation,\n startMapOrigin: mapOrigin,\n mapOrigin,\n startDrawingZoom: drawingZoom,\n drawingZoom,\n });\n }\n }\n };\n\n private _updateFrustum = (complete: boolean = false) => {\n const halfExtents = this.state.extents.scale(0.5);\n const offset =\n this.state.rotateMinimapWithView || this._isViewport3D()\n ? this.state.rotation.multiplyTransposeVector(halfExtents)\n : halfExtents;\n const origin = this.state.origin.minus(offset);\n ViewportComponentEvents.setDrawingViewportState(\n origin,\n this.state.rotation,\n complete\n );\n };\n\n private _toggleRotationMode = () => {\n const rotateMinimapWithView = !this.state.rotateMinimapWithView;\n this.setState({ rotateMinimapWithView }, () => {\n if (this._viewport)\n this._handleViewRotationChangeEvent({ viewport: this._viewport });\n });\n };\n\n private _handleKeyUp = (event: React.KeyboardEvent) => {\n if (\n event.key === Key.Escape.valueOf() &&\n this.state.mode === MapMode.Opened\n ) {\n this._closeLargeMap();\n }\n };\n\n private _lastClientXY: Point2d = Point2d.createZero();\n\n private _processWindowDrag(movement: Point2d) {\n const vect = Vector3d.create(\n movement.x / this.state.drawingZoom,\n -movement.y / this.state.drawingZoom,\n 0\n );\n const offset =\n this.state.rotateMinimapWithView || this._isViewport3D()\n ? this.state.rotation.multiplyTransposeVector(vect)\n : vect;\n const origin = this.state.origin.plus(offset);\n const panningDirection = this._getPanVector();\n const wasAlmostZero = this.state.panningDirection.isAlmostZero;\n this.setState(\n { startOrigin: origin, origin, panningDirection, isPanning: false },\n () => {\n this._updateFrustum();\n if (wasAlmostZero && !this.state.panningDirection.isAlmostZero) {\n this._animationFrame = setTimeout(this._panAnimation, 16.667);\n }\n }\n );\n }\n\n private _processWindowEndDrag() {\n this.setState({ isMoving: false });\n this._updateFrustum(true);\n if (this.state.mode === MapMode.Closed) {\n setTimeout(() => {\n const startMapOrigin = this.state.mapOrigin;\n const mapOrigin = this.state.origin.clone();\n if (this._mounted) {\n this.setState({ startMapOrigin, mapOrigin, animation: 0 }, () => {\n this._animationFrame = setTimeout(this._animation, 16.667);\n });\n }\n }, 0);\n }\n }\n\n private _handleMouseDown = (event: React.MouseEvent) => {\n // Used only to determine if mouse was moved between mousedown and mouseup\n const mouseStart = Point2d.create(event.clientX, event.clientY);\n this.setState({ mouseStart });\n this._lastClientXY = Point2d.create(event.clientX, event.clientY);\n };\n\n private _handleDrawingMouseDown = (event: React.MouseEvent) => {\n if (this.state.mode === MapMode.Opened) {\n event.preventDefault();\n this.setState({ isPanning: true });\n }\n };\n\n private _handleWindowMouseDown = (event: React.MouseEvent) => {\n event.preventDefault();\n this.setState({ isMoving: true });\n };\n\n private _handleMouseDrag = (event: React.MouseEvent) => {\n const mouse = Point2d.create(event.clientX, event.clientY);\n const movement = mouse.minus(this._lastClientXY);\n if (this.state.isMoving) {\n // add scaled mouse movement\n this._processWindowDrag(movement);\n } else {\n if (this.state.isPanning && this.state.mode === MapMode.Opened) {\n const vect = Vector3d.create(\n movement.x / this.state.drawingZoom,\n -movement.y / this.state.drawingZoom,\n 0\n );\n const offset =\n this.state.rotateMinimapWithView || this._isViewport3D()\n ? this.state.rotation.multiplyTransposeVector(vect)\n : vect;\n const mapOrigin = this.state.mapOrigin.minus(offset);\n this.setState({ startMapOrigin: mapOrigin, mapOrigin });\n }\n }\n this._lastClientXY = mouse;\n };\n\n private _handleMouseDragEnd = (event: React.MouseEvent) => {\n const mouse = Point2d.create(event.clientX, event.clientY);\n if (\n mouse.isAlmostEqual(this.state.mouseStart) &&\n this.state.mode === MapMode.Closed &&\n (event.target === this._viewContainerElement.current ||\n event.target === this._viewElement.current)\n ) {\n this._openLargeMap();\n } else if (this.state.isMoving) {\n this._processWindowEndDrag();\n } else if (this.state.isPanning) {\n if (this.state.mode === MapMode.Opened) {\n event.stopPropagation();\n this.setState({ isPanning: false });\n }\n } else if (\n (!(event.target instanceof Node) ||\n (this._rootElement.current &&\n !this._rootElement.current.contains(event.target))) &&\n mouse.isAlmostEqual(this.state.mouseStart)\n ) {\n this._closeLargeMap();\n }\n this._lastClientXY = Point2d.create(event.clientX, event.clientY);\n };\n\n private _handleWindowTouchStart = (event: any) => {\n if (1 !== event.targetTouches.length) return;\n window.addEventListener(\"touchmove\", this._onTouchMove, false);\n window.addEventListener(\"touchend\", this._onTouchEnd, false);\n const mouseStart = Point2d.create(\n event.targetTouches[0].clientX,\n event.targetTouches[0].clientY\n );\n this.setState({ mouseStart });\n this._lastClientXY = mouseStart.clone();\n this.setState({ isMoving: true });\n };\n\n private _onTouchMove = (event: TouchEvent) => {\n if (1 !== event.targetTouches.length) return;\n const mouse = Point2d.create(\n event.targetTouches[0].clientX,\n event.targetTouches[0].clientY\n );\n const movement = mouse.minus(this._lastClientXY);\n // add scaled mouse movement\n this._processWindowDrag(movement);\n this._lastClientXY = mouse;\n };\n\n private _onTouchEnd = (event: TouchEvent) => {\n if (0 !== event.targetTouches.length) return;\n this._processWindowEndDrag();\n if (0 !== event.changedTouches.length)\n this._lastClientXY = Point2d.create(\n event.changedTouches[0].clientX,\n event.changedTouches[0].clientY\n ); // Doesn't seem necessary...but _handleMouseDragEnd sets it...\n window.removeEventListener(\"touchmove\", this._onTouchMove);\n window.removeEventListener(\"touchend\", this._onTouchEnd);\n };\n\n /** @internal */\n public static getDefaultClosedMapSize = (): Vector3d => {\n return Vector3d.create(96, 96);\n };\n\n /** @internal */\n public static getDefaultOpenedMapSize = (\n paddingX: number = 0,\n paddingY: number = 0\n ): Vector3d => {\n return Vector3d.create(\n window.innerWidth / 3 - 2 * (window.innerWidth - paddingX),\n window.innerHeight / 3 - 2 * paddingY\n );\n };\n\n private _getClosedMapSize = (): Vector3d => {\n if (this.props.closeSize === undefined)\n return DrawingNavigationAid.getDefaultClosedMapSize();\n return this.props.closeSize;\n };\n\n private _getOpenedMapSize = (): Vector3d => {\n if (this.props.openSize === undefined)\n return DrawingNavigationAid.getDefaultOpenedMapSize(\n this._rootOffset.right,\n this._rootOffset.top\n );\n return this.props.openSize;\n };\n\n private _openLargeMap = () => {\n if (this.state.mode === MapMode.Closed && this.state.animation === 1.0) {\n if (this._rootElement.current) {\n const rect = this._rootElement.current.getBoundingClientRect();\n this._rootOffset = rect;\n }\n const startMapExtents = Vector3d.createFrom(this.state.mapExtents);\n const mapExtents = this._getOpenedMapSize();\n this.setState(\n {\n mode: MapMode.Opened,\n isMoving: false,\n isPanning: false,\n mapExtents,\n startMapExtents,\n animation: 0,\n },\n () => {\n this._animationFrame = setTimeout(this._animation);\n }\n );\n }\n };\n\n private _closeLargeMap = () => {\n if (this.state.mode === MapMode.Opened && this.state.animation === 1.0) {\n const startMapOrigin = this.state.mapOrigin;\n const mapOrigin = this.state.origin.clone();\n const startMapExtents = Vector3d.createFrom(this.state.mapExtents);\n const mapExtents = this._getClosedMapSize();\n const rect =\n this.state.rotateMinimapWithView || this._isViewport3D()\n ? this.state.extents\n : DrawingNavigationAid.findRotatedWindowDimensions(\n this.state.extents,\n this.state.rotation\n );\n const maxRectDim = Math.max(rect.y, rect.x);\n const maxExtentDim = Math.max(mapExtents.x, mapExtents.y);\n const drawingZoom = maxExtentDim / (3 * maxRectDim);\n const startDrawingZoom = this.state.drawingZoom;\n this.setState(\n {\n mode: MapMode.Closed,\n startMapOrigin,\n mapOrigin,\n startDrawingZoom,\n drawingZoom,\n isMoving: false,\n isPanning: false,\n startMapExtents,\n mapExtents,\n panningDirection: Vector3d.createZero(),\n animation: 0,\n },\n () => {\n this._animationFrame = setTimeout(this._animation, 16.667);\n }\n );\n }\n };\n\n private _getPanVector = () => {\n const is3D = this._isViewport3D();\n const rect =\n this.state.rotateMinimapWithView || is3D\n ? this.state.extents\n : DrawingNavigationAid.findRotatedWindowDimensions(\n this.state.extents,\n this.state.rotation\n );\n\n const mapExtents = this.state.mapExtents.scale(1 / this.state.drawingZoom);\n\n const maxMagnitude = 80; // maximum acceleration\n const magnitudeTravel = 30; // How far, in pixels, that magnitude increases from 0 to max acceleration\n\n const diff = Vector3d.createFrom(\n this.state.origin.minus(this.state.mapOrigin)\n );\n const diffVector =\n this.state.rotateMinimapWithView || is3D\n ? this.state.rotation.multiplyVector(diff)\n : diff;\n\n // capture any values\n const magnitudeVector = Vector3d.create(\n Math.max(0, Math.abs(diffVector.x) - (mapExtents.x - rect.x) / 2),\n Math.max(0, Math.abs(diffVector.y) - (mapExtents.y - rect.y) / 2)\n );\n if (magnitudeVector.isAlmostZero) return Vector3d.createZero();\n const magnitude =\n (Math.min(\n magnitudeVector.magnitude() * this.state.drawingZoom,\n magnitudeTravel\n ) /\n magnitudeTravel) *\n maxMagnitude;\n\n const vect = Vector3d.createFrom(\n this.state.origin.minus(this.state.mapOrigin)\n ); // vect will never be zero or magnitude would also be zero\n const norm = vect.normalize();\n return norm!.scale(magnitude); // norm is only undefined when vect is zero, in which it would have returned at magnitudeVector.isAlmostZero\n };\n\n private _handleWheel = (event: React.WheelEvent) => {\n if (this.state.mode === MapMode.Opened && this.state.animation === 1) {\n const { mapOrigin, drawingZoom } = this.state;\n const mapSize = this._getOpenedMapSize();\n\n const mouseX = event.clientX - this._rootOffset.right + mapSize.x / 2;\n const mouseY = event.clientY - this._rootOffset.top - mapSize.y / 2;\n const is3D = this._isViewport3D();\n if (event.deltaY < 0) {\n const zoom = drawingZoom * 1.1;\n const vect = Vector3d.create(\n (mouseX * 0.1) / zoom,\n (-mouseY * 0.1) / zoom,\n 0\n );\n const offset =\n this.state.rotateMinimapWithView || is3D\n ? this.state.rotation.multiplyTransposeVector(vect)\n : vect;\n const m = mapOrigin.plus(offset);\n this.setState({ mapOrigin: m, drawingZoom: zoom });\n }\n if (event.deltaY > 0) {\n const zoom = drawingZoom / 1.1;\n const vect = Vector3d.create(\n (mouseX * 0.1) / drawingZoom,\n (-mouseY * 0.1) / drawingZoom,\n 0\n );\n const offset =\n this.state.rotateMinimapWithView || is3D\n ? this.state.rotation.multiplyTransposeVector(vect)\n : vect;\n const m = mapOrigin.minus(offset);\n this.setState({ mapOrigin: m, drawingZoom: zoom });\n }\n }\n };\n\n private _handleZoomIn = () => {\n const zoom = this.state.drawingZoom * 1.4;\n this.setState({ drawingZoom: zoom });\n };\n\n private _handleZoomOut = () => {\n const zoom = this.state.drawingZoom / 1.4;\n this.setState({ drawingZoom: zoom });\n };\n\n private _handleUnrotate = () => {\n const startRotation = this.state.rotation;\n const halfExtents = this.state.extents.scale(0.5);\n const offset =\n this.state.rotateMinimapWithView || this._isViewport3D()\n ? Vector3d.createZero()\n : this.state.rotation\n .multiplyTransposeVector(halfExtents)\n .minus(halfExtents);\n const startOrigin = this.state.origin;\n const origin = this.state.origin.plus(offset);\n const startMapOrigin = this.state.mapOrigin;\n const mapOrigin = this.state.mapOrigin.plus(offset);\n this.setState(\n {\n animation: 0,\n startOrigin,\n origin,\n startMapOrigin,\n mapOrigin,\n startRotation,\n rotation: Matrix3d.createIdentity(),\n },\n () => {\n this._animationFrame = setTimeout(this._animation, 16.667);\n }\n );\n };\n\n /** @internal */\n public static findRotatedWindowDimensions = (\n extents: Vector3d,\n rotation: Matrix3d\n ) => {\n const cos = rotation.at(0, 0);\n const sin = rotation.at(1, 0);\n // extents.x/y should be divided in half, but we don't have to do that immediately.\n const cosWidth = cos * extents.x;\n const sinHeight = sin * extents.y;\n\n const sinWidth = cos * extents.x;\n const cosHeight = sin * extents.y;\n\n const a = Math.atan2(sin, cos);\n\n if (a % Math.PI >= 0 && a % Math.PI < Math.PI / 2) {\n const y1 = -cosHeight - sinWidth;\n const x2 = cosWidth + sinHeight;\n const y3 = cosHeight + sinWidth;\n const x4 = -cosWidth - sinHeight;\n // Instead, divide total difference\n return Vector3d.create(Math.abs(x2 - x4) / 2, Math.abs(y1 - y3) / 2);\n } else {\n const x1 = -cosWidth + sinHeight;\n const y2 = -cosHeight + sinWidth;\n const x3 = cosWidth - sinHeight;\n const y4 = cosHeight - sinWidth;\n return Vector3d.create(Math.abs(x1 - x3) / 2, Math.abs(y2 - y4) / 2);\n }\n };\n}\n\n/** @internal */\nexport interface DrawingNavigationCanvasProps {\n view: ViewState | undefined;\n viewId?: string;\n origin: Point3d;\n extents: Vector3d;\n zoom: number;\n rotation: Matrix3d;\n viewManagerOverride?: ViewManager;\n screenViewportOverride?: typeof ScreenViewport;\n canvasSizeOverride?: boolean;\n}\n\n/** @internal */\nexport class DrawingNavigationCanvas extends React.Component<DrawingNavigationCanvasProps> {\n private _canvasElement = React.createRef<HTMLDivElement>();\n private _vp?: ScreenViewport;\n\n public override render(): React.ReactNode {\n return (\n <div\n className=\"drawing-canvas\"\n data-testid=\"drawing-canvas\"\n ref={this._canvasElement}\n ></div>\n );\n }\n\n public override componentDidMount() {\n if (this._canvasElement.current && this.props.view !== undefined) {\n const viewManager = this.props.viewManagerOverride\n ? this.props.viewManagerOverride\n : IModelApp.viewManager;\n\n const screenViewport = this.props.screenViewportOverride\n ? this.props.screenViewportOverride\n : ScreenViewport;\n const previousView = viewManager.selectedView;\n this._vp = screenViewport.create(\n this._canvasElement.current,\n this.props.view\n );\n this.customizeViewport(this._vp);\n viewManager.addViewport(this._vp);\n void viewManager.setSelectedView(previousView); // switch to original viewport\n this._update();\n }\n }\n\n private customizeViewport(vp: ScreenViewport): void {\n if (vp.logo.style) vp.logo.style.display = \"none\";\n\n if (vp.viewFlags.acsTriad)\n vp.viewFlags = vp.viewFlags.with(\"acsTriad\", false);\n }\n\n private _update = () => {\n if (this._vp) {\n const max = Math.max(this.props.extents.x, this.props.extents.y);\n this._vp.view.extentLimits = { max, min: Constant.oneMillimeter };\n this._vp.view.setOrigin(this.props.origin);\n this._vp.view.setRotation(this.props.rotation);\n this._vp.view.setExtents(this.props.extents);\n this._vp.applyViewState(this._vp.view);\n }\n };\n\n public override componentDidUpdate(oldProps: DrawingNavigationCanvasProps) {\n const viewManager = this.props.viewManagerOverride\n ? this.props.viewManagerOverride\n : IModelApp.viewManager;\n if (this.props.view !== undefined) {\n if (oldProps.view !== this.props.view) {\n const screenViewport = this.props.screenViewportOverride\n ? this.props.screenViewportOverride\n : ScreenViewport;\n if (\n oldProps !== undefined &&\n oldProps.viewId !== \"\" &&\n oldProps.viewId !== this.props.viewId &&\n this._vp\n ) {\n viewManager.dropViewport(this._vp, true);\n }\n if (\n this._canvasElement.current &&\n (this.props.canvasSizeOverride ||\n (this._canvasElement.current.clientWidth !== 0 &&\n this._canvasElement.current.clientHeight !== 0))\n ) {\n const previousView = viewManager.selectedView;\n this._vp = screenViewport.create(\n this._canvasElement.current,\n this.props.view.clone()\n );\n this.customizeViewport(this._vp);\n viewManager.addViewport(this._vp);\n void viewManager.setSelectedView(previousView); // switch to original viewport\n this._update();\n }\n } else if (\n !this.props.origin.isExactEqual(oldProps.origin) ||\n !this.props.extents.isExactEqual(oldProps.extents) ||\n this.props.zoom !== oldProps.zoom ||\n !this.props.rotation.isExactEqual(oldProps.rotation)\n ) {\n this._update();\n }\n }\n }\n\n public override componentWillUnmount() {\n if (this._vp) {\n const viewManager = this.props.viewManagerOverride\n ? this.props.viewManagerOverride\n : IModelApp.viewManager;\n viewManager.dropViewport(this._vp, true);\n }\n }\n}\n"]}
@@ -1,134 +0,0 @@
1
- /*---------------------------------------------------------------------------------------------
2
- * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
3
- * See LICENSE.md in the project root for license terms and full copyright notice.
4
- *--------------------------------------------------------------------------------------------*/
5
- @import "~@itwin/core-react/lib/cjs/core-react/z-index";
6
- @import "~@itwin/core-react/lib/cjs/core-react/style/themecolors";
7
-
8
- #components-drawing-portal {
9
- @include uicore-z-index(dragged-widget);
10
- }
11
-
12
- .components-drawing-navigation-aid {
13
- position: relative;
14
- overflow: hidden;
15
- box-shadow: 0 0 0 1px var(--iui-color-border-foreground),
16
- 0 0 0 2px var(--iui-color-text);
17
- height: 96px;
18
- width: 96px;
19
-
20
- .drawing-canvas {
21
- position: absolute;
22
- left: 0px;
23
- top: 0px;
24
- width: 100%;
25
- height: 100%;
26
- min-width: 96px;
27
- min-height: 96px;
28
- }
29
-
30
- .drawing-container {
31
- position: absolute;
32
- left: 0px;
33
- top: 0px;
34
- width: 100%;
35
- height: 100%;
36
-
37
- .drawing-view-window {
38
- position: absolute;
39
- left: 0px;
40
- top: 0px;
41
- border: white 1px solid;
42
- background-color: rgba(0, 0, 0, 0.5);
43
- }
44
-
45
- .unrotate-button {
46
- position: absolute;
47
- background-color: $buic-background-control;
48
- border: 1px solid $buic-background-toolbutton-stroke;
49
- cursor: pointer;
50
- border-radius: var(--iui-border-radius-1);
51
- top: 10px;
52
- left: 0px;
53
- right: 0px;
54
- margin: auto;
55
- font-size: 13px;
56
- height: 20px;
57
- width: 64px;
58
- line-height: 20px;
59
- text-align: center;
60
-
61
- &:focus {
62
- outline: none;
63
- }
64
- }
65
-
66
- .close {
67
- position: absolute;
68
- cursor: pointer;
69
- background-color: $buic-background-control;
70
- border: 1px solid $buic-background-toolbutton-stroke;
71
- border-radius: var(--iui-border-radius-1);
72
- right: 10px;
73
- top: 10px;
74
-
75
- .close-icon {
76
- height: 32px;
77
- width: 32px;
78
- line-height: 32px;
79
- text-align: center;
80
- font-size: 18px;
81
- transform: rotate(45deg);
82
- }
83
- }
84
-
85
- .toggle-rotate-style {
86
- position: absolute;
87
- cursor: pointer;
88
- background-color: $buic-background-control;
89
- opacity: 0.5;
90
- color: var(--iui-color-text);
91
- border-radius: var(--iui-border-radius-1);
92
- bottom: 10px;
93
- left: 10px;
94
- height: 16px;
95
- width: 16px;
96
- font-size: 12px;
97
- line-height: 16px;
98
- text-align: center;
99
-
100
- &.checked {
101
- color: var(--iui-color-text-accent);
102
- }
103
-
104
- &:hover {
105
- opacity: 1;
106
- }
107
- }
108
-
109
- .zoom {
110
- position: absolute;
111
- border: 1px solid $buic-background-toolbutton-stroke;
112
- border-radius: var(--iui-border-radius-1);
113
- right: 10px;
114
- bottom: 10px;
115
-
116
- .zoom-button {
117
- cursor: pointer;
118
- background-color: $buic-background-control;
119
- height: 32px;
120
- width: 32px;
121
- line-height: 32px;
122
- text-align: center;
123
-
124
- &:first-child {
125
- border-bottom: 1px solid $buic-background-toolbutton-stroke;
126
- }
127
-
128
- &:focus {
129
- outline: none;
130
- }
131
- }
132
- }
133
- }
134
- }
@@ -1,29 +0,0 @@
1
- /** @packageDocumentation
2
- * @module QuantityFormat
3
- */
4
- import "./FormatPanel.scss";
5
- import * as React from "react";
6
- import type { FormatProps, UnitProps, UnitsProvider } from "@itwin/core-quantity";
7
- import { FormatterSpec } from "@itwin/core-quantity";
8
- import type { CommonProps } from "@itwin/core-react";
9
- /** Properties of [[FormatPanel]] component.
10
- * @alpha
11
- * @deprecated in 4.17.0. Use `React.ComponentProps<typeof FormatPanel>`
12
- */
13
- export interface FormatPanelProps extends CommonProps {
14
- initialFormat: FormatProps;
15
- unitsProvider: UnitsProvider;
16
- persistenceUnit: Promise<UnitProps> | UnitProps;
17
- showSample?: boolean;
18
- initialMagnitude?: number;
19
- enableMinimumProperties?: boolean;
20
- onFormatChange?: (format: FormatProps) => void;
21
- provideFormatSpec?: (formatProps: FormatProps, persistenceUnit: UnitProps, unitsProvider: UnitsProvider) => Promise<FormatterSpec>;
22
- providePrimaryChildren?: (formatProps: FormatProps, fireFormatChange: (newProps: FormatProps) => void) => React.ReactNode;
23
- provideSecondaryChildren?: (formatProps: FormatProps, fireFormatChange: (newProps: FormatProps) => void) => React.ReactNode;
24
- }
25
- /** Component to show/edit Quantity Format.
26
- * @alpha
27
- */
28
- export declare function FormatPanel(props: FormatPanelProps): React.JSX.Element;
29
- //# sourceMappingURL=FormatPanel.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"FormatPanel.d.ts","sourceRoot":"","sources":["../../../../src/imodel-components-react/quantityformat/FormatPanel.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,oBAAoB,CAAC;AAC5B,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EACV,WAAW,EACX,SAAS,EACT,aAAa,EACd,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAU,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAC7D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAm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