Skip to content

Commit

Permalink
Use pixi.js-legacy instead of pixi.js
Browse files Browse the repository at this point in the history
This allows support of older browsers without WebGL support.

Signed-off-by: Geneviève Bastien <gbastien+lttng@versatic.net>
  • Loading branch information
tahini authored and MatthewKhouzam committed Sep 24, 2020
1 parent 445aa1f commit b35da77
Show file tree
Hide file tree
Showing 12 changed files with 488 additions and 11 deletions.
1 change: 0 additions & 1 deletion example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
},
"dependencies": {
"lodash.throttle": "^4.1.1",
"pixi.js": "^5.0.0",
"timeline-chart": "^0.1.0"
}
}
3 changes: 2 additions & 1 deletion timeline-chart/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@
},
"dependencies": {
"@types/lodash.throttle": "^4.1.4",
"glob": "^7.1.6",
"keyboard-key": "1.1.0",
"lodash.throttle": "^4.1.1",
"pixi.js": "^5.0.0",
"pixi.js-legacy": "^5.3.3",
"rimraf": "latest"
}
}
2 changes: 1 addition & 1 deletion timeline-chart/src/components/time-graph-arrow.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as PIXI from "pixi.js"
import * as PIXI from "pixi.js-legacy"

import { TimeGraphComponent, TimeGraphElementPosition, TimeGraphComponentOptions } from "./time-graph-component";

Expand Down
2 changes: 1 addition & 1 deletion timeline-chart/src/components/time-graph-axis-scale.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as PIXI from "pixi.js"
import * as PIXI from "pixi.js-legacy"

import { TimeGraphComponent, TimeGraphInteractionHandler, TimeGraphStyledRect, TimeGraphComponentOptions } from "./time-graph-component";
import { TimeGraphUnitController } from "../time-graph-unit-controller";
Expand Down
2 changes: 1 addition & 1 deletion timeline-chart/src/components/time-graph-component.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as PIXI from "pixi.js"
import * as PIXI from "pixi.js-legacy"

export type TimeGraphInteractionType = 'mouseover' | 'mouseout' | 'mousemove' | 'mousedown' | 'mouseup' | 'mouseupoutside' | 'click';
export type TimeGraphInteractionHandler = (event: PIXI.InteractionEvent) => void;
Expand Down
2 changes: 1 addition & 1 deletion timeline-chart/src/components/time-graph-row-element.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { TimeGraphComponent, TimeGraphStyledRect, TimeGraphElementPosition } fro
import { TimeGraphRow } from "./time-graph-row";
import { TimelineChart } from "../time-graph-model";
import { FontController } from "../time-graph-font-controller"
import * as PIXI from "pixi.js";
import * as PIXI from "pixi.js-legacy";

export interface TimeGraphRowElementStyle {
color?: number
Expand Down
2 changes: 1 addition & 1 deletion timeline-chart/src/layer/time-graph-chart-cursors.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as PIXI from "pixi.js"
import * as PIXI from "pixi.js-legacy"
import * as keyboardKey from "keyboard-key"

import { TimeGraphCursor } from "../components/time-graph-cursor";
Expand Down
2 changes: 1 addition & 1 deletion timeline-chart/src/layer/time-graph-chart.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as PIXI from "pixi.js"
import * as PIXI from "pixi.js-legacy"

import { TimeGraphRowElement, TimeGraphRowElementStyle } from "../components/time-graph-row-element";
import { TimeGraphRow, TimeGraphRowStyle } from "../components/time-graph-row";
Expand Down
2 changes: 1 addition & 1 deletion timeline-chart/src/layer/time-graph-layer.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as PIXI from "pixi.js"
import * as PIXI from "pixi.js-legacy"

import { TimeGraphComponent, TimeGraphParentComponent } from "../components/time-graph-component";
import { TimeGraphUnitController } from "../time-graph-unit-controller";
Expand Down
2 changes: 1 addition & 1 deletion timeline-chart/src/time-graph-container.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as PIXI from "pixi.js"
import * as PIXI from "pixi.js-legacy"

import { TimeGraphUnitController } from "./time-graph-unit-controller";
import { TimeGraphStateController } from "./time-graph-state-controller";
Expand Down
2 changes: 1 addition & 1 deletion timeline-chart/src/time-graph-font-controller.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as PIXI from "pixi.js";
import * as PIXI from "pixi.js-legacy";

export class FontController {
private fontFamily: string;
Expand Down
Loading

0 comments on commit b35da77

Please sign in to comment.