diff --git a/timeline-chart/src/components/time-graph-annotation.ts b/timeline-chart/src/components/time-graph-annotation.ts index 57b4958..e7322ac 100644 --- a/timeline-chart/src/components/time-graph-annotation.ts +++ b/timeline-chart/src/components/time-graph-annotation.ts @@ -11,8 +11,8 @@ export interface TimeGraphAnnotationStyle extends TimeGraphComponentOptions { symbol?: string size?: number color?: number + opacity?: number verticalAlign?: string - opacity?:number } /* @@ -88,7 +88,7 @@ export class TimeGraphAnnotationComponent extends TimeGraphComponent { * * @param opacity a number meaning the desired opacity. If it is undefined, assume it is 100% opacity */ - private getPIXIOpacity(opacity: number | undefined): number | undefined { + protected getPIXIOpacity(opacity: number | undefined): number | undefined { return (opacity !== undefined ? opacity == 0 ? 0.001 : opacity : 1); } diff --git a/timeline-chart/src/components/time-graph-state.ts b/timeline-chart/src/components/time-graph-state.ts index 7157fc4..c1d8c19 100644 --- a/timeline-chart/src/components/time-graph-state.ts +++ b/timeline-chart/src/components/time-graph-state.ts @@ -6,6 +6,7 @@ import * as PIXI from "pixi.js-legacy"; export interface TimeGraphStateStyle { color?: number + opacity?: number height?: number borderWidth?: number borderColor?: number @@ -39,6 +40,7 @@ export class TimeGraphStateComponent extends TimeGraphComponent