话术预览修改

This commit is contained in:
shidongli 2024-07-22 14:57:53 +08:00
parent 1ead0a930e
commit 966decb685

View File

@ -417,6 +417,17 @@ export default {
const toolbar = new G6Editor.Toolbar({
container: "toolbar"
});
const container = document.getElementById('page');
// graph
container.addEventListener('mousewheel', (e) => {
e.preventDefault();
const ratio = 1.1; //
const oldScale = this.editor.getCurrentPage().getZoom(); //
// console.log(oldScale, 'oldScale')
const newScale = e.wheelDelta > 0 ? oldScale * ratio : oldScale / ratio; //
// console.log(newScale, 'oldScale')
this.editor.getCurrentPage().zoom(newScale); //
})
//
// const detailpannel = new G6Editor.Detailpannel({
// container: "detailpannel"