geoEditor
https://observablehq.com/@fil/geoeditor
Installing
Install with NPM (npm install geoeditor
) or Yarn (yarn add geoeditor
), then:
import GeoEditor from 'geoeditor'
const GeoEditor = require('geoeditor')
Or use a browser build directly:
<script src="https://unpkg.com/geoeditor@1.0.0/geoeditor.min.js"></script>
<script src="https://unpkg.com/geoeditor@1.0.0/geoeditor.js"></script>
API Reference
# new GeoEditor(options) · Source
...
import { geoEditor } from './geoeditor.esm.js'
const editor = geoEditor()
const colorSelector = editor.colorPropertyView()
document.querySelector('body').append(colorSelector)
Development
Install and run
git clone git@github.com:Fil/geoEditor.git
cd geoEditor
npm install
npm run start
Publishing a release
npm install
npm run release
npm run publish