All Projects → bpmn-io → tiny-svg

bpmn-io / tiny-svg

Licence: MIT license
A minimal toolbelt for builing fast SVG-based applications

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to tiny-svg

battack
©SMS BOMBING & CALL BOMBING TOOL FOR TERMUX
Stars: ✭ 336 (+888.24%)
Mutual labels:  toolkit
TCSTK-Angular
TIBCO Cloud™ Composer - Angular Libraries
Stars: ✭ 12 (-64.71%)
Mutual labels:  toolkit
com.xrtk.oculus
The Oculus platform components for the XRTK
Stars: ✭ 11 (-67.65%)
Mutual labels:  toolkit
okiba
Sharp collection of tools for front-end development, created with performance in mind. 🗡
Stars: ✭ 26 (-23.53%)
Mutual labels:  toolkit
ctx-core
A composable monorepo web-service/front-end toolkit
Stars: ✭ 25 (-26.47%)
Mutual labels:  toolkit
sweekt
🍭 Some sugar to sweeten Kotlin development.
Stars: ✭ 35 (+2.94%)
Mutual labels:  toolkit
UnityCommon
A collection of common frameworks and tools for Unity-based projects
Stars: ✭ 61 (+79.41%)
Mutual labels:  toolkit
framestack
Tools, Frameworks & Libraries to help you build your projects ✨
Stars: ✭ 27 (-20.59%)
Mutual labels:  toolkit
beems
a bee-queue based minimalist toolkit for building fast, decentralized, scalable and fault tolerant microservices
Stars: ✭ 33 (-2.94%)
Mutual labels:  toolkit
Standard-Toolkit
An update to Component factory's krypton toolkit to support .NET Framework 4.6.2 - 4.8.1 to .NET Core/.NET
Stars: ✭ 194 (+470.59%)
Mutual labels:  toolkit
chrome-batch-pid
淘宝客工具系列,chrome 插件,批量创建推广位
Stars: ✭ 29 (-14.71%)
Mutual labels:  toolkit
Krypton-Toolkit-Suite-NET-Core
A update to Component factory's krypton toolkit to support .NET Framework 3.5 to .NET Core
Stars: ✭ 27 (-20.59%)
Mutual labels:  toolkit
pure-orm
A pure ORM for writing native SQL queries yielding pure business objects
Stars: ✭ 349 (+926.47%)
Mutual labels:  toolkit
gilbert
Build system and task runner for Go projects
Stars: ✭ 105 (+208.82%)
Mutual labels:  toolkit
arcgis-runtime-toolkit-java
Runtime Java SE toolkit
Stars: ✭ 16 (-52.94%)
Mutual labels:  toolkit
Sparkora
Powerful rapid automatic EDA and feature engineering library with a very easy to use API 🌟
Stars: ✭ 51 (+50%)
Mutual labels:  toolkit
OpenpilotToolkit
Openpilot Toolkit (OPTK) is a class library and toolkit for interacting with your openpilot / commaai devices.
Stars: ✭ 55 (+61.76%)
Mutual labels:  toolkit
ipc-toolkit
A set of reusable functions to integrate IPC into an existing simulation.
Stars: ✭ 84 (+147.06%)
Mutual labels:  toolkit
axion
A toolkit for CTFs
Stars: ✭ 15 (-55.88%)
Mutual labels:  toolkit
terran
A human perception library
Stars: ✭ 98 (+188.24%)
Mutual labels:  toolkit

tiny-svg

CI

tiny-svg is a minimal toolbelt for creating clean SVG applications.

Features

  • no wrapping magic, using native DOM elements instead
  • modular, just use what you need
  • 2kB minified + gzipped
  • innerSVG support
  • simplified attribute handling
  • geometry helpers

Checkout provided utilities.

Usage

import {
  appendTo,
  classes,
  create,
  innerSVG
} from 'tiny-svg';

var container = document.createElement('div');
var element = appendTo(create('svg'), container);

var g = appendTo(create('g'), element);

// add classes, SVG style!
classes(g).add('foo');

var text = `
  <g class="foo bar">
    <rect x="0" y="0" width="0" height="0" rx="50" ry="50"/>
  </g>
`;

// set innerSVG
innerSVG(g, text);

Your favourite module bundler should apply tree-shaking to only include the components your application requires. If you're using CommonJS modules give common-shake a try.

Related

  • min-dom - minimal DOM utility toolbelt
  • min-dash - minimal lodash inspired utility toolbelt

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].