This commit is contained in:
lzp
2026-03-13 11:18:36 +08:00
parent c2e26f0328
commit 3b320d0867
12 changed files with 180 additions and 50 deletions

View File

@@ -12,6 +12,9 @@ export const createCanvas = (elementId, options = {}) => {
// skipOffscreen: true, // 跳过离屏渲染
imageSmoothingEnabled: true, // 启用图像平滑 - 抗锯齿
imageSmoothingQuality: "high", // 设置高质量图像平滑
fireMiddleClick: true,// 启用中键点击事件
fireRightClick: true,// 启用右键点击事件
stopContextMenu: true,// 阻止浏览器默认的右键菜单弹出,避免干扰
...options,
});