Sketchify手绘风格数据可视化工具 v1.0


Sketchify是一个js工具,可将任何包含SVG图形的DOM元素转换为手绘风格的效果。它基于Rough.js。


Sketchify用法:
将由svg组成的现有图形转换为草图模式。运行以下代码:
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();
有关fillStyle,roughness和bowing的选项,请参考roughjs api文档。
Sketchify手绘风格数据可视化工具
下载列表

版权声明:本文来源于互联网,如有侵权,请联系下方邮箱,一个工作日删除!