import{ax as i,z as a,A as n,b5 as h}from"./chunks/framework.DRScawWW.js";const g=JSON.parse('{"title":"uiService事件","description":"","frontmatter":{},"headers":[],"relativePath":"api/editor/uiServiceEvents.md","filePath":"api/editor/uiServiceEvents.md"}'),k={name:"api/editor/uiServiceEvents.md"};function p(l,s,t,e,r,E){return n(),a("div",null,[...s[0]||(s[0]=[h(`

uiService事件

state-change

js
import { uiService } from '@tmagic/editor';

uiService.on('state-change', (name, value, preValue) => {
  console.log(\`\${name} 从\`, preValue, '变为', value);
});

uiService.set('zoom', 1.5);

TIP

`,5)])])}const y=i(k,[["render",p]]);export{g as __pageData,y as default};