Skip to content

Commit

Permalink
#175 remove time marker from mark css class
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Mrowetz committed Mar 7, 2017
1 parent 1874b66 commit 1eabb34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ts/waterfall/sub-components/svg-marks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export function createMarks(context: Context, marks: Mark[]) {

marks.forEach((mark, i) => {
const x = roundNumber(mark.startTime / context.unit);
let markHolder = svg.newG("mark-holder type-" + mark.name.toLowerCase());
let markHolder = svg.newG("mark-holder type-" + mark.name.toLowerCase().replace(/([0-9]+[ ]?ms)|\W/g, ""));
let lineHolder = svg.newG("line-holder");
let lineLabelHolder = svg.newG("line-label-holder");
let lineLabel = svg.newTextEl(mark.name, {x: x + "%", y: diagramHeight + 25});
Expand Down

0 comments on commit 1eabb34

Please sign in to comment.