Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into 78-improve-x-labels…
Browse files Browse the repository at this point in the history
…-generation-time
  • Loading branch information
KirillBobkov committed Dec 4, 2023
2 parents a06480b + 8e08125 commit 191ca45
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ jobs:
registry-url: https://registry.npmjs.org/
scope: '@devexperts'
- run: yarn install --frozen-lockfile
- run: git config user.email "[email protected]"
- run: git config user.name "dxpm"
- run: npm version minor --no-git-tag-version
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.NPMJS_DEVEXPERTS_BOT_PUBLISH_TOKEN}}
8 changes: 5 additions & 3 deletions src/chart/canvas/canvas-bounds-container.ts
Original file line number Diff line number Diff line change
Expand Up @@ -660,10 +660,12 @@ export class CanvasBoundsContainer {
* @return {Bounds} bounds of element
*/
public getBounds(el: string): Bounds {
if (this.bounds[el] === undefined) {
this.bounds[el] = this.copyOf(DEFAULT_BOUNDS);
let bounds = this.bounds[el];
if (bounds === undefined) {
bounds = this.copyOf(DEFAULT_BOUNDS);
this.bounds[el] = bounds;
}
return this.bounds[el];
return bounds;
}
/**
* Returns the position of CANVAS on whole page.
Expand Down

0 comments on commit 191ca45

Please sign in to comment.