Sword
made SVG super easy.
Examples of introduction the website
Examples of Application the website
Install
the file is here: sword.js or sword.min.js
You can also install it via npm:
npm install alloysword
Sword can be used in the CommonJS/AMD module definition environment, but also directly through the script tag reference in your page ,such as:
<script src="sword.js"></script>
you can get the Sword module by synchronizing require in the AMD module definition environment:
define(function (require) {
var Sword = require('sword');
});
or asynchronous require:
require([ 'sword' ], function (Sword) {
});
or require in the CommonJS module definition environment:
var Sword = require('sword');
Many thanks to
License
This content is released under the MIT License.