From 211c65354dd290ca28ba64bf565238ce672d7fca Mon Sep 17 00:00:00 2001 From: Trdat Mkrtchyan Date: Tue, 9 Apr 2024 12:02:36 +0400 Subject: [PATCH 01/16] fix: fixed series transform for non stacked areas (#214) --- src/YagrCore/mixins/transform-series.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/YagrCore/mixins/transform-series.ts b/src/YagrCore/mixins/transform-series.ts index 9fbf80f..0be5632 100644 --- a/src/YagrCore/mixins/transform-series.ts +++ b/src/YagrCore/mixins/transform-series.ts @@ -93,7 +93,7 @@ export class TransformSeriesMixin { dataLine.push(null); continue; } else { - value = 0; + value = isStacking ? 0 : null; } } @@ -101,7 +101,7 @@ export class TransformSeriesMixin { if (scaleConfig.normalize) { const sum = getSumByIdx(this.options.series, idx, scale); - value = sum && (value / sum) * (scaleConfig.normalizeBase || 100); + value = sum && ((value ?? 0) / sum) * (scaleConfig.normalizeBase || 100); serieOptions.normalizedData = serieOptions.normalizedData || []; serieOptions.normalizedData[idx] = value; @@ -112,7 +112,7 @@ export class TransformSeriesMixin { value = 0; } - value = stacks[scale][sGroup][idx] += value; + value = stacks[scale][sGroup][idx] += (value ?? 0); } if (scaleConfig.type === 'logarithmic' && value === 0) { From 04ffd5e1690ad810630a4959a893002660630263 Mon Sep 17 00:00:00 2001 From: Alexandr Yushkov Date: Tue, 9 Apr 2024 10:02:51 +0200 Subject: [PATCH 02/16] Use max markers options (#213) * use Cursor.maxMarkers configuration option * add test * review fixes --- src/YagrCore/plugins/cursor/cursor.ts | 4 +++- tests/plugins/cursor.test.ts | 26 ++++++++++++++++++++++++++ 2 files changed, 29 insertions(+), 1 deletion(-) diff --git a/src/YagrCore/plugins/cursor/cursor.ts b/src/YagrCore/plugins/cursor/cursor.ts index 06bc2c0..5c0d0da 100644 --- a/src/YagrCore/plugins/cursor/cursor.ts +++ b/src/YagrCore/plugins/cursor/cursor.ts @@ -206,8 +206,10 @@ export default function CursorPlugin( const emptyLines = uplotOptions.series.filter((s) => s.empty).length; const totalLines = uplotOptions.series.length - 1; + const maxCursors = opts?.maxMarkers ?? MAX_CURSORS; + uplotOptions.cursor.points = { - show: totalLines - emptyLines <= MAX_CURSORS ? cursorPoint : false, + show: totalLines - emptyLines <= maxCursors ? cursorPoint : false, size: (u: uPlot, seriesIdx: number) => { const serie = u.series[seriesIdx]; return ( diff --git a/tests/plugins/cursor.test.ts b/tests/plugins/cursor.test.ts index 2f93f24..26baf31 100644 --- a/tests/plugins/cursor.test.ts +++ b/tests/plugins/cursor.test.ts @@ -41,6 +41,32 @@ describe('cursor plugin', () => { }); }); + describe('markers', () => { + const el = document.createElement('div'); + document.body.appendChild(el); + + afterAll(() => { + document.body.removeChild(el); + }); + + const y = new Yagr(el, { + timeline: [1, 2, 3], + cursor: {maxMarkers: 100 }, + series: Array.from({ length: 100 }).fill(0).map((_, i) => ({ + id: String(i), + data: [1, 2, 3], + color: 'rgb(255, 0, 0)' + })) + }); + + y.reflow(); + + it('should use the maxMarkers option', () => { + const n = document.querySelectorAll('.yagr-point'); + expect(n.length).toBe(100 + 2); + }); + }); + describe('methods', () => { const el = document.createElement('div'); document.body.appendChild(el); From a28e124020bcf4d0f50acd0842a60f0e918a7eef Mon Sep 17 00:00:00 2001 From: Trdat Mkrtchyan Date: Tue, 9 Apr 2024 12:29:39 +0400 Subject: [PATCH 03/16] feat: rebuild 4.5 (#216) From 1fb134edbc93371d2861e4f384219926fe990b77 Mon Sep 17 00:00:00 2001 From: Gravity UI Bot <111915794+gravity-ui-bot@users.noreply.github.com> Date: Tue, 9 Apr 2024 17:52:54 +0300 Subject: [PATCH 04/16] chore(main): release 4.3.0 (#215) --- CHANGELOG.md | 12 ++++++++++++ package-lock.json | 4 ++-- package.json | 2 +- 3 files changed, 15 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8b3c21e..4d42320 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,17 @@ ### master +## [4.3.0](https://github.com/gravity-ui/yagr/compare/v4.2.4...v4.3.0) (2024-04-09) + + +### Features + +* rebuild 4.5 ([#216](https://github.com/gravity-ui/yagr/issues/216)) ([a28e124](https://github.com/gravity-ui/yagr/commit/a28e124020bcf4d0f50acd0842a60f0e918a7eef)) + + +### Bug Fixes + +* fixed series transform for non stacked areas ([#214](https://github.com/gravity-ui/yagr/issues/214)) ([211c653](https://github.com/gravity-ui/yagr/commit/211c65354dd290ca28ba64bf565238ce672d7fca)) + ## [4.2.4](https://github.com/gravity-ui/yagr/compare/v4.2.3...v4.2.4) (2024-03-27) diff --git a/package-lock.json b/package-lock.json index ff2cb31..ca4c1f3 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@gravity-ui/yagr", - "version": "4.2.4", + "version": "4.3.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@gravity-ui/yagr", - "version": "4.2.4", + "version": "4.3.0", "license": "MIT", "dependencies": { "uplot": "1.6.27" diff --git a/package.json b/package.json index b375f6a..4da6cf8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@gravity-ui/yagr", - "version": "4.2.4", + "version": "4.3.0", "description": "High level wrapper for uPlot", "keywords": [ "canvas", From 08e33378c4f5f3b79486cc931d10336a594d28cd Mon Sep 17 00:00:00 2001 From: denis-vlasov Date: Tue, 13 Aug 2024 19:26:56 +0300 Subject: [PATCH 05/16] fix: overscreen tooltip --- src/YagrCore/plugins/tooltip/placement.ts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/YagrCore/plugins/tooltip/placement.ts b/src/YagrCore/plugins/tooltip/placement.ts index 414c1f7..bd216c3 100644 --- a/src/YagrCore/plugins/tooltip/placement.ts +++ b/src/YagrCore/plugins/tooltip/placement.ts @@ -12,6 +12,8 @@ const NAMES = { scrollOffset: ['pageYOffset', 'pageXOffset'], offset: ['offsetY', 'offsetY'], offsetOpt: ['yOffset', 'xOffset'], + bodyScroll: ['scrollHeight', 'scrollWidth'], + inner: ['innerHeight', 'innerWidth'], }; interface Props { @@ -26,6 +28,8 @@ interface Props { scrollOffset: 'pageYOffset' | 'pageXOffset'; offset: 'offsetY' | 'offsetY'; offsetOpt: 'yOffset' | 'xOffset'; + bodyScroll: 'scrollHeight' | 'scrollWidth'; + inner: 'innerHeight' | 'innerWidth'; } type Side = 'top' | 'bottom' | 'left' | 'right'; @@ -148,7 +152,8 @@ export default function ( // Set the position of the popup element along the primary axis using the // anchor's bounding rect. If we are working in the context of position: // absolute, then we will need to add the window's scroll position as well. - const scrollOffset = window[primary.scrollOffset] as unknown as number; + const maxOffset = document.body[primary.bodyScroll] - window[primary.inner]; + const scrollOffset = Math.min(window[primary.scrollOffset] as unknown as number, maxOffset); const boundPrimaryPos = (pos: number) => { return Math.max( @@ -179,7 +184,8 @@ export default function ( } // Set the position of the popup element along the secondary axis. - const secondaryScrollOffset = window[secondary.scrollOffset] as unknown as number; + const maxSecondaryOffset = document.body[secondary.bodyScroll] - window[secondary.inner]; + const secondaryScrollOffset = Math.min(window[secondary.scrollOffset] as unknown as number, maxSecondaryOffset); elem.style[secondary.before] = px( secondaryScrollOffset + boundSecondaryPos(anchorRect[secondary.before] - secondaryMarginBefore), From 83bd4bbd92b8ce9b0a5e6395977577d2f3e92862 Mon Sep 17 00:00:00 2001 From: Gravity UI Bot <111915794+gravity-ui-bot@users.noreply.github.com> Date: Tue, 13 Aug 2024 19:48:39 +0300 Subject: [PATCH 06/16] chore(main): release 4.3.1 --- CHANGELOG.md | 7 +++++++ package-lock.json | 4 ++-- package.json | 2 +- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4d42320..4747df0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ ### master +## [4.3.1](https://github.com/gravity-ui/yagr/compare/v4.3.0...v4.3.1) (2024-08-13) + + +### Bug Fixes + +* overscreen tooltip ([08e3337](https://github.com/gravity-ui/yagr/commit/08e33378c4f5f3b79486cc931d10336a594d28cd)) + ## [4.3.0](https://github.com/gravity-ui/yagr/compare/v4.2.4...v4.3.0) (2024-04-09) diff --git a/package-lock.json b/package-lock.json index ca4c1f3..27923e9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@gravity-ui/yagr", - "version": "4.3.0", + "version": "4.3.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@gravity-ui/yagr", - "version": "4.3.0", + "version": "4.3.1", "license": "MIT", "dependencies": { "uplot": "1.6.27" diff --git a/package.json b/package.json index 4da6cf8..8d22fe2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@gravity-ui/yagr", - "version": "4.3.0", + "version": "4.3.1", "description": "High level wrapper for uPlot", "keywords": [ "canvas", From 670abc77126a5edd28d6d49b5b8734819a95c12d Mon Sep 17 00:00:00 2001 From: Alexander Kot Date: Wed, 18 Sep 2024 18:16:52 +0300 Subject: [PATCH 07/16] fixed tooltip memory leak --- src/YagrCore/plugins/tooltip/tooltip.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/YagrCore/plugins/tooltip/tooltip.ts b/src/YagrCore/plugins/tooltip/tooltip.ts index cd7a657..2ee44dd 100644 --- a/src/YagrCore/plugins/tooltip/tooltip.ts +++ b/src/YagrCore/plugins/tooltip/tooltip.ts @@ -742,6 +742,9 @@ function YagrTooltipPlugin(yagr: Yagr, options: Partial = {}): R const getUplotPlugin = () => ({ hooks: { + destroy: () => { + tooltip.dispose(); + }, init: (u: uPlot) => { tooltip.initWithUplot(u); }, @@ -763,6 +766,7 @@ function YagrTooltipPlugin(yagr: Yagr, options: Partial = {}): R tooltip.reset(); u.hooks.init!.push(uPlugin.hooks.init); + u.hooks.destroy!.push(uPlugin.hooks.destroy); u.hooks.setSize!.push(uPlugin.hooks.setSize); u.hooks.setCursor!.push(uPlugin.hooks.setCursor); } From ec80853d7cabe41ff4df129120e1e206cff36f9e Mon Sep 17 00:00:00 2001 From: Alexander Kot Date: Wed, 18 Sep 2024 18:51:43 +0300 Subject: [PATCH 08/16] fix: tooltip memory leak --- src/YagrCore/plugins/tooltip/tooltip.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/YagrCore/plugins/tooltip/tooltip.ts b/src/YagrCore/plugins/tooltip/tooltip.ts index 2ee44dd..df1973b 100644 --- a/src/YagrCore/plugins/tooltip/tooltip.ts +++ b/src/YagrCore/plugins/tooltip/tooltip.ts @@ -734,7 +734,7 @@ class YagrTooltip { } /* - * Tooltip plugin constructor. + * Tooltip plugin constructor . * Every charts has it's own tooltip plugin instance */ function YagrTooltipPlugin(yagr: Yagr, options: Partial = {}): ReturnType { From 62842e18fa10c16028614ac39631711f0965ab4c Mon Sep 17 00:00:00 2001 From: Gravity UI Bot <111915794+gravity-ui-bot@users.noreply.github.com> Date: Thu, 19 Sep 2024 10:26:11 +0300 Subject: [PATCH 09/16] chore(main): release 4.3.2 --- CHANGELOG.md | 7 +++++++ package-lock.json | 4 ++-- package.json | 2 +- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4747df0..e441e6d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ ### master +## [4.3.2](https://github.com/gravity-ui/yagr/compare/v4.3.1...v4.3.2) (2024-09-19) + + +### Bug Fixes + +* tooltip memory leak ([ec80853](https://github.com/gravity-ui/yagr/commit/ec80853d7cabe41ff4df129120e1e206cff36f9e)) + ## [4.3.1](https://github.com/gravity-ui/yagr/compare/v4.3.0...v4.3.1) (2024-08-13) diff --git a/package-lock.json b/package-lock.json index 27923e9..c5ab388 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@gravity-ui/yagr", - "version": "4.3.1", + "version": "4.3.2", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@gravity-ui/yagr", - "version": "4.3.1", + "version": "4.3.2", "license": "MIT", "dependencies": { "uplot": "1.6.27" diff --git a/package.json b/package.json index 8d22fe2..20f8d70 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@gravity-ui/yagr", - "version": "4.3.1", + "version": "4.3.2", "description": "High level wrapper for uPlot", "keywords": [ "canvas", From c04ac115217bd8df59d095cbf767dc096457a3a3 Mon Sep 17 00:00:00 2001 From: Daniel Date: Fri, 27 Sep 2024 15:57:42 +0300 Subject: [PATCH 10/16] fix: bug with focus in stacking column chart (#222) --- demo/examples/legend.html | 32 +++++++++++++++++++++++++++ src/YagrCore/plugins/legend/legend.ts | 7 +++++- 2 files changed, 38 insertions(+), 1 deletion(-) diff --git a/demo/examples/legend.html b/demo/examples/legend.html index 6544e1f..235ab63 100644 --- a/demo/examples/legend.html +++ b/demo/examples/legend.html @@ -35,6 +35,10 @@

Legend

+
+
+
+ diff --git a/src/YagrCore/plugins/legend/legend.ts b/src/YagrCore/plugins/legend/legend.ts index c06b83f..a1e508d 100644 --- a/src/YagrCore/plugins/legend/legend.ts +++ b/src/YagrCore/plugins/legend/legend.ts @@ -253,14 +253,19 @@ export default class LegendPlugin { } const targetSerie = this.yagr.uplot.series.find(({id}) => id === serieId); - if (targetSerie) { yagr.setFocus(targetSerie.id, true); + + // fix bug with focus in stacking column chart + yagr.redraw(true, false); } }; const onSerieMouseLeave = () => { yagr.setFocus(null, true); + + // fix bug with focus in stacking column chart + yagr.redraw(true, false); }; series.forEach((serieNode) => { From bc54fd002d499a58d6331a427857925b5c70f57e Mon Sep 17 00:00:00 2001 From: Gravity UI Bot <111915794+gravity-ui-bot@users.noreply.github.com> Date: Fri, 27 Sep 2024 16:14:23 +0300 Subject: [PATCH 11/16] chore(main): release 4.3.3 (#223) --- CHANGELOG.md | 7 +++++++ package-lock.json | 4 ++-- package.json | 2 +- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e441e6d..5e26062 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ ### master +## [4.3.3](https://github.com/gravity-ui/yagr/compare/v4.3.2...v4.3.3) (2024-09-27) + + +### Bug Fixes + +* bug with focus in stacking column chart ([#222](https://github.com/gravity-ui/yagr/issues/222)) ([c04ac11](https://github.com/gravity-ui/yagr/commit/c04ac115217bd8df59d095cbf767dc096457a3a3)) + ## [4.3.2](https://github.com/gravity-ui/yagr/compare/v4.3.1...v4.3.2) (2024-09-19) diff --git a/package-lock.json b/package-lock.json index c5ab388..675d6e9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@gravity-ui/yagr", - "version": "4.3.2", + "version": "4.3.3", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@gravity-ui/yagr", - "version": "4.3.2", + "version": "4.3.3", "license": "MIT", "dependencies": { "uplot": "1.6.27" diff --git a/package.json b/package.json index 20f8d70..211c22d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@gravity-ui/yagr", - "version": "4.3.2", + "version": "4.3.3", "description": "High level wrapper for uPlot", "keywords": [ "canvas", From f2dbf5c9a0638b3686e399665320fa83f4fd0cb2 Mon Sep 17 00:00:00 2001 From: Andrey Melikhov Date: Mon, 7 Oct 2024 12:21:57 +0300 Subject: [PATCH 12/16] chore(main): update uplot (#224) --- package-lock.json | 14 +++++++------- package.json | 2 +- src/YagrCore/utils/types.ts | 1 + 3 files changed, 9 insertions(+), 8 deletions(-) diff --git a/package-lock.json b/package-lock.json index 675d6e9..de5e695 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,7 +9,7 @@ "version": "4.3.3", "license": "MIT", "dependencies": { - "uplot": "1.6.27" + "uplot": "1.6.31" }, "devDependencies": { "@babel/preset-react": "^7.22.5", @@ -15117,9 +15117,9 @@ } }, "node_modules/uplot": { - "version": "1.6.27", - "resolved": "https://registry.npmjs.org/uplot/-/uplot-1.6.27.tgz", - "integrity": "sha512-78U4ss5YeU65kQkOC/QAKiyII+4uo+TYUJJKvuxRzeSpk/s5sjpY1TL0agkmhHBBShpvLtmbHIEiM7+C5lBULg==" + "version": "1.6.31", + "resolved": "https://registry.npmjs.org/uplot/-/uplot-1.6.31.tgz", + "integrity": "sha512-sQZqSwVCbJGnFB4IQjQYopzj5CoTZJ4Br1fG/xdONimqgHmsacvCjNesdGDypNKFbrhLGIeshYhy89FxPF+H+w==" }, "node_modules/uri-js": { "version": "4.4.1", @@ -27430,9 +27430,9 @@ } }, "uplot": { - "version": "1.6.27", - "resolved": "https://registry.npmjs.org/uplot/-/uplot-1.6.27.tgz", - "integrity": "sha512-78U4ss5YeU65kQkOC/QAKiyII+4uo+TYUJJKvuxRzeSpk/s5sjpY1TL0agkmhHBBShpvLtmbHIEiM7+C5lBULg==" + "version": "1.6.31", + "resolved": "https://registry.npmjs.org/uplot/-/uplot-1.6.31.tgz", + "integrity": "sha512-sQZqSwVCbJGnFB4IQjQYopzj5CoTZJ4Br1fG/xdONimqgHmsacvCjNesdGDypNKFbrhLGIeshYhy89FxPF+H+w==" }, "uri-js": { "version": "4.4.1", diff --git a/package.json b/package.json index 211c22d..17f6cf3 100644 --- a/package.json +++ b/package.json @@ -117,6 +117,6 @@ "typescript": "^4.2.3" }, "dependencies": { - "uplot": "1.6.27" + "uplot": "1.6.31" } } diff --git a/src/YagrCore/utils/types.ts b/src/YagrCore/utils/types.ts index 04e4136..0e0a497 100644 --- a/src/YagrCore/utils/types.ts +++ b/src/YagrCore/utils/types.ts @@ -15,6 +15,7 @@ export const Scale: YScale = { Ordinal: 2 as uScale.Distr.Ordinal, Logarithmic: 3 as uScale.Distr.Logarithmic, ArcSinh: 4 as uScale.Distr.ArcSinh, + Custom: 5 as uScale.Distr.Custom, }, }; From 5937ff12b63cbab2ea496d77b8782c409eb8948e Mon Sep 17 00:00:00 2001 From: Evgeny Alaev Date: Mon, 7 Oct 2024 12:35:41 +0300 Subject: [PATCH 13/16] --allow-empty fix: update uplot to v1.6.31 --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 55b4ea9..34660cf 100644 --- a/README.md +++ b/README.md @@ -78,8 +78,8 @@ new Yagr(document.body, { Need something specific? Yagr presents some useful examples in the [demo/examples](./demo/examples/) folder. How to start them with current version: -1. Clone the repository -2. Install dependencies `npm i` -3. Run `npm run build` -4. Run `npx http-server .` -5. Open examples in browser according to the http-server output +1. Clone the repository. +2. Install dependencies `npm i`. +3. Run `npm run build`. +4. Run `npx http-server .`. +5. Open examples in browser according to the http-server output. From 265aa9cf148dacfde05fbe60e7190561b02419f9 Mon Sep 17 00:00:00 2001 From: "Mr.Dr.Professor Patrick" Date: Mon, 7 Oct 2024 11:41:53 +0200 Subject: [PATCH 14/16] Revert "--allow-empty" (#225) This reverts commit 5937ff12b63cbab2ea496d77b8782c409eb8948e. --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 34660cf..55b4ea9 100644 --- a/README.md +++ b/README.md @@ -78,8 +78,8 @@ new Yagr(document.body, { Need something specific? Yagr presents some useful examples in the [demo/examples](./demo/examples/) folder. How to start them with current version: -1. Clone the repository. -2. Install dependencies `npm i`. -3. Run `npm run build`. -4. Run `npx http-server .`. -5. Open examples in browser according to the http-server output. +1. Clone the repository +2. Install dependencies `npm i` +3. Run `npm run build` +4. Run `npx http-server .` +5. Open examples in browser according to the http-server output From b069208789cc02975d1dfc7c917c0c23f48b76ee Mon Sep 17 00:00:00 2001 From: "Mr.Dr.Professor Patrick" Date: Mon, 7 Oct 2024 11:50:29 +0200 Subject: [PATCH 15/16] fix: update uplot to v1.6.31 (#226) --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 55b4ea9..34660cf 100644 --- a/README.md +++ b/README.md @@ -78,8 +78,8 @@ new Yagr(document.body, { Need something specific? Yagr presents some useful examples in the [demo/examples](./demo/examples/) folder. How to start them with current version: -1. Clone the repository -2. Install dependencies `npm i` -3. Run `npm run build` -4. Run `npx http-server .` -5. Open examples in browser according to the http-server output +1. Clone the repository. +2. Install dependencies `npm i`. +3. Run `npm run build`. +4. Run `npx http-server .`. +5. Open examples in browser according to the http-server output. From d7d2ff2a735b273a4b14d8dacee8b41f8864fb2d Mon Sep 17 00:00:00 2001 From: Gravity UI Bot <111915794+gravity-ui-bot@users.noreply.github.com> Date: Mon, 7 Oct 2024 12:57:50 +0300 Subject: [PATCH 16/16] chore(main): release 4.3.4 (#227) --- CHANGELOG.md | 7 +++++++ package-lock.json | 4 ++-- package.json | 2 +- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5e26062..2444dad 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ ### master +## [4.3.4](https://github.com/gravity-ui/yagr/compare/v4.3.3...v4.3.4) (2024-10-07) + + +### Bug Fixes + +* update uplot to v1.6.31 ([#226](https://github.com/gravity-ui/yagr/issues/226)) ([b069208](https://github.com/gravity-ui/yagr/commit/b069208789cc02975d1dfc7c917c0c23f48b76ee)) + ## [4.3.3](https://github.com/gravity-ui/yagr/compare/v4.3.2...v4.3.3) (2024-09-27) diff --git a/package-lock.json b/package-lock.json index de5e695..b60bdfa 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@gravity-ui/yagr", - "version": "4.3.3", + "version": "4.3.4", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@gravity-ui/yagr", - "version": "4.3.3", + "version": "4.3.4", "license": "MIT", "dependencies": { "uplot": "1.6.31" diff --git a/package.json b/package.json index 17f6cf3..d6caf38 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@gravity-ui/yagr", - "version": "4.3.3", + "version": "4.3.4", "description": "High level wrapper for uPlot", "keywords": [ "canvas",