{"id":13762306,"url":"https://github.com/slicedsilver/lwc-plugin-visible-price-range-util","last_synced_at":"2025-05-10T15:31:02.857Z","repository":{"id":199901980,"uuid":"704259493","full_name":"SlicedSilver/lwc-plugin-visible-price-range-util","owner":"SlicedSilver","description":"A plugin for providing a utility API to retrieve the visible range of a price scale, and subscribe to changes.","archived":false,"fork":false,"pushed_at":"2023-10-12T22:24:35.000Z","size":13,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-05-12T07:22:23.934Z","etag":null,"topics":["lightweight-charts","lwc-plugin"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/lwc-plugin-visible-price-range-util","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SlicedSilver.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-10-12T22:10:46.000Z","updated_at":"2024-03-04T11:33:10.000Z","dependencies_parsed_at":"2023-10-13T09:52:22.721Z","dependency_job_id":null,"html_url":"https://github.com/SlicedSilver/lwc-plugin-visible-price-range-util","commit_stats":null,"previous_names":["slicedsilver/lwc-plugin-visible-price-range-util"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SlicedSilver%2Flwc-plugin-visible-price-range-util","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SlicedSilver%2Flwc-plugin-visible-price-range-util/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SlicedSilver%2Flwc-plugin-visible-price-range-util/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SlicedSilver%2Flwc-plugin-visible-price-range-util/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SlicedSilver","download_url":"https://codeload.github.com/SlicedSilver/lwc-plugin-visible-price-range-util/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224974208,"owners_count":17401100,"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":["lightweight-charts","lwc-plugin"],"created_at":"2024-08-03T14:00:38.530Z","updated_at":"2024-11-16T21:30:19.835Z","avatar_url":"https://github.com/SlicedSilver.png","language":"TypeScript","funding_links":[],"categories":["Community"],"sub_categories":["Lightweight Charts","Lightweight Charts™"],"readme":"# Visible Price Range Util - Lightweight Charts™ Plugin\n\nA plugin for providing a utility API to retrieve the visible range of a price scale, and subscribe to changes.\n\n- Developed for Lightweight Charts version: `v4.1.0`\n\n## Installation\n\n```bash\nnpm install lwc-plugin-visible-price-range-util\n```\n\n## Usage\n\n```js\nimport { VisiblePriceRangeUtil } from 'lwc-plugin-visible-price-range-util';\n\n// Create an instantiated Visible Price Range Util primitive.\nconst vprUtil = new VisiblePriceRangeUtil();\n\n// Create the chart and series...\nconst chart = createChart(document.getElementById('container'));\nconst lineSeries = chart.addLineSeries();\nconst data = [\n    { time: 1642425322, value: 123 },\n    /* ... more data */\n];\n\n// Attach the utility to the series\nlineSeries.attachPrimitive(vprUtil);\n\nconst currentVisiblePriceRange = vprUtil.getVisiblePriceRange();\nvprUtil.priceRangeChanged().subscribe(function(newRange) {\n    if (!newRange) return;\n    console.log(`Price Range is now from ${newRange.bottom} to ${newRange.top}`);\n});\n```\n\n## Developing\n\n### Running Locally\n\n```shell\nnpm install\nnpm run dev\n```\n\nVisit `localhost:5173` in the browser.\n\n### Compiling\n\n```shell\nnpm run compile\n```\n\nCheck the output in the `dist` folder.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fslicedsilver%2Flwc-plugin-visible-price-range-util","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fslicedsilver%2Flwc-plugin-visible-price-range-util","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fslicedsilver%2Flwc-plugin-visible-price-range-util/lists"}