// import { DragControls } from 'three/examples/jsm/controls/DragControls.js'
// import { TransformControls } from 'three/examples/jsm/controls/TransformControls.js'

// export default class TacosMapEditor {
//     constructor(meta) {
//         this.cloudRender = meta
//         this.dragControls = null
//         this.draggedObjects = []
//         // this.transformControl = transformControl
//     }
//     /**
//      * 开启模型拖拽
//      * @param {string} name 需要开启拖拽模型名称关键字
//      */
//     enableDragging (name) {
//         var that = this
//         this.cloudRender.scene.traverse(function (child) {
//             if (child.isObject3D && child.name.includes(name)) {
//                 that.draggedObjects.push(child)
//             }
//         })
//         this.dragControls = new DragControls(this.draggedObjects, this.cloudRender.camera, this.cloudRender.glRender.domElement)
//         this.cloudRender.camera.control.enabled = false
//         this.dragControls.addEventListener('drag', function (e) {
//             console.log(e)
//         })

//         this.transformControl = new TransformControls(this.cloudRender.camera, this.cloudRender.glRender.domElement)
//     }
//     /**
//      * 停止模型拖拽
//      */
//     disableDragging () {

//     }
//     /**
//      * 保存
//      */
//     saveEditing () {

//     }
// }