Skip to content

Commit a6c1da9

Browse files
committed
use style, update packages, 2022
1 parent 1b4506a commit a6c1da9

8 files changed

Lines changed: 4366 additions & 9232 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# gojs-react-basic
22

3-
### By Northwoods Software for [GoJS 2.1](https://gojs.net)
3+
### By Northwoods Software for [GoJS](https://gojs.net)
44

55
This project provides a basic example of using GoJS in a React app.
66
Check out the [Intro page on using GoJS with React](https://gojs.net/latest/intro/react.html) for more information.

package-lock.json

Lines changed: 4348 additions & 9215 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,17 @@
1414
],
1515
"author": "Northwoods Software",
1616
"dependencies": {
17-
"@types/node": "16.6.2",
18-
"@types/react": "17.0.19",
19-
"@types/react-dom": "17.0.9",
20-
"fs-extra": "^10.0.0",
21-
"gojs": "^2.1.48",
22-
"gojs-react": "^1.1.0",
23-
"immer": "^9.0.5",
24-
"react": "^17.0.2",
25-
"react-dom": "^17.0.2",
26-
"react-scripts": "^4.0.3",
27-
"typescript": "^4.3.5"
17+
"@types/node": "17.0.25",
18+
"@types/react": "18.0.5",
19+
"@types/react-dom": "18.0.1",
20+
"fs-extra": "^10.1.0",
21+
"gojs": "^2.2.7",
22+
"gojs-react": "^1.1.1",
23+
"immer": "^9.0.12",
24+
"react": "^18.0.0",
25+
"react-dom": "^18.0.0",
26+
"react-scripts": "^5.0.1",
27+
"typescript": "^4.6.3"
2828
},
2929
"eslintConfig": {
3030
"extends": "react-app"

src/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (C) 1998-2021 by Northwoods Software Corporation. All Rights Reserved.
2+
* Copyright (C) 1998-2022 by Northwoods Software Corporation. All Rights Reserved.
33
*/
44

55
import * as go from 'gojs';

src/GuidedDraggingTool.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (C) 1998-2021 by Northwoods Software Corporation. All Rights Reserved.
2+
* Copyright (C) 1998-2022 by Northwoods Software Corporation. All Rights Reserved.
33
*/
44

55
/*

src/components/DiagramWrapper.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (C) 1998-2021 by Northwoods Software Corporation. All Rights Reserved.
2+
* Copyright (C) 1998-2022 by Northwoods Software Corporation. All Rights Reserved.
33
*/
44

55
import * as go from 'gojs';
@@ -130,6 +130,7 @@ export class DiagramWrapper extends React.Component<DiagramProps, {}> {
130130
<ReactDiagram
131131
ref={this.diagramRef}
132132
divClassName='diagram-component'
133+
style={{ backgroundColor: '#eee' }}
133134
initDiagram={this.initDiagram}
134135
nodeDataArray={this.props.nodeDataArray}
135136
linkDataArray={this.props.linkDataArray}

src/components/InspectorRow.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (C) 1998-2021 by Northwoods Software Corporation. All Rights Reserved.
2+
* Copyright (C) 1998-2022 by Northwoods Software Corporation. All Rights Reserved.
33
*/
44

55
import * as React from 'react';

src/components/SelectionInspector.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (C) 1998-2021 by Northwoods Software Corporation. All Rights Reserved.
2+
* Copyright (C) 1998-2022 by Northwoods Software Corporation. All Rights Reserved.
33
*/
44

55
import * as React from 'react';

0 commit comments

Comments
 (0)