Giter Club home page Giter Club logo

xl_canvas's Introduction

xl_canvas



const canvas = new Canvas({
    canvas: 'test',
    target: 'test',
    list: 'list',
    height: 960,
    width: 960,
    before:..,
    after:..,
    data: dataCa?JSON.parse(dataCa):[],
});


options

canvas : canvas 对象或者选择器
target : 事件对象。
list : 图片列表对象
height/width : 宽高
data : 初始化数据
before : 初始化绘图之前
after : 初始化绘图之后

canvas 实例对象方法

addPhoto() : 添加图片,传入一个url/图片对象
save() : 返回报错的数据
addCommand(fuc) : 添加操作,对canvas的操作

xl_canvas's People

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.