https://github.com/jhwohlgemuth/snapsvg-hexagonal
Snap.svg plugin for creating hexagonal UI elements
https://github.com/jhwohlgemuth/snapsvg-hexagonal
browser menu snapsvg svg ui
Last synced: 2 months ago
JSON representation
Snap.svg plugin for creating hexagonal UI elements
- Host: GitHub
- URL: https://github.com/jhwohlgemuth/snapsvg-hexagonal
- Owner: jhwohlgemuth
- License: mit
- Created: 2017-07-26T23:24:31.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2024-04-07T08:54:57.000Z (about 1 year ago)
- Last Synced: 2025-03-11T14:46:20.937Z (3 months ago)
- Topics: browser, menu, snapsvg, svg, ui
- Language: JavaScript
- Homepage: https://jhwohlgemuth.github.io/snapsvg-hexagonal/
- Size: 1.53 MB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- Contributing: .github/CONTRIBUTING.md
- License: LICENSE
- Code of conduct: .github/CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
[](https://www.npmjs.com/package/snapsvg-hexagonal)
[](https://travis-ci.org/jhwohlgemuth/snapsvg-hexagonal)
[](https://ci.appveyor.com/project/jhwohlgemuth/snapsvg-hexagonal)
[](https://coveralls.io/github/jhwohlgemuth/snapsvg-hexagonal?branch=master)
[](https://www.bithound.io/github/jhwohlgemuth/snapsvg-hexagonal)
[](https://snyk.io/test/github/jhwohlgemuth/snapsvg-hexagonal)> [Snap.svg](http://snapsvg.io/) plugin for creating hexagonal UI elements.
Installation
------------```bash
npm install snapsvg snapsvg-hexagonal
```Usage
-----**AMD (Require.js)**
> Add to [paths attrbute of requirejs config file](http://requirejs.org/docs/api.html#config-paths) and require in code```js
// config.js
requirejs.config({
paths: {
snapsvg: 'path/to/node_modules/snapsvg/snapsvg',
hexagonal: 'path/to/node_modules/snapsvg-hexagonal/dist/snapsvg-hexagonal'
}
});// main.js
define(function(require) {
'use strict';const Snap = require('snapsvg');
const hexagonal = require('hexagonal');
Snap.plugin(hexagonal);
});
```**Browser global**
```html
...
Snap.plugin('hexagonal');
/* code code code */
```
Features
--------
> Under constructionContributing
------------
> Please read the [contributing guide](.github/CONTRIBUTING.md)Roadmap
-------
- Follow progress on [Trello](https://trello.com/b/MaTNvM8a/hexagonal)Credits
-------
- Under constructionLicense
-------
[](https://app.fossa.io/projects/git%2Bhttps%3A%2F%2Fgithub.com%2Fjhwohlgemuth%2Fsnapsvg-hexagonal?ref=badge_large)