V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
qianzhu
V2EX  ›  Electron

electron svg 会保留 ‘痕迹’

  •  
  •   qianzhu · 120 天前 · 616 次点击
    这是一个创建于 120 天前的主题,其中的信息可能已经有所发展或是发生改变。

    我在主窗口设置了 win.setVisibleOnAllWorkspaces(true, { visibleOnFullScreen: false }),然后在页面中使用 svg 创建了一个可以写字的白板。

    我发现,我在 A 窗口画了一条线,在 B 窗口清除掉这条线,B 窗口会留下那条线的痕迹。反过来在 B 中画,A 中清除也是一样会留有痕迹。

    electron: 25.6.0 MacOS x86 Sonoma 14.2.1

    关键代码: https://gist.github.com/syt-honey/3823d059e16dbe8dfc150b18169e822a

    痕迹: https://user-images.githubusercontent.com/36325249/293312786-fb09afe3-0ac4-45f4-aa9e-4318251c4444.png

    目前尚无回复
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1092 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 23:12 · PVG 07:12 · LAX 16:12 · JFK 19:12
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.