@webspatial/platform-visionos 0.0.3-alpha.0 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -8,7 +8,7 @@ class SpatialModel3DComponent: SpatialComponent {
|
|
|
8
8
|
var modelURL: String = ""
|
|
9
9
|
var opacity: Double = 1.0
|
|
10
10
|
var rotationAnchor: UnitPoint3D = .center
|
|
11
|
-
var scrollWithParent =
|
|
11
|
+
var scrollWithParent = false
|
|
12
12
|
var contentMode: ContentMode = .fit
|
|
13
13
|
var resizable: Bool = true
|
|
14
14
|
var aspectRatio: Double? = nil
|
|
@@ -414,6 +414,10 @@ class CommandManager {
|
|
|
414
414
|
spatialModel3DComponent.enableLongPressEvent = enableLongPressEvent
|
|
415
415
|
}
|
|
416
416
|
|
|
417
|
+
if let scrollWithParent: Bool = data.update?.scrollWithParent {
|
|
418
|
+
spatialModel3DComponent.scrollWithParent = scrollWithParent
|
|
419
|
+
}
|
|
420
|
+
|
|
417
421
|
} else if let spatialWindowComponent = sr as? SpatialWindowComponent {
|
|
418
422
|
if let _: String = data.update?.getEntityID {
|
|
419
423
|
if let entity: SpatialEntity = spatialWindowComponent.entity {
|