{"id":18909850,"url":"https://github.com/map-ir/vector-style-editor","last_synced_at":"2025-10-07T12:31:45.536Z","repository":{"id":63847734,"uuid":"542130341","full_name":"map-ir/vector-style-editor","owner":"map-ir","description":"MVT style editor, check out the demo:","archived":false,"fork":false,"pushed_at":"2023-07-19T17:30:05.000Z","size":85496,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-31T12:38:11.835Z","etag":null,"topics":["editor","map"],"latest_commit_sha":null,"homepage":"https://map-ir.github.io/vector-style-editor/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/map-ir.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-09-27T14:31:42.000Z","updated_at":"2024-05-01T20:12:20.000Z","dependencies_parsed_at":"2024-11-08T09:37:07.101Z","dependency_job_id":"2ace112b-9f9f-4b6f-89bd-965820cacd57","html_url":"https://github.com/map-ir/vector-style-editor","commit_stats":{"total_commits":127,"total_committers":3,"mean_commits":"42.333333333333336","dds":"0.36220472440944884","last_synced_commit":"10575be29530ab3fa87e9aa9344895d4bc8cd3e3"},"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/map-ir%2Fvector-style-editor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/map-ir%2Fvector-style-editor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/map-ir%2Fvector-style-editor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/map-ir%2Fvector-style-editor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/map-ir","download_url":"https://codeload.github.com/map-ir/vector-style-editor/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239897376,"owners_count":19715202,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["editor","map"],"created_at":"2024-11-08T09:35:24.285Z","updated_at":"2025-10-07T12:31:40.500Z","avatar_url":"https://github.com/map-ir.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![NPM](https://img.shields.io/npm/v/@map.ir/vector-style-editor.svg)](https://www.npmjs.com/package/@map.ir/vector-style-editor)\n![Release](https://github.com/map-ir/vector-style-editor/workflows/Release/badge.svg)\n\n# mapir-vector-style-editor\n\n| Prop              | Type                                                                              | Description                                        | Default | Require |\n| ----------------- | --------------------------------------------------------------------------------- | -------------------------------------------------- | ------- | ------- |\n| map               | [MapOptions](https://maplibre.org/maplibre-gl-js-docs/api/map/#map-parameters)    |                                                    |         | No      |\n| locale            | 'fa' OR 'en'                                                                      | Language of editor                                 | 'en'    | No      |\n| styleURL          | string                                                                            | URL of style for edit                              | -       | Yes     |\n| sprite            | string                                                                            | URL of sprite of style                             | -       | No      |\n| title             | string                                                                            | Tiltle of editor                                   | -       | No      |\n| columns           | string[]                                                                          | Columns of dataset                                 | -       | No      |\n| className         | string                                                                            |                                                    | -       | No      |\n| onSubmit          | (arg: [StyleSpecification](https://docs.mapbox.com/help/glossary/style/)) =\u003e void | Callback that is invoked when submitting           | -       | No      |\n| onCancel          | (arg: [StyleSpecification](https://docs.mapbox.com/help/glossary/style/)) =\u003e void | Callback that is invoked when canceling            | -       | No      |\n| getDistinctValues | (arg: string) =\u003e Promise\u003cany\u003e                                                     | Callback that is invoked when a column is selected | -       | No      |\n\n| CSS Variables         | Value                                                                                                                       |\n| --------------------- | --------------------------------------------------------------------------------------------------------------------------- |\n| --SE-color-primary    | #ea4c89                                                                                                                     |\n| --SE-color-primary-20 | #ea4c8920                                                                                                                   |\n| --SE-color-secondry   | #2e0767                                                                                                                     |\n| --SE-shade-1          | #1c1c1c                                                                                                                     |\n| --SE-shade-2          | #808080                                                                                                                     |\n| --SE-shade-3          | #C2C2C2                                                                                                                     |\n| --SE-shade-4          | #E8E8E8                                                                                                                     |\n| --SE-shade-5          | #E0E0E0                                                                                                                     |\n| --SE-light-1          | #ffffff                                                                                                                     |\n| --SE-light-2          | #FAFAFA                                                                                                                     |\n| --SE-success-1        | #20A76E                                                                                                                     |\n| --SE-fail-1           | #D10328                                                                                                                     |\n| --SE-radius-4         | 16px                                                                                                                        |\n| --SE-radius-8         | 8px                                                                                                                         |\n| --SE-radius-16        | 4px                                                                                                                         |\n| --SE-font-family      | -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Oxygen, Ubuntu, Cantarell, \"Open Sans\", \"Helvetica Neue\", sans-serif |\n\nYou can rewrite this variables.\n\n## Install\n\n```bash\nnpm install @map.ir/vector-style-editor\n```\n\n## Develop\n\nuse the `dev` script:\n\n```bash\nnpm run dev\n```\n\n## License\n\nMIT © [map-ir](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmap-ir%2Fvector-style-editor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmap-ir%2Fvector-style-editor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmap-ir%2Fvector-style-editor/lists"}