-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1515 from concord-consortium/187950454-pixi-v3
Update Pixi to v8
- Loading branch information
Showing
12 changed files
with
245 additions
and
783 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,17 @@ | ||
import {useEffect} from "react" | ||
import {GraphController} from "../models/graph-controller" | ||
import {IGraphContentModel} from "../models/graph-content-model" | ||
import {IPixiPointsArrayRef} from "../../data-display/pixi/pixi-points" | ||
import {IPixiPointsArray} from "../../data-display/pixi/pixi-points" | ||
|
||
export interface IUseGraphControllerProps { | ||
graphController: GraphController, | ||
graphModel?: IGraphContentModel, | ||
pixiPointsArrayRef: IPixiPointsArrayRef | ||
pixiPointsArray: IPixiPointsArray | ||
} | ||
|
||
export const useGraphController = ({graphController, graphModel, pixiPointsArrayRef}: IUseGraphControllerProps) => { | ||
export const useGraphController = ({graphController, graphModel, pixiPointsArray}: IUseGraphControllerProps) => { | ||
useEffect(() => { | ||
graphModel && graphController.setProperties(graphModel, pixiPointsArrayRef.current?.[0]) | ||
}, [graphController, graphModel, pixiPointsArrayRef]) | ||
const pixiPoints = pixiPointsArray[0] | ||
graphModel && pixiPoints && graphController.setProperties(graphModel, pixiPoints) | ||
}, [graphController, graphModel, pixiPointsArray]) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.