import{At as e,E as t,Ot as n,Xt as r}from"./chunks/framework.ECw2lWOt.js";var i=JSON.parse(`{"title":"uiService事件","description":"","frontmatter":{},"headers":[],"relativePath":"api/editor/uiServiceEvents.md","filePath":"api/editor/uiServiceEvents.md"}`),a={name:`api/editor/uiServiceEvents.md`};function o(t,i,a,o,s,c){return r(),n(`div`,null,[...i[0]||=[e(`

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)]])}var s=t(a,[[`render`,o]]);export{i as __pageData,s as default};