Skip to content

Commit

Permalink
Use opacity instead of alpha in timeline-chart style
Browse files Browse the repository at this point in the history
Fixes issue #388.

Signed-off-by: Patrick Tasse <patrick.tasse@ericsson.com>
  • Loading branch information
PatrickTasse committed Jun 22, 2021
1 parent d8c9d0c commit 334b102
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ export class TimegraphOutputComponent extends AbstractTreeOutputComponent<Timegr
}
return {
color: backgroundColor ? backgroundColor.color : 0x000000,
alpha: backgroundColor ? backgroundColor.alpha : 1.0,
opacity: backgroundColor ? backgroundColor.alpha : 1.0,
height: height,
borderWidth: state.selected ? 2 : (borderWidth ? borderWidth : 0),
borderColor: state.selected ? 0xeef20c : (borderColor ? borderColor.color : 0x000000)
Expand Down Expand Up @@ -510,10 +510,8 @@ export class TimegraphOutputComponent extends AbstractTreeOutputComponent<Timegr
symbol: symbolType ? symbolType : 'none',
size: symbolSize,
color: color ? color.color : 0x000000,
alpha: color ? color.alpha : 1.0,
verticalAlign: vAlign ? vAlign : 'middle',
opacity: color ? color.alpha : 0.2

opacity: color ? color.alpha : 1.0,
verticalAlign: vAlign ? vAlign : 'middle'
};
}
}
Expand Down
6 changes: 3 additions & 3 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -15330,9 +15330,9 @@ timed-out@^4.0.0, timed-out@^4.0.1:
integrity sha1-8y6srFoXW+ol1/q1Zas+2HQe9W8=

timeline-chart@next:
version "0.2.0-next.031e5b5a"
resolved "https://registry.yarnpkg.com/timeline-chart/-/timeline-chart-0.2.0-next.031e5b5a.tgz#72166ab65ea5f6e2c7f060600bf109cfd597135a"
integrity sha512-pcHg7hF+ds9oeJP0BurLfXP5XMyMGj1+7jfb8NNP8GU4v+4p6DmfeQeJeC2R3duFdfCRME+xE8v/rLJL577GnA==
version "0.2.0-next.ee7a95c1"
resolved "https://registry.yarnpkg.com/timeline-chart/-/timeline-chart-0.2.0-next.ee7a95c1.tgz#859e381044f3e96a86988d36075e89bc69ef5ea8"
integrity sha512-7BbkXs3l5R0sDTkDodx26VJr24KUIVxkSyKItrV+GF3vuyh0nHSdgqLB8IqTIaKTT7blIX/JPXmngOqov+c8hg==
dependencies:
"@types/lodash.throttle" "^4.1.4"
glob "^7.1.6"
Expand Down

0 comments on commit 334b102

Please sign in to comment.