New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

canvas-drawer

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

canvas-drawer

### TypeScript defination is included.

  • 0.1.1
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

canvas-drawer

TypeScript defination is included.


const dr = new Drawer({ width: 285, height: 422 })
dr.drawText('会计师的立方空间是考虑到福晶科技是否将克里斯多夫框架', {
    font: '34px Arial',
    top: 100,
    left: 40,
    color: '#999999',
    maxWidth: 200
})

dr.drawText('2222222', {
    font: '34px Arial',
    top: 130,
    left: 100,
    textAlign: 'right',
    color: '#999999',
    maxWidth: 200
})

dr.drawText('3333333', {
    font: '34px Arial',
    top: 130,
    left: 100,
    textAlign: 'left',
    color: '#999999',
    maxWidth: 200
})

dr.drawImage(
    'https://file.t8tcdn.com/d/flash/2020/03/11/17/20200311171816235041583920479442-512-l-1-1.jpg',
    {
        width: 200,
        height: 200,
        left: 20,
        top: 200
    }
)

dr.main.canvas.style.width = '285px'
dr.main.canvas.style.height = '422px'
document.body.append(dr.main.canvas)

dr.toBase64().then((data) => {
    console.log(data)
})



Keywords

FAQs

Package last updated on 20 Mar 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc