save restore workspace view
This commit is contained in:
parent
ec61c9ed22
commit
77393a9c2e
5 changed files with 38 additions and 27 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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 },
|
||||
|
|
|
|||
Loading…
Reference in a new issue