class Label2D extends THREE.EventDispatcher { constructor(o = {}) { super() this.title = o.title this.position = o.position console.log(o); this.elem = $(`
${o.title} ${o.labeltype ? `
${o.entitle}` : ''} ${o.labeltype ? `南宋赵孟坚经历丧国的痛楚,把松竹梅在一起创作出《岁寒三友图》,借用“岁寒三友”来比喻自己为身处乱世不变其节的忠贞之士。
${this.title}
`) } setPos(pos) { this.position = pos; this.update() } dispose() { this.elem.remove(); this._listeners = {} this.dispatchEvent({ type: 'dispose' }) } }