{"version":3,"file":"selecto.mjs","sources":["../../../../../src/plugins/moveable/selecto.ts"],"sourcesContent":["import Selecto from 'selecto';\nimport { Ref, ref } from 'vue-demi';\n\nexport const selecto = ref() as Ref<Selecto>;\n\nexport function newSelecto() {\n    selecto.value = null !;\n}\n\nexport function initSelecto() {\n    // console.log(selecto.value)\n    if (!selecto.value) {\n        // console.log('销毁selecto')\n        // selecto.value.destroy()\n        // console.log('初始化selecto');\n        selecto.value = new Selecto({\n            // The container to add a selection element\n            container: document.querySelector('.design-content-scroll') as HTMLElement,\n            // Selecto's root container (No transformed container. (default: null)\n            rootContainer: null,\n            // The area to drag selection element (default: container)\n            // dragContainer: Element,\n            // Targets to select. You can register a queryselector or an Element.\n            // selectableTargets: [\".design-select\"],\n            // Whether to select by click (default: true)\n            selectByClick: true,\n            // Whether to select from the target inside (default: true)\n            selectFromInside: false,\n            // After the select, whether to select the next target with the selected target (deselected if the target is selected again).\n            // continueSelect: false,\n            // Determines which key to continue selecting the next target via keydown and keyup.\n            // toggleContinueSelect: \"shift\",\n            // The container for keydown and keyup events\n            // keyContainer: window,\n            // The rate at which the target overlaps the drag area to be selected. (default: 100)\n            hitRate: 0,\n            ratio: 0\n        });\n    }\n\n}\n"],"names":[],"mappings":";;;AAGO,MAAM,UAAU,GAAI,GAAA;AAEpB,SAAS,UAAa,GAAA;AACzB,EAAA,OAAA,CAAQ,KAAQ,GAAA,IAAA,CAAA;AACpB,CAAA;AAEO,SAAS,WAAc,GAAA;AAE1B,EAAI,IAAA,CAAC,QAAQ,KAAO,EAAA;AAIhB,IAAQ,OAAA,CAAA,KAAA,GAAQ,IAAI,OAAQ,CAAA;AAAA,MAExB,SAAA,EAAW,QAAS,CAAA,aAAA,CAAc,wBAAwB,CAAA;AAAA,MAE1D,aAAe,EAAA,IAAA;AAAA,MAMf,aAAe,EAAA,IAAA;AAAA,MAEf,gBAAkB,EAAA,KAAA;AAAA,MAQlB,OAAS,EAAA,CAAA;AAAA,MACT,KAAO,EAAA,CAAA;AAAA,KACV,CAAA,CAAA;AAAA,GACL;AAEJ;;;;"}