Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

graphicjs

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

graphicjs - npm Package Versions

1.0.2

Diff

Changelog

Source

[1.0.2] - 2020-09-22

Added method to calculate text dimensions(graphicjs.getTextDimensions()).

takuya-motoshima
published 1.0.1 •

Changelog

Source

[1.0.1] - 2020-09-21

Added a method to crop the image in a circle.

drawLine.png

<canvas id="canvas"></canvas>

import graphicjs from 'graphicjs';

// Crop the image in a circle
const croppedImg = await graphicjs.cropCircle('sample.jpg', { size: 240 });
const canvas = document.querySelector('#canvas');
canvas.width = croppedImg.width;
canvas.height = croppedImg.height;
canvas.getContext('2d').drawImage(croppedImg, 0, 0);
takuya-motoshima
published 1.0.0 •

Changelog

Source

[1.0.0] - 2020-09-09

Released.

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