feat(viewer): add bounding-box and animated SVG loading spinner

This commit is contained in:
uttarayan21
2025-10-09 13:35:56 +05:30
parent 76304da61f
commit 9384b50397
5 changed files with 166 additions and 34 deletions

62
Cargo.lock generated
View File

@@ -677,6 +677,22 @@ dependencies = [
"piper",
]
[[package]]
name = "bounding-box"
version = "0.1.0"
source = "git+https://github.com/aftershootco/ndcv-bridge#16c3b2e9105d3528a6ffbc2e1fe9046cb6930a6e"
dependencies = [
"color",
"itertools 0.14.0",
"nalgebra",
"ndarray",
"num",
"ordered-float",
"simba",
"thiserror 2.0.17",
"tracing",
]
[[package]]
name = "bstr"
version = "1.12.0"
@@ -983,6 +999,12 @@ dependencies = [
"unicode-width",
]
[[package]]
name = "color"
version = "0.3.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a18ef4657441fb193b65f34dc39b3781f0dfec23d3bd94d0eeb4e88cde421edb"
[[package]]
name = "color_quant"
version = "1.1.0"
@@ -3153,6 +3175,7 @@ name = "mm"
version = "0.1.0"
dependencies = [
"ash",
"bounding-box",
"clap",
"clap_complete",
"error-stack",
@@ -3255,6 +3278,21 @@ dependencies = [
"getrandom 0.2.16",
]
[[package]]
name = "ndarray"
version = "0.16.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "882ed72dce9365842bf196bdeedf5055305f11fc8c03dee7bb0194a6cad34841"
dependencies = [
"matrixmultiply",
"num-complex",
"num-integer",
"num-traits",
"portable-atomic",
"portable-atomic-util",
"rawpointer",
]
[[package]]
name = "new_debug_unreachable"
version = "1.0.6"
@@ -3600,6 +3638,15 @@ version = "0.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "04744f49eae99ab78e0d5c0b603ab218f515ea8cfe5a456d7629ad883a3b6e7d"
[[package]]
name = "ordered-float"
version = "5.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7f4779c6901a562440c3786d08192c6fbda7c1c2060edd10006b05ee35d10f2d"
dependencies = [
"num-traits",
]
[[package]]
name = "ordered-stream"
version = "0.2.0"
@@ -3787,6 +3834,21 @@ version = "0.2.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5da3b0203fd7ee5720aa0b5e790b591aa5d3f41c3ed2c34a3a393382198af2f7"
[[package]]
name = "portable-atomic"
version = "1.11.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f84267b20a16ea918e43c6a88433c2d54fa145c92a811b5b047ccbe153674483"
[[package]]
name = "portable-atomic-util"
version = "0.2.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d8a2f0d8d040d7848a709caf78912debcc3f33ee4b3cac47d73d1e1069e83507"
dependencies = [
"portable-atomic",
]
[[package]]
name = "postage"
version = "0.5.0"