@datarailsshared/dr_renderer 1.4.130 → 1.4.134

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,38 @@
1
+ name: Build and Publish
2
+
3
+ on:
4
+ workflow_dispatch:
5
+ pull_request:
6
+ branches:
7
+ - 'master'
8
+ - 'main'
9
+ push:
10
+ branches:
11
+ - 'master'
12
+ - 'migration-to-github'
13
+
14
+ concurrency:
15
+ group: '${{ github.ref }}-${{ github.workflow }}'
16
+ cancel-in-progress: true
17
+
18
+ jobs:
19
+ publish-npm:
20
+ name: Build, Test and Publish to NPM
21
+ uses: datarails/dr_github_reusable/.github/workflows/npm-build-publish.yml@main
22
+ with:
23
+ node_version: '14.16.1'
24
+ access_level: 'public'
25
+ branch_postfix: false
26
+ main_branch: 'master'
27
+ version_prefix: '1.4'
28
+ secrets:
29
+ NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
30
+
31
+ publish-gh-packages:
32
+ name: Publish to GitHub Packages
33
+ needs: publish-npm
34
+ uses: datarails/dr_github_reusable/.github/workflows/npm-publish-gh-packages.yml@main
35
+ with:
36
+ node_version: '14.16.1'
37
+ package_scope: '@datarails'
38
+ version: ${{ needs.publish-npm.outputs.version }}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@datarailsshared/dr_renderer",
3
- "version": "1.4.130",
3
+ "version": "1.4.134",
4
4
  "description": "DataRails charts and tables renderer",
5
5
  "keywords": [
6
6
  "datarails",
@@ -30,7 +30,7 @@ function setInitialPointStyles(opts, series) {
30
30
  const isSelected =
31
31
  item && opts.selectedPoint &&
32
32
  item.initialName === opts.selectedPoint.initialName &&
33
- item.y.toFixed(2) === opts.selectedPoint.y.toFixed(2);
33
+ item.y != null && item.y.toFixed(2) === opts.selectedPoint.y != null && opts.selectedPoint.y.toFixed(2);
34
34
  item = Object.assign(item, getSeriesPointStyles(isSelected));
35
35
  });
36
36
  }