@itwin/imodel-components-react 4.0.0-dev.9 → 4.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (327) hide show
  1. package/CHANGELOG.md +156 -1
  2. package/README.md +2 -2
  3. package/lib/cjs/imodel-components-react/UiIModelComponents.d.ts +28 -28
  4. package/lib/cjs/imodel-components-react/UiIModelComponents.d.ts.map +1 -1
  5. package/lib/cjs/imodel-components-react/UiIModelComponents.js +77 -79
  6. package/lib/cjs/imodel-components-react/UiIModelComponents.js.map +1 -1
  7. package/lib/cjs/imodel-components-react/color/AlphaSlider.d.ts +36 -36
  8. package/lib/cjs/imodel-components-react/color/AlphaSlider.js +190 -186
  9. package/lib/cjs/imodel-components-react/color/AlphaSlider.js.map +1 -1
  10. package/lib/cjs/imodel-components-react/color/ColorPickerButton.d.ts +37 -37
  11. package/lib/cjs/imodel-components-react/color/ColorPickerButton.d.ts.map +1 -1
  12. package/lib/cjs/imodel-components-react/color/ColorPickerButton.js +112 -107
  13. package/lib/cjs/imodel-components-react/color/ColorPickerButton.js.map +1 -1
  14. package/lib/cjs/imodel-components-react/color/ColorPickerButton.scss +4 -4
  15. package/lib/cjs/imodel-components-react/color/ColorPickerDialog.d.ts +23 -23
  16. package/lib/cjs/imodel-components-react/color/ColorPickerDialog.js +78 -74
  17. package/lib/cjs/imodel-components-react/color/ColorPickerDialog.js.map +1 -1
  18. package/lib/cjs/imodel-components-react/color/ColorPickerPopup.d.ts +44 -44
  19. package/lib/cjs/imodel-components-react/color/ColorPickerPopup.d.ts.map +1 -1
  20. package/lib/cjs/imodel-components-react/color/ColorPickerPopup.js +143 -137
  21. package/lib/cjs/imodel-components-react/color/ColorPickerPopup.js.map +1 -1
  22. package/lib/cjs/imodel-components-react/color/ColorPickerPopup.scss +4 -5
  23. package/lib/cjs/imodel-components-react/color/HueSlider.d.ts +22 -22
  24. package/lib/cjs/imodel-components-react/color/HueSlider.js +203 -199
  25. package/lib/cjs/imodel-components-react/color/HueSlider.js.map +1 -1
  26. package/lib/cjs/imodel-components-react/color/SaturationPicker.d.ts +20 -20
  27. package/lib/cjs/imodel-components-react/color/SaturationPicker.js +217 -213
  28. package/lib/cjs/imodel-components-react/color/SaturationPicker.js.map +1 -1
  29. package/lib/cjs/imodel-components-react/color/Swatch.d.ts +22 -22
  30. package/lib/cjs/imodel-components-react/color/Swatch.js +64 -60
  31. package/lib/cjs/imodel-components-react/color/Swatch.js.map +1 -1
  32. package/lib/cjs/imodel-components-react/color/Swatch.scss +1 -2
  33. package/lib/cjs/imodel-components-react/color/getCSSColorFromDef.d.ts +6 -6
  34. package/lib/cjs/imodel-components-react/color/getCSSColorFromDef.js +23 -23
  35. package/lib/cjs/imodel-components-react/editors/ColorEditor.d.ts +44 -44
  36. package/lib/cjs/imodel-components-react/editors/ColorEditor.js +155 -151
  37. package/lib/cjs/imodel-components-react/editors/ColorEditor.js.map +1 -1
  38. package/lib/cjs/imodel-components-react/editors/ColorEditor.scss +1 -1
  39. package/lib/cjs/imodel-components-react/editors/WeightEditor.d.ts +47 -47
  40. package/lib/cjs/imodel-components-react/editors/WeightEditor.js +164 -160
  41. package/lib/cjs/imodel-components-react/editors/WeightEditor.js.map +1 -1
  42. package/lib/cjs/imodel-components-react/editors/WeightEditor.scss +1 -1
  43. package/lib/cjs/imodel-components-react/inputs/QuantityInput.d.ts +25 -25
  44. package/lib/cjs/imodel-components-react/inputs/QuantityInput.js +100 -96
  45. package/lib/cjs/imodel-components-react/inputs/QuantityInput.js.map +1 -1
  46. package/lib/cjs/imodel-components-react/inputs/QuantityNumberInput.d.ts +44 -44
  47. package/lib/cjs/imodel-components-react/inputs/QuantityNumberInput.d.ts.map +1 -1
  48. package/lib/cjs/imodel-components-react/inputs/QuantityNumberInput.js +272 -265
  49. package/lib/cjs/imodel-components-react/inputs/QuantityNumberInput.js.map +1 -1
  50. package/lib/cjs/imodel-components-react/inputs/QuantityNumberInput.scss +6 -7
  51. package/lib/cjs/imodel-components-react/lineweight/Swatch.d.ts +33 -33
  52. package/lib/cjs/imodel-components-react/lineweight/Swatch.js +89 -85
  53. package/lib/cjs/imodel-components-react/lineweight/Swatch.js.map +1 -1
  54. package/lib/cjs/imodel-components-react/lineweight/Swatch.scss +1 -1
  55. package/lib/cjs/imodel-components-react/lineweight/WeightPickerButton.d.ts +60 -60
  56. package/lib/cjs/imodel-components-react/lineweight/WeightPickerButton.js +163 -159
  57. package/lib/cjs/imodel-components-react/lineweight/WeightPickerButton.js.map +1 -1
  58. package/lib/cjs/imodel-components-react/lineweight/WeightPickerButton.scss +7 -8
  59. package/lib/cjs/imodel-components-react/navigationaids/Cube.d.ts +45 -45
  60. package/lib/cjs/imodel-components-react/navigationaids/Cube.js +131 -127
  61. package/lib/cjs/imodel-components-react/navigationaids/Cube.js.map +1 -1
  62. package/lib/cjs/imodel-components-react/navigationaids/CubeNavigationAid.d.ts +154 -174
  63. package/lib/cjs/imodel-components-react/navigationaids/CubeNavigationAid.d.ts.map +1 -1
  64. package/lib/cjs/imodel-components-react/navigationaids/CubeNavigationAid.js +631 -634
  65. package/lib/cjs/imodel-components-react/navigationaids/CubeNavigationAid.js.map +1 -1
  66. package/lib/cjs/imodel-components-react/navigationaids/CubeNavigationAid.scss +13 -17
  67. package/lib/cjs/imodel-components-react/navigationaids/DrawingNavigationAid.d.ts +145 -145
  68. package/lib/cjs/imodel-components-react/navigationaids/DrawingNavigationAid.d.ts.map +1 -1
  69. package/lib/cjs/imodel-components-react/navigationaids/DrawingNavigationAid.js +657 -647
  70. package/lib/cjs/imodel-components-react/navigationaids/DrawingNavigationAid.js.map +1 -1
  71. package/lib/cjs/imodel-components-react/navigationaids/DrawingNavigationAid.scss +4 -3
  72. package/lib/cjs/imodel-components-react/quantityformat/FormatPanel.d.ts +26 -26
  73. package/lib/cjs/imodel-components-react/quantityformat/FormatPanel.js +103 -99
  74. package/lib/cjs/imodel-components-react/quantityformat/FormatPanel.js.map +1 -1
  75. package/lib/cjs/imodel-components-react/quantityformat/FormatPanel.scss +2 -6
  76. package/lib/cjs/imodel-components-react/quantityformat/FormatPrecision.d.ts +17 -17
  77. package/lib/cjs/imodel-components-react/quantityformat/FormatPrecision.js +57 -53
  78. package/lib/cjs/imodel-components-react/quantityformat/FormatPrecision.js.map +1 -1
  79. package/lib/cjs/imodel-components-react/quantityformat/FormatSample.d.ts +18 -18
  80. package/lib/cjs/imodel-components-react/quantityformat/FormatSample.d.ts.map +1 -1
  81. package/lib/cjs/imodel-components-react/quantityformat/FormatSample.js +88 -83
  82. package/lib/cjs/imodel-components-react/quantityformat/FormatSample.js.map +1 -1
  83. package/lib/cjs/imodel-components-react/quantityformat/FormatType.d.ts +17 -17
  84. package/lib/cjs/imodel-components-react/quantityformat/FormatType.js +90 -86
  85. package/lib/cjs/imodel-components-react/quantityformat/FormatType.js.map +1 -1
  86. package/lib/cjs/imodel-components-react/quantityformat/FormatUnitLabel.d.ts +17 -17
  87. package/lib/cjs/imodel-components-react/quantityformat/FormatUnitLabel.js +113 -109
  88. package/lib/cjs/imodel-components-react/quantityformat/FormatUnitLabel.js.map +1 -1
  89. package/lib/cjs/imodel-components-react/quantityformat/FormatUnits.d.ts +19 -19
  90. package/lib/cjs/imodel-components-react/quantityformat/FormatUnits.js +137 -133
  91. package/lib/cjs/imodel-components-react/quantityformat/FormatUnits.js.map +1 -1
  92. package/lib/cjs/imodel-components-react/quantityformat/MiscFormatOptions.d.ts +21 -21
  93. package/lib/cjs/imodel-components-react/quantityformat/MiscFormatOptions.js +188 -184
  94. package/lib/cjs/imodel-components-react/quantityformat/MiscFormatOptions.js.map +1 -1
  95. package/lib/cjs/imodel-components-react/quantityformat/QuantityFormatPanel.d.ts +22 -22
  96. package/lib/cjs/imodel-components-react/quantityformat/QuantityFormatPanel.js +149 -145
  97. package/lib/cjs/imodel-components-react/quantityformat/QuantityFormatPanel.js.map +1 -1
  98. package/lib/cjs/imodel-components-react/quantityformat/misc/DecimalPrecision.d.ts +17 -17
  99. package/lib/cjs/imodel-components-react/quantityformat/misc/DecimalPrecision.js +63 -59
  100. package/lib/cjs/imodel-components-react/quantityformat/misc/DecimalPrecision.js.map +1 -1
  101. package/lib/cjs/imodel-components-react/quantityformat/misc/DecimalSeparator.d.ts +17 -17
  102. package/lib/cjs/imodel-components-react/quantityformat/misc/DecimalSeparator.js +51 -47
  103. package/lib/cjs/imodel-components-react/quantityformat/misc/DecimalSeparator.js.map +1 -1
  104. package/lib/cjs/imodel-components-react/quantityformat/misc/FractionPrecision.d.ts +16 -16
  105. package/lib/cjs/imodel-components-react/quantityformat/misc/FractionPrecision.js +58 -54
  106. package/lib/cjs/imodel-components-react/quantityformat/misc/FractionPrecision.js.map +1 -1
  107. package/lib/cjs/imodel-components-react/quantityformat/misc/ScientificType.d.ts +18 -18
  108. package/lib/cjs/imodel-components-react/quantityformat/misc/ScientificType.js +52 -48
  109. package/lib/cjs/imodel-components-react/quantityformat/misc/ScientificType.js.map +1 -1
  110. package/lib/cjs/imodel-components-react/quantityformat/misc/SignOption.d.ts +17 -17
  111. package/lib/cjs/imodel-components-react/quantityformat/misc/SignOption.js +54 -50
  112. package/lib/cjs/imodel-components-react/quantityformat/misc/SignOption.js.map +1 -1
  113. package/lib/cjs/imodel-components-react/quantityformat/misc/StationSeparatorSelector.d.ts +17 -17
  114. package/lib/cjs/imodel-components-react/quantityformat/misc/StationSeparatorSelector.js +62 -58
  115. package/lib/cjs/imodel-components-react/quantityformat/misc/StationSeparatorSelector.js.map +1 -1
  116. package/lib/cjs/imodel-components-react/quantityformat/misc/StationSizeSelector.d.ts +17 -17
  117. package/lib/cjs/imodel-components-react/quantityformat/misc/StationSizeSelector.js +51 -47
  118. package/lib/cjs/imodel-components-react/quantityformat/misc/StationSizeSelector.js.map +1 -1
  119. package/lib/cjs/imodel-components-react/quantityformat/misc/ThousandsSelector.d.ts +17 -17
  120. package/lib/cjs/imodel-components-react/quantityformat/misc/ThousandsSelector.js +60 -56
  121. package/lib/cjs/imodel-components-react/quantityformat/misc/ThousandsSelector.js.map +1 -1
  122. package/lib/cjs/imodel-components-react/quantityformat/misc/ThousandsSeparator.d.ts +17 -17
  123. package/lib/cjs/imodel-components-react/quantityformat/misc/ThousandsSeparator.js +99 -95
  124. package/lib/cjs/imodel-components-react/quantityformat/misc/ThousandsSeparator.js.map +1 -1
  125. package/lib/cjs/imodel-components-react/quantityformat/misc/UnitDescr.d.ts +23 -23
  126. package/lib/cjs/imodel-components-react/quantityformat/misc/UnitDescr.js +123 -119
  127. package/lib/cjs/imodel-components-react/quantityformat/misc/UnitDescr.js.map +1 -1
  128. package/lib/cjs/imodel-components-react/timeline/BaseSolarDataProvider.d.ts +52 -52
  129. package/lib/cjs/imodel-components-react/timeline/BaseSolarDataProvider.d.ts.map +1 -1
  130. package/lib/cjs/imodel-components-react/timeline/BaseSolarDataProvider.js +142 -143
  131. package/lib/cjs/imodel-components-react/timeline/BaseSolarDataProvider.js.map +1 -1
  132. package/lib/cjs/imodel-components-react/timeline/BaseTimelineDataProvider.d.ts +31 -31
  133. package/lib/cjs/imodel-components-react/timeline/BaseTimelineDataProvider.js +69 -69
  134. package/lib/cjs/imodel-components-react/timeline/InlineEdit.d.ts +27 -27
  135. package/lib/cjs/imodel-components-react/timeline/InlineEdit.js +85 -81
  136. package/lib/cjs/imodel-components-react/timeline/InlineEdit.js.map +1 -1
  137. package/lib/cjs/imodel-components-react/timeline/InlineEdit.scss +2 -2
  138. package/lib/cjs/imodel-components-react/timeline/PlayerButton.d.ts +33 -33
  139. package/lib/cjs/imodel-components-react/timeline/PlayerButton.d.ts.map +1 -1
  140. package/lib/cjs/imodel-components-react/timeline/PlayerButton.js +99 -91
  141. package/lib/cjs/imodel-components-react/timeline/PlayerButton.js.map +1 -1
  142. package/lib/cjs/imodel-components-react/timeline/PlayerButton.scss +9 -12
  143. package/lib/cjs/imodel-components-react/timeline/Scrubber.d.ts +54 -54
  144. package/lib/cjs/imodel-components-react/timeline/Scrubber.js +195 -191
  145. package/lib/cjs/imodel-components-react/timeline/Scrubber.js.map +1 -1
  146. package/lib/cjs/imodel-components-react/timeline/Scrubber.scss +8 -15
  147. package/lib/cjs/imodel-components-react/timeline/SolarTimeline.d.ts +77 -77
  148. package/lib/cjs/imodel-components-react/timeline/SolarTimeline.d.ts.map +1 -1
  149. package/lib/cjs/imodel-components-react/timeline/SolarTimeline.js +432 -424
  150. package/lib/cjs/imodel-components-react/timeline/SolarTimeline.js.map +1 -1
  151. package/lib/cjs/imodel-components-react/timeline/SolarTimeline.scss +27 -24
  152. package/lib/cjs/imodel-components-react/timeline/SpeedTimeline.d.ts +15 -15
  153. package/lib/cjs/imodel-components-react/timeline/SpeedTimeline.js +58 -54
  154. package/lib/cjs/imodel-components-react/timeline/SpeedTimeline.js.map +1 -1
  155. package/lib/cjs/imodel-components-react/timeline/TimelineComponent.d.ts +130 -133
  156. package/lib/cjs/imodel-components-react/timeline/TimelineComponent.d.ts.map +1 -1
  157. package/lib/cjs/imodel-components-react/timeline/TimelineComponent.js +398 -358
  158. package/lib/cjs/imodel-components-react/timeline/TimelineComponent.js.map +1 -1
  159. package/lib/cjs/imodel-components-react/timeline/TimelineComponent.scss +25 -11
  160. package/lib/cjs/imodel-components-react/timeline/interfaces.d.ts +145 -174
  161. package/lib/cjs/imodel-components-react/timeline/interfaces.d.ts.map +1 -1
  162. package/lib/cjs/imodel-components-react/timeline/interfaces.js +45 -45
  163. package/lib/cjs/imodel-components-react/timeline/interfaces.js.map +1 -1
  164. package/lib/cjs/imodel-components-react/viewport/ViewportComponent.d.ts +42 -42
  165. package/lib/cjs/imodel-components-react/viewport/ViewportComponent.d.ts.map +1 -1
  166. package/lib/cjs/imodel-components-react/viewport/ViewportComponent.js +278 -274
  167. package/lib/cjs/imodel-components-react/viewport/ViewportComponent.js.map +1 -1
  168. package/lib/cjs/imodel-components-react/viewport/ViewportComponentEvents.d.ts +106 -106
  169. package/lib/cjs/imodel-components-react/viewport/ViewportComponentEvents.js +105 -105
  170. package/lib/cjs/imodel-components-react/viewport/ViewportComponentEvents.js.map +1 -1
  171. package/lib/cjs/imodel-components-react.d.ts +81 -82
  172. package/lib/cjs/imodel-components-react.d.ts.map +1 -1
  173. package/lib/cjs/imodel-components-react.js +104 -101
  174. package/lib/cjs/imodel-components-react.js.map +1 -1
  175. package/lib/esm/imodel-components-react/UiIModelComponents.d.ts +28 -28
  176. package/lib/esm/imodel-components-react/UiIModelComponents.d.ts.map +1 -1
  177. package/lib/esm/imodel-components-react/UiIModelComponents.js +74 -75
  178. package/lib/esm/imodel-components-react/UiIModelComponents.js.map +1 -1
  179. package/lib/esm/imodel-components-react/color/AlphaSlider.d.ts +36 -36
  180. package/lib/esm/imodel-components-react/color/AlphaSlider.js +160 -160
  181. package/lib/esm/imodel-components-react/color/AlphaSlider.js.map +1 -1
  182. package/lib/esm/imodel-components-react/color/ColorPickerButton.d.ts +37 -37
  183. package/lib/esm/imodel-components-react/color/ColorPickerButton.d.ts.map +1 -1
  184. package/lib/esm/imodel-components-react/color/ColorPickerButton.js +83 -82
  185. package/lib/esm/imodel-components-react/color/ColorPickerButton.js.map +1 -1
  186. package/lib/esm/imodel-components-react/color/ColorPickerButton.scss +4 -4
  187. package/lib/esm/imodel-components-react/color/ColorPickerDialog.d.ts +23 -23
  188. package/lib/esm/imodel-components-react/color/ColorPickerDialog.js +51 -51
  189. package/lib/esm/imodel-components-react/color/ColorPickerPopup.d.ts +44 -44
  190. package/lib/esm/imodel-components-react/color/ColorPickerPopup.d.ts.map +1 -1
  191. package/lib/esm/imodel-components-react/color/ColorPickerPopup.js +114 -112
  192. package/lib/esm/imodel-components-react/color/ColorPickerPopup.js.map +1 -1
  193. package/lib/esm/imodel-components-react/color/ColorPickerPopup.scss +4 -5
  194. package/lib/esm/imodel-components-react/color/HueSlider.d.ts +22 -22
  195. package/lib/esm/imodel-components-react/color/HueSlider.js +173 -173
  196. package/lib/esm/imodel-components-react/color/SaturationPicker.d.ts +20 -20
  197. package/lib/esm/imodel-components-react/color/SaturationPicker.js +187 -187
  198. package/lib/esm/imodel-components-react/color/Swatch.d.ts +22 -22
  199. package/lib/esm/imodel-components-react/color/Swatch.js +34 -34
  200. package/lib/esm/imodel-components-react/color/Swatch.scss +1 -2
  201. package/lib/esm/imodel-components-react/color/getCSSColorFromDef.d.ts +6 -6
  202. package/lib/esm/imodel-components-react/color/getCSSColorFromDef.js +19 -19
  203. package/lib/esm/imodel-components-react/editors/ColorEditor.d.ts +44 -44
  204. package/lib/esm/imodel-components-react/editors/ColorEditor.js +124 -124
  205. package/lib/esm/imodel-components-react/editors/ColorEditor.scss +1 -1
  206. package/lib/esm/imodel-components-react/editors/WeightEditor.d.ts +47 -47
  207. package/lib/esm/imodel-components-react/editors/WeightEditor.js +133 -133
  208. package/lib/esm/imodel-components-react/editors/WeightEditor.scss +1 -1
  209. package/lib/esm/imodel-components-react/inputs/QuantityInput.d.ts +25 -25
  210. package/lib/esm/imodel-components-react/inputs/QuantityInput.js +70 -70
  211. package/lib/esm/imodel-components-react/inputs/QuantityNumberInput.d.ts +44 -44
  212. package/lib/esm/imodel-components-react/inputs/QuantityNumberInput.d.ts.map +1 -1
  213. package/lib/esm/imodel-components-react/inputs/QuantityNumberInput.js +243 -240
  214. package/lib/esm/imodel-components-react/inputs/QuantityNumberInput.js.map +1 -1
  215. package/lib/esm/imodel-components-react/inputs/QuantityNumberInput.scss +6 -7
  216. package/lib/esm/imodel-components-react/lineweight/Swatch.d.ts +33 -33
  217. package/lib/esm/imodel-components-react/lineweight/Swatch.js +59 -59
  218. package/lib/esm/imodel-components-react/lineweight/Swatch.scss +1 -1
  219. package/lib/esm/imodel-components-react/lineweight/WeightPickerButton.d.ts +60 -60
  220. package/lib/esm/imodel-components-react/lineweight/WeightPickerButton.js +134 -133
  221. package/lib/esm/imodel-components-react/lineweight/WeightPickerButton.js.map +1 -1
  222. package/lib/esm/imodel-components-react/lineweight/WeightPickerButton.scss +7 -8
  223. package/lib/esm/imodel-components-react/navigationaids/Cube.d.ts +45 -45
  224. package/lib/esm/imodel-components-react/navigationaids/Cube.js +100 -100
  225. package/lib/esm/imodel-components-react/navigationaids/CubeNavigationAid.d.ts +154 -174
  226. package/lib/esm/imodel-components-react/navigationaids/CubeNavigationAid.d.ts.map +1 -1
  227. package/lib/esm/imodel-components-react/navigationaids/CubeNavigationAid.js +601 -606
  228. package/lib/esm/imodel-components-react/navigationaids/CubeNavigationAid.js.map +1 -1
  229. package/lib/esm/imodel-components-react/navigationaids/CubeNavigationAid.scss +13 -17
  230. package/lib/esm/imodel-components-react/navigationaids/DrawingNavigationAid.d.ts +145 -145
  231. package/lib/esm/imodel-components-react/navigationaids/DrawingNavigationAid.d.ts.map +1 -1
  232. package/lib/esm/imodel-components-react/navigationaids/DrawingNavigationAid.js +627 -620
  233. package/lib/esm/imodel-components-react/navigationaids/DrawingNavigationAid.js.map +1 -1
  234. package/lib/esm/imodel-components-react/navigationaids/DrawingNavigationAid.scss +4 -3
  235. package/lib/esm/imodel-components-react/quantityformat/FormatPanel.d.ts +26 -26
  236. package/lib/esm/imodel-components-react/quantityformat/FormatPanel.js +76 -76
  237. package/lib/esm/imodel-components-react/quantityformat/FormatPanel.scss +2 -6
  238. package/lib/esm/imodel-components-react/quantityformat/FormatPrecision.d.ts +17 -17
  239. package/lib/esm/imodel-components-react/quantityformat/FormatPrecision.js +30 -30
  240. package/lib/esm/imodel-components-react/quantityformat/FormatSample.d.ts +18 -18
  241. package/lib/esm/imodel-components-react/quantityformat/FormatSample.d.ts.map +1 -1
  242. package/lib/esm/imodel-components-react/quantityformat/FormatSample.js +61 -60
  243. package/lib/esm/imodel-components-react/quantityformat/FormatSample.js.map +1 -1
  244. package/lib/esm/imodel-components-react/quantityformat/FormatType.d.ts +17 -17
  245. package/lib/esm/imodel-components-react/quantityformat/FormatType.js +63 -63
  246. package/lib/esm/imodel-components-react/quantityformat/FormatUnitLabel.d.ts +17 -17
  247. package/lib/esm/imodel-components-react/quantityformat/FormatUnitLabel.js +83 -83
  248. package/lib/esm/imodel-components-react/quantityformat/FormatUnits.d.ts +19 -19
  249. package/lib/esm/imodel-components-react/quantityformat/FormatUnits.js +110 -110
  250. package/lib/esm/imodel-components-react/quantityformat/MiscFormatOptions.d.ts +21 -21
  251. package/lib/esm/imodel-components-react/quantityformat/MiscFormatOptions.js +158 -158
  252. package/lib/esm/imodel-components-react/quantityformat/QuantityFormatPanel.d.ts +22 -22
  253. package/lib/esm/imodel-components-react/quantityformat/QuantityFormatPanel.js +122 -122
  254. package/lib/esm/imodel-components-react/quantityformat/misc/DecimalPrecision.d.ts +17 -17
  255. package/lib/esm/imodel-components-react/quantityformat/misc/DecimalPrecision.js +36 -36
  256. package/lib/esm/imodel-components-react/quantityformat/misc/DecimalSeparator.d.ts +17 -17
  257. package/lib/esm/imodel-components-react/quantityformat/misc/DecimalSeparator.js +24 -24
  258. package/lib/esm/imodel-components-react/quantityformat/misc/FractionPrecision.d.ts +16 -16
  259. package/lib/esm/imodel-components-react/quantityformat/misc/FractionPrecision.js +31 -31
  260. package/lib/esm/imodel-components-react/quantityformat/misc/ScientificType.d.ts +18 -18
  261. package/lib/esm/imodel-components-react/quantityformat/misc/ScientificType.js +25 -25
  262. package/lib/esm/imodel-components-react/quantityformat/misc/SignOption.d.ts +17 -17
  263. package/lib/esm/imodel-components-react/quantityformat/misc/SignOption.js +27 -27
  264. package/lib/esm/imodel-components-react/quantityformat/misc/StationSeparatorSelector.d.ts +17 -17
  265. package/lib/esm/imodel-components-react/quantityformat/misc/StationSeparatorSelector.js +35 -35
  266. package/lib/esm/imodel-components-react/quantityformat/misc/StationSizeSelector.d.ts +17 -17
  267. package/lib/esm/imodel-components-react/quantityformat/misc/StationSizeSelector.js +24 -24
  268. package/lib/esm/imodel-components-react/quantityformat/misc/ThousandsSelector.d.ts +17 -17
  269. package/lib/esm/imodel-components-react/quantityformat/misc/ThousandsSelector.js +33 -33
  270. package/lib/esm/imodel-components-react/quantityformat/misc/ThousandsSeparator.d.ts +17 -17
  271. package/lib/esm/imodel-components-react/quantityformat/misc/ThousandsSeparator.js +69 -69
  272. package/lib/esm/imodel-components-react/quantityformat/misc/UnitDescr.d.ts +23 -23
  273. package/lib/esm/imodel-components-react/quantityformat/misc/UnitDescr.js +96 -96
  274. package/lib/esm/imodel-components-react/timeline/BaseSolarDataProvider.d.ts +52 -52
  275. package/lib/esm/imodel-components-react/timeline/BaseSolarDataProvider.d.ts.map +1 -1
  276. package/lib/esm/imodel-components-react/timeline/BaseSolarDataProvider.js +138 -139
  277. package/lib/esm/imodel-components-react/timeline/BaseSolarDataProvider.js.map +1 -1
  278. package/lib/esm/imodel-components-react/timeline/BaseTimelineDataProvider.d.ts +31 -31
  279. package/lib/esm/imodel-components-react/timeline/BaseTimelineDataProvider.js +65 -65
  280. package/lib/esm/imodel-components-react/timeline/InlineEdit.d.ts +27 -27
  281. package/lib/esm/imodel-components-react/timeline/InlineEdit.js +55 -55
  282. package/lib/esm/imodel-components-react/timeline/InlineEdit.scss +2 -2
  283. package/lib/esm/imodel-components-react/timeline/PlayerButton.d.ts +33 -33
  284. package/lib/esm/imodel-components-react/timeline/PlayerButton.d.ts.map +1 -1
  285. package/lib/esm/imodel-components-react/timeline/PlayerButton.js +68 -64
  286. package/lib/esm/imodel-components-react/timeline/PlayerButton.js.map +1 -1
  287. package/lib/esm/imodel-components-react/timeline/PlayerButton.scss +9 -12
  288. package/lib/esm/imodel-components-react/timeline/Scrubber.d.ts +54 -54
  289. package/lib/esm/imodel-components-react/timeline/Scrubber.js +164 -164
  290. package/lib/esm/imodel-components-react/timeline/Scrubber.scss +8 -15
  291. package/lib/esm/imodel-components-react/timeline/SolarTimeline.d.ts +77 -77
  292. package/lib/esm/imodel-components-react/timeline/SolarTimeline.d.ts.map +1 -1
  293. package/lib/esm/imodel-components-react/timeline/SolarTimeline.js +402 -398
  294. package/lib/esm/imodel-components-react/timeline/SolarTimeline.js.map +1 -1
  295. package/lib/esm/imodel-components-react/timeline/SolarTimeline.scss +27 -24
  296. package/lib/esm/imodel-components-react/timeline/SpeedTimeline.d.ts +15 -15
  297. package/lib/esm/imodel-components-react/timeline/SpeedTimeline.js +28 -28
  298. package/lib/esm/imodel-components-react/timeline/TimelineComponent.d.ts +130 -133
  299. package/lib/esm/imodel-components-react/timeline/TimelineComponent.d.ts.map +1 -1
  300. package/lib/esm/imodel-components-react/timeline/TimelineComponent.js +368 -332
  301. package/lib/esm/imodel-components-react/timeline/TimelineComponent.js.map +1 -1
  302. package/lib/esm/imodel-components-react/timeline/TimelineComponent.scss +25 -11
  303. package/lib/esm/imodel-components-react/timeline/interfaces.d.ts +145 -174
  304. package/lib/esm/imodel-components-react/timeline/interfaces.d.ts.map +1 -1
  305. package/lib/esm/imodel-components-react/timeline/interfaces.js +42 -42
  306. package/lib/esm/imodel-components-react/timeline/interfaces.js.map +1 -1
  307. package/lib/esm/imodel-components-react/viewport/ViewportComponent.d.ts +42 -42
  308. package/lib/esm/imodel-components-react/viewport/ViewportComponent.d.ts.map +1 -1
  309. package/lib/esm/imodel-components-react/viewport/ViewportComponent.js +251 -251
  310. package/lib/esm/imodel-components-react/viewport/ViewportComponentEvents.d.ts +106 -106
  311. package/lib/esm/imodel-components-react/viewport/ViewportComponentEvents.js +96 -95
  312. package/lib/esm/imodel-components-react/viewport/ViewportComponentEvents.js.map +1 -1
  313. package/lib/esm/imodel-components-react.d.ts +81 -82
  314. package/lib/esm/imodel-components-react.d.ts.map +1 -1
  315. package/lib/esm/imodel-components-react.js +86 -87
  316. package/lib/esm/imodel-components-react.js.map +1 -1
  317. package/package.json +35 -37
  318. package/lib/cjs/imodel-components-react/color/ColorPickerPanel.d.ts +0 -22
  319. package/lib/cjs/imodel-components-react/color/ColorPickerPanel.d.ts.map +0 -1
  320. package/lib/cjs/imodel-components-react/color/ColorPickerPanel.js +0 -146
  321. package/lib/cjs/imodel-components-react/color/ColorPickerPanel.js.map +0 -1
  322. package/lib/cjs/imodel-components-react/color/ColorPickerPanel.scss +0 -94
  323. package/lib/esm/imodel-components-react/color/ColorPickerPanel.d.ts +0 -22
  324. package/lib/esm/imodel-components-react/color/ColorPickerPanel.d.ts.map +0 -1
  325. package/lib/esm/imodel-components-react/color/ColorPickerPanel.js +0 -123
  326. package/lib/esm/imodel-components-react/color/ColorPickerPanel.js.map +0 -1
  327. package/lib/esm/imodel-components-react/color/ColorPickerPanel.scss +0 -94
@@ -1,101 +1,101 @@
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
- /** @packageDocumentation
6
- * @module Cube
7
- */
8
- import "./Cube.scss";
9
- import classnames from "classnames";
10
- import * as React from "react";
11
- import { Matrix3d } from "@itwin/core-geometry";
12
- /** Cube Face enumeration
13
- * @public
14
- */
15
- export var Face;
16
- (function (Face) {
17
- Face["None"] = "";
18
- Face["Left"] = "left";
19
- Face["Right"] = "right";
20
- Face["Back"] = "back";
21
- Face["Front"] = "front";
22
- Face["Bottom"] = "bottom";
23
- Face["Top"] = "top";
24
- })(Face || (Face = {}));
25
- /** Cube React component used by the 3d Cube Navigation Aid
26
- * @public
27
- */
28
- export class Cube extends React.PureComponent {
29
- render() {
30
- const { faces, rotMatrix, className, ...props } = this.props;
31
- return (React.createElement("div", { className: classnames("components-cube-css3d", className), "data-testid": "components-cube", ...props }, [Face.Front, Face.Back, Face.Right, Face.Left, Face.Top, Face.Bottom]
32
- .map((face) => {
33
- const content = faces && faces[face];
34
- return (React.createElement(CubeFace, { key: face, rotMatrix: rotMatrix, face: face }, content));
35
- })));
36
- }
37
- }
38
- /** @internal */
39
- export class CubeFace extends React.Component {
40
- constructor() {
41
- super(...arguments);
42
- this._faceWidth = 0;
43
- }
44
- render() {
45
- const { rotMatrix, face, style, children, ...props } = this.props;
46
- if (face === Face.None)
47
- return null;
48
- const classes = classnames("face", this.getCSSClassNameFromFace(face));
49
- // orient face (flip because of y axis reversal, rotate as necessary)
50
- let reorient = Matrix3d.createRowValues(1, 0, 0, 0, -1, 0, 0, 0, 1);
51
- // Position face correctly (applies to rotation, as well as translation)
52
- let reposition = Matrix3d.createIdentity();
53
- switch (this.props.face) {
54
- case Face.Bottom:
55
- reposition = Matrix3d.createRowValues(-1, 0, 0, 0, 1, 0, 0, 0, -1);
56
- reorient = Matrix3d.createRowValues(-1, 0, 0, 0, 1, 0, 0, 0, 1);
57
- break;
58
- case Face.Right:
59
- reposition = Matrix3d.createRowValues(0, 0, 1, 0, 1, 0, -1, 0, 0);
60
- reorient = Matrix3d.createRowValues(0, 1, 0, 1, 0, 0, 0, 0, 1);
61
- break;
62
- case Face.Left:
63
- reposition = Matrix3d.createRowValues(0, 0, -1, 0, 1, 0, 1, 0, 0);
64
- reorient = Matrix3d.createRowValues(0, -1, 0, -1, 0, 0, 0, 0, 1);
65
- break;
66
- case Face.Back:
67
- reposition = Matrix3d.createRowValues(1, 0, 0, 0, 0, 1, 0, -1, 0);
68
- reorient = Matrix3d.createRowValues(-1, 0, 0, 0, 1, 0, 0, 0, 1);
69
- break;
70
- case Face.Front:
71
- reposition = Matrix3d.createRowValues(1, 0, 0, 0, 0, -1, 0, 1, 0);
72
- reorient = Matrix3d.createRowValues(1, 0, 0, 0, -1, 0, 0, 0, 1);
73
- break;
74
- }
75
- const repositioned = rotMatrix.multiplyMatrixMatrix(reposition);
76
- const vect = repositioned.multiplyXYZ(0, 0, this._faceWidth);
77
- const m = repositioned.multiplyMatrixMatrix(reorient);
78
- const list = [
79
- m.at(0, 0), -m.at(1, 0), m.at(2, 0), 0,
80
- m.at(0, 1), -m.at(1, 1), m.at(2, 1), 0,
81
- m.at(0, 2), -m.at(1, 2), m.at(2, 2), 0,
82
- vect.at(0), -vect.at(1), vect.at(2) - this._faceWidth /* move back faceWidth so face is on screen level */, 1,
83
- ];
84
- const transform = `matrix3d(${list.join(", ")})`;
85
- const s = {
86
- transform,
87
- // eslint-disable-next-line @typescript-eslint/naming-convention
88
- WebkitTransform: transform,
89
- ...style,
90
- };
91
- return (React.createElement("div", { style: s, "data-testid": `components-cube-face-${face}`, className: classes, ref: (e) => { this._faceWidth = (e && e.clientWidth / 2) || 0; }, ...props }, children));
92
- }
93
- getCSSClassNameFromFace(face) {
94
- let className = "";
95
- // istanbul ignore else
96
- if (face !== Face.None)
97
- className = `cube-${face}`;
98
- return className;
99
- }
100
- }
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
+ /** @packageDocumentation
6
+ * @module Cube
7
+ */
8
+ import "./Cube.scss";
9
+ import classnames from "classnames";
10
+ import * as React from "react";
11
+ import { Matrix3d } from "@itwin/core-geometry";
12
+ /** Cube Face enumeration
13
+ * @public
14
+ */
15
+ export var Face;
16
+ (function (Face) {
17
+ Face["None"] = "";
18
+ Face["Left"] = "left";
19
+ Face["Right"] = "right";
20
+ Face["Back"] = "back";
21
+ Face["Front"] = "front";
22
+ Face["Bottom"] = "bottom";
23
+ Face["Top"] = "top";
24
+ })(Face || (Face = {}));
25
+ /** Cube React component used by the 3d Cube Navigation Aid
26
+ * @public
27
+ */
28
+ export class Cube extends React.PureComponent {
29
+ render() {
30
+ const { faces, rotMatrix, className, ...props } = this.props;
31
+ return (React.createElement("div", { className: classnames("components-cube-css3d", className), "data-testid": "components-cube", ...props }, [Face.Front, Face.Back, Face.Right, Face.Left, Face.Top, Face.Bottom]
32
+ .map((face) => {
33
+ const content = faces && faces[face];
34
+ return (React.createElement(CubeFace, { key: face, rotMatrix: rotMatrix, face: face }, content));
35
+ })));
36
+ }
37
+ }
38
+ /** @internal */
39
+ export class CubeFace extends React.Component {
40
+ constructor() {
41
+ super(...arguments);
42
+ this._faceWidth = 0;
43
+ }
44
+ render() {
45
+ const { rotMatrix, face, style, children, ...props } = this.props;
46
+ if (face === Face.None)
47
+ return null;
48
+ const classes = classnames("face", this.getCSSClassNameFromFace(face));
49
+ // orient face (flip because of y axis reversal, rotate as necessary)
50
+ let reorient = Matrix3d.createRowValues(1, 0, 0, 0, -1, 0, 0, 0, 1);
51
+ // Position face correctly (applies to rotation, as well as translation)
52
+ let reposition = Matrix3d.createIdentity();
53
+ switch (this.props.face) {
54
+ case Face.Bottom:
55
+ reposition = Matrix3d.createRowValues(-1, 0, 0, 0, 1, 0, 0, 0, -1);
56
+ reorient = Matrix3d.createRowValues(-1, 0, 0, 0, 1, 0, 0, 0, 1);
57
+ break;
58
+ case Face.Right:
59
+ reposition = Matrix3d.createRowValues(0, 0, 1, 0, 1, 0, -1, 0, 0);
60
+ reorient = Matrix3d.createRowValues(0, 1, 0, 1, 0, 0, 0, 0, 1);
61
+ break;
62
+ case Face.Left:
63
+ reposition = Matrix3d.createRowValues(0, 0, -1, 0, 1, 0, 1, 0, 0);
64
+ reorient = Matrix3d.createRowValues(0, -1, 0, -1, 0, 0, 0, 0, 1);
65
+ break;
66
+ case Face.Back:
67
+ reposition = Matrix3d.createRowValues(1, 0, 0, 0, 0, 1, 0, -1, 0);
68
+ reorient = Matrix3d.createRowValues(-1, 0, 0, 0, 1, 0, 0, 0, 1);
69
+ break;
70
+ case Face.Front:
71
+ reposition = Matrix3d.createRowValues(1, 0, 0, 0, 0, -1, 0, 1, 0);
72
+ reorient = Matrix3d.createRowValues(1, 0, 0, 0, -1, 0, 0, 0, 1);
73
+ break;
74
+ }
75
+ const repositioned = rotMatrix.multiplyMatrixMatrix(reposition);
76
+ const vect = repositioned.multiplyXYZ(0, 0, this._faceWidth);
77
+ const m = repositioned.multiplyMatrixMatrix(reorient);
78
+ const list = [
79
+ m.at(0, 0), -m.at(1, 0), m.at(2, 0), 0,
80
+ m.at(0, 1), -m.at(1, 1), m.at(2, 1), 0,
81
+ m.at(0, 2), -m.at(1, 2), m.at(2, 2), 0,
82
+ vect.at(0), -vect.at(1), vect.at(2) - this._faceWidth /* move back faceWidth so face is on screen level */, 1,
83
+ ];
84
+ const transform = `matrix3d(${list.join(", ")})`;
85
+ const s = {
86
+ transform,
87
+ // eslint-disable-next-line @typescript-eslint/naming-convention
88
+ WebkitTransform: transform,
89
+ ...style,
90
+ };
91
+ return (React.createElement("div", { style: s, "data-testid": `components-cube-face-${face}`, className: classes, ref: (e) => { this._faceWidth = (e && e.clientWidth / 2) || 0; }, ...props }, children));
92
+ }
93
+ getCSSClassNameFromFace(face) {
94
+ let className = "";
95
+ // istanbul ignore else
96
+ if (face !== Face.None)
97
+ className = `cube-${face}`;
98
+ return className;
99
+ }
100
+ }
101
101
  //# sourceMappingURL=Cube.js.map
@@ -1,175 +1,155 @@
1
- /** @packageDocumentation
2
- * @module NavigationAids
3
- */
4
- import "./CubeNavigationAid.scss";
5
- import * as React from "react";
6
- import { Matrix3d, Vector3d } from "@itwin/core-geometry";
7
- import { IModelConnection, Viewport } from "@itwin/core-frontend";
8
- import { CommonProps } from "@itwin/core-react";
9
- import { Face } from "./Cube";
10
- /** @public */
11
- export declare enum CubeNavigationHitBoxX {
12
- None = 0,
13
- Right = 1,
14
- Left = -1
15
- }
16
- /** @internal
17
- * @deprecated Use [[CubeNavigationHitBoxX]] */
18
- export declare enum HitBoxX {
19
- None = 0,
20
- Right = 1,
21
- Left = -1
22
- }
23
- /** @public */
24
- export declare enum CubeNavigationHitBoxY {
25
- None = 0,
26
- Back = 1,
27
- Front = -1
28
- }
29
- /** @internal
30
- * @deprecated Use [[CubeNavigationHitBoxY]] */
31
- export declare enum HitBoxY {
32
- None = 0,
33
- Back = 1,
34
- Front = -1
35
- }
36
- /** @public */
37
- export declare enum CubeNavigationHitBoxZ {
38
- None = 0,
39
- Top = 1,
40
- Bottom = -1
41
- }
42
- /** @internal
43
- * @deprecated [[CubeNavigationHitBoxZ]] */
44
- export declare enum HitBoxZ {
45
- None = 0,
46
- Top = 1,
47
- Bottom = -1
48
- }
49
- /** @internal */
50
- export declare enum CubeHover {
51
- None = 0,
52
- Hover = 1,
53
- Active = 2
54
- }
55
- /** Properties for the [[CubeNavigationAid]] component
56
- * @public
57
- */
58
- export interface CubeNavigationAidProps extends CommonProps {
59
- iModelConnection: IModelConnection;
60
- viewport?: Viewport;
61
- /** @internal */
62
- onAnimationEnd?: () => void;
63
- /** @internal */
64
- animationTime?: number;
65
- }
66
- /** @public */
67
- interface CubeNavigationAidState {
68
- dragging: boolean;
69
- startRotMatrix: Matrix3d;
70
- endRotMatrix: Matrix3d;
71
- animation: number;
72
- hoverMap: {
73
- [key: string]: CubeHover;
74
- };
75
- face: Face;
76
- }
77
- /** Cube Navigation Aid Component
78
- * @public
79
- */
80
- export declare class CubeNavigationAid extends React.Component<CubeNavigationAidProps, CubeNavigationAidState> {
81
- private _start;
82
- /** @internal */
83
- readonly state: Readonly<CubeNavigationAidState>;
84
- private _lastTime;
85
- private _animationFrame;
86
- private _mounted;
87
- private _labels;
88
- /** @internal */
89
- componentDidMount(): void;
90
- /** @internal */
91
- componentWillUnmount(): void;
92
- private _handleViewRotationChangeEvent;
93
- private _animation;
94
- private _animationEnd;
95
- private static _animationFn;
96
- private static _isMatrixFace;
97
- render(): React.ReactNode;
98
- private _handleCellHoverChange;
99
- private _isInteractionLocked;
100
- private static _getMatrixFace;
101
- private static _interpolateRotMatrix;
102
- private static correctSmallNumber;
103
- /**
104
- * Snap coordinates of a vector to zero and to each other so that the vector prefers to be
105
- * * perpendicular to a face of the unit cube.
106
- * * or pass through a nearby vertex or edge of the unit cube.
107
- * @param zVector existing z vector.
108
- * @param tolerance tolerance to determine if a z vector component is close to zero or 1.
109
- */
110
- private static snapVectorToCubeFeatures;
111
- /**
112
- * Adjust a worldToView matrix to favor both
113
- * * direct view at faces, edges, and corners of a view cube.
114
- * * heads up
115
- * @param worldToView candidate matrix
116
- * @param tolerance tolerance for cleaning up fuzz. The default (1.0e-6) is appropriate if very dirty viewing operations are expected.
117
- * @param result optional result.
118
- */
119
- private static snapWorldToViewMatrixToCubeFeatures;
120
- private getArrowRotationAndFace;
121
- private _onArrowClick;
122
- private getArrowTitle;
123
- private _lastClientXY;
124
- private _processDrag;
125
- private _handleBoxMouseDown;
126
- private _onMouseMove;
127
- private _onMouseUp;
128
- private _handleBoxTouchStart;
129
- private _onTouchMove;
130
- private _onTouchEnd;
131
- private _handleFaceCellClick;
132
- private _animateRotation;
133
- private _setRotation;
134
- }
135
- /** @internal */
136
- export interface NavCubeFaceProps extends React.AllHTMLAttributes<HTMLDivElement> {
137
- face: Face;
138
- label: string;
139
- hoverMap: {
140
- [key: string]: CubeHover;
141
- };
142
- onFaceCellClick: (vector: Vector3d, face: Face) => void;
143
- onFaceCellHoverChange: (vector: Vector3d, state: CubeHover) => void;
144
- }
145
- /** @internal */
146
- export declare class NavCubeFace extends React.Component<NavCubeFaceProps> {
147
- render(): React.ReactNode;
148
- static faceCellToPos: (face: Face, x: number, y: number) => Vector3d;
149
- }
150
- /** @internal */
151
- export interface FaceCellProps extends React.AllHTMLAttributes<HTMLDivElement> {
152
- center?: boolean;
153
- onFaceCellClick: (vector: Vector3d, face: Face) => void;
154
- onFaceCellHoverChange: (vector: Vector3d, state: CubeHover) => void;
155
- hoverMap: {
156
- [key: string]: CubeHover;
157
- };
158
- vector: Vector3d;
159
- face: Face;
160
- }
161
- /** @internal */
162
- export declare class FaceCell extends React.Component<FaceCellProps> {
163
- private _startMouse;
164
- render(): React.ReactNode;
165
- private _handleMouseOver;
166
- private _handleMouseOut;
167
- private _handleMouseDown;
168
- private _handleMouseUp;
169
- private _handleTouchStart;
170
- private _handleTouchEnd;
171
- private handlePointerDown;
172
- private handlePointerUp;
173
- }
174
- export {};
1
+ /** @packageDocumentation
2
+ * @module NavigationAids
3
+ */
4
+ import "./CubeNavigationAid.scss";
5
+ import * as React from "react";
6
+ import { Matrix3d, Vector3d } from "@itwin/core-geometry";
7
+ import { IModelConnection, Viewport } from "@itwin/core-frontend";
8
+ import { CommonProps } from "@itwin/core-react";
9
+ import { Face } from "./Cube";
10
+ /** @public */
11
+ export declare enum CubeNavigationHitBoxX {
12
+ None = 0,
13
+ Right = 1,
14
+ Left = -1
15
+ }
16
+ /** @public */
17
+ export declare enum CubeNavigationHitBoxY {
18
+ None = 0,
19
+ Back = 1,
20
+ Front = -1
21
+ }
22
+ /** @public */
23
+ export declare enum CubeNavigationHitBoxZ {
24
+ None = 0,
25
+ Top = 1,
26
+ Bottom = -1
27
+ }
28
+ /** @internal */
29
+ export declare enum CubeHover {
30
+ None = 0,
31
+ Hover = 1,
32
+ Active = 2
33
+ }
34
+ /** Properties for the [[CubeNavigationAid]] component
35
+ * @public
36
+ */
37
+ export interface CubeNavigationAidProps extends CommonProps {
38
+ iModelConnection: IModelConnection;
39
+ viewport?: Viewport;
40
+ /** @internal */
41
+ onAnimationEnd?: () => void;
42
+ /** @internal */
43
+ animationTime?: number;
44
+ }
45
+ /** @public */
46
+ interface CubeNavigationAidState {
47
+ dragging: boolean;
48
+ startRotMatrix: Matrix3d;
49
+ endRotMatrix: Matrix3d;
50
+ animation: number;
51
+ hoverMap: {
52
+ [key: string]: CubeHover;
53
+ };
54
+ face: Face;
55
+ }
56
+ /** Cube Navigation Aid Component
57
+ * @public
58
+ */
59
+ export declare class CubeNavigationAid extends React.Component<CubeNavigationAidProps, CubeNavigationAidState> {
60
+ private _start;
61
+ /** @internal */
62
+ readonly state: Readonly<CubeNavigationAidState>;
63
+ private _lastTime;
64
+ private _animationFrame;
65
+ private _mounted;
66
+ private _labels;
67
+ /** @internal */
68
+ componentDidMount(): void;
69
+ /** @internal */
70
+ componentWillUnmount(): void;
71
+ private _handleViewRotationChangeEvent;
72
+ private _animation;
73
+ private _animationEnd;
74
+ private static _animationFn;
75
+ private static _isMatrixFace;
76
+ render(): React.ReactNode;
77
+ private _handleCellHoverChange;
78
+ private _isInteractionLocked;
79
+ private static _getMatrixFace;
80
+ private static _interpolateRotMatrix;
81
+ private static correctSmallNumber;
82
+ /**
83
+ * Snap coordinates of a vector to zero and to each other so that the vector prefers to be
84
+ * * perpendicular to a face of the unit cube.
85
+ * * or pass through a nearby vertex or edge of the unit cube.
86
+ * @param zVector existing z vector.
87
+ * @param tolerance tolerance to determine if a z vector component is close to zero or 1.
88
+ */
89
+ private static snapVectorToCubeFeatures;
90
+ /**
91
+ * Adjust a worldToView matrix to favor both
92
+ * * direct view at faces, edges, and corners of a view cube.
93
+ * * heads up
94
+ * @param worldToView candidate matrix
95
+ * @param tolerance tolerance for cleaning up fuzz. The default (1.0e-6) is appropriate if very dirty viewing operations are expected.
96
+ * @param result optional result.
97
+ */
98
+ private static snapWorldToViewMatrixToCubeFeatures;
99
+ private getArrowRotationAndFace;
100
+ private _onArrowClick;
101
+ private getArrowTitle;
102
+ private _lastClientXY;
103
+ private _processDrag;
104
+ private _handleBoxMouseDown;
105
+ private _onMouseMove;
106
+ private _onMouseUp;
107
+ private _handleBoxTouchStart;
108
+ private _onTouchMove;
109
+ private _onTouchEnd;
110
+ private _handleFaceCellClick;
111
+ private _animateRotation;
112
+ private _setRotation;
113
+ }
114
+ /** @internal */
115
+ export interface NavCubeFaceProps extends React.AllHTMLAttributes<HTMLDivElement> {
116
+ face: Face;
117
+ label: string;
118
+ hoverMap: {
119
+ [key: string]: CubeHover;
120
+ };
121
+ onFaceCellClick: (vector: Vector3d, face: Face) => void;
122
+ onFaceCellHoverChange: (vector: Vector3d, state: CubeHover) => void;
123
+ }
124
+ /** @internal */
125
+ export declare class NavCubeFace extends React.Component<NavCubeFaceProps> {
126
+ private includeCell;
127
+ render(): React.ReactNode;
128
+ static faceCellToPos: (face: Face, x: number, y: number) => Vector3d;
129
+ }
130
+ /** @internal */
131
+ export interface FaceCellProps extends React.AllHTMLAttributes<HTMLDivElement> {
132
+ center?: boolean;
133
+ onFaceCellClick?: (vector: Vector3d, face: Face) => void;
134
+ onFaceCellHoverChange?: (vector: Vector3d, state: CubeHover) => void;
135
+ hoverMap?: {
136
+ [key: string]: CubeHover;
137
+ };
138
+ vector: Vector3d;
139
+ face: Face;
140
+ }
141
+ /** @internal */
142
+ export declare class FaceCell extends React.Component<FaceCellProps> {
143
+ private _startMouse;
144
+ render(): React.ReactNode;
145
+ private _handleMouseOver;
146
+ private _handleMouseOut;
147
+ private _handleMouseDown;
148
+ private _handleMouseUp;
149
+ private _handleTouchStart;
150
+ private _handleTouchEnd;
151
+ private handlePointerDown;
152
+ private handlePointerUp;
153
+ }
154
+ export {};
175
155
  //# sourceMappingURL=CubeNavigationAid.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"CubeNavigationAid.d.ts","sourceRoot":"","sources":["../../../../src/imodel-components-react/navigationaids/CubeNavigationAid.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,0BAA0B,CAAC;AAElC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAyC,QAAQ,EAAqB,QAAQ,EAAU,MAAM,sBAAsB,CAAC;AAC5H,OAAO,EAAa,gBAAgB,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAC7E,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAGhD,OAAO,EAAQ,IAAI,EAAE,MAAM,QAAQ,CAAC;AAEpC,cAAc;AACd,oBAAY,qBAAqB;IAC/B,IAAI,IAAI;IACR,KAAK,IAAI;IACT,IAAI,KAAK;CACV;AACD;+CAC+C;AAC/C,oBAAY,OAAO;IACjB,IAAI,IAAI;IACR,KAAK,IAAI;IACT,IAAI,KAAK;CACV;AAED,cAAc;AACd,oBAAY,qBAAqB;IAC/B,IAAI,IAAI;IACR,IAAI,IAAI;IACR,KAAK,KAAK;CACX;AACD;+CAC+C;AAC/C,oBAAY,OAAO;IACjB,IAAI,IAAI;IACR,IAAI,IAAI;IACR,KAAK,KAAK;CACX;AAED,cAAc;AACd,oBAAY,qBAAqB;IAC/B,IAAI,IAAI;IACR,GAAG,IAAI;IACP,MAAM,KAAK;CACZ;AACD;2CAC2C;AAC3C,oBAAY,OAAO;IACjB,IAAI,IAAI;IACR,GAAG,IAAI;IACP,MAAM,KAAK;CACZ;AAwCD,gBAAgB;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