1.5.2 • Published 10 months ago

@map.ir/vector-style-editor v1.5.2

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

NPM Release

mapir-vector-style-editor

PropTypeDescriptionDefaultRequire
mapMapOptionsNo
locale'fa' OR 'en'Language of editor'en'No
styleURLstringURL of style for edit-Yes
spritestringURL of sprite of style-No
titlestringTiltle of editor-No
columnsstring[]Columns of dataset-No
classNamestring-No
onSubmit(arg: StyleSpecification) => voidCallback that is invoked when submitting-No
onCancel(arg: StyleSpecification) => voidCallback that is invoked when canceling-No
getDistinctValues(arg: string) => PromiseCallback that is invoked when a column is selected-No
CSS VariablesValue
--SE-color-primary#ea4c89
--SE-color-primary-20#ea4c8920
--SE-color-secondry#2e0767
--SE-shade-1#1c1c1c
--SE-shade-2#808080
--SE-shade-3#C2C2C2
--SE-shade-4#E8E8E8
--SE-shade-5#E0E0E0
--SE-light-1#ffffff
--SE-light-2#FAFAFA
--SE-success-1#20A76E
--SE-fail-1#D10328
--SE-radius-416px
--SE-radius-88px
--SE-radius-164px
--SE-font-family-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif

You can rewrite this variables.

Install

npm install @map.ir/vector-style-editor

Develop

use the dev script:

npm run dev

License

MIT © map-ir