Socket
Socket
Sign inDemoInstall

graphics-ts

Package Overview
Dependencies
2
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    graphics-ts

A porting of purescript-{canvas, free-canvas, drawing} featuring fp-ts


Version published
Weekly downloads
67
increased by39.58%
Maintainers
1
Install size
189 kB
Created
Weekly downloads
 

Changelog

Source

1.1.0

  • New Feature

    • add bindWithContext to Canvas module (@IMax153)
    • export renderShape from Drawing (@IMax153)
  • Polish

    • deprecate bind and Handler in Canvas module (@IMax153)
    • reorganize module structure to follow current convention in fp-ts (@IMax153)
  • Documentation

    • upgrade to latest docs-ts (0.5.1) and add category tags to all module exports (@IMax153)

Readme

Source

Functional bindings for the HTML Canvas API

Inspired by

  • purescript-canvas
  • purescript-free-canvas
  • purescript-drawing

Installation

To install the stable version:

npm install graphics-ts fp-ts fp-ts-contrib

Note: fp-ts and fp-ts-contrib are peer dependencies for graphics-ts

Documentation

Example

To run the example, clone the repository and run the following:

npm install
npm start
open example/test.html
snowflake

Adapted from https://github.com/purescript-contrib/purescript-drawing/blob/master/test/Main.purs

Keywords

FAQs

Last updated on 17 Jul 2020

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc