save restore workspace view

This commit is contained in:
Stewart Allen 2022-01-04 09:48:36 -05:00
commit 77393a9c2e
5 changed files with 38 additions and 27 deletions

View file

@ -202,8 +202,8 @@ MOTO.Orbit = function (object, domElement, notify, slider) {
};
this.setTarget = function(t) {
this.target = t;
this.target0 = t.clone();
this.target = new THREE.Vector3().add(t);
this.target0 = this.target.clone();
}
function isValue(v) {

View file

@ -93,6 +93,7 @@
platformClick,
platformClickAt,
platformOnMove,
platformOnMoveTime = 500,
platformMoveTimer,
volume,
light1,
@ -1012,7 +1013,7 @@
isHidden: () => { return !showPlatform },
isVisible: () => { return platform.visible },
opacity: (o) => { platform.material.opacity = o },
onMove: (f) => { platformOnMove = f },
onMove: (f,t) => { platformOnMove = f, platformOnMoveTime = t || platformOnMoveTime },
onHover: (f) => { platformHover = f },
onClick: (f) => { platformClick = f},
size: () => { return platform.scale },