Skip to content

Commit

Permalink
patch for CSP restrictions
Browse files Browse the repository at this point in the history
  • Loading branch information
jameslaneconkling committed Oct 21, 2020
1 parent 68ea6f6 commit 290b203
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 1 deletion.
2 changes: 2 additions & 0 deletions dist/renderers/pixi/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/renderers/pixi/index.js.map

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"author": "James Conkling <[email protected]> jameslaneconkling.github.io",
"license": "ISC",
"dependencies": {
"@pixi/unsafe-eval": "^5.3.3",
"d3-color": "^1.4.1",
"d3-force": "^2.0.1",
"d3-hierarchy": "^2.0.0",
Expand Down
3 changes: 3 additions & 0 deletions src/renderers/pixi/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import * as PIXI from 'pixi.js'
import { install } from '@pixi/unsafe-eval'
import { Node, Edge } from '../../'
import { animationFrameLoop } from '../../utils'
import { NodeRenderer } from './node'
Expand All @@ -11,6 +12,8 @@ import { CircleSprite } from './sprites/circleSprite'
import { ImageSprite } from './sprites/ImageSprite'


install(PIXI)

export type Event = PIXI.InteractionEvent

export type TextIcon = {
Expand Down

0 comments on commit 290b203

Please sign in to comment.