GithubHelp home page GithubHelp logo

sgr28r8 / angular-svg Goto Github PK

View Code? Open in Web Editor NEW

This project forked from panacea-cooperative/angular-svg

0.0 0.0 0.0 850 KB

A Angular2 (or more) library to use svg components and leverage angular features. Inline angular binding with svg

License: MIT License

JavaScript 9.71% TypeScript 72.72% HTML 17.30% SCSS 0.27%

angular-svg's Introduction

SetUp

npm install @panacea-coop/angular-svg

Usage

import { SvgCircleModule, SvgLineModule, SvgPolygonModule, SvgPolylineModule, SvgTextModule, SvgPathModule } from '@panacea-coop/angular-svg'

#Modules List :

  1. SvgCricle
  2. SvgText
  3. SvgRectangle
  4. SvgPolygon
  5. SvgPolyline
  6. SvgLine
  7. SvgEllipse
  8. SvgPath

In Html

<svg>
  // for circle
  <g svg-circle
  [circle]="circle"
  (circleMousedown)="onCircleClick($event)"></g>
  
  // for line
  <g svg-line
  [line]="line"
  (lineMousedown)="onLineClick($event)"></g>
  
  // for polygon
  <g svg-polygon
  [polygon]="polygon"
  (polygonMousedown)="onPolygonClick($event)"></g>
  
  // for polyline
  <g svg-polyline
  [polyline]="polyline"></g>
  
  // for svg path
  <g svg-path
  [path]="pathString"
  [stroke]="colorstroke"></g>
  
  // for svg text
  <g svg-text
  [text]="text">test</g>
</svg>

Versions

Library version Angular version
3.0.x 8.x
3.1.x 9.x
3.2.x 10.x
3.3.x 11.x
3.4.x 12.x
3.5.x 13.x

Attributions

This library is a fork of https://www.npmjs.com/package/angular-svg from Yaswanth Kata under same MIT license.

angular-svg's People

Contributors

tokkenno avatar

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.