洪运源码

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手绘风格数据可视化工具

Sketchify手绘风格数据可视化工具下载地址

Sketchify手绘风格数据可视化工具v1.0 源码链接:https://www.hycodes.cn/sjgl/1430.html

下载说明:本站部分资源供学习交流使用,如商业用途,请购正版。

返回顶部