0.2.0-beta.1 • Published 5 years ago

@mserve/ngx-svg-canvas v0.2.0-beta.1

Weekly downloads
4
License
MIT
Repository
github
Last release
5 years ago

ngx-svg-canvas

Table of contents

  1. Getting Started
  2. Latest Update
  3. Installation
  4. API

Getting Started

ngx-svg-canvas is a whiteboard component for Angular 8.x+ applications. It uses Two.js to render your drawings to an SVG canvas. Exports can be downloaded as SVG.

<ngx-svg-canvas [gridSize]='30'></ngx-svg-canvas>

Latest Update

Installation

npm install @m-serve/ngx-svg-canvas --save

API

Component:

the ngx-svg-canvas component supports the following input properties:

InputTypeDefaultDescription
gridSizenumber0size of the background grid, hidden if 0
gridColorstring#6dcff6color of the grid, if enabled

Demo

You can clone the repo and then launch a demo page in your local machine:

npm install
npm run demo

The demo page server is listening to: http://localhost:4203