Skip to content

Commit f9d7575

Browse files
authored
doc: update copyright and license in source file headers (maxGraph#100)
Ensure that all source files contain the Apache-2.0 license and that the 'maxGraph Contributors' are mentioned.
1 parent ea9a6dd commit f9d7575

File tree

248 files changed

+4336
-889
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

248 files changed

+4336
-889
lines changed

packages/core/src/Client.ts

+17-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,20 @@
1-
/**
2-
* Copyright (c) 2006-2017, JGraph Ltd
3-
* Copyright (c) 2006-2017, Gaudenz Alder
4-
*/
1+
/*
2+
Copyright 2021-present The maxGraph project Contributors
3+
Copyright (c) 2006-2017, JGraph Ltd
4+
Copyright (c) 2006-2017, Gaudenz Alder
5+
6+
Licensed under the Apache License, Version 2.0 (the "License");
7+
you may not use this file except in compliance with the License.
8+
You may obtain a copy of the License at
9+
10+
http://www.apache.org/licenses/LICENSE-2.0
11+
12+
Unless required by applicable law or agreed to in writing, software
13+
distributed under the License is distributed on an "AS IS" BASIS,
14+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
See the License for the specific language governing permissions and
16+
limitations under the License.
17+
*/
518

619
class Client {
720
/**

packages/core/src/editor/Editor.ts

+17-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,20 @@
1-
/**
2-
* Copyright (c) 2006-2019, JGraph Ltd
3-
* Copyright (c) 2006-2019, draw.io AG
4-
*/
1+
/*
2+
Copyright 2021-present The maxGraph project Contributors
3+
Copyright (c) 2006-2019, JGraph Ltd
4+
Copyright (c) 2006-2019, draw.io AG
5+
6+
Licensed under the Apache License, Version 2.0 (the "License");
7+
you may not use this file except in compliance with the License.
8+
You may obtain a copy of the License at
9+
10+
http://www.apache.org/licenses/LICENSE-2.0
11+
12+
Unless required by applicable law or agreed to in writing, software
13+
distributed under the License is distributed on an "AS IS" BASIS,
14+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
See the License for the specific language governing permissions and
16+
limitations under the License.
17+
*/
518

619
import EditorPopupMenu from './EditorPopupMenu';
720
import UndoManager from '../view/undoable_changes/UndoManager';

packages/core/src/editor/EditorKeyHandler.ts

+17-6
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,20 @@
1-
/**
2-
* Copyright (c) 2006-2015, JGraph Ltd
3-
* Copyright (c) 2006-2015, Gaudenz Alder
4-
* Updated to ES9 syntax by David Morrissey 2021
5-
* Type definitions from the typed-mxgraph project
6-
*/
1+
/*
2+
Copyright 2021-present The maxGraph project Contributors
3+
Copyright (c) 2006-2015, JGraph Ltd
4+
Copyright (c) 2006-2015, Gaudenz Alder
5+
6+
Licensed under the Apache License, Version 2.0 (the "License");
7+
you may not use this file except in compliance with the License.
8+
You may obtain a copy of the License at
9+
10+
http://www.apache.org/licenses/LICENSE-2.0
11+
12+
Unless required by applicable law or agreed to in writing, software
13+
distributed under the License is distributed on an "AS IS" BASIS,
14+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
See the License for the specific language governing permissions and
16+
limitations under the License.
17+
*/
718

819
import InternalEvent from '../view/event/InternalEvent';
920
import EventObject from '../view/event/EventObject';

packages/core/src/editor/EditorPopupMenu.ts

+24-12
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,21 @@
1-
/**
2-
* Copyright (c) 2006-2015, JGraph Ltd
3-
* Copyright (c) 2006-2015, Gaudenz Alder
4-
* Updated to ES9 syntax by David Morrissey 2021
5-
* Type definitions from the typed-mxgraph project
6-
*/
1+
/*
2+
Copyright 2021-present The maxGraph project Contributors
3+
Copyright (c) 2006-2015, JGraph Ltd
4+
Copyright (c) 2006-2015, Gaudenz Alder
5+
6+
Licensed under the Apache License, Version 2.0 (the "License");
7+
you may not use this file except in compliance with the License.
8+
You may obtain a copy of the License at
9+
10+
http://www.apache.org/licenses/LICENSE-2.0
11+
12+
Unless required by applicable law or agreed to in writing, software
13+
distributed under the License is distributed on an "AS IS" BASIS,
14+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
See the License for the specific language governing permissions and
16+
limitations under the License.
17+
*/
18+
719
import Cell from '../view/cell/Cell';
820
import MaxPopupMenu from '../gui/MaxPopupMenu';
921
import { getTextContent } from '../util/domUtils';
@@ -155,12 +167,12 @@ export class EditorPopupMenu {
155167
* @param parent DOM node that represents the parent menu item.
156168
*/
157169
addItems(
158-
editor: Editor,
159-
menu: MaxPopupMenu,
160-
cell: Cell | null=null,
161-
evt: MouseEvent | null=null,
162-
conditions: any,
163-
item: Element,
170+
editor: Editor,
171+
menu: MaxPopupMenu,
172+
cell: Cell | null=null,
173+
evt: MouseEvent | null=null,
174+
conditions: any,
175+
item: Element,
164176
parent: PopupMenuItem | null=null
165177
) {
166178
let addSeparator = false;

packages/core/src/editor/EditorToolbar.ts

+17-6
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,20 @@
1-
/**
2-
* Copyright (c) 2006-2015, JGraph Ltd
3-
* Copyright (c) 2006-2015, Gaudenz Alder
4-
* Updated to ES9 syntax by David Morrissey 2021
5-
* Type definitions from the typed-mxgraph project
6-
*/
1+
/*
2+
Copyright 2021-present The maxGraph project Contributors
3+
Copyright (c) 2006-2015, JGraph Ltd
4+
Copyright (c) 2006-2015, Gaudenz Alder
5+
6+
Licensed under the Apache License, Version 2.0 (the "License");
7+
you may not use this file except in compliance with the License.
8+
You may obtain a copy of the License at
9+
10+
http://www.apache.org/licenses/LICENSE-2.0
11+
12+
Unless required by applicable law or agreed to in writing, software
13+
distributed under the License is distributed on an "AS IS" BASIS,
14+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
See the License for the specific language governing permissions and
16+
limitations under the License.
17+
*/
718

819
import Client from '../Client';
920
import MaxToolbar from '../gui/MaxToolbar';

packages/core/src/gui/MaxForm.ts

+17-6
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,20 @@
1-
/**
2-
* Copyright (c) 2006-2015, JGraph Ltd
3-
* Copyright (c) 2006-2015, Gaudenz Alder
4-
* Updated to ES9 syntax by David Morrissey 2021
5-
* Type definitions from the typed-mxgraph project
6-
*/
1+
/*
2+
Copyright 2021-present The maxGraph project Contributors
3+
Copyright (c) 2006-2015, JGraph Ltd
4+
Copyright (c) 2006-2015, Gaudenz Alder
5+
6+
Licensed under the Apache License, Version 2.0 (the "License");
7+
you may not use this file except in compliance with the License.
8+
You may obtain a copy of the License at
9+
10+
http://www.apache.org/licenses/LICENSE-2.0
11+
12+
Unless required by applicable law or agreed to in writing, software
13+
distributed under the License is distributed on an "AS IS" BASIS,
14+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
See the License for the specific language governing permissions and
16+
limitations under the License.
17+
*/
718

819
import Client from '../Client';
920
import InternalEvent from '../view/event/InternalEvent';

packages/core/src/gui/MaxLog.ts

+17-6
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,20 @@
1-
/**
2-
* Copyright (c) 2006-2015, JGraph Ltd
3-
* Copyright (c) 2006-2015, Gaudenz Alder
4-
* Updated to ES9 syntax by David Morrissey 2021
5-
* Type definitions from the typed-mxgraph project
6-
*/
1+
/*
2+
Copyright 2021-present The maxGraph project Contributors
3+
Copyright (c) 2006-2015, JGraph Ltd
4+
Copyright (c) 2006-2015, Gaudenz Alder
5+
6+
Licensed under the Apache License, Version 2.0 (the "License");
7+
you may not use this file except in compliance with the License.
8+
You may obtain a copy of the License at
9+
10+
http://www.apache.org/licenses/LICENSE-2.0
11+
12+
Unless required by applicable law or agreed to in writing, software
13+
distributed under the License is distributed on an "AS IS" BASIS,
14+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
See the License for the specific language governing permissions and
16+
limitations under the License.
17+
*/
718

819
import Client from '../Client';
920
import InternalEvent from '../view/event/InternalEvent';

packages/core/src/gui/MaxPopupMenu.ts

+19-7
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,21 @@
1-
/**
2-
* Copyright (c) 2006-2015, JGraph Ltd
3-
* Copyright (c) 2006-2015, Gaudenz Alder
4-
* Updated to ES9 syntax by David Morrissey 2021
5-
* Type definitions from the typed-mxgraph project
6-
*/
1+
/*
2+
Copyright 2021-present The maxGraph project Contributors
3+
Copyright (c) 2006-2015, JGraph Ltd
4+
Copyright (c) 2006-2015, Gaudenz Alder
5+
6+
Licensed under the Apache License, Version 2.0 (the "License");
7+
you may not use this file except in compliance with the License.
8+
You may obtain a copy of the License at
9+
10+
http://www.apache.org/licenses/LICENSE-2.0
11+
12+
Unless required by applicable law or agreed to in writing, software
13+
distributed under the License is distributed on an "AS IS" BASIS,
14+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
See the License for the specific language governing permissions and
16+
limitations under the License.
17+
*/
18+
719
import EventSource from '../view/event/EventSource';
820
import { fit, getDocumentScrollOrigin } from '../util/styleUtils';
921
import EventObject from '../view/event/EventObject';
@@ -382,7 +394,7 @@ class MaxPopupMenu extends EventSource implements Partial<PopupMenuItem> {
382394
* @param force Optional boolean to ignore <smartSeparators>. Default is false.
383395
*/
384396
addSeparator(parent: PopupMenuItem | null=null, force = false) {
385-
// Defaults to this instance if no parent (submenu) specified, but
397+
// Defaults to this instance if no parent (submenu) specified, but
386398
// all the necessary DOM elements are present as in PopupMenuItem
387399
parent = <PopupMenuItem>(parent || this);
388400

packages/core/src/gui/MaxToolbar.ts

+17-6
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,20 @@
1-
/**
2-
* Copyright (c) 2006-2015, JGraph Ltd
3-
* Copyright (c) 2006-2015, Gaudenz Alder
4-
* Updated to ES9 syntax by David Morrissey 2021
5-
* Type definitions from the typed-mxgraph project
6-
*/
1+
/*
2+
Copyright 2021-present The maxGraph project Contributors
3+
Copyright (c) 2006-2015, JGraph Ltd
4+
Copyright (c) 2006-2015, Gaudenz Alder
5+
6+
Licensed under the Apache License, Version 2.0 (the "License");
7+
you may not use this file except in compliance with the License.
8+
You may obtain a copy of the License at
9+
10+
http://www.apache.org/licenses/LICENSE-2.0
11+
12+
Unless required by applicable law or agreed to in writing, software
13+
distributed under the License is distributed on an "AS IS" BASIS,
14+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
See the License for the specific language governing permissions and
16+
limitations under the License.
17+
*/
718

819
import InternalEvent from '../view/event/InternalEvent';
920
import Point from '../view/geometry/Point';

packages/core/src/gui/MaxWindow.ts

+17-6
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,20 @@
1-
/**
2-
* Copyright (c) 2006-2015, JGraph Ltd
3-
* Copyright (c) 2006-2015, Gaudenz Alder
4-
* Updated to ES9 syntax by David Morrissey 2021
5-
* Type definitions from the typed-mxgraph project
6-
*/
1+
/*
2+
Copyright 2021-present The maxGraph project Contributors
3+
Copyright (c) 2006-2015, JGraph Ltd
4+
Copyright (c) 2006-2015, Gaudenz Alder
5+
6+
Licensed under the Apache License, Version 2.0 (the "License");
7+
you may not use this file except in compliance with the License.
8+
You may obtain a copy of the License at
9+
10+
http://www.apache.org/licenses/LICENSE-2.0
11+
12+
Unless required by applicable law or agreed to in writing, software
13+
distributed under the License is distributed on an "AS IS" BASIS,
14+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
See the License for the specific language governing permissions and
16+
limitations under the License.
17+
*/
718

819
import Rectangle from '../view/geometry/Rectangle';
920
import EventObject from '../view/event/EventObject';

packages/core/src/index.ts

+16
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
/*
2+
Copyright 2021-present The maxGraph project Contributors
3+
4+
Licensed under the Apache License, Version 2.0 (the "License");
5+
you may not use this file except in compliance with the License.
6+
You may obtain a copy of the License at
7+
8+
http://www.apache.org/licenses/LICENSE-2.0
9+
10+
Unless required by applicable law or agreed to in writing, software
11+
distributed under the License is distributed on an "AS IS" BASIS,
12+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
See the License for the specific language governing permissions and
14+
limitations under the License.
15+
*/
16+
117
/* Graph mixins */
218
import './view/mixins/PortsMixin';
319
import './view/mixins/PanningMixin';

packages/core/src/serialization/Codec.ts

+17-6
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,20 @@
1-
/**
2-
* Copyright (c) 2006-2015, JGraph Ltd
3-
* Copyright (c) 2006-2015, Gaudenz Alder
4-
* Updated to ES9 syntax by David Morrissey 2021
5-
* Type definitions from the typed-mxgraph project
6-
*/
1+
/*
2+
Copyright 2021-present The maxGraph project Contributors
3+
Copyright (c) 2006-2015, JGraph Ltd
4+
Copyright (c) 2006-2015, Gaudenz Alder
5+
6+
Licensed under the Apache License, Version 2.0 (the "License");
7+
you may not use this file except in compliance with the License.
8+
You may obtain a copy of the License at
9+
10+
http://www.apache.org/licenses/LICENSE-2.0
11+
12+
Unless required by applicable law or agreed to in writing, software
13+
distributed under the License is distributed on an "AS IS" BASIS,
14+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
See the License for the specific language governing permissions and
16+
limitations under the License.
17+
*/
718

819
import CellPath from '../view/cell/CellPath';
920
import CodecRegistry from './CodecRegistry';

packages/core/src/serialization/CodecRegistry.ts

+17-6
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,20 @@
1-
/**
2-
* Copyright (c) 2006-2015, JGraph Ltd
3-
* Copyright (c) 2006-2015, Gaudenz Alder
4-
* Updated to ES9 syntax by David Morrissey 2021
5-
* Type definitions from the typed-mxgraph project
6-
*/
1+
/*
2+
Copyright 2021-present The maxGraph project Contributors
3+
Copyright (c) 2006-2015, JGraph Ltd
4+
Copyright (c) 2006-2015, Gaudenz Alder
5+
6+
Licensed under the Apache License, Version 2.0 (the "License");
7+
you may not use this file except in compliance with the License.
8+
You may obtain a copy of the License at
9+
10+
http://www.apache.org/licenses/LICENSE-2.0
11+
12+
Unless required by applicable law or agreed to in writing, software
13+
distributed under the License is distributed on an "AS IS" BASIS,
14+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
See the License for the specific language governing permissions and
16+
limitations under the License.
17+
*/
718

819
import ObjectCodec from './ObjectCodec';
920

packages/core/src/serialization/ObjectCodec.ts

+17-6
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,20 @@
1-
/**
2-
* Copyright (c) 2006-2015, JGraph Ltd
3-
* Copyright (c) 2006-2015, Gaudenz Alder
4-
* Updated to ES9 syntax by David Morrissey 2021
5-
* Type definitions from the typed-mxgraph project
6-
*/
1+
/*
2+
Copyright 2021-present The maxGraph project Contributors
3+
Copyright (c) 2006-2015, JGraph Ltd
4+
Copyright (c) 2006-2015, Gaudenz Alder
5+
6+
Licensed under the Apache License, Version 2.0 (the "License");
7+
you may not use this file except in compliance with the License.
8+
You may obtain a copy of the License at
9+
10+
http://www.apache.org/licenses/LICENSE-2.0
11+
12+
Unless required by applicable law or agreed to in writing, software
13+
distributed under the License is distributed on an "AS IS" BASIS,
14+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
See the License for the specific language governing permissions and
16+
limitations under the License.
17+
*/
718

819
import ObjectIdentity from '../util/ObjectIdentity';
920
import MaxLog from '../gui/MaxLog';

0 commit comments

Comments
 (0)