<kbd id="afajh"><form id="afajh"></form></kbd>
<strong id="afajh"><dl id="afajh"></dl></strong>
    <del id="afajh"><form id="afajh"></form></del>
        1. <th id="afajh"><progress id="afajh"></progress></th>
          <b id="afajh"><abbr id="afajh"></abbr></b>
          <th id="afajh"><progress id="afajh"></progress></th>

          Sketchify手繪風(fēng)格數(shù)據(jù)可視化工具

          聯(lián)合創(chuàng)作 · 2023-09-18 21:15

          Sketchify是一個js工具,可將任何包含SVG圖形的DOM元素轉(zhuǎn)換為手繪風(fēng)格的效果。它基于Rough.js

          用法

          將由svg組成的現(xiàn)有圖形轉(zhuǎn)換為草圖模式。運(yùn)行以下代碼:

          const option = {
              fillStyle: 'hachure',
              roughness: 1,
              bowing: 1,
              chartType: 'highcharts',
          };
          // container is the root dom element that contains related graph svg
          const handler = Sketchifier(container, option);
          handler.handify();
          
          // call restore will turn the graph back to original one
          handler.restore();

          有關(guān)fillStyle,roughness和bowing的選項,請參考roughjs api文檔

          在線示例:

          瀏覽 16
          點贊
          評論
          收藏
          分享

          手機(jī)掃一掃分享

          編輯 分享
          舉報
          評論
          圖片
          表情
          推薦
          點贊
          評論
          收藏
          分享

          手機(jī)掃一掃分享

          編輯 分享
          舉報
          <kbd id="afajh"><form id="afajh"></form></kbd>
          <strong id="afajh"><dl id="afajh"></dl></strong>
            <del id="afajh"><form id="afajh"></form></del>
                1. <th id="afajh"><progress id="afajh"></progress></th>
                  <b id="afajh"><abbr id="afajh"></abbr></b>
                  <th id="afajh"><progress id="afajh"></progress></th>
                  爆乳操逼| 天天做天天爽 | 国产精品久久久久久久 | 日本特黄色 | 国产日韩精品无码 |