MarqueeEditor(options)

框选放大编辑器

new MarqueeEditor(options)

Parameters:
Name Type Description
options Object

包含以下参数的对象

Properties
Name Type Attributes Default Description
viewer Viewer

Motor.Viewer实例化对象

isLookAtCenter Boolean <optional>
true

放大后是否将旋转中心锁定到屏幕中心的模型上

Members

marqueeStart :Event

框选点击开始事件

Example
viewer.marqueeEditor.marqueeStart.addEventListener(()=>{
  console.log('marquee start');
});

marqueeStop :Event

框选点击结束事件

Example
viewer.marqueeEditor.marqueeStop.addEventListener(()=>{
  console.log('marquee stop');
});

Methods

destroy()

销毁MarqueeEditor

startMarquee()

开启一次框选放大