diff --git a/timeline-chart/src/components/time-graph-state.ts b/timeline-chart/src/components/time-graph-state.ts index c5f9bde..7518a5e 100644 --- a/timeline-chart/src/components/time-graph-state.ts +++ b/timeline-chart/src/components/time-graph-state.ts @@ -89,9 +89,9 @@ export class TimeGraphStateComponent extends TimeGraphComponent 0) { - displayLabel = partialLabel.concat("..."); + displayLabel = partialLabel.concat("…"); } } diff --git a/timeline-chart/src/time-graph-font-controller.ts b/timeline-chart/src/time-graph-font-controller.ts index c0729cc..2e1656a 100644 --- a/timeline-chart/src/time-graph-font-controller.ts +++ b/timeline-chart/src/time-graph-font-controller.ts @@ -27,7 +27,7 @@ export class FontController { fill: fontColor === "White" ? "white" : "black", fontWeight: "bold" }; - PIXI.BitmapFont.from(fontName, fontStyle, { chars: PIXI.BitmapFont.ASCII }); + PIXI.BitmapFont.from(fontName, fontStyle, { chars: this.getCharacterSet() }); return fontName; } @@ -72,4 +72,13 @@ export class FontController { } return fontName ? fontName : ""; } + + private getCharacterSet(): string[][] { + let letters: string[][]= []; + letters.push(PIXI.BitmapFont.ASCII[0]); + letters.push(['★','★']); + letters.push(['…','…']); + + return letters; + } }