diff --git a/packages/core/src/Client.ts b/packages/core/src/Client.ts index 193c195c6..88b0b3fb1 100644 --- a/packages/core/src/Client.ts +++ b/packages/core/src/Client.ts @@ -1,7 +1,20 @@ -/** - * Copyright (c) 2006-2017, JGraph Ltd - * Copyright (c) 2006-2017, Gaudenz Alder - */ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2017, JGraph Ltd +Copyright (c) 2006-2017, Gaudenz Alder + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ class Client { /** diff --git a/packages/core/src/editor/Editor.ts b/packages/core/src/editor/Editor.ts index e4708e335..680727cbc 100644 --- a/packages/core/src/editor/Editor.ts +++ b/packages/core/src/editor/Editor.ts @@ -1,7 +1,20 @@ -/** - * Copyright (c) 2006-2019, JGraph Ltd - * Copyright (c) 2006-2019, draw.io AG - */ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2019, JGraph Ltd +Copyright (c) 2006-2019, draw.io AG + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ import EditorPopupMenu from './EditorPopupMenu'; import UndoManager from '../view/undoable_changes/UndoManager'; diff --git a/packages/core/src/editor/EditorKeyHandler.ts b/packages/core/src/editor/EditorKeyHandler.ts index 90d715cd4..210af1798 100644 --- a/packages/core/src/editor/EditorKeyHandler.ts +++ b/packages/core/src/editor/EditorKeyHandler.ts @@ -1,9 +1,20 @@ -/** - * Copyright (c) 2006-2015, JGraph Ltd - * Copyright (c) 2006-2015, Gaudenz Alder - * Updated to ES9 syntax by David Morrissey 2021 - * Type definitions from the typed-mxgraph project - */ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2015, JGraph Ltd +Copyright (c) 2006-2015, Gaudenz Alder + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ import InternalEvent from '../view/event/InternalEvent'; import EventObject from '../view/event/EventObject'; diff --git a/packages/core/src/editor/EditorPopupMenu.ts b/packages/core/src/editor/EditorPopupMenu.ts index 9b665938b..13246775d 100644 --- a/packages/core/src/editor/EditorPopupMenu.ts +++ b/packages/core/src/editor/EditorPopupMenu.ts @@ -1,9 +1,21 @@ -/** - * Copyright (c) 2006-2015, JGraph Ltd - * Copyright (c) 2006-2015, Gaudenz Alder - * Updated to ES9 syntax by David Morrissey 2021 - * Type definitions from the typed-mxgraph project - */ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2015, JGraph Ltd +Copyright (c) 2006-2015, Gaudenz Alder + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import Cell from '../view/cell/Cell'; import MaxPopupMenu from '../gui/MaxPopupMenu'; import { getTextContent } from '../util/domUtils'; @@ -155,12 +167,12 @@ export class EditorPopupMenu { * @param parent DOM node that represents the parent menu item. */ addItems( - editor: Editor, - menu: MaxPopupMenu, - cell: Cell | null=null, - evt: MouseEvent | null=null, - conditions: any, - item: Element, + editor: Editor, + menu: MaxPopupMenu, + cell: Cell | null=null, + evt: MouseEvent | null=null, + conditions: any, + item: Element, parent: PopupMenuItem | null=null ) { let addSeparator = false; diff --git a/packages/core/src/editor/EditorToolbar.ts b/packages/core/src/editor/EditorToolbar.ts index 0f8ecc41e..15193b81d 100644 --- a/packages/core/src/editor/EditorToolbar.ts +++ b/packages/core/src/editor/EditorToolbar.ts @@ -1,9 +1,20 @@ -/** - * Copyright (c) 2006-2015, JGraph Ltd - * Copyright (c) 2006-2015, Gaudenz Alder - * Updated to ES9 syntax by David Morrissey 2021 - * Type definitions from the typed-mxgraph project - */ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2015, JGraph Ltd +Copyright (c) 2006-2015, Gaudenz Alder + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ import Client from '../Client'; import MaxToolbar from '../gui/MaxToolbar'; diff --git a/packages/core/src/gui/MaxForm.ts b/packages/core/src/gui/MaxForm.ts index edc0f560f..8b4a74de8 100644 --- a/packages/core/src/gui/MaxForm.ts +++ b/packages/core/src/gui/MaxForm.ts @@ -1,9 +1,20 @@ -/** - * Copyright (c) 2006-2015, JGraph Ltd - * Copyright (c) 2006-2015, Gaudenz Alder - * Updated to ES9 syntax by David Morrissey 2021 - * Type definitions from the typed-mxgraph project - */ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2015, JGraph Ltd +Copyright (c) 2006-2015, Gaudenz Alder + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ import Client from '../Client'; import InternalEvent from '../view/event/InternalEvent'; diff --git a/packages/core/src/gui/MaxLog.ts b/packages/core/src/gui/MaxLog.ts index 2a0391a3e..08dc00e60 100644 --- a/packages/core/src/gui/MaxLog.ts +++ b/packages/core/src/gui/MaxLog.ts @@ -1,9 +1,20 @@ -/** - * Copyright (c) 2006-2015, JGraph Ltd - * Copyright (c) 2006-2015, Gaudenz Alder - * Updated to ES9 syntax by David Morrissey 2021 - * Type definitions from the typed-mxgraph project - */ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2015, JGraph Ltd +Copyright (c) 2006-2015, Gaudenz Alder + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ import Client from '../Client'; import InternalEvent from '../view/event/InternalEvent'; diff --git a/packages/core/src/gui/MaxPopupMenu.ts b/packages/core/src/gui/MaxPopupMenu.ts index dfdbcf010..d772fe8f8 100644 --- a/packages/core/src/gui/MaxPopupMenu.ts +++ b/packages/core/src/gui/MaxPopupMenu.ts @@ -1,9 +1,21 @@ -/** - * Copyright (c) 2006-2015, JGraph Ltd - * Copyright (c) 2006-2015, Gaudenz Alder - * Updated to ES9 syntax by David Morrissey 2021 - * Type definitions from the typed-mxgraph project - */ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2015, JGraph Ltd +Copyright (c) 2006-2015, Gaudenz Alder + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import EventSource from '../view/event/EventSource'; import { fit, getDocumentScrollOrigin } from '../util/styleUtils'; import EventObject from '../view/event/EventObject'; @@ -382,7 +394,7 @@ class MaxPopupMenu extends EventSource implements Partial { * @param force Optional boolean to ignore . Default is false. */ addSeparator(parent: PopupMenuItem | null=null, force = false) { - // Defaults to this instance if no parent (submenu) specified, but + // Defaults to this instance if no parent (submenu) specified, but // all the necessary DOM elements are present as in PopupMenuItem parent = (parent || this); diff --git a/packages/core/src/gui/MaxToolbar.ts b/packages/core/src/gui/MaxToolbar.ts index cfb9a2fe8..bd0fc7953 100644 --- a/packages/core/src/gui/MaxToolbar.ts +++ b/packages/core/src/gui/MaxToolbar.ts @@ -1,9 +1,20 @@ -/** - * Copyright (c) 2006-2015, JGraph Ltd - * Copyright (c) 2006-2015, Gaudenz Alder - * Updated to ES9 syntax by David Morrissey 2021 - * Type definitions from the typed-mxgraph project - */ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2015, JGraph Ltd +Copyright (c) 2006-2015, Gaudenz Alder + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ import InternalEvent from '../view/event/InternalEvent'; import Point from '../view/geometry/Point'; diff --git a/packages/core/src/gui/MaxWindow.ts b/packages/core/src/gui/MaxWindow.ts index e25fd3081..b84dbf6d3 100644 --- a/packages/core/src/gui/MaxWindow.ts +++ b/packages/core/src/gui/MaxWindow.ts @@ -1,9 +1,20 @@ -/** - * Copyright (c) 2006-2015, JGraph Ltd - * Copyright (c) 2006-2015, Gaudenz Alder - * Updated to ES9 syntax by David Morrissey 2021 - * Type definitions from the typed-mxgraph project - */ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2015, JGraph Ltd +Copyright (c) 2006-2015, Gaudenz Alder + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ import Rectangle from '../view/geometry/Rectangle'; import EventObject from '../view/event/EventObject'; diff --git a/packages/core/src/index.ts b/packages/core/src/index.ts index b55f847da..6c7726e7e 100644 --- a/packages/core/src/index.ts +++ b/packages/core/src/index.ts @@ -1,3 +1,19 @@ +/* +Copyright 2021-present The maxGraph project Contributors + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + /* Graph mixins */ import './view/mixins/PortsMixin'; import './view/mixins/PanningMixin'; diff --git a/packages/core/src/serialization/Codec.ts b/packages/core/src/serialization/Codec.ts index 12937af5f..79b95a87d 100644 --- a/packages/core/src/serialization/Codec.ts +++ b/packages/core/src/serialization/Codec.ts @@ -1,9 +1,20 @@ -/** - * Copyright (c) 2006-2015, JGraph Ltd - * Copyright (c) 2006-2015, Gaudenz Alder - * Updated to ES9 syntax by David Morrissey 2021 - * Type definitions from the typed-mxgraph project - */ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2015, JGraph Ltd +Copyright (c) 2006-2015, Gaudenz Alder + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ import CellPath from '../view/cell/CellPath'; import CodecRegistry from './CodecRegistry'; diff --git a/packages/core/src/serialization/CodecRegistry.ts b/packages/core/src/serialization/CodecRegistry.ts index 70d61a8ea..966914a72 100644 --- a/packages/core/src/serialization/CodecRegistry.ts +++ b/packages/core/src/serialization/CodecRegistry.ts @@ -1,9 +1,20 @@ -/** - * Copyright (c) 2006-2015, JGraph Ltd - * Copyright (c) 2006-2015, Gaudenz Alder - * Updated to ES9 syntax by David Morrissey 2021 - * Type definitions from the typed-mxgraph project - */ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2015, JGraph Ltd +Copyright (c) 2006-2015, Gaudenz Alder + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ import ObjectCodec from './ObjectCodec'; diff --git a/packages/core/src/serialization/ObjectCodec.ts b/packages/core/src/serialization/ObjectCodec.ts index 816c5624b..4ec723c55 100644 --- a/packages/core/src/serialization/ObjectCodec.ts +++ b/packages/core/src/serialization/ObjectCodec.ts @@ -1,9 +1,20 @@ -/** - * Copyright (c) 2006-2015, JGraph Ltd - * Copyright (c) 2006-2015, Gaudenz Alder - * Updated to ES9 syntax by David Morrissey 2021 - * Type definitions from the typed-mxgraph project - */ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2015, JGraph Ltd +Copyright (c) 2006-2015, Gaudenz Alder + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ import ObjectIdentity from '../util/ObjectIdentity'; import MaxLog from '../gui/MaxLog'; diff --git a/packages/core/src/types.ts b/packages/core/src/types.ts index 99427259c..4e3a4dfa3 100644 --- a/packages/core/src/types.ts +++ b/packages/core/src/types.ts @@ -1,3 +1,19 @@ +/* +Copyright 2021-present The maxGraph project Contributors + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import { DIRECTION } from './util/Constants'; import type Cell from './view/cell/Cell'; import type CellState from './view/cell/CellState'; diff --git a/packages/core/src/util/Clipboard.ts b/packages/core/src/util/Clipboard.ts index 5da7c266a..28bdc36ee 100644 --- a/packages/core/src/util/Clipboard.ts +++ b/packages/core/src/util/Clipboard.ts @@ -1,9 +1,20 @@ -/** - * Copyright (c) 2006-2015, JGraph Ltd - * Copyright (c) 2006-2015, Gaudenz Alder - * Updated to ES9 syntax by David Morrissey 2021 - * Type definitions from the typed-mxgraph project - */ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2015, JGraph Ltd +Copyright (c) 2006-2015, Gaudenz Alder + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ import { Graph } from '../view/Graph'; import CellArray from '../view/cell/CellArray'; diff --git a/packages/core/src/util/Constants.ts b/packages/core/src/util/Constants.ts index 235194fb8..0b76dce7d 100644 --- a/packages/core/src/util/Constants.ts +++ b/packages/core/src/util/Constants.ts @@ -1,9 +1,20 @@ -/** - * Copyright (c) 2006-2015, JGraph Ltd - * Copyright (c) 2006-2015, Gaudenz Alder - * Updated to ES9 syntax by David Morrissey 2021 - * Type definitions from the typed-mxgraph project - */ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2015, JGraph Ltd +Copyright (c) 2006-2015, Gaudenz Alder + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ /** * Defines the portion of the cell which is to be used as a connectable @@ -484,7 +495,7 @@ export const enum ARROW { BLOCK = 'block', BLOCK_THIN = 'blockThin', OPEN = 'open', - OPEN_THIN = 'openThin', + OPEN_THIN = 'openThin', OVAL = 'oval', DIAMOND = 'diamond', DIAMOND_THIN = 'diamondThin', @@ -528,7 +539,7 @@ export const enum DIRECTION { * * Constant for text direction left to right. Default is ltr. Use this * value for left to right text direction. - * + * * Constant for text direction right to left. Default is rtl. Use this * value for right to left text direction. */ @@ -680,7 +691,7 @@ export const enum SHAPE { /** * Name under which {@link Triangle} is registered in {@link CellRenderer}. - * Default is triangle. + * Default is triangle. */ TRIANGLE = 'triangle', diff --git a/packages/core/src/util/Dictionary.ts b/packages/core/src/util/Dictionary.ts index dbd973cda..bd13b0823 100644 --- a/packages/core/src/util/Dictionary.ts +++ b/packages/core/src/util/Dictionary.ts @@ -1,9 +1,20 @@ -/** - * Copyright (c) 2006-2015, JGraph Ltd - * Copyright (c) 2006-2015, Gaudenz Alder - * Updated to ES9 syntax by David Morrissey 2021 - * Type definitions from the typed-mxgraph project - */ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2015, JGraph Ltd +Copyright (c) 2006-2015, Gaudenz Alder + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ import ObjectIdentity from './ObjectIdentity'; diff --git a/packages/core/src/util/EventUtils.ts b/packages/core/src/util/EventUtils.ts index b6dc67f70..98d2ea417 100644 --- a/packages/core/src/util/EventUtils.ts +++ b/packages/core/src/util/EventUtils.ts @@ -1,9 +1,24 @@ -/** - * Returns the touch or mouse event that contains the mouse coordinates. - */ +/* +Copyright 2021-present The maxGraph project Contributors + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ import Client from '../Client'; +/** + * Returns the touch or mouse event that contains the mouse coordinates. + */ export const getMainEvent = (evt: MouseEvent) => { let t = evt as any; diff --git a/packages/core/src/util/MaxXmlRequest.ts b/packages/core/src/util/MaxXmlRequest.ts index 9e0814404..a39cb39d0 100644 --- a/packages/core/src/util/MaxXmlRequest.ts +++ b/packages/core/src/util/MaxXmlRequest.ts @@ -1,7 +1,21 @@ -/** - * Copyright (c) 2006-2020, JGraph Ltd - * Copyright (c) 2006-2020, draw.io AG - */ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2020, JGraph Ltd +Copyright (c) 2006-2020, draw.io AG + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import { write } from './domUtils'; /** @@ -70,11 +84,11 @@ import { write } from './domUtils'; */ class MaxXmlRequest { constructor( - url: string, - params: string | null=null, - method: 'GET' | 'POST'='POST', - async: boolean=true, - username: string | null=null, + url: string, + params: string | null=null, + method: 'GET' | 'POST'='POST', + async: boolean=true, + username: string | null=null, password: string | null=null ) { this.url = url; @@ -237,9 +251,9 @@ class MaxXmlRequest { * @param ontimeout Optional function to execute on timeout. */ send( - onload: Function | null=null, - onerror: Function | null=null, - timeout: number | null=null, + onload: Function | null=null, + onerror: Function | null=null, + timeout: number | null=null, ontimeout: Function | null=null ): void { this.request = this.create(); @@ -442,12 +456,12 @@ export const load = (url: string) => { * @param headers Optional with headers, eg. {'Authorization': 'token xyz'} */ export const get = ( - url: string, - onload: Function | null=null, - onerror: Function | null=null, - binary: boolean=false, - timeout: number | null=null, - ontimeout: Function | null=null, + url: string, + onload: Function | null=null, + onerror: Function | null=null, + binary: boolean=false, + timeout: number | null=null, + ontimeout: Function | null=null, headers: { [key: string]: string } | null=null ) => { const req = new MaxXmlRequest(url, null, 'GET'); @@ -480,8 +494,8 @@ export const get = ( * @param onerror Optional function to execute on error. */ export const getAll = ( - urls: string[], - onload: (arg0: any) => void, + urls: string[], + onload: (arg0: any) => void, onerror: () => void ) => { let remain = urls.length; @@ -545,9 +559,9 @@ export const getAll = ( * @param onerror Optional function to execute on error. */ export const post = ( - url: string, - params: string | null=null, - onload: Function, + url: string, + params: string | null=null, + onload: Function, onerror: Function | null=null ) => { return new MaxXmlRequest(url, params).send(onload, onerror); diff --git a/packages/core/src/util/ObjectIdentity.ts b/packages/core/src/util/ObjectIdentity.ts index 67cc138b2..27fdb86cb 100644 --- a/packages/core/src/util/ObjectIdentity.ts +++ b/packages/core/src/util/ObjectIdentity.ts @@ -1,9 +1,20 @@ -/** - * Copyright (c) 2006-2015, JGraph Ltd - * Copyright (c) 2006-2015, Gaudenz Alder - * Updated to ES9 syntax by David Morrissey 2021 - * Type definitions from the typed-mxgraph project - */ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2015, JGraph Ltd +Copyright (c) 2006-2015, Gaudenz Alder + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ import { getFunctionName } from './StringUtils'; diff --git a/packages/core/src/util/StringUtils.ts b/packages/core/src/util/StringUtils.ts index 97dd35369..b54bee1e8 100644 --- a/packages/core/src/util/StringUtils.ts +++ b/packages/core/src/util/StringUtils.ts @@ -1,3 +1,19 @@ +/* +Copyright 2021-present The maxGraph project Contributors + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import { NODETYPE, NONE, @@ -6,7 +22,6 @@ import { getTextContent } from './domUtils'; import type { Properties } from '../types'; - /** * Strips all whitespaces from the beginning of the string. Without the * second parameter, this will trim these characters: diff --git a/packages/core/src/util/Translations.ts b/packages/core/src/util/Translations.ts index b406be836..5375131a4 100644 --- a/packages/core/src/util/Translations.ts +++ b/packages/core/src/util/Translations.ts @@ -1,7 +1,21 @@ -/** - * Copyright (c) 2006-2016, JGraph Ltd - * Copyright (c) 2006-2016, Gaudenz Alder - */ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2016, JGraph Ltd +Copyright (c) 2006-2016, Gaudenz Alder + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import Client from '../Client'; import { NONE } from './Constants'; import MaxXmlRequest, { get, load } from './MaxXmlRequest'; diff --git a/packages/core/src/util/UrlConverter.ts b/packages/core/src/util/UrlConverter.ts index 12774445c..d5ed3e89f 100644 --- a/packages/core/src/util/UrlConverter.ts +++ b/packages/core/src/util/UrlConverter.ts @@ -1,9 +1,20 @@ -/** - * Copyright (c) 2006-2015, JGraph Ltd - * Copyright (c) 2006-2015, Gaudenz Alder - * Updated to ES9 syntax by David Morrissey 2021 - * Type definitions from the typed-mxgraph project - */ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2015, JGraph Ltd +Copyright (c) 2006-2015, Gaudenz Alder + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ /** * Converts relative and absolute URLs to absolute URLs with protocol and domain. diff --git a/packages/core/src/util/Utils.ts b/packages/core/src/util/Utils.ts index 2f852271f..5866513bd 100644 --- a/packages/core/src/util/Utils.ts +++ b/packages/core/src/util/Utils.ts @@ -1,9 +1,20 @@ -/** - * Copyright (c) 2006-2015, JGraph Ltd - * Copyright (c) 2006-2015, Gaudenz Alder - * Updated to ES9 syntax by David Morrissey 2021 - * Type definitions from the typed-mxgraph project - */ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2015, JGraph Ltd +Copyright (c) 2006-2015, Gaudenz Alder + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ /** * A singleton class that provides cross-browser helper methods. @@ -20,7 +31,7 @@ * ``` */ export const utils = { - /* + /* * Specifies the resource key for the title of the error window. If the * resource for this key does not exist then the value is used as * the title. Default is 'error'. @@ -93,7 +104,7 @@ export const copyTextToClipboard = (text: string): void => { const fallbackCopyTextToClipboard = (text: string):void => { var textArea = document.createElement("textarea"); textArea.value = text; - + // Avoid scrolling to bottom textArea.style.top = "0"; textArea.style.left = "0"; diff --git a/packages/core/src/util/arrayUtils.ts b/packages/core/src/util/arrayUtils.ts index dd6c4abbc..3d780bcb4 100644 --- a/packages/core/src/util/arrayUtils.ts +++ b/packages/core/src/util/arrayUtils.ts @@ -1,9 +1,21 @@ -/** - * Copyright (c) 2006-2015, JGraph Ltd - * Copyright (c) 2006-2015, Gaudenz Alder - * Updated to ES9 syntax by David Morrissey 2021 - * Type definitions from the typed-mxgraph project - */ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2015, JGraph Ltd +Copyright (c) 2006-2015, Gaudenz Alder + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import Point from '../view/geometry/Point'; import Dictionary from './Dictionary'; diff --git a/packages/core/src/util/cloneUtils.ts b/packages/core/src/util/cloneUtils.ts index 9a26e10fe..8923163bb 100644 --- a/packages/core/src/util/cloneUtils.ts +++ b/packages/core/src/util/cloneUtils.ts @@ -1,3 +1,19 @@ +/* +Copyright 2021-present The maxGraph project Contributors + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import ObjectIdentity from './ObjectIdentity'; /** diff --git a/packages/core/src/util/domHelpers.ts b/packages/core/src/util/domHelpers.ts index 6ac7484e1..8e3154a14 100644 --- a/packages/core/src/util/domHelpers.ts +++ b/packages/core/src/util/domHelpers.ts @@ -1,3 +1,19 @@ +/* +Copyright 2021-present The maxGraph project Contributors + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import Editor from '../editor/Editor'; import { KeyboardEventListener, MouseEventListener } from '../types'; import InternalEvent from "../view/event/InternalEvent"; diff --git a/packages/core/src/util/domUtils.ts b/packages/core/src/util/domUtils.ts index a86ff3149..9d8ce6f4c 100644 --- a/packages/core/src/util/domUtils.ts +++ b/packages/core/src/util/domUtils.ts @@ -1,3 +1,19 @@ +/* +Copyright 2021-present The maxGraph project Contributors + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import { NODETYPE } from './Constants'; /** diff --git a/packages/core/src/util/gestureUtils.ts b/packages/core/src/util/gestureUtils.ts index fd3973f7a..1bdb25fa4 100644 --- a/packages/core/src/util/gestureUtils.ts +++ b/packages/core/src/util/gestureUtils.ts @@ -1,3 +1,19 @@ +/* +Copyright 2021-present The maxGraph project Contributors + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import DragSource, { DropHandler } from '../view/other/DragSource'; import Point from '../view/geometry/Point'; import { TOOLTIP_VERTICAL_OFFSET } from './Constants'; diff --git a/packages/core/src/util/mathUtils.ts b/packages/core/src/util/mathUtils.ts index 15370a451..e29fc3abb 100644 --- a/packages/core/src/util/mathUtils.ts +++ b/packages/core/src/util/mathUtils.ts @@ -1,9 +1,21 @@ -/** - * Copyright (c) 2006-2015, JGraph Ltd - * Copyright (c) 2006-2015, Gaudenz Alder - * Updated to ES9 syntax by David Morrissey 2021 - * Type definitions from the typed-mxgraph project - */ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2015, JGraph Ltd +Copyright (c) 2006-2015, Gaudenz Alder + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import { DIRECTION, DIRECTION_MASK } from './Constants'; import Point from '../view/geometry/Point'; import Rectangle from '../view/geometry/Rectangle'; diff --git a/packages/core/src/util/printUtils.ts b/packages/core/src/util/printUtils.ts index 0d0a5e52b..119885799 100644 --- a/packages/core/src/util/printUtils.ts +++ b/packages/core/src/util/printUtils.ts @@ -1,9 +1,21 @@ -/** - * Copyright (c) 2006-2015, JGraph Ltd - * Copyright (c) 2006-2015, Gaudenz Alder - * Updated to ES9 syntax by David Morrissey 2021 - * Type definitions from the typed-mxgraph project - */ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2015, JGraph Ltd +Copyright (c) 2006-2015, Gaudenz Alder + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import Client from '../Client'; import { PAGE_FORMAT_A4_PORTRAIT } from './Constants'; import Rectangle from '../view/geometry/Rectangle'; diff --git a/packages/core/src/util/styleUtils.ts b/packages/core/src/util/styleUtils.ts index ff3834364..c9afeed75 100644 --- a/packages/core/src/util/styleUtils.ts +++ b/packages/core/src/util/styleUtils.ts @@ -1,9 +1,21 @@ -/** - * Copyright (c) 2006-2015, JGraph Ltd - * Copyright (c) 2006-2015, Gaudenz Alder - * Updated to ES9 syntax by David Morrissey 2021 - * Type definitions from the typed-mxgraph project - */ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2015, JGraph Ltd +Copyright (c) 2006-2015, Gaudenz Alder + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import Client from '../Client'; import { ALIGN, diff --git a/packages/core/src/util/treeTraversal.ts b/packages/core/src/util/treeTraversal.ts index 3bcb5e1a7..2bb36b38a 100644 --- a/packages/core/src/util/treeTraversal.ts +++ b/packages/core/src/util/treeTraversal.ts @@ -1,3 +1,19 @@ +/* +Copyright 2021-present The maxGraph project Contributors + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import Cell from '../view/cell/Cell'; import CellArray from '../view/cell/CellArray'; import Dictionary from './Dictionary'; diff --git a/packages/core/src/util/xmlUtils.ts b/packages/core/src/util/xmlUtils.ts index 4b1f0fc2f..14f5aba01 100644 --- a/packages/core/src/util/xmlUtils.ts +++ b/packages/core/src/util/xmlUtils.ts @@ -1,10 +1,22 @@ -/** - * Copyright (c) 2006-2015, JGraph Ltd - * Copyright (c) 2006-2015, Gaudenz Alder - * Updated to ES9 syntax by David Morrissey 2021 - * Type definitions from the typed-mxgraph project - */ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2015, JGraph Ltd +Copyright (c) 2006-2015, Gaudenz Alder + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import { DIALECT, NODETYPE, NS_SVG } from './Constants'; import Point from '../view/geometry/Point'; import Cell from '../view/cell/Cell'; diff --git a/packages/core/src/view/Graph.ts b/packages/core/src/view/Graph.ts index f92c1473d..b02877479 100644 --- a/packages/core/src/view/Graph.ts +++ b/packages/core/src/view/Graph.ts @@ -1,9 +1,20 @@ -/** - * Copyright (c) 2006-2015, JGraph Ltd - * Copyright (c) 2006-2015, Gaudenz Alder - * Updated to ES9 syntax by David Morrissey 2021 - * Type definitions from the typed-mxgraph project - */ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2015, JGraph Ltd +Copyright (c) 2006-2015, Gaudenz Alder + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ import Image from './image/ImageBox'; import EventObject from './event/EventObject'; diff --git a/packages/core/src/view/GraphDataModel.ts b/packages/core/src/view/GraphDataModel.ts index 427ebae4f..508f1793f 100644 --- a/packages/core/src/view/GraphDataModel.ts +++ b/packages/core/src/view/GraphDataModel.ts @@ -1,9 +1,21 @@ -/** - * Copyright (c) 2006-2018, JGraph Ltd - * Copyright (c) 2006-2018, Gaudenz Alder - * Updated to ES9 syntax by David Morrissey 2021 - * Type definitions from the typed-mxgraph project - */ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2018, JGraph Ltd +Copyright (c) 2006-2018, Gaudenz Alder + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import EventSource from './event/EventSource'; import UndoableEdit from './undoable_changes/UndoableEdit'; import CellPath from './cell/CellPath'; diff --git a/packages/core/src/view/GraphSelectionModel.ts b/packages/core/src/view/GraphSelectionModel.ts index 105bc2564..277e49c8e 100644 --- a/packages/core/src/view/GraphSelectionModel.ts +++ b/packages/core/src/view/GraphSelectionModel.ts @@ -1,7 +1,20 @@ /* - * Copyright (c) 2006-2015, JGraph Ltd - * Copyright (c) 2006-2015, Gaudenz Alder - */ +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2015, JGraph Ltd +Copyright (c) 2006-2015, Gaudenz Alder + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ import Client from "../Client"; import CellArray from "./cell/CellArray" @@ -18,38 +31,38 @@ import InternalEvent from "./event/InternalEvent"; * * Implements the selection model for a graph. Here is a listener that handles * all removed selection cells. - * + * * (code) * graph.getSelectionModel().addListener(mxEvent.CHANGE, function(sender, evt) * { * var cells = evt.getProperty('added'); - * + * * for (var i = 0; i < cells.length; i++) * { * // Handle cells[i]... * } * }); * (end) - * + * * Event: mxEvent.UNDO - * + * * Fires after the selection was changed in . The * edit property contains the {@link UndoableEdit} which contains the * {@link SelectionChange}. - * + * * Event: mxEvent.CHANGE - * + * * Fires after the selection changes by executing an {@link SelectionChange}. The * added and removed properties contain arrays of * cells that have been added to or removed from the selection, respectively. * The names are inverted due to historic reasons. This cannot be changed. - * + * * Constructor: mxGraphSelectionModel * * Constructs a new graph selection model for the given {@link Graph}. - * + * * Parameters: - * + * * graph - Reference to the enclosing {@link Graph}. */ class GraphSelectionModel extends EventSource { @@ -75,7 +88,7 @@ class GraphSelectionModel extends EventSource { * value is used as the status message. Default is 'updatingSelection'. */ updatingSelectionResource = Client.language !== 'none' ? 'updatingSelection' : ''; - + /** * Specifies if only one selected item at a time is allowed. * Default is false. @@ -98,7 +111,7 @@ class GraphSelectionModel extends EventSource { setSingleSelection(singleSelection: boolean) { this.singleSelection = singleSelection; } - + /** * Returns true if the given {@link Cell} is selected. */ diff --git a/packages/core/src/view/GraphView.ts b/packages/core/src/view/GraphView.ts index 4d81838dd..8f1d44f14 100644 --- a/packages/core/src/view/GraphView.ts +++ b/packages/core/src/view/GraphView.ts @@ -1,9 +1,20 @@ -/** - * Copyright (c) 2006-2015, JGraph Ltd - * Copyright (c) 2006-2015, Gaudenz Alder - * Updated to ES9 syntax by David Morrissey 2021 - * Type definitions from the typed-mxgraph project - */ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2015, JGraph Ltd +Copyright (c) 2006-2015, Gaudenz Alder + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ import Point from './geometry/Point'; import Rectangle from './geometry/Rectangle'; diff --git a/packages/core/src/view/animate/Animation.ts b/packages/core/src/view/animate/Animation.ts index 42e47a82d..1a8ca76fc 100644 --- a/packages/core/src/view/animate/Animation.ts +++ b/packages/core/src/view/animate/Animation.ts @@ -1,9 +1,21 @@ -/** - * Copyright (c) 2006-2015, JGraph Ltd - * Copyright (c) 2006-2015, Gaudenz Alder - * Updated to ES9 syntax by David Morrissey 2021 - * Type definitions from the typed-mxgraph project - */ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2015, JGraph Ltd +Copyright (c) 2006-2015, Gaudenz Alder + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import EventSource from '../event/EventSource'; import EventObject from '../event/EventObject'; import InternalEvent from '../event/InternalEvent'; diff --git a/packages/core/src/view/animate/Effects.ts b/packages/core/src/view/animate/Effects.ts index 889152b8c..e61268aef 100644 --- a/packages/core/src/view/animate/Effects.ts +++ b/packages/core/src/view/animate/Effects.ts @@ -1,9 +1,21 @@ -/** - * Copyright (c) 2006-2015, JGraph Ltd - * Copyright (c) 2006-2015, Gaudenz Alder - * Updated to ES9 syntax by David Morrissey 2021 - * Type definitions from the typed-mxgraph project - */ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2015, JGraph Ltd +Copyright (c) 2006-2015, Gaudenz Alder + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import { setOpacity } from '../../util/styleUtils'; import GeometryChange from '../undoable_changes/GeometryChange'; import TerminalChange from '../undoable_changes/TerminalChange'; diff --git a/packages/core/src/view/animate/Morphing.ts b/packages/core/src/view/animate/Morphing.ts index 9c7bb76dd..6876c8a24 100644 --- a/packages/core/src/view/animate/Morphing.ts +++ b/packages/core/src/view/animate/Morphing.ts @@ -1,9 +1,21 @@ -/** - * Copyright (c) 2006-2015, JGraph Ltd - * Copyright (c) 2006-2015, Gaudenz Alder - * Updated to ES9 syntax by David Morrissey 2021 - * Type definitions from the typed-mxgraph project - */ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2015, JGraph Ltd +Copyright (c) 2006-2015, Gaudenz Alder + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import Point from '../geometry/Point'; import CellStatePreview from '../cell/CellStatePreview'; import Animation from './Animation'; diff --git a/packages/core/src/view/canvas/AbstractCanvas2D.ts b/packages/core/src/view/canvas/AbstractCanvas2D.ts index e255e26d5..9cc36021e 100644 --- a/packages/core/src/view/canvas/AbstractCanvas2D.ts +++ b/packages/core/src/view/canvas/AbstractCanvas2D.ts @@ -1,9 +1,21 @@ -/** - * Copyright (c) 2006-2015, JGraph Ltd - * Copyright (c) 2006-2015, Gaudenz Alder - * Updated to ES9 syntax by David Morrissey 2021 - * Type definitions from the typed-mxgraph project - */ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2015, JGraph Ltd +Copyright (c) 2006-2015, Gaudenz Alder + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import { arcToCurves, getRotatedPoint } from '../../util/mathUtils'; import { DEFAULT_FONTFAMILY, diff --git a/packages/core/src/view/canvas/SvgCanvas2D.ts b/packages/core/src/view/canvas/SvgCanvas2D.ts index 9619e8cf7..c4a6e6483 100644 --- a/packages/core/src/view/canvas/SvgCanvas2D.ts +++ b/packages/core/src/view/canvas/SvgCanvas2D.ts @@ -1,9 +1,20 @@ -/** - * Copyright (c) 2006-2015, JGraph Ltd - * Copyright (c) 2006-2015, Gaudenz Alder - * Updated to ES9 syntax by David Morrissey 2021 - * Type definitions from the typed-mxgraph project - */ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2015, JGraph Ltd +Copyright (c) 2006-2015, Gaudenz Alder + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ import { isNotNullish } from '../../util/Utils'; import { mod } from '../../util/mathUtils'; diff --git a/packages/core/src/view/canvas/XmlCanvas2D.ts b/packages/core/src/view/canvas/XmlCanvas2D.ts index 7f925ec59..b7a62e047 100644 --- a/packages/core/src/view/canvas/XmlCanvas2D.ts +++ b/packages/core/src/view/canvas/XmlCanvas2D.ts @@ -1,9 +1,21 @@ -/** - * Copyright (c) 2006-2015, JGraph Ltd - * Copyright (c) 2006-2015, Gaudenz Alder - * Updated to ES9 syntax by David Morrissey 2021 - * Type definitions from the typed-mxgraph project - */ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2015, JGraph Ltd +Copyright (c) 2006-2015, Gaudenz Alder + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import AbstractCanvas2D from './AbstractCanvas2D'; import { DEFAULT_FONTFAMILY, @@ -44,7 +56,7 @@ import { DirectionValue, TextDirectionValue } from '../../types'; class mxXmlCanvas2D extends AbstractCanvas2D { constructor(root: SVGElement) { super(); - + this.root = root; // Writes default settings; @@ -279,14 +291,14 @@ class mxXmlCanvas2D extends AbstractCanvas2D { * are between 1 (opaque) and 0 (transparent). */ setGradient( - color1: string | null, - color2: string | null, - x: number, - y: number, - w: number, - h: number, - direction: DirectionValue, - alpha1: number=1.0, + color1: string | null, + color2: string | null, + x: number, + y: number, + w: number, + h: number, + direction: DirectionValue, + alpha1: number=1.0, alpha2: number=1.0 ) { if (color1 != null && color2 != null) { @@ -753,13 +765,13 @@ class mxXmlCanvas2D extends AbstractCanvas2D { * @param flipV Boolean indicating if the image should be flipped vertically. */ image( - x: number, - y: number, - w: number, - h: number, - src: string, - aspect: boolean, - flipH: boolean, + x: number, + y: number, + w: number, + h: number, + src: string, + aspect: boolean, + flipH: boolean, flipV: boolean ) { src = this.converter.convert(src); @@ -887,18 +899,18 @@ class mxXmlCanvas2D extends AbstractCanvas2D { * @param dir Optional string that specifies the text direction. Possible values are rtl and ltr. */ text( - x: number, - y: number, - w: number, - h: number, - str: string | HTMLElement, - align: string | null=null, - valign: string | null=null, - wrap: boolean | null=null, - format: string | null=null, - overflow: string | null=null, - clip: boolean | null=null, - rotation: number | null=null, + x: number, + y: number, + w: number, + h: number, + str: string | HTMLElement, + align: string | null=null, + valign: string | null=null, + wrap: boolean | null=null, + format: string | null=null, + overflow: string | null=null, + clip: boolean | null=null, + rotation: number | null=null, dir: TextDirectionValue | null=null ): void { if (this.textEnabled && str != null) { diff --git a/packages/core/src/view/cell/Cell.ts b/packages/core/src/view/cell/Cell.ts index f1a8a3d79..c9e19fffb 100644 --- a/packages/core/src/view/cell/Cell.ts +++ b/packages/core/src/view/cell/Cell.ts @@ -1,9 +1,20 @@ -/** - * Copyright (c) 2006-2015, JGraph Ltd - * Copyright (c) 2006-2015, Gaudenz Alder - * Updated to ES9 syntax by David Morrissey 2021 - * Type definitions from the typed-mxgraph project - */ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2015, JGraph Ltd +Copyright (c) 2006-2015, Gaudenz Alder + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ import { NODETYPE } from '../../util/Constants'; import Geometry from '../geometry/Geometry'; diff --git a/packages/core/src/view/cell/CellArray.ts b/packages/core/src/view/cell/CellArray.ts index c5ed71263..9cbbfe45d 100644 --- a/packages/core/src/view/cell/CellArray.ts +++ b/packages/core/src/view/cell/CellArray.ts @@ -1,3 +1,19 @@ +/* +Copyright 2021-present The maxGraph project Contributors + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import Cell from './Cell'; import Dictionary from '../../util/Dictionary'; import ObjectIdentity from '../../util/ObjectIdentity'; diff --git a/packages/core/src/view/cell/CellHighlight.ts b/packages/core/src/view/cell/CellHighlight.ts index a98fbde7d..8bae7b547 100644 --- a/packages/core/src/view/cell/CellHighlight.ts +++ b/packages/core/src/view/cell/CellHighlight.ts @@ -1,9 +1,21 @@ -/** - * Copyright (c) 2006-2015, JGraph Ltd - * Copyright (c) 2006-2015, Gaudenz Alder - * Updated to ES9 syntax by David Morrissey 2021 - * Type definitions from the typed-mxgraph project - */ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2015, JGraph Ltd +Copyright (c) 2006-2015, Gaudenz Alder + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import { DEFAULT_VALID_COLOR, DIALECT, diff --git a/packages/core/src/view/cell/CellMarker.ts b/packages/core/src/view/cell/CellMarker.ts index 9e09f00a0..3373d5ba4 100644 --- a/packages/core/src/view/cell/CellMarker.ts +++ b/packages/core/src/view/cell/CellMarker.ts @@ -1,9 +1,21 @@ -/** - * Copyright (c) 2006-2015, JGraph Ltd - * Copyright (c) 2006-2015, Gaudenz Alder - * Updated to ES9 syntax by David Morrissey 2021 - * Type definitions from the typed-mxgraph project - */ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2015, JGraph Ltd +Copyright (c) 2006-2015, Gaudenz Alder + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import EventSource from '../event/EventSource'; import { DEFAULT_HOTSPOT, diff --git a/packages/core/src/view/cell/CellOverlay.ts b/packages/core/src/view/cell/CellOverlay.ts index b6ab6cf16..57a309b82 100644 --- a/packages/core/src/view/cell/CellOverlay.ts +++ b/packages/core/src/view/cell/CellOverlay.ts @@ -1,9 +1,20 @@ -/** - * Copyright (c) 2006-2015, JGraph Ltd - * Copyright (c) 2006-2015, Gaudenz Alder - * Updated to ES9 syntax by David Morrissey 2021 - * Type definitions from the typed-mxgraph project - */ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2015, JGraph Ltd +Copyright (c) 2006-2015, Gaudenz Alder + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ import Point from '../geometry/Point'; import Rectangle from '../geometry/Rectangle'; diff --git a/packages/core/src/view/cell/CellPath.ts b/packages/core/src/view/cell/CellPath.ts index e072fa842..c7d006c33 100644 --- a/packages/core/src/view/cell/CellPath.ts +++ b/packages/core/src/view/cell/CellPath.ts @@ -1,9 +1,21 @@ -/** - * Copyright (c) 2006-2015, JGraph Ltd - * Copyright (c) 2006-2015, Gaudenz Alder - * Updated to ES9 syntax by David Morrissey 2021 - * Type definitions from the typed-mxgraph project - */ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2015, JGraph Ltd +Copyright (c) 2006-2015, Gaudenz Alder + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import Cell from './Cell'; /** diff --git a/packages/core/src/view/cell/CellRenderer.ts b/packages/core/src/view/cell/CellRenderer.ts index afc979848..f87aa9612 100644 --- a/packages/core/src/view/cell/CellRenderer.ts +++ b/packages/core/src/view/cell/CellRenderer.ts @@ -1,7 +1,20 @@ -/** - * Copyright (c) 2006-2017, JGraph Ltd - * Copyright (c) 2006-2017, Gaudenz Alder - */ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2017, JGraph Ltd +Copyright (c) 2006-2017, Gaudenz Alder + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ import RectangleShape from '../geometry/node/RectangleShape'; import EllipseShape from '../geometry/node/EllipseShape'; diff --git a/packages/core/src/view/cell/CellState.ts b/packages/core/src/view/cell/CellState.ts index 7e3a73ec0..8f05a47e9 100644 --- a/packages/core/src/view/cell/CellState.ts +++ b/packages/core/src/view/cell/CellState.ts @@ -1,9 +1,20 @@ -/** - * Copyright (c) 2006-2015, JGraph Ltd - * Copyright (c) 2006-2015, Gaudenz Alder - * Updated to ES9 syntax by David Morrissey 2021 - * Type definitions from the typed-mxgraph project - */ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2015, JGraph Ltd +Copyright (c) 2006-2015, Gaudenz Alder + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ import Point from '../geometry/Point'; import Rectangle from '../geometry/Rectangle'; diff --git a/packages/core/src/view/cell/CellStatePreview.ts b/packages/core/src/view/cell/CellStatePreview.ts index 9313634c1..b80f104a5 100644 --- a/packages/core/src/view/cell/CellStatePreview.ts +++ b/packages/core/src/view/cell/CellStatePreview.ts @@ -1,9 +1,20 @@ -/** - * Copyright (c) 2006-2015, JGraph Ltd - * Copyright (c) 2006-2015, Gaudenz Alder - * Updated to ES9 syntax by David Morrissey 2021 - * Type definitions from the typed-mxgraph project - */ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2015, JGraph Ltd +Copyright (c) 2006-2015, Gaudenz Alder + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ import Point from '../geometry/Point'; import Dictionary from '../../util/Dictionary'; diff --git a/packages/core/src/view/cell/CellTracker.ts b/packages/core/src/view/cell/CellTracker.ts index 0f14e01ab..fb8d3c423 100644 --- a/packages/core/src/view/cell/CellTracker.ts +++ b/packages/core/src/view/cell/CellTracker.ts @@ -1,9 +1,21 @@ -/** - * Copyright (c) 2006-2015, JGraph Ltd - * Copyright (c) 2006-2015, Gaudenz Alder - * Updated to ES9 syntax by David Morrissey 2021 - * Type definitions from the typed-mxgraph project - */ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2015, JGraph Ltd +Copyright (c) 2006-2015, Gaudenz Alder + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import CellMarker from './CellMarker'; import InternalMouseEvent from '../event/InternalMouseEvent'; import { Graph } from '../Graph'; diff --git a/packages/core/src/view/cell/TemporaryCellStates.ts b/packages/core/src/view/cell/TemporaryCellStates.ts index 51f5a28ef..f5e2a3155 100644 --- a/packages/core/src/view/cell/TemporaryCellStates.ts +++ b/packages/core/src/view/cell/TemporaryCellStates.ts @@ -1,10 +1,20 @@ -/** - * Copyright (c) 2006-2017, JGraph Ltd - * Copyright (c) 2006-2017, Gaudenz Alder - */ -/** - * Creates a temporary set of cell states. - */ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2017, JGraph Ltd +Copyright (c) 2006-2017, Gaudenz Alder + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ import Rectangle from '../geometry/Rectangle'; import Dictionary from '../../util/Dictionary'; @@ -15,6 +25,9 @@ import Shape from '../geometry/Shape'; import CellArray from './CellArray'; import { Graph } from '../Graph'; +/** + * Creates a temporary set of cell states. + */ class TemporaryCellStates { oldValidateCellState: Function | null; diff --git a/packages/core/src/view/cell/VertexHandle.ts b/packages/core/src/view/cell/VertexHandle.ts index bb38a7e8e..c59337208 100644 --- a/packages/core/src/view/cell/VertexHandle.ts +++ b/packages/core/src/view/cell/VertexHandle.ts @@ -1,9 +1,20 @@ -/** - * Copyright (c) 2006-2015, JGraph Ltd - * Copyright (c) 2006-2015, Gaudenz Alder - * Updated to ES9 syntax by David Morrissey 2021 - * Type definitions from the typed-mxgraph project - */ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2015, JGraph Ltd +Copyright (c) 2006-2015, Gaudenz Alder + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ import { getRotatedPoint, toRadians } from '../../util/mathUtils'; import Point from '../geometry/Point'; diff --git a/packages/core/src/view/event/EventObject.ts b/packages/core/src/view/event/EventObject.ts index 3ad1a421f..06640f5d9 100644 --- a/packages/core/src/view/event/EventObject.ts +++ b/packages/core/src/view/event/EventObject.ts @@ -1,9 +1,20 @@ -/** - * Copyright (c) 2006-2015, JGraph Ltd - * Copyright (c) 2006-2015, Gaudenz Alder - * Updated to ES9 syntax by David Morrissey 2021 - * Type definitions from the typed-mxgraph project - */ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2015, JGraph Ltd +Copyright (c) 2006-2015, Gaudenz Alder + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ type EventProperties = Record; diff --git a/packages/core/src/view/event/EventSource.ts b/packages/core/src/view/event/EventSource.ts index a227a9726..c3410634b 100644 --- a/packages/core/src/view/event/EventSource.ts +++ b/packages/core/src/view/event/EventSource.ts @@ -1,9 +1,20 @@ -/** - * Copyright (c) 2006-2015, JGraph Ltd - * Copyright (c) 2006-2015, Gaudenz Alder - * Updated to ES9 syntax by David Morrissey 2021 - * Type definitions from the typed-mxgraph project - */ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2015, JGraph Ltd +Copyright (c) 2006-2015, Gaudenz Alder + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ import EventObject from './EventObject'; diff --git a/packages/core/src/view/event/InternalEvent.ts b/packages/core/src/view/event/InternalEvent.ts index ec2196394..2fb3246b3 100644 --- a/packages/core/src/view/event/InternalEvent.ts +++ b/packages/core/src/view/event/InternalEvent.ts @@ -1,9 +1,21 @@ -/** - * Copyright (c) 2006-2015, JGraph Ltd - * Copyright (c) 2006-2015, Gaudenz Alder - * Updated to ES9 syntax by David Morrissey 2021 - * Type definitions from the typed-mxgraph project - */ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2015, JGraph Ltd +Copyright (c) 2006-2015, Gaudenz Alder + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import InternalMouseEvent from './InternalMouseEvent'; import Client from '../../Client'; import { isConsumed, isMouseEvent } from '../../util/EventUtils'; diff --git a/packages/core/src/view/event/InternalMouseEvent.ts b/packages/core/src/view/event/InternalMouseEvent.ts index 682dc0fff..67235b6cf 100644 --- a/packages/core/src/view/event/InternalMouseEvent.ts +++ b/packages/core/src/view/event/InternalMouseEvent.ts @@ -1,9 +1,21 @@ -/** - * Copyright (c) 2006-2015, JGraph Ltd - * Copyright (c) 2006-2015, Gaudenz Alder - * Updated to ES9 syntax by David Morrissey 2021 - * Type definitions from the typed-mxgraph project - */ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2015, JGraph Ltd +Copyright (c) 2006-2015, Gaudenz Alder + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import { getClientX, getClientY, diff --git a/packages/core/src/view/geometry/ActorShape.ts b/packages/core/src/view/geometry/ActorShape.ts index 2c0a0f3b2..42c71c732 100644 --- a/packages/core/src/view/geometry/ActorShape.ts +++ b/packages/core/src/view/geometry/ActorShape.ts @@ -1,9 +1,21 @@ -/** - * Copyright (c) 2006-2015, JGraph Ltd - * Copyright (c) 2006-2015, Gaudenz Alder - * Updated to ES9 syntax by David Morrissey 2021 - * Type definitions from the typed-mxgraph project - */ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2015, JGraph Ltd +Copyright (c) 2006-2015, Gaudenz Alder + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import Rectangle from './Rectangle'; import Shape from './Shape'; import SvgCanvas2D from '../canvas/SvgCanvas2D'; diff --git a/packages/core/src/view/geometry/Geometry.ts b/packages/core/src/view/geometry/Geometry.ts index 4c8dfd761..ea315bf8c 100644 --- a/packages/core/src/view/geometry/Geometry.ts +++ b/packages/core/src/view/geometry/Geometry.ts @@ -1,9 +1,20 @@ -/** - * Copyright (c) 2006-2015, JGraph Ltd - * Copyright (c) 2006-2015, Gaudenz Alder - * Updated to ES9 syntax by David Morrissey 2021 - * Type definitions from the typed-mxgraph project - */ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2015, JGraph Ltd +Copyright (c) 2006-2015, Gaudenz Alder + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ import Point from './Point'; import Rectangle from './Rectangle'; diff --git a/packages/core/src/view/geometry/Point.ts b/packages/core/src/view/geometry/Point.ts index 5d8066fe1..1596f59a4 100644 --- a/packages/core/src/view/geometry/Point.ts +++ b/packages/core/src/view/geometry/Point.ts @@ -1,9 +1,20 @@ -/** - * Copyright (c) 2006-2015, JGraph Ltd - * Copyright (c) 2006-2015, Gaudenz Alder - * Updated to ES9 syntax by David Morrissey 2021 - * Type definitions from the typed-mxgraph project - */ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2015, JGraph Ltd +Copyright (c) 2006-2015, Gaudenz Alder + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ /** * Implements a 2-dimensional vector with double precision coordinates. diff --git a/packages/core/src/view/geometry/Rectangle.ts b/packages/core/src/view/geometry/Rectangle.ts index ca4992aaf..315914d30 100644 --- a/packages/core/src/view/geometry/Rectangle.ts +++ b/packages/core/src/view/geometry/Rectangle.ts @@ -1,9 +1,20 @@ -/** - * Copyright (c) 2006-2015, JGraph Ltd - * Copyright (c) 2006-2015, Gaudenz Alder - * Updated to ES9 syntax by David Morrissey 2021 - * Type definitions from the typed-mxgraph project - */ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2015, JGraph Ltd +Copyright (c) 2006-2015, Gaudenz Alder + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ import Point from './Point'; diff --git a/packages/core/src/view/geometry/Shape.ts b/packages/core/src/view/geometry/Shape.ts index 499ea0e0b..aeea4bb92 100644 --- a/packages/core/src/view/geometry/Shape.ts +++ b/packages/core/src/view/geometry/Shape.ts @@ -1,9 +1,21 @@ -/** - * Copyright (c) 2006-2015, JGraph Ltd - * Copyright (c) 2006-2015, Gaudenz Alder - * Updated to ES9 syntax by David Morrissey 2021 - * Type definitions from the typed-mxgraph project - */ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2015, JGraph Ltd +Copyright (c) 2006-2015, Gaudenz Alder + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import Rectangle from './Rectangle'; import { isNotNullish } from '../../util/Utils'; import { getBoundingBox, getDirectedBounds, mod } from '../../util/mathUtils'; diff --git a/packages/core/src/view/geometry/edge/ArrowConnectorShape.ts b/packages/core/src/view/geometry/edge/ArrowConnectorShape.ts index d93532709..8b8f92e0e 100644 --- a/packages/core/src/view/geometry/edge/ArrowConnectorShape.ts +++ b/packages/core/src/view/geometry/edge/ArrowConnectorShape.ts @@ -1,9 +1,21 @@ -/** - * Copyright (c) 2006-2015, JGraph Ltd - * Copyright (c) 2006-2015, Gaudenz Alder - * Updated to ES9 syntax by David Morrissey 2021 - * Type definitions from the typed-mxgraph project - */ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2015, JGraph Ltd +Copyright (c) 2006-2015, Gaudenz Alder + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import Shape from '../Shape'; import { ARROW_SIZE, ARROW_SPACING, ARROW_WIDTH, NONE } from '../../../util/Constants'; import { relativeCcw } from '../../../util/mathUtils'; diff --git a/packages/core/src/view/geometry/edge/ArrowShape.ts b/packages/core/src/view/geometry/edge/ArrowShape.ts index 1be1dc85b..01a449039 100644 --- a/packages/core/src/view/geometry/edge/ArrowShape.ts +++ b/packages/core/src/view/geometry/edge/ArrowShape.ts @@ -1,9 +1,21 @@ -/** - * Copyright (c) 2006-2015, JGraph Ltd - * Copyright (c) 2006-2015, Gaudenz Alder - * Updated to ES9 syntax by David Morrissey 2021 - * Type definitions from the typed-mxgraph project - */ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2015, JGraph Ltd +Copyright (c) 2006-2015, Gaudenz Alder + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import Shape from '../Shape'; import { ARROW_SIZE, ARROW_SPACING, ARROW_WIDTH } from '../../../util/Constants'; import Rectangle from '../Rectangle'; diff --git a/packages/core/src/view/geometry/edge/ConnectorShape.ts b/packages/core/src/view/geometry/edge/ConnectorShape.ts index d34bbd357..6e2b1b548 100644 --- a/packages/core/src/view/geometry/edge/ConnectorShape.ts +++ b/packages/core/src/view/geometry/edge/ConnectorShape.ts @@ -1,9 +1,21 @@ -/** - * Copyright (c) 2006-2015, JGraph Ltd - * Copyright (c) 2006-2015, Gaudenz Alder - * Updated to ES9 syntax by David Morrissey 2021 - * Type definitions from the typed-mxgraph project - */ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2015, JGraph Ltd +Copyright (c) 2006-2015, Gaudenz Alder + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import { DEFAULT_MARKERSIZE, NONE } from '../../../util/Constants'; import PolylineShape from './PolylineShape'; import MarkerShape from './MarkerShape'; diff --git a/packages/core/src/view/geometry/edge/LineShape.ts b/packages/core/src/view/geometry/edge/LineShape.ts index 08df6e7bb..39866a4d6 100644 --- a/packages/core/src/view/geometry/edge/LineShape.ts +++ b/packages/core/src/view/geometry/edge/LineShape.ts @@ -1,9 +1,21 @@ -/** - * Copyright (c) 2006-2015, JGraph Ltd - * Copyright (c) 2006-2015, Gaudenz Alder - * Updated to ES9 syntax by David Morrissey 2021 - * Type definitions from the typed-mxgraph project - */ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2015, JGraph Ltd +Copyright (c) 2006-2015, Gaudenz Alder + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import Shape from '../Shape'; import AbstractCanvas2D from '../../canvas/AbstractCanvas2D'; import Rectangle from '../Rectangle'; diff --git a/packages/core/src/view/geometry/edge/MarkerShape.ts b/packages/core/src/view/geometry/edge/MarkerShape.ts index a9fc77edd..d1092ff74 100644 --- a/packages/core/src/view/geometry/edge/MarkerShape.ts +++ b/packages/core/src/view/geometry/edge/MarkerShape.ts @@ -1,9 +1,21 @@ -/** - * Copyright (c) 2006-2015, JGraph Ltd - * Copyright (c) 2006-2015, Gaudenz Alder - * Updated to ES9 syntax by David Morrissey 2021 - * Type definitions from the typed-mxgraph project - */ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2015, JGraph Ltd +Copyright (c) 2006-2015, Gaudenz Alder + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import { ArrowType } from '../../../types'; import AbstractCanvas2D from '../../canvas/AbstractCanvas2D'; import { ARROW } from '../../../util/Constants'; diff --git a/packages/core/src/view/geometry/edge/PolylineShape.ts b/packages/core/src/view/geometry/edge/PolylineShape.ts index 9d5f674a0..b31cf5e67 100644 --- a/packages/core/src/view/geometry/edge/PolylineShape.ts +++ b/packages/core/src/view/geometry/edge/PolylineShape.ts @@ -1,9 +1,21 @@ -/** - * Copyright (c) 2006-2015, JGraph Ltd - * Copyright (c) 2006-2015, Gaudenz Alder - * Updated to ES9 syntax by David Morrissey 2021 - * Type definitions from the typed-mxgraph project - */ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2015, JGraph Ltd +Copyright (c) 2006-2015, Gaudenz Alder + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import Shape from '../Shape'; import { LINE_ARCSIZE } from '../../../util/Constants'; import Point from '../Point'; diff --git a/packages/core/src/view/geometry/node/CloudShape.ts b/packages/core/src/view/geometry/node/CloudShape.ts index 14a94e380..217efbdb3 100644 --- a/packages/core/src/view/geometry/node/CloudShape.ts +++ b/packages/core/src/view/geometry/node/CloudShape.ts @@ -1,9 +1,21 @@ -/** - * Copyright (c) 2006-2015, JGraph Ltd - * Copyright (c) 2006-2015, Gaudenz Alder - * Updated to ES9 syntax by David Morrissey 2021 - * Type definitions from the typed-mxgraph project - */ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2015, JGraph Ltd +Copyright (c) 2006-2015, Gaudenz Alder + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import ActorShape from '../ActorShape'; import AbstractCanvas2D from '../../canvas/AbstractCanvas2D'; import Rectangle from '../Rectangle'; diff --git a/packages/core/src/view/geometry/node/CylinderShape.ts b/packages/core/src/view/geometry/node/CylinderShape.ts index 8b47e691b..646aa98cc 100644 --- a/packages/core/src/view/geometry/node/CylinderShape.ts +++ b/packages/core/src/view/geometry/node/CylinderShape.ts @@ -1,9 +1,21 @@ -/** - * Copyright (c) 2006-2015, JGraph Ltd - * Copyright (c) 2006-2015, Gaudenz Alder - * Updated to ES9 syntax by David Morrissey 2021 - * Type definitions from the typed-mxgraph project - */ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2015, JGraph Ltd +Copyright (c) 2006-2015, Gaudenz Alder + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import Shape from '../Shape'; import AbstractCanvas2D from '../../canvas/AbstractCanvas2D'; import Rectangle from '../Rectangle'; diff --git a/packages/core/src/view/geometry/node/DoubleEllipseShape.ts b/packages/core/src/view/geometry/node/DoubleEllipseShape.ts index dc7602801..af837bce0 100644 --- a/packages/core/src/view/geometry/node/DoubleEllipseShape.ts +++ b/packages/core/src/view/geometry/node/DoubleEllipseShape.ts @@ -1,9 +1,20 @@ -/** - * Copyright (c) 2006-2015, JGraph Ltd - * Copyright (c) 2006-2015, Gaudenz Alder - * Updated to ES9 syntax by David Morrissey 2021 - * Type definitions from the typed-mxgraph project - */ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2015, JGraph Ltd +Copyright (c) 2006-2015, Gaudenz Alder + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ import Rectangle from '../Rectangle'; import Shape from '../Shape'; diff --git a/packages/core/src/view/geometry/node/EllipseShape.ts b/packages/core/src/view/geometry/node/EllipseShape.ts index 48e6e49e5..b5c39c912 100644 --- a/packages/core/src/view/geometry/node/EllipseShape.ts +++ b/packages/core/src/view/geometry/node/EllipseShape.ts @@ -1,9 +1,21 @@ -/** - * Copyright (c) 2006-2015, JGraph Ltd - * Copyright (c) 2006-2015, Gaudenz Alder - * Updated to ES9 syntax by David Morrissey 2021 - * Type definitions from the typed-mxgraph project - */ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2015, JGraph Ltd +Copyright (c) 2006-2015, Gaudenz Alder + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import Shape from '../Shape'; import AbstractCanvas2D from '../../../view/canvas/AbstractCanvas2D'; import Rectangle from '../Rectangle'; diff --git a/packages/core/src/view/geometry/node/HexagonShape.ts b/packages/core/src/view/geometry/node/HexagonShape.ts index 8a692824a..8c3253c66 100644 --- a/packages/core/src/view/geometry/node/HexagonShape.ts +++ b/packages/core/src/view/geometry/node/HexagonShape.ts @@ -1,9 +1,21 @@ -/** - * Copyright (c) 2006-2015, JGraph Ltd - * Copyright (c) 2006-2015, Gaudenz Alder - * Updated to ES9 syntax by David Morrissey 2021 - * Type definitions from the typed-mxgraph project - */ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2015, JGraph Ltd +Copyright (c) 2006-2015, Gaudenz Alder + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import ActorShape from '../ActorShape'; import Point from '../Point'; import { LINE_ARCSIZE } from '../../../util/Constants'; diff --git a/packages/core/src/view/geometry/node/ImageShape.ts b/packages/core/src/view/geometry/node/ImageShape.ts index d24998e36..f4444c55b 100644 --- a/packages/core/src/view/geometry/node/ImageShape.ts +++ b/packages/core/src/view/geometry/node/ImageShape.ts @@ -1,9 +1,20 @@ -/** - * Copyright (c) 2006-2015, JGraph Ltd - * Copyright (c) 2006-2015, Gaudenz Alder - * Updated to ES9 syntax by David Morrissey 2021 - * Type definitions from the typed-mxgraph project - */ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2015, JGraph Ltd +Copyright (c) 2006-2015, Gaudenz Alder + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ import RectangleShape from './RectangleShape'; import Rectangle from '../Rectangle'; diff --git a/packages/core/src/view/geometry/node/LabelShape.ts b/packages/core/src/view/geometry/node/LabelShape.ts index 79c930fc2..011912bb4 100644 --- a/packages/core/src/view/geometry/node/LabelShape.ts +++ b/packages/core/src/view/geometry/node/LabelShape.ts @@ -1,9 +1,21 @@ -/** - * Copyright (c) 2006-2015, JGraph Ltd - * Copyright (c) 2006-2015, Gaudenz Alder - * Updated to ES9 syntax by David Morrissey 2021 - * Type definitions from the typed-mxgraph project - */ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2015, JGraph Ltd +Copyright (c) 2006-2015, Gaudenz Alder + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import Rectangle from '../Rectangle'; import { ALIGN, diff --git a/packages/core/src/view/geometry/node/RectangleShape.ts b/packages/core/src/view/geometry/node/RectangleShape.ts index d3be55cdb..0cd706fa9 100644 --- a/packages/core/src/view/geometry/node/RectangleShape.ts +++ b/packages/core/src/view/geometry/node/RectangleShape.ts @@ -1,9 +1,20 @@ -/** - * Copyright (c) 2006-2015, JGraph Ltd - * Copyright (c) 2006-2015, Gaudenz Alder - * Updated to ES9 syntax by David Morrissey 2021 - * Type definitions from the typed-mxgraph project - */ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2015, JGraph Ltd +Copyright (c) 2006-2015, Gaudenz Alder + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ import { LINE_ARCSIZE, diff --git a/packages/core/src/view/geometry/node/RhombusShape.ts b/packages/core/src/view/geometry/node/RhombusShape.ts index fe46e7f66..480cc6e99 100644 --- a/packages/core/src/view/geometry/node/RhombusShape.ts +++ b/packages/core/src/view/geometry/node/RhombusShape.ts @@ -1,9 +1,21 @@ -/** - * Copyright (c) 2006-2015, JGraph Ltd - * Copyright (c) 2006-2015, Gaudenz Alder - * Updated to ES9 syntax by David Morrissey 2021 - * Type definitions from the typed-mxgraph project - */ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2015, JGraph Ltd +Copyright (c) 2006-2015, Gaudenz Alder + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import Shape from '../Shape'; import Point from '../Point'; import { LINE_ARCSIZE } from '../../../util/Constants'; diff --git a/packages/core/src/view/geometry/node/StencilShape.ts b/packages/core/src/view/geometry/node/StencilShape.ts index d29ea0333..4c8081f25 100644 --- a/packages/core/src/view/geometry/node/StencilShape.ts +++ b/packages/core/src/view/geometry/node/StencilShape.ts @@ -1,9 +1,20 @@ -/** - * Copyright (c) 2006-2015, JGraph Ltd - * Copyright (c) 2006-2015, Gaudenz Alder - * Updated to ES9 syntax by David Morrissey 2021 - * Type definitions from the typed-mxgraph project - */ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2015, JGraph Ltd +Copyright (c) 2006-2015, Gaudenz Alder + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ import ConnectionConstraint from '../../other/ConnectionConstraint'; import Rectangle from '../Rectangle'; diff --git a/packages/core/src/view/geometry/node/StencilShapeRegistry.ts b/packages/core/src/view/geometry/node/StencilShapeRegistry.ts index e039593b5..f9ddbf2ff 100644 --- a/packages/core/src/view/geometry/node/StencilShapeRegistry.ts +++ b/packages/core/src/view/geometry/node/StencilShapeRegistry.ts @@ -1,27 +1,20 @@ -/** - * Copyright (c) 2006-2015, JGraph Ltd - * Copyright (c) 2006-2015, Gaudenz Alder - * Updated to ES9 syntax by David Morrissey 2021 - * Type definitions from the typed-mxgraph project - * - * Code to add stencils. - * - * ```javascript - * let req = mxUtils.load('test/stencils.xml'); - * let root = req.getDocumentElement(); - * let shape = root.firstChild; - * - * while (shape != null) - * { - * if (shape.nodeType === mxConstants.NODETYPE_ELEMENT) - * { - * mxStencilRegistry.addStencil(shape.getAttribute('name'), new mxStencil(shape)); - * } - * - * shape = shape.nextSibling; - * } - * ``` - */ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2015, JGraph Ltd +Copyright (c) 2006-2015, Gaudenz Alder + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ import StencilShape from './StencilShape'; @@ -33,6 +26,22 @@ type Stencils = { * A singleton class that provides a registry for stencils and the methods * for painting those stencils onto a canvas or into a DOM. * + * Code to add stencils: + * ```javascript + * let req = mxUtils.load('test/stencils.xml'); + * let root = req.getDocumentElement(); + * let shape = root.firstChild; + * + * while (shape != null) + * { + * if (shape.nodeType === mxConstants.NODETYPE_ELEMENT) + * { + * mxStencilRegistry.addStencil(shape.getAttribute('name'), new mxStencil(shape)); + * } + * + * shape = shape.nextSibling; + * } + * ``` * @class StencilShapeRegistry */ class StencilShapeRegistry { diff --git a/packages/core/src/view/geometry/node/SwimlaneShape.ts b/packages/core/src/view/geometry/node/SwimlaneShape.ts index 955be7aa4..fdeeb57d5 100644 --- a/packages/core/src/view/geometry/node/SwimlaneShape.ts +++ b/packages/core/src/view/geometry/node/SwimlaneShape.ts @@ -1,9 +1,20 @@ -/** - * Copyright (c) 2006-2015, JGraph Ltd - * Copyright (c) 2006-2015, Gaudenz Alder - * Updated to ES9 syntax by David Morrissey 2021 - * Type definitions from the typed-mxgraph project - */ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2015, JGraph Ltd +Copyright (c) 2006-2015, Gaudenz Alder + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ import Shape from '../Shape'; import Rectangle from '../Rectangle'; import { diff --git a/packages/core/src/view/geometry/node/TextShape.ts b/packages/core/src/view/geometry/node/TextShape.ts index e82d0643e..10ede337d 100644 --- a/packages/core/src/view/geometry/node/TextShape.ts +++ b/packages/core/src/view/geometry/node/TextShape.ts @@ -1,9 +1,20 @@ -/** - * Copyright (c) 2006-2015, JGraph Ltd - * Copyright (c) 2006-2015, Gaudenz Alder - * Updated to ES9 syntax by David Morrissey 2021 - * Type definitions from the typed-mxgraph project - */ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2015, JGraph Ltd +Copyright (c) 2006-2015, Gaudenz Alder + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ import Client from '../../../Client'; import { diff --git a/packages/core/src/view/geometry/node/TriangleShape.ts b/packages/core/src/view/geometry/node/TriangleShape.ts index e6d74df48..cb4abd427 100644 --- a/packages/core/src/view/geometry/node/TriangleShape.ts +++ b/packages/core/src/view/geometry/node/TriangleShape.ts @@ -1,9 +1,20 @@ -/** - * Copyright (c) 2006-2015, JGraph Ltd - * Copyright (c) 2006-2015, Gaudenz Alder - * Updated to ES9 syntax by David Morrissey 2021 - * Type definitions from the typed-mxgraph project - */ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2015, JGraph Ltd +Copyright (c) 2006-2015, Gaudenz Alder + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ import Point from '../Point'; import ActorShape from '../ActorShape'; diff --git a/packages/core/src/view/handler/CellEditorHandler.ts b/packages/core/src/view/handler/CellEditorHandler.ts index 2a0d86baa..fe5b59ebd 100644 --- a/packages/core/src/view/handler/CellEditorHandler.ts +++ b/packages/core/src/view/handler/CellEditorHandler.ts @@ -1,9 +1,20 @@ -/** - * Copyright (c) 2006-2015, JGraph Ltd - * Copyright (c) 2006-2015, Gaudenz Alder - * Updated to ES9 syntax by David Morrissey 2021 - * Type definitions from the typed-mxgraph project - */ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2015, JGraph Ltd +Copyright (c) 2006-2015, Gaudenz Alder + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ import { getValue } from '../../util/Utils'; import { diff --git a/packages/core/src/view/handler/ConnectionHandler.ts b/packages/core/src/view/handler/ConnectionHandler.ts index 7d91c1af1..6ad06bdb3 100644 --- a/packages/core/src/view/handler/ConnectionHandler.ts +++ b/packages/core/src/view/handler/ConnectionHandler.ts @@ -1,7 +1,21 @@ -/** - * Copyright (c) 2006-2016, JGraph Ltd - * Copyright (c) 2006-2016, Gaudenz Alder - */ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2016, JGraph Ltd +Copyright (c) 2006-2016, Gaudenz Alder + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import Geometry from '../geometry/Geometry'; import Cell from '../cell/Cell'; import Point from '../geometry/Point'; diff --git a/packages/core/src/view/handler/ConstraintHandler.ts b/packages/core/src/view/handler/ConstraintHandler.ts index 5d8e8cddb..944709835 100644 --- a/packages/core/src/view/handler/ConstraintHandler.ts +++ b/packages/core/src/view/handler/ConstraintHandler.ts @@ -1,9 +1,21 @@ -/** - * Copyright (c) 2006-2015, JGraph Ltd - * Copyright (c) 2006-2015, Gaudenz Alder - * Updated to ES9 syntax by David Morrissey 2021 - * Type definitions from the typed-mxgraph project - */ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2015, JGraph Ltd +Copyright (c) 2006-2015, Gaudenz Alder + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import Image from '../image/ImageBox'; import Client from '../../Client'; import { diff --git a/packages/core/src/view/handler/EdgeHandler.ts b/packages/core/src/view/handler/EdgeHandler.ts index bb3fd5853..0173bd845 100644 --- a/packages/core/src/view/handler/EdgeHandler.ts +++ b/packages/core/src/view/handler/EdgeHandler.ts @@ -1,9 +1,21 @@ -/** - * Copyright (c) 2006-2015, JGraph Ltd - * Copyright (c) 2006-2015, Gaudenz Alder - * Updated to ES9 syntax by David Morrissey 2021 - * Type definitions from the typed-mxgraph project - */ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2015, JGraph Ltd +Copyright (c) 2006-2015, Gaudenz Alder + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import CellMarker from '../cell/CellMarker'; import Point from '../geometry/Point'; import { diff --git a/packages/core/src/view/handler/EdgeSegmentHandler.ts b/packages/core/src/view/handler/EdgeSegmentHandler.ts index 7be6be25b..a78d9fbdb 100644 --- a/packages/core/src/view/handler/EdgeSegmentHandler.ts +++ b/packages/core/src/view/handler/EdgeSegmentHandler.ts @@ -1,9 +1,21 @@ -/** - * Copyright (c) 2006-2015, JGraph Ltd - * Copyright (c) 2006-2015, Gaudenz Alder - * Updated to ES9 syntax by David Morrissey 2021 - * Type definitions from the typed-mxgraph project - */ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2015, JGraph Ltd +Copyright (c) 2006-2015, Gaudenz Alder + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import Point from '../geometry/Point'; import { CURSOR } from '../../util/Constants'; import Rectangle from '../geometry/Rectangle'; diff --git a/packages/core/src/view/handler/ElbowEdgeHandler.ts b/packages/core/src/view/handler/ElbowEdgeHandler.ts index 5100a9717..1bfcb2d62 100644 --- a/packages/core/src/view/handler/ElbowEdgeHandler.ts +++ b/packages/core/src/view/handler/ElbowEdgeHandler.ts @@ -1,9 +1,21 @@ -/** - * Copyright (c) 2006-2015, JGraph Ltd - * Copyright (c) 2006-2015, Gaudenz Alder - * Updated to ES9 syntax by David Morrissey 2021 - * Type definitions from the typed-mxgraph project - */ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2015, JGraph Ltd +Copyright (c) 2006-2015, Gaudenz Alder + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import EdgeHandler from './EdgeHandler'; import { CURSOR, diff --git a/packages/core/src/view/handler/KeyHandler.ts b/packages/core/src/view/handler/KeyHandler.ts index 3e112835d..cb0b693c3 100644 --- a/packages/core/src/view/handler/KeyHandler.ts +++ b/packages/core/src/view/handler/KeyHandler.ts @@ -1,9 +1,20 @@ -/** - * Copyright (c) 2006-2015, JGraph Ltd - * Copyright (c) 2006-2015, Gaudenz Alder - * Updated to ES9 syntax by David Morrissey 2021 - * Type definitions from the typed-mxgraph project - */ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2015, JGraph Ltd +Copyright (c) 2006-2015, Gaudenz Alder + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ import { Graph } from '../Graph'; import InternalEvent from '../event/InternalEvent'; diff --git a/packages/core/src/view/handler/PanningHandler.ts b/packages/core/src/view/handler/PanningHandler.ts index 64a2d8713..dd90ff512 100644 --- a/packages/core/src/view/handler/PanningHandler.ts +++ b/packages/core/src/view/handler/PanningHandler.ts @@ -1,9 +1,21 @@ -/** - * Copyright (c) 2006-2015, JGraph Ltd - * Copyright (c) 2006-2015, Gaudenz Alder - * Updated to ES9 syntax by David Morrissey 2021 - * Type definitions from the typed-mxgraph project - */ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2015, JGraph Ltd +Copyright (c) 2006-2015, Gaudenz Alder + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import EventSource from '../event/EventSource'; import { hasScrollbars } from '../../util/styleUtils'; import EventObject from '../event/EventObject'; diff --git a/packages/core/src/view/handler/PopupMenuHandler.ts b/packages/core/src/view/handler/PopupMenuHandler.ts index 5be47a1cc..4cbc06524 100644 --- a/packages/core/src/view/handler/PopupMenuHandler.ts +++ b/packages/core/src/view/handler/PopupMenuHandler.ts @@ -1,9 +1,21 @@ -/** - * Copyright (c) 2006-2015, JGraph Ltd - * Copyright (c) 2006-2015, Gaudenz Alder - * Updated to ES9 syntax by David Morrissey 2021 - * Type definitions from the typed-mxgraph project - */ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2015, JGraph Ltd +Copyright (c) 2006-2015, Gaudenz Alder + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import MaxPopupMenu from '../../gui/MaxPopupMenu'; import InternalEvent from '../event/InternalEvent'; import { getScrollOrigin } from '../../util/styleUtils'; diff --git a/packages/core/src/view/handler/RubberBandHandler.ts b/packages/core/src/view/handler/RubberBandHandler.ts index a321ae4bf..e7b9ffc12 100644 --- a/packages/core/src/view/handler/RubberBandHandler.ts +++ b/packages/core/src/view/handler/RubberBandHandler.ts @@ -1,7 +1,20 @@ -/** - * Copyright (c) 2006-2016, JGraph Ltd - * Copyright (c) 2006-2016, Gaudenz Alder - */ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2016, JGraph Ltd +Copyright (c) 2006-2016, Gaudenz Alder + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ import { convertPoint, diff --git a/packages/core/src/view/handler/SelectionCellsHandler.ts b/packages/core/src/view/handler/SelectionCellsHandler.ts index b2da783c3..6969940e9 100644 --- a/packages/core/src/view/handler/SelectionCellsHandler.ts +++ b/packages/core/src/view/handler/SelectionCellsHandler.ts @@ -1,9 +1,21 @@ -/** - * Copyright (c) 2006-2015, JGraph Ltd - * Copyright (c) 2006-2015, Gaudenz Alder - * Updated to ES9 syntax by David Morrissey 2021 - * Type definitions from the typed-mxgraph project - */ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2015, JGraph Ltd +Copyright (c) 2006-2015, Gaudenz Alder + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import EventSource from '../event/EventSource'; import Dictionary from '../../util/Dictionary'; import EventObject from '../event/EventObject'; diff --git a/packages/core/src/view/handler/SelectionHandler.ts b/packages/core/src/view/handler/SelectionHandler.ts index ea9ee6310..46bc3bcd5 100644 --- a/packages/core/src/view/handler/SelectionHandler.ts +++ b/packages/core/src/view/handler/SelectionHandler.ts @@ -1,9 +1,20 @@ -/** - * Copyright (c) 2006-2015, JGraph Ltd - * Copyright (c) 2006-2015, Gaudenz Alder - * Updated to ES9 syntax by David Morrissey 2021 - * Type definitions from the typed-mxgraph project - */ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2015, JGraph Ltd +Copyright (c) 2006-2015, Gaudenz Alder + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ import Client from '../../Client'; import InternalEvent from '../event/InternalEvent'; diff --git a/packages/core/src/view/handler/TooltipHandler.ts b/packages/core/src/view/handler/TooltipHandler.ts index 8d58805f3..04f60f837 100644 --- a/packages/core/src/view/handler/TooltipHandler.ts +++ b/packages/core/src/view/handler/TooltipHandler.ts @@ -1,9 +1,21 @@ -/** - * Copyright (c) 2006-2015, JGraph Ltd - * Copyright (c) 2006-2015, Gaudenz Alder - * Updated to ES9 syntax by David Morrissey 2021 - * Type definitions from the typed-mxgraph project - */ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2015, JGraph Ltd +Copyright (c) 2006-2015, Gaudenz Alder + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import InternalEvent from '../event/InternalEvent'; import { fit, getScrollOrigin } from '../../util/styleUtils'; import { TOOLTIP_VERTICAL_OFFSET } from '../../util/Constants'; diff --git a/packages/core/src/view/handler/VertexHandler.ts b/packages/core/src/view/handler/VertexHandler.ts index ba7760950..7cb258f6a 100644 --- a/packages/core/src/view/handler/VertexHandler.ts +++ b/packages/core/src/view/handler/VertexHandler.ts @@ -1,9 +1,21 @@ -/** - * Copyright (c) 2006-2015, JGraph Ltd - * Copyright (c) 2006-2015, Gaudenz Alder - * Updated to ES9 syntax by David Morrissey 2021 - * Type definitions from the typed-mxgraph project - */ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2015, JGraph Ltd +Copyright (c) 2006-2015, Gaudenz Alder + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import Rectangle from '../geometry/Rectangle'; import { CURSOR, diff --git a/packages/core/src/view/image/ImageBox.ts b/packages/core/src/view/image/ImageBox.ts index 4157b962d..c9d2c0912 100644 --- a/packages/core/src/view/image/ImageBox.ts +++ b/packages/core/src/view/image/ImageBox.ts @@ -1,9 +1,20 @@ -/** - * Copyright (c) 2006-2015, JGraph Ltd - * Copyright (c) 2006-2015, Gaudenz Alder - * Updated to ES9 syntax by David Morrissey 2021 - * Type definitions from the typed-mxgraph project - */ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2015, JGraph Ltd +Copyright (c) 2006-2015, Gaudenz Alder + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ /** * Encapsulates the URL, width and height of an image. diff --git a/packages/core/src/view/image/ImageBundle.ts b/packages/core/src/view/image/ImageBundle.ts index 56134e97b..0ab6bdb2c 100644 --- a/packages/core/src/view/image/ImageBundle.ts +++ b/packages/core/src/view/image/ImageBundle.ts @@ -1,9 +1,20 @@ -/** - * Copyright (c) 2006-2015, JGraph Ltd - * Copyright (c) 2006-2015, Gaudenz Alder - * Updated to ES9 syntax by David Morrissey 2021 - * Type definitions from the typed-mxgraph project - */ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2015, JGraph Ltd +Copyright (c) 2006-2015, Gaudenz Alder + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ type ImageMap = { [key: string]: { diff --git a/packages/core/src/view/image/ImageExport.ts b/packages/core/src/view/image/ImageExport.ts index 883266e41..1cc5b4d1e 100644 --- a/packages/core/src/view/image/ImageExport.ts +++ b/packages/core/src/view/image/ImageExport.ts @@ -1,9 +1,20 @@ -/** - * Copyright (c) 2006-2015, JGraph Ltd - * Copyright (c) 2006-2015, Gaudenz Alder - * Updated to ES9 syntax by David Morrissey 2021 - * Type definitions from the typed-mxgraph project - */ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2015, JGraph Ltd +Copyright (c) 2006-2015, Gaudenz Alder + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ import AbstractCanvas2D from '../canvas/AbstractCanvas2D'; import CellState from '../cell/CellState'; diff --git a/packages/core/src/view/layout/CircleLayout.ts b/packages/core/src/view/layout/CircleLayout.ts index a51d6f0ef..c3441ce23 100644 --- a/packages/core/src/view/layout/CircleLayout.ts +++ b/packages/core/src/view/layout/CircleLayout.ts @@ -1,9 +1,20 @@ -/** - * Copyright (c) 2006-2015, JGraph Ltd - * Copyright (c) 2006-2015, Gaudenz Alder - * Updated to ES9 syntax by David Morrissey 2021 - * Type definitions from the typed-mxgraph project - */ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2015, JGraph Ltd +Copyright (c) 2006-2015, Gaudenz Alder + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ import GraphLayout from './GraphLayout'; import { Graph } from '../Graph'; import CellArray from '../cell/CellArray'; diff --git a/packages/core/src/view/layout/CompactTreeLayout.ts b/packages/core/src/view/layout/CompactTreeLayout.ts index aa0915349..de13ab7e3 100644 --- a/packages/core/src/view/layout/CompactTreeLayout.ts +++ b/packages/core/src/view/layout/CompactTreeLayout.ts @@ -1,9 +1,20 @@ -/** - * Copyright (c) 2006-2018, JGraph Ltd - * Copyright (c) 2006-2018, Gaudenz Alder - * Updated to ES9 syntax by David Morrissey 2021 - * Type definitions from the typed-mxgraph project - */ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2018, JGraph Ltd +Copyright (c) 2006-2018, Gaudenz Alder + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ import Dictionary from '../../util/Dictionary'; import Point from '../geometry/Point'; @@ -571,10 +582,10 @@ export class CompactTreeLayout extends GraphLayout { * at the given node. */ verticalLayout( - node: _mxCompactTreeLayoutNode, - parent: _mxCompactTreeLayoutNode | null, - x0: number, - y0: number, + node: _mxCompactTreeLayoutNode, + parent: _mxCompactTreeLayoutNode | null, + x0: number, + y0: number, bounds: Rectangle | null=null ): Rectangle | null { node.x = node.x + x0 + node.offsetY; @@ -755,11 +766,11 @@ export class CompactTreeLayout extends GraphLayout { } bridge( - line1: _mxCompactTreeLayoutLine, - x1: number, - y1: number, - line2: _mxCompactTreeLayoutLine, - x2: number, + line1: _mxCompactTreeLayoutLine, + x1: number, + y1: number, + line2: _mxCompactTreeLayoutLine, + x2: number, y2: number ) { const dx = x2 + line2.dx - x1; @@ -854,8 +865,8 @@ export class CompactTreeLayout extends GraphLayout { */ createLine(dx: number, dy: number, next: any=null): _mxCompactTreeLayoutLine { let line: _mxCompactTreeLayoutLine = { - dx, - dy, + dx, + dy, next }; return line; diff --git a/packages/core/src/view/layout/CompositeLayout.ts b/packages/core/src/view/layout/CompositeLayout.ts index 05d4b9d52..6c78f5136 100644 --- a/packages/core/src/view/layout/CompositeLayout.ts +++ b/packages/core/src/view/layout/CompositeLayout.ts @@ -1,9 +1,20 @@ -/** - * Copyright (c) 2006-2015, JGraph Ltd - * Copyright (c) 2006-2015, Gaudenz Alder - * Updated to ES9 syntax by David Morrissey 2021 - * Type definitions from the typed-mxgraph project - */ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2015, JGraph Ltd +Copyright (c) 2006-2015, Gaudenz Alder + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ import Cell from '../cell/Cell'; import { Graph } from '../Graph'; import GraphLayout from './GraphLayout'; diff --git a/packages/core/src/view/layout/EdgeLabelLayout.ts b/packages/core/src/view/layout/EdgeLabelLayout.ts index 7257ff8de..826b0aadb 100644 --- a/packages/core/src/view/layout/EdgeLabelLayout.ts +++ b/packages/core/src/view/layout/EdgeLabelLayout.ts @@ -1,9 +1,20 @@ -/** - * Copyright (c) 2006-2015, JGraph Ltd - * Copyright (c) 2006-2015, Gaudenz Alder - * Updated to ES9 syntax by David Morrissey 2021 - * Type definitions from the typed-mxgraph project - */ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2015, JGraph Ltd +Copyright (c) 2006-2015, Gaudenz Alder + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ import Point from '../geometry/Point'; import GraphLayout from './GraphLayout'; diff --git a/packages/core/src/view/layout/FastOrganicLayout.ts b/packages/core/src/view/layout/FastOrganicLayout.ts index 2527a3071..3b75c238a 100644 --- a/packages/core/src/view/layout/FastOrganicLayout.ts +++ b/packages/core/src/view/layout/FastOrganicLayout.ts @@ -1,9 +1,20 @@ -/** - * Copyright (c) 2006-2015, JGraph Ltd - * Copyright (c) 2006-2015, Gaudenz Alder - * Updated to ES9 syntax by David Morrissey 2021 - * Type definitions from the typed-mxgraph project - */ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2015, JGraph Ltd +Copyright (c) 2006-2015, Gaudenz Alder + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ import ObjectIdentity from '../../util/ObjectIdentity'; import GraphLayout from './GraphLayout'; import { Graph } from '../Graph'; diff --git a/packages/core/src/view/layout/GraphLayout.ts b/packages/core/src/view/layout/GraphLayout.ts index b4257bdd9..e6d227ee4 100644 --- a/packages/core/src/view/layout/GraphLayout.ts +++ b/packages/core/src/view/layout/GraphLayout.ts @@ -1,9 +1,20 @@ -/** - * Copyright (c) 2006-2018, JGraph Ltd - * Copyright (c) 2006-2018, Gaudenz Alder - * Updated to ES9 syntax by David Morrissey 2021 - * Type definitions from the typed-mxgraph project - */ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2018, JGraph Ltd +Copyright (c) 2006-2018, Gaudenz Alder + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ import Dictionary from '../../util/Dictionary'; import Rectangle from '../geometry/Rectangle'; diff --git a/packages/core/src/view/layout/HierarchicalLayout.ts b/packages/core/src/view/layout/HierarchicalLayout.ts index 6301a1bd6..469bf74fb 100644 --- a/packages/core/src/view/layout/HierarchicalLayout.ts +++ b/packages/core/src/view/layout/HierarchicalLayout.ts @@ -1,9 +1,21 @@ -/** - * Copyright (c) 2006-2018, JGraph Ltd - * Copyright (c) 2006-2018, Gaudenz Alder - * Updated to ES9 syntax by David Morrissey 2021 - * Type definitions from the typed-mxgraph project - */ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2018, JGraph Ltd +Copyright (c) 2006-2018, Gaudenz Alder + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import GraphLayout from './GraphLayout'; import { DIRECTION } from '../../util/Constants'; import HierarchicalEdgeStyle from './datatypes/HierarchicalEdgeStyle'; diff --git a/packages/core/src/view/layout/LayoutManager.ts b/packages/core/src/view/layout/LayoutManager.ts index f042a1ce7..0b49748aa 100644 --- a/packages/core/src/view/layout/LayoutManager.ts +++ b/packages/core/src/view/layout/LayoutManager.ts @@ -1,9 +1,20 @@ -/** - * Copyright (c) 2006-2015, JGraph Ltd - * Copyright (c) 2006-2015, Gaudenz Alder - * Updated to ES9 syntax by David Morrissey 2021 - * Type definitions from the typed-mxgraph project - */ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2015, JGraph Ltd +Copyright (c) 2006-2015, Gaudenz Alder + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ import EventSource from '../event/EventSource'; import InternalEvent from '../event/InternalEvent'; diff --git a/packages/core/src/view/layout/ParallelEdgeLayout.ts b/packages/core/src/view/layout/ParallelEdgeLayout.ts index 3ad390adf..293ead5c3 100644 --- a/packages/core/src/view/layout/ParallelEdgeLayout.ts +++ b/packages/core/src/view/layout/ParallelEdgeLayout.ts @@ -1,9 +1,20 @@ -/** - * Copyright (c) 2006-2015, JGraph Ltd - * Copyright (c) 2006-2015, Gaudenz Alder - * Updated to ES9 syntax by David Morrissey 2021 - * Type definitions from the typed-mxgraph project - */ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2015, JGraph Ltd +Copyright (c) 2006-2015, Gaudenz Alder + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ import Point from '../geometry/Point'; import GraphLayout from './GraphLayout'; diff --git a/packages/core/src/view/layout/PartitionLayout.ts b/packages/core/src/view/layout/PartitionLayout.ts index ec19d6418..6dc16fb50 100644 --- a/packages/core/src/view/layout/PartitionLayout.ts +++ b/packages/core/src/view/layout/PartitionLayout.ts @@ -1,9 +1,20 @@ -/** - * Copyright (c) 2006-2015, JGraph Ltd - * Copyright (c) 2006-2015, Gaudenz Alder - * Updated to ES9 syntax by David Morrissey 2021 - * Type definitions from the typed-mxgraph project - */ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2015, JGraph Ltd +Copyright (c) 2006-2015, Gaudenz Alder + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ import Rectangle from '../geometry/Rectangle'; import GraphLayout from './GraphLayout'; diff --git a/packages/core/src/view/layout/RadialTreeLayout.ts b/packages/core/src/view/layout/RadialTreeLayout.ts index ebdac4a31..b924f0eba 100644 --- a/packages/core/src/view/layout/RadialTreeLayout.ts +++ b/packages/core/src/view/layout/RadialTreeLayout.ts @@ -1,9 +1,21 @@ -/** - * Copyright (c) 2006-2015, JGraph Ltd - * Copyright (c) 2006-2015, Gaudenz Alder - * Updated to ES9 syntax by David Morrissey 2021 - * Type definitions from the typed-mxgraph project - */ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2015, JGraph Ltd +Copyright (c) 2006-2015, Gaudenz Alder + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import { CompactTreeLayout, _mxCompactTreeLayoutLine, diff --git a/packages/core/src/view/layout/StackLayout.ts b/packages/core/src/view/layout/StackLayout.ts index f5940593a..b23828710 100644 --- a/packages/core/src/view/layout/StackLayout.ts +++ b/packages/core/src/view/layout/StackLayout.ts @@ -1,9 +1,21 @@ -/** - * Copyright (c) 2006-2015, JGraph Ltd - * Copyright (c) 2006-2015, Gaudenz Alder - * Updated to ES9 syntax by David Morrissey 2021 - * Type definitions from the typed-mxgraph project - */ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2015, JGraph Ltd +Copyright (c) 2006-2015, Gaudenz Alder + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import GraphLayout from './GraphLayout'; import Rectangle from '../geometry/Rectangle'; import { getValue } from '../../util/Utils'; @@ -284,7 +296,7 @@ class StackLayout extends GraphLayout { : pgeo.width - this.marginLeft - this.marginRight; fillValue -= 2 * this.border; } - + let x0 = this.x0 + this.border + this.marginLeft; let y0 = this.y0 + this.border + this.marginTop; diff --git a/packages/core/src/view/layout/SwimlaneLayout.ts b/packages/core/src/view/layout/SwimlaneLayout.ts index 410cfc555..6a7ebad95 100644 --- a/packages/core/src/view/layout/SwimlaneLayout.ts +++ b/packages/core/src/view/layout/SwimlaneLayout.ts @@ -1,9 +1,20 @@ -/** - * Copyright (c) 2006-2015, JGraph Ltd - * Copyright (c) 2006-2015, Gaudenz Alder - * Updated to ES9 syntax by David Morrissey 2021 - * Type definitions from the typed-mxgraph project - */ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2015, JGraph Ltd +Copyright (c) 2006-2015, Gaudenz Alder + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ import GraphLayout from './GraphLayout'; import { DIRECTION } from '../../util/Constants'; diff --git a/packages/core/src/view/layout/SwimlaneManager.ts b/packages/core/src/view/layout/SwimlaneManager.ts index bc0ddbaa6..63311f5ea 100644 --- a/packages/core/src/view/layout/SwimlaneManager.ts +++ b/packages/core/src/view/layout/SwimlaneManager.ts @@ -1,9 +1,20 @@ -/** - * Copyright (c) 2006-2015, JGraph Ltd - * Copyright (c) 2006-2015, Gaudenz Alder - * Updated to ES9 syntax by David Morrissey 2021 - * Type definitions from the typed-mxgraph project - */ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2015, JGraph Ltd +Copyright (c) 2006-2015, Gaudenz Alder + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ import EventSource from '../event/EventSource'; import InternalEvent from '../event/InternalEvent'; diff --git a/packages/core/src/view/layout/datatypes/GraphAbstractHierarchyCell.ts b/packages/core/src/view/layout/datatypes/GraphAbstractHierarchyCell.ts index 6b2820f40..1ec17dc00 100644 --- a/packages/core/src/view/layout/datatypes/GraphAbstractHierarchyCell.ts +++ b/packages/core/src/view/layout/datatypes/GraphAbstractHierarchyCell.ts @@ -1,9 +1,21 @@ -/** - * Copyright (c) 2006-2015, JGraph Ltd - * Copyright (c) 2006-2015, Gaudenz Alder - * Updated to ES9 syntax by David Morrissey 2021 - * Type definitions from the typed-mxgraph project - */ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2015, JGraph Ltd +Copyright (c) 2006-2015, Gaudenz Alder + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import Cell from '../../cell/Cell'; class GraphAbstractHierarchyCell extends Cell { diff --git a/packages/core/src/view/layout/datatypes/GraphHierarchyEdge.ts b/packages/core/src/view/layout/datatypes/GraphHierarchyEdge.ts index 742bcd60b..63fa0d209 100644 --- a/packages/core/src/view/layout/datatypes/GraphHierarchyEdge.ts +++ b/packages/core/src/view/layout/datatypes/GraphHierarchyEdge.ts @@ -1,9 +1,21 @@ -/** - * Copyright (c) 2006-2015, JGraph Ltd - * Copyright (c) 2006-2015, Gaudenz Alder - * Updated to ES9 syntax by David Morrissey 2021 - * Type definitions from the typed-mxgraph project - */ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2015, JGraph Ltd +Copyright (c) 2006-2015, Gaudenz Alder + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import GraphAbstractHierarchyCell from './GraphAbstractHierarchyCell'; import ObjectIdentity from '../../../util/ObjectIdentity'; import CellArray from '../../cell/CellArray'; diff --git a/packages/core/src/view/layout/datatypes/GraphHierarchyNode.ts b/packages/core/src/view/layout/datatypes/GraphHierarchyNode.ts index eb6d3c84a..313f04e39 100644 --- a/packages/core/src/view/layout/datatypes/GraphHierarchyNode.ts +++ b/packages/core/src/view/layout/datatypes/GraphHierarchyNode.ts @@ -1,9 +1,21 @@ -/** - * Copyright (c) 2006-2015, JGraph Ltd - * Copyright (c) 2006-2015, Gaudenz Alder - * Updated to ES9 syntax by David Morrissey 2021 - * Type definitions from the typed-mxgraph project - */ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2015, JGraph Ltd +Copyright (c) 2006-2015, Gaudenz Alder + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import GraphAbstractHierarchyCell from './GraphAbstractHierarchyCell'; import ObjectIdentity from '../../../util/ObjectIdentity'; import Cell from '../../cell/Cell'; diff --git a/packages/core/src/view/layout/datatypes/HierarchicalEdgeStyle.ts b/packages/core/src/view/layout/datatypes/HierarchicalEdgeStyle.ts index 2e463a3f8..46ac6ec5e 100644 --- a/packages/core/src/view/layout/datatypes/HierarchicalEdgeStyle.ts +++ b/packages/core/src/view/layout/datatypes/HierarchicalEdgeStyle.ts @@ -1,3 +1,19 @@ +/* +Copyright 2021-present The maxGraph project Contributors + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + const HierarchicalEdgeStyle = { ORTHOGONAL: 1, POLYLINE: 2, diff --git a/packages/core/src/view/layout/hierarchical/CoordinateAssignment.ts b/packages/core/src/view/layout/hierarchical/CoordinateAssignment.ts index c31480048..1be466082 100644 --- a/packages/core/src/view/layout/hierarchical/CoordinateAssignment.ts +++ b/packages/core/src/view/layout/hierarchical/CoordinateAssignment.ts @@ -1,9 +1,21 @@ -/** - * Copyright (c) 2006-2018, JGraph Ltd - * Copyright (c) 2006-2018, Gaudenz Alder - * Updated to ES9 syntax by David Morrissey 2021 - * Type definitions from the typed-mxgraph project - */ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2018, JGraph Ltd +Copyright (c) 2006-2018, Gaudenz Alder + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import HierarchicalLayoutStage from './HierarchicalLayoutStage'; import { DIRECTION } from '../../../util/Constants'; import MaxLog from '../../../gui/MaxLog'; @@ -193,7 +205,7 @@ class CoordinateAssignment extends HierarchicalLayoutStage { printStatus() { const model = this.layout.getDataModel(); const ranks = model.ranks; - + MaxLog.show(); MaxLog.writeln('======Coord assignment debug======='); @@ -436,8 +448,8 @@ class CoordinateAssignment extends HierarchicalLayoutStage { * relative to */ rankMedianPosition( - rankValue: number, - model: GraphHierarchyModel, + rankValue: number, + model: GraphHierarchyModel, nextRankValue: number ) { const ranks = model.ranks; diff --git a/packages/core/src/view/layout/hierarchical/GraphHierarchyModel.ts b/packages/core/src/view/layout/hierarchical/GraphHierarchyModel.ts index 07810356d..01842519f 100644 --- a/packages/core/src/view/layout/hierarchical/GraphHierarchyModel.ts +++ b/packages/core/src/view/layout/hierarchical/GraphHierarchyModel.ts @@ -1,9 +1,20 @@ -/** - * Copyright (c) 2006-2015, JGraph Ltd - * Copyright (c) 2006-2015, Gaudenz Alder - * Updated to ES9 syntax by David Morrissey 2021 - * Type definitions from the typed-mxgraph project - */ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2015, JGraph Ltd +Copyright (c) 2006-2015, Gaudenz Alder + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ import Dictionary from '../../../util/Dictionary'; import GraphHierarchyNode from '../datatypes/GraphHierarchyNode'; diff --git a/packages/core/src/view/layout/hierarchical/HierarchicalLayoutStage.ts b/packages/core/src/view/layout/hierarchical/HierarchicalLayoutStage.ts index 2825f6524..97ea63269 100644 --- a/packages/core/src/view/layout/hierarchical/HierarchicalLayoutStage.ts +++ b/packages/core/src/view/layout/hierarchical/HierarchicalLayoutStage.ts @@ -1,9 +1,20 @@ -/** - * Copyright (c) 2006-2015, JGraph Ltd - * Copyright (c) 2006-2015, Gaudenz Alder - * Updated to ES9 syntax by David Morrissey 2021 - * Type definitions from the typed-mxgraph project - */ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2015, JGraph Ltd +Copyright (c) 2006-2015, Gaudenz Alder + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ /** * The specific layout interface for hierarchical layouts. It adds a diff --git a/packages/core/src/view/layout/hierarchical/MedianHybridCrossingReduction.ts b/packages/core/src/view/layout/hierarchical/MedianHybridCrossingReduction.ts index 7376c0a98..8ca359b47 100644 --- a/packages/core/src/view/layout/hierarchical/MedianHybridCrossingReduction.ts +++ b/packages/core/src/view/layout/hierarchical/MedianHybridCrossingReduction.ts @@ -1,9 +1,21 @@ -/** - * Copyright (c) 2006-2015, JGraph Ltd - * Copyright (c) 2006-2015, Gaudenz Alder - * Updated to ES9 syntax by David Morrissey 2021 - * Type definitions from the typed-mxgraph project - */ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2015, JGraph Ltd +Copyright (c) 2006-2015, Gaudenz Alder + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import HierarchicalLayout from '../HierarchicalLayout'; import GraphAbstractHierarchyCell from '../datatypes/GraphAbstractHierarchyCell'; import GraphHierarchyModel from './GraphHierarchyModel'; @@ -173,7 +185,7 @@ class MedianHybridCrossingReduction extends HierarchicalLayoutStage { */ calculateRankCrossing(i: number, model: GraphHierarchyModel) { let totalCrossings = 0; - const ranks = model.ranks; + const ranks = model.ranks; const rank = ranks[i]; const previousRank = ranks[i - 1]; diff --git a/packages/core/src/view/layout/hierarchical/MinimumCycleRemover.ts b/packages/core/src/view/layout/hierarchical/MinimumCycleRemover.ts index ff54280cf..04dd78ab1 100644 --- a/packages/core/src/view/layout/hierarchical/MinimumCycleRemover.ts +++ b/packages/core/src/view/layout/hierarchical/MinimumCycleRemover.ts @@ -1,9 +1,21 @@ -/** - * Copyright (c) 2006-2015, JGraph Ltd - * Copyright (c) 2006-2015, Gaudenz Alder - * Updated to ES9 syntax by David Morrissey 2021 - * Type definitions from the typed-mxgraph project - */ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2015, JGraph Ltd +Copyright (c) 2006-2015, Gaudenz Alder + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import HierarchicalLayoutStage from './HierarchicalLayoutStage'; import { remove } from '../../../util/arrayUtils'; import { clone } from '../../../util/cloneUtils'; diff --git a/packages/core/src/view/layout/hierarchical/SwimlaneModel.ts b/packages/core/src/view/layout/hierarchical/SwimlaneModel.ts index e5bb8ae6e..b68c3e558 100644 --- a/packages/core/src/view/layout/hierarchical/SwimlaneModel.ts +++ b/packages/core/src/view/layout/hierarchical/SwimlaneModel.ts @@ -1,9 +1,21 @@ -/** - * Copyright (c) 2006-2018, JGraph Ltd - * Copyright (c) 2006-2018, Gaudenz Alder - * Updated to ES9 syntax by David Morrissey 2021 - * Type definitions from the typed-mxgraph project - */ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2018, JGraph Ltd +Copyright (c) 2006-2018, Gaudenz Alder + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import GraphHierarchyNode from "../datatypes/GraphHierarchyNode"; import GraphHierarchyEdge from "../datatypes/GraphHierarchyEdge"; import CellPath from "../../cell/CellPath"; diff --git a/packages/core/src/view/layout/hierarchical/SwimlaneOrdering.ts b/packages/core/src/view/layout/hierarchical/SwimlaneOrdering.ts index f569cc0e8..7ba92cec2 100644 --- a/packages/core/src/view/layout/hierarchical/SwimlaneOrdering.ts +++ b/packages/core/src/view/layout/hierarchical/SwimlaneOrdering.ts @@ -1,9 +1,21 @@ -/** - * Copyright (c) 2006-2015, JGraph Ltd - * Copyright (c) 2006-2015, Gaudenz Alder - * Updated to ES9 syntax by David Morrissey 2021 - * Type definitions from the typed-mxgraph project - */ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2015, JGraph Ltd +Copyright (c) 2006-2015, Gaudenz Alder + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import HierarchicalLayoutStage from './HierarchicalLayoutStage'; import { remove } from '../../../util/arrayUtils'; import CellPath from '../../cell/CellPath'; diff --git a/packages/core/src/view/layout/util/MedianCellSorter.ts b/packages/core/src/view/layout/util/MedianCellSorter.ts index d5a8745bb..dd47682f4 100644 --- a/packages/core/src/view/layout/util/MedianCellSorter.ts +++ b/packages/core/src/view/layout/util/MedianCellSorter.ts @@ -1,3 +1,19 @@ +/* +Copyright 2021-present The maxGraph project Contributors + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import GraphAbstractHierarchyCell from "../datatypes/GraphAbstractHierarchyCell"; /** diff --git a/packages/core/src/view/layout/util/WeightedCellSorter.ts b/packages/core/src/view/layout/util/WeightedCellSorter.ts index f3680b684..9ab197122 100644 --- a/packages/core/src/view/layout/util/WeightedCellSorter.ts +++ b/packages/core/src/view/layout/util/WeightedCellSorter.ts @@ -1,3 +1,22 @@ +/* +Copyright 2021-present The maxGraph project Contributors + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +import { _mxCompactTreeLayoutNode } from "../CompactTreeLayout"; +import GraphAbstractHierarchyCell from "../datatypes/GraphAbstractHierarchyCell"; + /** * @class WeightedCellSorter * @@ -6,9 +25,6 @@ * (x.equals(y)) * */ -import { _mxCompactTreeLayoutNode } from "../CompactTreeLayout"; -import GraphAbstractHierarchyCell from "../datatypes/GraphAbstractHierarchyCell"; - class WeightedCellSorter { constructor(cell: _mxCompactTreeLayoutNode | GraphAbstractHierarchyCell, weightedValue: number=0) { this.cell = cell; diff --git a/packages/core/src/view/mixins/CellsMixin.ts b/packages/core/src/view/mixins/CellsMixin.ts index 2a1a96217..c84c01698 100644 --- a/packages/core/src/view/mixins/CellsMixin.ts +++ b/packages/core/src/view/mixins/CellsMixin.ts @@ -1,3 +1,19 @@ +/* +Copyright 2021-present The maxGraph project Contributors + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import Cell from '../cell/Cell'; import CellArray from '../cell/CellArray'; import { mixInto } from '../../util/Utils'; diff --git a/packages/core/src/view/mixins/ConnectionsMixin.ts b/packages/core/src/view/mixins/ConnectionsMixin.ts index 1fb0ad6c1..3f5b04ca0 100644 --- a/packages/core/src/view/mixins/ConnectionsMixin.ts +++ b/packages/core/src/view/mixins/ConnectionsMixin.ts @@ -1,3 +1,19 @@ +/* +Copyright 2021-present The maxGraph project Contributors + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import Point from '../geometry/Point'; import CellState from '../cell/CellState'; import InternalMouseEvent from '../event/InternalMouseEvent'; diff --git a/packages/core/src/view/mixins/DragDropMixin.ts b/packages/core/src/view/mixins/DragDropMixin.ts index 4cb9f4dc3..2eadfa81b 100644 --- a/packages/core/src/view/mixins/DragDropMixin.ts +++ b/packages/core/src/view/mixins/DragDropMixin.ts @@ -1,3 +1,19 @@ +/* +Copyright 2021-present The maxGraph project Contributors + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import { mixInto } from '../../util/Utils'; import Cell from '../cell/Cell'; import CellArray from '../cell/CellArray'; diff --git a/packages/core/src/view/mixins/EdgeMixin.ts b/packages/core/src/view/mixins/EdgeMixin.ts index f7c4313b8..918c4297e 100644 --- a/packages/core/src/view/mixins/EdgeMixin.ts +++ b/packages/core/src/view/mixins/EdgeMixin.ts @@ -1,3 +1,19 @@ +/* +Copyright 2021-present The maxGraph project Contributors + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import Cell from '../cell/Cell'; import CellArray from '../cell/CellArray'; import { mixInto } from '../../util/Utils'; diff --git a/packages/core/src/view/mixins/EditingMixin.ts b/packages/core/src/view/mixins/EditingMixin.ts index b364eb353..6e24af2c9 100644 --- a/packages/core/src/view/mixins/EditingMixin.ts +++ b/packages/core/src/view/mixins/EditingMixin.ts @@ -1,3 +1,19 @@ +/* +Copyright 2021-present The maxGraph project Contributors + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import Cell from '../cell/Cell'; import { isMultiTouchEvent } from '../../util/EventUtils'; import EventObject from '../event/EventObject'; diff --git a/packages/core/src/view/mixins/EventsMixin.ts b/packages/core/src/view/mixins/EventsMixin.ts index 6478c7dd2..3ff016cb1 100644 --- a/packages/core/src/view/mixins/EventsMixin.ts +++ b/packages/core/src/view/mixins/EventsMixin.ts @@ -1,3 +1,19 @@ +/* +Copyright 2021-present The maxGraph project Contributors + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import InternalMouseEvent from '../event/InternalMouseEvent'; import EventObject from '../event/EventObject'; import InternalEvent from '../event/InternalEvent'; @@ -873,7 +889,7 @@ const EventsMixin: PartialType = { // detect which mouseup(s) are part of the first click, ie we do not know when the first click ends. if ( (!this.nativeDblClickEnabled && !isPopupTrigger(me.getEvent())) || - (this.doubleTapEnabled && Client.IS_TOUCH && (isTouchEvent(me.getEvent()) || + (this.doubleTapEnabled && Client.IS_TOUCH && (isTouchEvent(me.getEvent()) || isPenEvent(me.getEvent()))) ) { const currentTime = new Date().getTime(); @@ -926,8 +942,8 @@ const EventsMixin: PartialType = { this.isMouseDown = false; // Workaround for Chrome/Safari not firing native double click events for double touch on background - const valid = cell || - ((isTouchEvent(me.getEvent()) || isPenEvent(me.getEvent())) && + const valid = cell || + ((isTouchEvent(me.getEvent()) || isPenEvent(me.getEvent())) && (Client.IS_GC || Client.IS_SF)); if ( diff --git a/packages/core/src/view/mixins/FoldingMixin.ts b/packages/core/src/view/mixins/FoldingMixin.ts index 2a039aadc..6b498b6eb 100644 --- a/packages/core/src/view/mixins/FoldingMixin.ts +++ b/packages/core/src/view/mixins/FoldingMixin.ts @@ -1,3 +1,19 @@ +/* +Copyright 2021-present The maxGraph project Contributors + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import Image from '../image/ImageBox'; import Client from '../../Client'; import CellState from '../cell/CellState'; diff --git a/packages/core/src/view/mixins/GroupingMixin.ts b/packages/core/src/view/mixins/GroupingMixin.ts index ebba05e6c..cef158e58 100644 --- a/packages/core/src/view/mixins/GroupingMixin.ts +++ b/packages/core/src/view/mixins/GroupingMixin.ts @@ -1,3 +1,19 @@ +/* +Copyright 2021-present The maxGraph project Contributors + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import Cell from '../cell/Cell'; import CellArray from '../cell/CellArray'; import { mixInto } from '../../util/Utils'; diff --git a/packages/core/src/view/mixins/ImageMixin.ts b/packages/core/src/view/mixins/ImageMixin.ts index 24d9d1768..4d9fc4570 100644 --- a/packages/core/src/view/mixins/ImageMixin.ts +++ b/packages/core/src/view/mixins/ImageMixin.ts @@ -1,3 +1,19 @@ +/* +Copyright 2021-present The maxGraph project Contributors + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import { mixInto } from '../../util/Utils'; import { Graph } from '../Graph'; import ImageBundle from '../image/ImageBundle'; diff --git a/packages/core/src/view/mixins/LabelMixin.ts b/packages/core/src/view/mixins/LabelMixin.ts index 7c5035103..b21589cb6 100644 --- a/packages/core/src/view/mixins/LabelMixin.ts +++ b/packages/core/src/view/mixins/LabelMixin.ts @@ -1,3 +1,19 @@ +/* +Copyright 2021-present The maxGraph project Contributors + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import { mixInto } from '../../util/Utils'; import Cell from '../cell/Cell'; import { Graph } from '../Graph'; diff --git a/packages/core/src/view/mixins/OrderMixin.ts b/packages/core/src/view/mixins/OrderMixin.ts index 7fd397241..482962dc8 100644 --- a/packages/core/src/view/mixins/OrderMixin.ts +++ b/packages/core/src/view/mixins/OrderMixin.ts @@ -1,3 +1,19 @@ +/* +Copyright 2021-present The maxGraph project Contributors + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import CellArray from '../cell/CellArray'; import { mixInto } from '../../util/Utils'; import { sortCells } from '../../util/styleUtils'; diff --git a/packages/core/src/view/mixins/OverlaysMixin.ts b/packages/core/src/view/mixins/OverlaysMixin.ts index 3042d7474..b99e4f972 100644 --- a/packages/core/src/view/mixins/OverlaysMixin.ts +++ b/packages/core/src/view/mixins/OverlaysMixin.ts @@ -1,3 +1,19 @@ +/* +Copyright 2021-present The maxGraph project Contributors + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import Cell from '../cell/Cell'; import CellOverlay from '../cell/CellOverlay'; import EventObject from '../event/EventObject'; diff --git a/packages/core/src/view/mixins/PageBreaksMixin.ts b/packages/core/src/view/mixins/PageBreaksMixin.ts index 1e292b29f..d394c1038 100644 --- a/packages/core/src/view/mixins/PageBreaksMixin.ts +++ b/packages/core/src/view/mixins/PageBreaksMixin.ts @@ -1,3 +1,19 @@ +/* +Copyright 2021-present The maxGraph project Contributors + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import Rectangle from '../geometry/Rectangle'; import Point from '../geometry/Point'; import PolylineShape from '../geometry/edge/PolylineShape'; diff --git a/packages/core/src/view/mixins/PanningMixin.ts b/packages/core/src/view/mixins/PanningMixin.ts index 37e628d35..c557daf9b 100644 --- a/packages/core/src/view/mixins/PanningMixin.ts +++ b/packages/core/src/view/mixins/PanningMixin.ts @@ -1,3 +1,19 @@ +/* +Copyright 2021-present The maxGraph project Contributors + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import { mixInto } from '../../util/Utils'; import { hasScrollbars } from '../../util/styleUtils'; import EventObject from '../event/EventObject'; diff --git a/packages/core/src/view/mixins/PortsMixin.ts b/packages/core/src/view/mixins/PortsMixin.ts index 6495cf67c..fe00e35e0 100644 --- a/packages/core/src/view/mixins/PortsMixin.ts +++ b/packages/core/src/view/mixins/PortsMixin.ts @@ -1,3 +1,19 @@ +/* +Copyright 2021-present The maxGraph project Contributors + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import { mixInto } from '../../util/Utils'; import Cell from '../cell/Cell'; import { Graph } from '../Graph'; diff --git a/packages/core/src/view/mixins/SelectionMixin.ts b/packages/core/src/view/mixins/SelectionMixin.ts index 3e7c3c801..3872e2821 100644 --- a/packages/core/src/view/mixins/SelectionMixin.ts +++ b/packages/core/src/view/mixins/SelectionMixin.ts @@ -1,3 +1,19 @@ +/* +Copyright 2021-present The maxGraph project Contributors + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import Cell from '../cell/Cell'; import CellArray from '../cell/CellArray'; import Rectangle from '../geometry/Rectangle'; diff --git a/packages/core/src/view/mixins/SnapMixin.ts b/packages/core/src/view/mixins/SnapMixin.ts index 2bb9d78fe..7eddef740 100644 --- a/packages/core/src/view/mixins/SnapMixin.ts +++ b/packages/core/src/view/mixins/SnapMixin.ts @@ -1,3 +1,19 @@ +/* +Copyright 2021-present The maxGraph project Contributors + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import { mixInto } from '../../util/Utils'; import Point from '../geometry/Point'; import Rectangle from '../geometry/Rectangle'; diff --git a/packages/core/src/view/mixins/SwimlaneMixin.ts b/packages/core/src/view/mixins/SwimlaneMixin.ts index cfbefdf25..0bbe2490d 100644 --- a/packages/core/src/view/mixins/SwimlaneMixin.ts +++ b/packages/core/src/view/mixins/SwimlaneMixin.ts @@ -1,3 +1,19 @@ +/* +Copyright 2021-present The maxGraph project Contributors + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import Cell from '../cell/Cell'; import Rectangle from '../geometry/Rectangle'; import { mixInto } from '../../util/Utils'; diff --git a/packages/core/src/view/mixins/TerminalMixin.ts b/packages/core/src/view/mixins/TerminalMixin.ts index 61fd5b22c..a2a4bfb8e 100644 --- a/packages/core/src/view/mixins/TerminalMixin.ts +++ b/packages/core/src/view/mixins/TerminalMixin.ts @@ -1,3 +1,19 @@ +/* +Copyright 2021-present The maxGraph project Contributors + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import CellArray from '../cell/CellArray'; import Cell from '../cell/Cell'; import Dictionary from '../../util/Dictionary'; diff --git a/packages/core/src/view/mixins/TooltipMixin.ts b/packages/core/src/view/mixins/TooltipMixin.ts index dd74fc7c9..1724c1705 100644 --- a/packages/core/src/view/mixins/TooltipMixin.ts +++ b/packages/core/src/view/mixins/TooltipMixin.ts @@ -1,3 +1,19 @@ +/* +Copyright 2021-present The maxGraph project Contributors + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import CellState from '../cell/CellState'; import { htmlEntities } from '../../util/StringUtils'; import Translations from '../../util/Translations'; diff --git a/packages/core/src/view/mixins/ValidationMixin.ts b/packages/core/src/view/mixins/ValidationMixin.ts index 664443eba..13cd40932 100644 --- a/packages/core/src/view/mixins/ValidationMixin.ts +++ b/packages/core/src/view/mixins/ValidationMixin.ts @@ -1,3 +1,19 @@ +/* +Copyright 2021-present The maxGraph project Contributors + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import Cell from '../cell/Cell'; import Translations from '../../util/Translations'; import { isNode } from '../../util/domUtils'; diff --git a/packages/core/src/view/mixins/VertexMixin.ts b/packages/core/src/view/mixins/VertexMixin.ts index c6503520d..3c70a64ae 100644 --- a/packages/core/src/view/mixins/VertexMixin.ts +++ b/packages/core/src/view/mixins/VertexMixin.ts @@ -1,3 +1,19 @@ +/* +Copyright 2021-present The maxGraph project Contributors + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import Cell from '../cell/Cell'; import Geometry from '../geometry/Geometry'; import { Graph } from '../Graph'; diff --git a/packages/core/src/view/mixins/ZoomMixin.ts b/packages/core/src/view/mixins/ZoomMixin.ts index bebfd325b..7f7d1ee7c 100644 --- a/packages/core/src/view/mixins/ZoomMixin.ts +++ b/packages/core/src/view/mixins/ZoomMixin.ts @@ -1,3 +1,19 @@ +/* +Copyright 2021-present The maxGraph project Contributors + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import Rectangle from '../geometry/Rectangle'; import { mixInto } from '../../util/Utils'; import { hasScrollbars } from '../../util/styleUtils'; diff --git a/packages/core/src/view/other/AutoSaveManager.ts b/packages/core/src/view/other/AutoSaveManager.ts index b9da8012b..56d80dd20 100644 --- a/packages/core/src/view/other/AutoSaveManager.ts +++ b/packages/core/src/view/other/AutoSaveManager.ts @@ -1,9 +1,21 @@ -/** - * Copyright (c) 2006-2015, JGraph Ltd - * Copyright (c) 2006-2015, Gaudenz Alder - * Updated to ES9 syntax by David Morrissey 2021 - * Type definitions from the typed-mxgraph project - */ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2015, JGraph Ltd +Copyright (c) 2006-2015, Gaudenz Alder + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import EventSource from '../event/EventSource'; import InternalEvent from '../event/InternalEvent'; import { Graph } from '../Graph'; diff --git a/packages/core/src/view/other/ConnectionConstraint.ts b/packages/core/src/view/other/ConnectionConstraint.ts index 0f6293aba..50c96b282 100644 --- a/packages/core/src/view/other/ConnectionConstraint.ts +++ b/packages/core/src/view/other/ConnectionConstraint.ts @@ -1,9 +1,20 @@ -/** - * Copyright (c) 2006-2015, JGraph Ltd - * Copyright (c) 2006-2015, Gaudenz Alder - * Updated to ES9 syntax by David Morrissey 2021 - * Type definitions from the typed-mxgraph project - */ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2015, JGraph Ltd +Copyright (c) 2006-2015, Gaudenz Alder + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ import Point from '../geometry/Point'; diff --git a/packages/core/src/view/other/DragSource.ts b/packages/core/src/view/other/DragSource.ts index 225d56019..2a43d39a8 100644 --- a/packages/core/src/view/other/DragSource.ts +++ b/packages/core/src/view/other/DragSource.ts @@ -1,9 +1,21 @@ -/** - * Copyright (c) 2006-2015, JGraph Ltd - * Copyright (c) 2006-2015, Gaudenz Alder - * Updated to ES9 syntax by David Morrissey 2021 - * Type definitions from the typed-mxgraph project - */ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2015, JGraph Ltd +Copyright (c) 2006-2015, Gaudenz Alder + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import Rectangle from '../geometry/Rectangle'; import CellHighlight from '../cell/CellHighlight'; import { diff --git a/packages/core/src/view/other/Guide.ts b/packages/core/src/view/other/Guide.ts index b368dc892..97c39e8ed 100644 --- a/packages/core/src/view/other/Guide.ts +++ b/packages/core/src/view/other/Guide.ts @@ -1,9 +1,20 @@ -/** - * Copyright (c) 2006-2015, JGraph Ltd - * Copyright (c) 2006-2015, Gaudenz Alder - * Updated to ES9 syntax by David Morrissey 2021 - * Type definitions from the typed-mxgraph project - */ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2015, JGraph Ltd +Copyright (c) 2006-2015, Gaudenz Alder + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ import { DIALECT, GUIDE_COLOR, GUIDE_STROKEWIDTH } from '../../util/Constants'; import Point from '../geometry/Point'; diff --git a/packages/core/src/view/other/Multiplicity.ts b/packages/core/src/view/other/Multiplicity.ts index e02883e6c..eaa52baab 100644 --- a/packages/core/src/view/other/Multiplicity.ts +++ b/packages/core/src/view/other/Multiplicity.ts @@ -1,9 +1,20 @@ -/** - * Copyright (c) 2006-2015, JGraph Ltd - * Copyright (c) 2006-2015, Gaudenz Alder - * Updated to ES9 syntax by David Morrissey 2021 - * Type definitions from the typed-mxgraph project - */ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2015, JGraph Ltd +Copyright (c) 2006-2015, Gaudenz Alder + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ import Translations from '../../util/Translations'; import { isNode } from '../../util/domUtils'; diff --git a/packages/core/src/view/other/Outline.ts b/packages/core/src/view/other/Outline.ts index bc26600e7..f8de757f9 100644 --- a/packages/core/src/view/other/Outline.ts +++ b/packages/core/src/view/other/Outline.ts @@ -1,9 +1,20 @@ -/** - * Copyright (c) 2006-2015, JGraph Ltd - * Copyright (c) 2006-2015, Gaudenz Alder - * Updated to ES9 syntax by David Morrissey 2021 - * Type definitions from the typed-mxgraph project - */ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2015, JGraph Ltd +Copyright (c) 2006-2015, Gaudenz Alder + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ import InternalMouseEvent from '../event/InternalMouseEvent'; import { diff --git a/packages/core/src/view/other/PanningManager.ts b/packages/core/src/view/other/PanningManager.ts index b662d0871..7b1595fa4 100644 --- a/packages/core/src/view/other/PanningManager.ts +++ b/packages/core/src/view/other/PanningManager.ts @@ -1,9 +1,20 @@ -/** - * Copyright (c) 2006-2015, JGraph Ltd - * Copyright (c) 2006-2015, Gaudenz Alder - * Updated to ES9 syntax by David Morrissey 2021 - * Type definitions from the typed-mxgraph project - */ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2015, JGraph Ltd +Copyright (c) 2006-2015, Gaudenz Alder + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ import { MouseEventListener, MouseListenerSet } from '../../types'; import { hasScrollbars } from '../../util/styleUtils'; diff --git a/packages/core/src/view/other/PrintPreview.ts b/packages/core/src/view/other/PrintPreview.ts index d59c225f0..c3bb2e783 100644 --- a/packages/core/src/view/other/PrintPreview.ts +++ b/packages/core/src/view/other/PrintPreview.ts @@ -1,7 +1,20 @@ -/** - * Copyright (c) 2006-2019, JGraph Ltd - * Copyright (c) 2006-2017, draw.io AG - */ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2019, JGraph Ltd +Copyright (c) 2006-2017, draw.io AG + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ import Point from '../geometry/Point'; import Rectangle from '../geometry/Rectangle'; diff --git a/packages/core/src/view/style/EdgeStyle.ts b/packages/core/src/view/style/EdgeStyle.ts index 76124f107..4b03d15af 100644 --- a/packages/core/src/view/style/EdgeStyle.ts +++ b/packages/core/src/view/style/EdgeStyle.ts @@ -1,9 +1,20 @@ -/** - * Copyright (c) 2006-2015, JGraph Ltd - * Copyright (c) 2006-2015, Gaudenz Alder - * Updated to ES9 syntax by David Morrissey 2021 - * Type definitions from the typed-mxgraph project - */ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2015, JGraph Ltd +Copyright (c) 2006-2015, Gaudenz Alder + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ import { getValue } from '../../util/Utils'; import { getNumber } from '../../util/StringUtils'; diff --git a/packages/core/src/view/style/Perimeter.ts b/packages/core/src/view/style/Perimeter.ts index 258991d13..e8253345b 100644 --- a/packages/core/src/view/style/Perimeter.ts +++ b/packages/core/src/view/style/Perimeter.ts @@ -1,9 +1,20 @@ -/** - * Copyright (c) 2006-2015, JGraph Ltd - * Copyright (c) 2006-2015, Gaudenz Alder - * Updated to ES9 syntax by David Morrissey 2021 - * Type definitions from the typed-mxgraph project - */ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2015, JGraph Ltd +Copyright (c) 2006-2015, Gaudenz Alder + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ import { intersection } from '../../util/mathUtils'; import Point from '../geometry/Point'; diff --git a/packages/core/src/view/style/StyleMap.ts b/packages/core/src/view/style/StyleMap.ts index 1d15237ad..7d7fdd2a9 100644 --- a/packages/core/src/view/style/StyleMap.ts +++ b/packages/core/src/view/style/StyleMap.ts @@ -1,3 +1,19 @@ +/* +Copyright 2021-present The maxGraph project Contributors + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + class StyleMap implements Record { defaultVertex?: StyleMap; defaultEdge?: StyleMap; diff --git a/packages/core/src/view/style/StyleRegistry.ts b/packages/core/src/view/style/StyleRegistry.ts index 9a228cc05..da07e8de6 100644 --- a/packages/core/src/view/style/StyleRegistry.ts +++ b/packages/core/src/view/style/StyleRegistry.ts @@ -1,9 +1,20 @@ -/** - * Copyright (c) 2006-2015, JGraph Ltd - * Copyright (c) 2006-2015, Gaudenz Alder - * Updated to ES9 syntax by David Morrissey 2021 - * Type definitions from the typed-mxgraph project - */ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2015, JGraph Ltd +Copyright (c) 2006-2015, Gaudenz Alder + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ import { EDGESTYLE, diff --git a/packages/core/src/view/style/Stylesheet.ts b/packages/core/src/view/style/Stylesheet.ts index 12dc6b722..d537b6b5c 100644 --- a/packages/core/src/view/style/Stylesheet.ts +++ b/packages/core/src/view/style/Stylesheet.ts @@ -1,9 +1,21 @@ -/** - * Copyright (c) 2006-2015, JGraph Ltd - * Copyright (c) 2006-2015, Gaudenz Alder - * Updated to ES9 syntax by David Morrissey 2021 - * Type definitions from the typed-mxgraph project - */ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2015, JGraph Ltd +Copyright (c) 2006-2015, Gaudenz Alder + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import { ALIGN, ARROW, SHAPE } from '../../util/Constants'; import Perimeter from './Perimeter'; import { clone } from '../../util/cloneUtils'; diff --git a/packages/core/src/view/undoable_changes/CellAttributeChange.ts b/packages/core/src/view/undoable_changes/CellAttributeChange.ts index 6efc1f2e6..bab4ba110 100644 --- a/packages/core/src/view/undoable_changes/CellAttributeChange.ts +++ b/packages/core/src/view/undoable_changes/CellAttributeChange.ts @@ -1,3 +1,19 @@ +/* +Copyright 2021-present The maxGraph project Contributors + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import { isNullish } from '../../util/Utils'; import Cell from '../cell/Cell'; import CodecRegistry from '../../serialization/CodecRegistry'; diff --git a/packages/core/src/view/undoable_changes/ChildChange.ts b/packages/core/src/view/undoable_changes/ChildChange.ts index 22b0d01fd..781c370f3 100644 --- a/packages/core/src/view/undoable_changes/ChildChange.ts +++ b/packages/core/src/view/undoable_changes/ChildChange.ts @@ -1,3 +1,19 @@ +/* +Copyright 2021-present The maxGraph project Contributors + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import GraphDataModel from '../GraphDataModel'; import Cell from '../cell/Cell'; import ObjectCodec from '../../serialization/ObjectCodec'; diff --git a/packages/core/src/view/undoable_changes/CollapseChange.ts b/packages/core/src/view/undoable_changes/CollapseChange.ts index 663dcc340..6df4485f6 100644 --- a/packages/core/src/view/undoable_changes/CollapseChange.ts +++ b/packages/core/src/view/undoable_changes/CollapseChange.ts @@ -1,3 +1,19 @@ +/* +Copyright 2021-present The maxGraph project Contributors + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import Cell from '../cell/Cell'; import GraphDataModel from '../GraphDataModel'; import CodecRegistry from '../../serialization/CodecRegistry'; diff --git a/packages/core/src/view/undoable_changes/CurrentRootChange.ts b/packages/core/src/view/undoable_changes/CurrentRootChange.ts index 252a53d5b..2845b3a67 100644 --- a/packages/core/src/view/undoable_changes/CurrentRootChange.ts +++ b/packages/core/src/view/undoable_changes/CurrentRootChange.ts @@ -1,3 +1,19 @@ +/* +Copyright 2021-present The maxGraph project Contributors + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import GraphView from '../GraphView'; import EventObject from '../event/EventObject'; import Point from '../geometry/Point'; diff --git a/packages/core/src/view/undoable_changes/GenericChangeCodec.ts b/packages/core/src/view/undoable_changes/GenericChangeCodec.ts index ae69be5e6..dbbdd84e5 100644 --- a/packages/core/src/view/undoable_changes/GenericChangeCodec.ts +++ b/packages/core/src/view/undoable_changes/GenericChangeCodec.ts @@ -1,9 +1,20 @@ -/** - * Copyright (c) 2006-2015, JGraph Ltd - * Copyright (c) 2006-2015, Gaudenz Alder - * Updated to ES9 syntax by David Morrissey 2021 - * Type definitions from the typed-mxgraph project - */ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2015, JGraph Ltd +Copyright (c) 2006-2015, Gaudenz Alder + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ import ObjectCodec from '../../serialization/ObjectCodec'; import { isNode } from '../../util/domUtils'; diff --git a/packages/core/src/view/undoable_changes/GeometryChange.ts b/packages/core/src/view/undoable_changes/GeometryChange.ts index b695400fc..faf5c9703 100644 --- a/packages/core/src/view/undoable_changes/GeometryChange.ts +++ b/packages/core/src/view/undoable_changes/GeometryChange.ts @@ -1,3 +1,19 @@ +/* +Copyright 2021-present The maxGraph project Contributors + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import Geometry from '../geometry/Geometry'; import Cell from '../cell/Cell'; import GraphDataModel from '../GraphDataModel'; diff --git a/packages/core/src/view/undoable_changes/RootChange.ts b/packages/core/src/view/undoable_changes/RootChange.ts index 4797c39c3..01b10b1bf 100644 --- a/packages/core/src/view/undoable_changes/RootChange.ts +++ b/packages/core/src/view/undoable_changes/RootChange.ts @@ -1,3 +1,19 @@ +/* +Copyright 2021-present The maxGraph project Contributors + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import Cell from '../cell/Cell'; import GraphDataModel from '../GraphDataModel'; import CodecRegistry from '../../serialization/CodecRegistry'; diff --git a/packages/core/src/view/undoable_changes/SelectionChange.ts b/packages/core/src/view/undoable_changes/SelectionChange.ts index 85b06529b..3659e1ceb 100644 --- a/packages/core/src/view/undoable_changes/SelectionChange.ts +++ b/packages/core/src/view/undoable_changes/SelectionChange.ts @@ -1,3 +1,19 @@ +/* +Copyright 2021-present The maxGraph project Contributors + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import EventObject from '../event/EventObject'; import Translations from '../../util/Translations'; import InternalEvent from '../event/InternalEvent'; diff --git a/packages/core/src/view/undoable_changes/StyleChange.ts b/packages/core/src/view/undoable_changes/StyleChange.ts index 8cdf199b2..f0f923d17 100644 --- a/packages/core/src/view/undoable_changes/StyleChange.ts +++ b/packages/core/src/view/undoable_changes/StyleChange.ts @@ -1,3 +1,19 @@ +/* +Copyright 2021-present The maxGraph project Contributors + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import Cell from '../cell/Cell'; import GraphDataModel from '../GraphDataModel'; import CodecRegistry from '../../serialization/CodecRegistry'; diff --git a/packages/core/src/view/undoable_changes/TerminalChange.ts b/packages/core/src/view/undoable_changes/TerminalChange.ts index 385fbcd6e..38518a590 100644 --- a/packages/core/src/view/undoable_changes/TerminalChange.ts +++ b/packages/core/src/view/undoable_changes/TerminalChange.ts @@ -1,3 +1,19 @@ +/* +Copyright 2021-present The maxGraph project Contributors + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import Cell from '../cell/Cell'; import GraphDataModel from '../GraphDataModel'; import ObjectCodec from '../../serialization/ObjectCodec'; diff --git a/packages/core/src/view/undoable_changes/UndoManager.ts b/packages/core/src/view/undoable_changes/UndoManager.ts index 672eda9a8..9ce41b2f7 100644 --- a/packages/core/src/view/undoable_changes/UndoManager.ts +++ b/packages/core/src/view/undoable_changes/UndoManager.ts @@ -1,9 +1,20 @@ -/** - * Copyright (c) 2006-2015, JGraph Ltd - * Copyright (c) 2006-2015, Gaudenz Alder - * Updated to ES9 syntax by David Morrissey 2021 - * Type definitions from the typed-mxgraph project - */ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2015, JGraph Ltd +Copyright (c) 2006-2015, Gaudenz Alder + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ import InternalEvent from '../event/InternalEvent'; import EventObject from '../event/EventObject'; diff --git a/packages/core/src/view/undoable_changes/UndoableEdit.ts b/packages/core/src/view/undoable_changes/UndoableEdit.ts index b93c01b85..85f45f541 100644 --- a/packages/core/src/view/undoable_changes/UndoableEdit.ts +++ b/packages/core/src/view/undoable_changes/UndoableEdit.ts @@ -1,9 +1,20 @@ -/** - * Copyright (c) 2006-2015, JGraph Ltd - * Copyright (c) 2006-2015, Gaudenz Alder - * Updated to ES9 syntax by David Morrissey 2021 - * Type definitions from the typed-mxgraph project - */ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2015, JGraph Ltd +Copyright (c) 2006-2015, Gaudenz Alder + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ import InternalEvent from '../event/InternalEvent'; import EventObject from '../event/EventObject'; diff --git a/packages/core/src/view/undoable_changes/ValueChange.ts b/packages/core/src/view/undoable_changes/ValueChange.ts index 1a50f009b..c617611a5 100644 --- a/packages/core/src/view/undoable_changes/ValueChange.ts +++ b/packages/core/src/view/undoable_changes/ValueChange.ts @@ -1,3 +1,19 @@ +/* +Copyright 2021-present The maxGraph project Contributors + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import Cell from '../cell/Cell'; import GraphDataModel from '../GraphDataModel'; import CodecRegistry from '../../serialization/CodecRegistry'; diff --git a/packages/core/src/view/undoable_changes/VisibleChange.ts b/packages/core/src/view/undoable_changes/VisibleChange.ts index af7e7111d..a6b20752f 100644 --- a/packages/core/src/view/undoable_changes/VisibleChange.ts +++ b/packages/core/src/view/undoable_changes/VisibleChange.ts @@ -1,3 +1,19 @@ +/* +Copyright 2021-present The maxGraph project Contributors + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import Cell from '../cell/Cell'; import GraphDataModel from '../GraphDataModel'; import CodecRegistry from '../../serialization/CodecRegistry'; diff --git a/packages/html/stories/Anchors.stories.js b/packages/html/stories/Anchors.stories.js index 0aeda974a..b0e4862a1 100644 --- a/packages/html/stories/Anchors.stories.js +++ b/packages/html/stories/Anchors.stories.js @@ -1,3 +1,20 @@ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2020, JGraph Ltd + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import { Client, Graph, diff --git a/packages/html/stories/Animation.stories.js b/packages/html/stories/Animation.stories.js index b01b90b0d..8b738e0b8 100644 --- a/packages/html/stories/Animation.stories.js +++ b/packages/html/stories/Animation.stories.js @@ -1,3 +1,20 @@ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2020, JGraph Ltd + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import { Graph, Point } from '@maxgraph/core'; import { globalTypes } from '../.storybook/preview'; diff --git a/packages/html/stories/AutoLayout.stories.js b/packages/html/stories/AutoLayout.stories.js index 1c8144ee5..37caaaa26 100644 --- a/packages/html/stories/AutoLayout.stories.js +++ b/packages/html/stories/AutoLayout.stories.js @@ -1,3 +1,20 @@ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2020, JGraph Ltd + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import { Graph, RubberBandHandler, diff --git a/packages/html/stories/Boundary.stories.js b/packages/html/stories/Boundary.stories.js index 9404ba5e2..4ea4b09a6 100644 --- a/packages/html/stories/Boundary.stories.js +++ b/packages/html/stories/Boundary.stories.js @@ -1,3 +1,20 @@ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2020, JGraph Ltd + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import { Graph, InternalEvent, diff --git a/packages/html/stories/Clipboard.stories.js b/packages/html/stories/Clipboard.stories.js index 58a648a02..c3651092f 100644 --- a/packages/html/stories/Clipboard.stories.js +++ b/packages/html/stories/Clipboard.stories.js @@ -1,3 +1,20 @@ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2020, JGraph Ltd + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import { Graph, InternalEvent, diff --git a/packages/html/stories/Collapse.stories.js b/packages/html/stories/Collapse.stories.js index 0ad36baa6..17846f144 100644 --- a/packages/html/stories/Collapse.stories.js +++ b/packages/html/stories/Collapse.stories.js @@ -1,3 +1,20 @@ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2020, JGraph Ltd + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import { Graph, Rectangle } from '@maxgraph/core'; import { globalTypes } from '../.storybook/preview'; diff --git a/packages/html/stories/Constituent.stories.js b/packages/html/stories/Constituent.stories.js index 6165d7368..6a672696c 100644 --- a/packages/html/stories/Constituent.stories.js +++ b/packages/html/stories/Constituent.stories.js @@ -1,3 +1,20 @@ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2020, JGraph Ltd + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import { Graph, InternalEvent, diff --git a/packages/html/stories/ContextIcons.stories.js b/packages/html/stories/ContextIcons.stories.js index bbb578d2e..7b9ab8372 100644 --- a/packages/html/stories/ContextIcons.stories.js +++ b/packages/html/stories/ContextIcons.stories.js @@ -1,3 +1,20 @@ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2020, JGraph Ltd + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import { Graph, InternalEvent, diff --git a/packages/html/stories/Control.stories.js b/packages/html/stories/Control.stories.js index 55b80ab7a..5aeea42db 100644 --- a/packages/html/stories/Control.stories.js +++ b/packages/html/stories/Control.stories.js @@ -1,3 +1,20 @@ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2020, JGraph Ltd + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import { Graph, InternalEvent, diff --git a/packages/html/stories/DragSource.stories.js b/packages/html/stories/DragSource.stories.js index 412e5a77f..47cc93a61 100644 --- a/packages/html/stories/DragSource.stories.js +++ b/packages/html/stories/DragSource.stories.js @@ -1,3 +1,20 @@ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2020, JGraph Ltd + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import { Graph, domUtils, diff --git a/packages/html/stories/Drop.stories.js b/packages/html/stories/Drop.stories.js index bb3f44a0a..fa58bb604 100644 --- a/packages/html/stories/Drop.stories.js +++ b/packages/html/stories/Drop.stories.js @@ -1,3 +1,20 @@ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2020, JGraph Ltd + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import { Graph, RubberBandHandler, diff --git a/packages/html/stories/DynamicLoading.stories.js b/packages/html/stories/DynamicLoading.stories.js index 64eb469ca..1bd3965f2 100644 --- a/packages/html/stories/DynamicLoading.stories.js +++ b/packages/html/stories/DynamicLoading.stories.js @@ -1,3 +1,20 @@ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2020, JGraph Ltd + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import { Graph, TextShape, diff --git a/packages/html/stories/DynamicStyle.stories.js b/packages/html/stories/DynamicStyle.stories.js index cb14992aa..8207872a0 100644 --- a/packages/html/stories/DynamicStyle.stories.js +++ b/packages/html/stories/DynamicStyle.stories.js @@ -1,3 +1,20 @@ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2020, JGraph Ltd + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import { Graph, utils, constants, RubberBandHandler } from '@maxgraph/core'; import { globalTypes } from '../.storybook/preview'; diff --git a/packages/html/stories/DynamicToolbar.stories.js b/packages/html/stories/DynamicToolbar.stories.js index 6a375984d..980bb066f 100644 --- a/packages/html/stories/DynamicToolbar.stories.js +++ b/packages/html/stories/DynamicToolbar.stories.js @@ -1,3 +1,20 @@ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2020, JGraph Ltd + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import { Graph, RubberBandHandler, diff --git a/packages/html/stories/EdgeTolerance.stories.js b/packages/html/stories/EdgeTolerance.stories.js index 93c16acf3..08167a6f2 100644 --- a/packages/html/stories/EdgeTolerance.stories.js +++ b/packages/html/stories/EdgeTolerance.stories.js @@ -1,3 +1,20 @@ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2020, JGraph Ltd + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import { Graph, mathUtils } from '@maxgraph/core'; import { globalTypes } from '../.storybook/preview'; diff --git a/packages/html/stories/Editing.stories.js b/packages/html/stories/Editing.stories.js index 5c0d6fc5f..4ffdbe230 100644 --- a/packages/html/stories/Editing.stories.js +++ b/packages/html/stories/Editing.stories.js @@ -1,3 +1,20 @@ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2020, JGraph Ltd + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import { Graph, KeyHandler, diff --git a/packages/html/stories/Events.stories.js b/packages/html/stories/Events.stories.js index d2a577e99..b9fa6e7f2 100644 --- a/packages/html/stories/Events.stories.js +++ b/packages/html/stories/Events.stories.js @@ -1,3 +1,20 @@ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2020, JGraph Ltd + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import { Graph, InternalEvent, diff --git a/packages/html/stories/ExtendCanvas.stories.js b/packages/html/stories/ExtendCanvas.stories.js index 39ca1c332..ebdd4777b 100644 --- a/packages/html/stories/ExtendCanvas.stories.js +++ b/packages/html/stories/ExtendCanvas.stories.js @@ -1,3 +1,20 @@ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2020, JGraph Ltd + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import { Graph, InternalEvent, diff --git a/packages/html/stories/FileIO.stories.js b/packages/html/stories/FileIO.stories.js index e76267705..612cb2565 100644 --- a/packages/html/stories/FileIO.stories.js +++ b/packages/html/stories/FileIO.stories.js @@ -1,3 +1,20 @@ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2020, JGraph Ltd + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import { Graph, constants } from '@maxgraph/core'; import { globalTypes } from '../.storybook/preview'; diff --git a/packages/html/stories/FixedIcons.stories.js b/packages/html/stories/FixedIcons.stories.js index e39476c40..46445fbf8 100644 --- a/packages/html/stories/FixedIcons.stories.js +++ b/packages/html/stories/FixedIcons.stories.js @@ -1,3 +1,20 @@ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2020, JGraph Ltd + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import { Graph, RubberBandHandler, diff --git a/packages/html/stories/FixedPoints.stories.js b/packages/html/stories/FixedPoints.stories.js index 63dbbfb00..a3e3036da 100644 --- a/packages/html/stories/FixedPoints.stories.js +++ b/packages/html/stories/FixedPoints.stories.js @@ -1,3 +1,20 @@ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2020, JGraph Ltd + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import { Graph, RubberBandHandler, diff --git a/packages/html/stories/Folding.stories.js b/packages/html/stories/Folding.stories.js index f730ab489..76523e3fc 100644 --- a/packages/html/stories/Folding.stories.js +++ b/packages/html/stories/Folding.stories.js @@ -1,3 +1,20 @@ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2020, JGraph Ltd + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import { Graph, constants, EdgeStyle, StackLayout, LayoutManager } from '@maxgraph/core'; import { globalTypes } from '../.storybook/preview'; diff --git a/packages/html/stories/Grid.stories.js b/packages/html/stories/Grid.stories.js index cf457f8e3..b693f9dd6 100644 --- a/packages/html/stories/Grid.stories.js +++ b/packages/html/stories/Grid.stories.js @@ -1,3 +1,20 @@ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2020, JGraph Ltd + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import { Graph, InternalEvent, diff --git a/packages/html/stories/Groups.stories.js b/packages/html/stories/Groups.stories.js index e77b488da..ead70004d 100644 --- a/packages/html/stories/Groups.stories.js +++ b/packages/html/stories/Groups.stories.js @@ -1,3 +1,20 @@ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2020, JGraph Ltd + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import { Graph, RubberBandHandler, SelectionHandler, PopupMenuHandler } from '@maxgraph/core'; import { globalTypes } from '../.storybook/preview'; diff --git a/packages/html/stories/Guides.stories.js b/packages/html/stories/Guides.stories.js index 5d8c6da2d..7c0f7190a 100644 --- a/packages/html/stories/Guides.stories.js +++ b/packages/html/stories/Guides.stories.js @@ -1,3 +1,20 @@ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2020, JGraph Ltd + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import { Graph, SelectionHandler, diff --git a/packages/html/stories/Handles.stories.js b/packages/html/stories/Handles.stories.js index 81df8b432..0385253b2 100644 --- a/packages/html/stories/Handles.stories.js +++ b/packages/html/stories/Handles.stories.js @@ -1,3 +1,20 @@ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2020, JGraph Ltd + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import { Graph, CylinderShape, diff --git a/packages/html/stories/HelloPort.stories.js b/packages/html/stories/HelloPort.stories.js index baca48dee..2e2e493f3 100644 --- a/packages/html/stories/HelloPort.stories.js +++ b/packages/html/stories/HelloPort.stories.js @@ -1,3 +1,20 @@ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2020, JGraph Ltd + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import { Graph, RubberBandHandler, diff --git a/packages/html/stories/HelloWorld.stories.js b/packages/html/stories/HelloWorld.stories.js index 138c11e15..e12541531 100644 --- a/packages/html/stories/HelloWorld.stories.js +++ b/packages/html/stories/HelloWorld.stories.js @@ -1,3 +1,20 @@ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2020, JGraph Ltd + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import { Graph, InternalEvent, RubberBandHandler } from '@maxgraph/core'; import { globalTypes } from '../.storybook/preview'; diff --git a/packages/html/stories/HierarchicalLayout.stories.js b/packages/html/stories/HierarchicalLayout.stories.js index ff4078388..e8329f32e 100644 --- a/packages/html/stories/HierarchicalLayout.stories.js +++ b/packages/html/stories/HierarchicalLayout.stories.js @@ -1,3 +1,20 @@ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2020, JGraph Ltd + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import { Graph, domUtils, diff --git a/packages/html/stories/HoverIcons.stories.js b/packages/html/stories/HoverIcons.stories.js index 6cb534f01..d045b8207 100644 --- a/packages/html/stories/HoverIcons.stories.js +++ b/packages/html/stories/HoverIcons.stories.js @@ -1,3 +1,20 @@ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2020, JGraph Ltd + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import { Graph, InternalEvent, diff --git a/packages/html/stories/HoverStyle.stories.js b/packages/html/stories/HoverStyle.stories.js index b09c654b9..23bd35872 100644 --- a/packages/html/stories/HoverStyle.stories.js +++ b/packages/html/stories/HoverStyle.stories.js @@ -1,3 +1,20 @@ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2020, JGraph Ltd + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import { Graph, constants, RubberBandHandler, cloneUtils } from '@maxgraph/core'; import { globalTypes } from '../.storybook/preview'; diff --git a/packages/html/stories/Images.stories.js b/packages/html/stories/Images.stories.js index 6196fb0ac..38077ab0e 100644 --- a/packages/html/stories/Images.stories.js +++ b/packages/html/stories/Images.stories.js @@ -1,3 +1,20 @@ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2020, JGraph Ltd + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import { Graph, cloneUtils, diff --git a/packages/html/stories/Indicators.stories.js b/packages/html/stories/Indicators.stories.js index c96f1866c..1a09e6067 100644 --- a/packages/html/stories/Indicators.stories.js +++ b/packages/html/stories/Indicators.stories.js @@ -1,3 +1,20 @@ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2020, JGraph Ltd + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import { Graph, EdgeStyle, constants, KeyHandler } from '@maxgraph/core'; import { globalTypes } from '../.storybook/preview'; diff --git a/packages/html/stories/JsonData.stories.js b/packages/html/stories/JsonData.stories.js index 7da77020e..afb41e067 100644 --- a/packages/html/stories/JsonData.stories.js +++ b/packages/html/stories/JsonData.stories.js @@ -1,3 +1,20 @@ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2020, JGraph Ltd + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import { Graph, ObjectCodec, diff --git a/packages/html/stories/LabelPosition.stories.js b/packages/html/stories/LabelPosition.stories.js index b6391e025..0c76727af 100644 --- a/packages/html/stories/LabelPosition.stories.js +++ b/packages/html/stories/LabelPosition.stories.js @@ -1,3 +1,20 @@ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2020, JGraph Ltd + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import { Graph } from '@maxgraph/core'; import { globalTypes } from '../.storybook/preview'; diff --git a/packages/html/stories/Labels.stories.js b/packages/html/stories/Labels.stories.js index e397faf79..a4cd44655 100644 --- a/packages/html/stories/Labels.stories.js +++ b/packages/html/stories/Labels.stories.js @@ -1,3 +1,20 @@ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2020, JGraph Ltd + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import { Graph, RubberBandHandler, diff --git a/packages/html/stories/Layers.stories.js b/packages/html/stories/Layers.stories.js index d6137a5b0..dcdc06f4c 100644 --- a/packages/html/stories/Layers.stories.js +++ b/packages/html/stories/Layers.stories.js @@ -1,3 +1,20 @@ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2020, JGraph Ltd + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import { Graph, DomHelpers, Cell, GraphDataModel, Point } from '@maxgraph/core'; import { globalTypes } from '../.storybook/preview'; diff --git a/packages/html/stories/LoD.stories.js b/packages/html/stories/LoD.stories.js index fa37e540d..be232d6ef 100644 --- a/packages/html/stories/LoD.stories.js +++ b/packages/html/stories/LoD.stories.js @@ -1,3 +1,20 @@ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2020, JGraph Ltd + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import { Graph, DomHelpers } from '@maxgraph/core'; import { globalTypes } from '../.storybook/preview'; diff --git a/packages/html/stories/Markers.stories.js b/packages/html/stories/Markers.stories.js index 1eadac742..331fd8b14 100644 --- a/packages/html/stories/Markers.stories.js +++ b/packages/html/stories/Markers.stories.js @@ -1,3 +1,20 @@ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2020, JGraph Ltd + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import { Graph, EdgeHandler, diff --git a/packages/html/stories/Merge.stories.js b/packages/html/stories/Merge.stories.js index 913e4ff01..b7f02134b 100644 --- a/packages/html/stories/Merge.stories.js +++ b/packages/html/stories/Merge.stories.js @@ -1,3 +1,20 @@ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2020, JGraph Ltd + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import { Graph, Perimeter, constants, RubberBandHandler } from '@maxgraph/core'; import { globalTypes } from '../.storybook/preview'; diff --git a/packages/html/stories/Monitor.stories.js b/packages/html/stories/Monitor.stories.js index 0141d4454..244d2fb2f 100644 --- a/packages/html/stories/Monitor.stories.js +++ b/packages/html/stories/Monitor.stories.js @@ -1,3 +1,20 @@ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2020, JGraph Ltd + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import { Graph, EdgeStyle, diff --git a/packages/html/stories/Morph.stories.js b/packages/html/stories/Morph.stories.js index 6054c8be8..6c87d5f4a 100644 --- a/packages/html/stories/Morph.stories.js +++ b/packages/html/stories/Morph.stories.js @@ -1,3 +1,20 @@ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2020, JGraph Ltd + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import { Graph, DomHelpers, diff --git a/packages/html/stories/OffPage.stories.js b/packages/html/stories/OffPage.stories.js index 29cd320f8..30201a106 100644 --- a/packages/html/stories/OffPage.stories.js +++ b/packages/html/stories/OffPage.stories.js @@ -1,3 +1,20 @@ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2020, JGraph Ltd + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import { Graph, CellTracker, constants, InternalEvent } from '@maxgraph/core'; import { globalTypes } from '../.storybook/preview'; diff --git a/packages/html/stories/OrgChart.stories.js b/packages/html/stories/OrgChart.stories.js index 353fefbb2..53a6fec38 100644 --- a/packages/html/stories/OrgChart.stories.js +++ b/packages/html/stories/OrgChart.stories.js @@ -1,3 +1,20 @@ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2020, JGraph Ltd + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import { Graph, constants, diff --git a/packages/html/stories/Orthogonal.stories.js b/packages/html/stories/Orthogonal.stories.js index 3fbdd234f..42a4762c3 100644 --- a/packages/html/stories/Orthogonal.stories.js +++ b/packages/html/stories/Orthogonal.stories.js @@ -1,3 +1,20 @@ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2020, JGraph Ltd + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import { Graph, RubberBandHandler, diff --git a/packages/html/stories/Overlays.stories.js b/packages/html/stories/Overlays.stories.js index a7579024d..fbeebeece 100644 --- a/packages/html/stories/Overlays.stories.js +++ b/packages/html/stories/Overlays.stories.js @@ -1,3 +1,20 @@ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2020, JGraph Ltd + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import { Graph, CellOverlay, diff --git a/packages/html/stories/PageBreaks.stories.js b/packages/html/stories/PageBreaks.stories.js index 393c809a9..336c3dd62 100644 --- a/packages/html/stories/PageBreaks.stories.js +++ b/packages/html/stories/PageBreaks.stories.js @@ -1,3 +1,20 @@ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2020, JGraph Ltd + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import { Graph, Rectangle, diff --git a/packages/html/stories/Perimeter.stories.js b/packages/html/stories/Perimeter.stories.js index 889f370ab..08ded7f95 100644 --- a/packages/html/stories/Perimeter.stories.js +++ b/packages/html/stories/Perimeter.stories.js @@ -1,3 +1,20 @@ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2020, JGraph Ltd + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import { Graph, RubberBandHandler, GraphView, mathUtils } from '@maxgraph/core'; import { globalTypes } from '../.storybook/preview'; diff --git a/packages/html/stories/Permissions.stories.js b/packages/html/stories/Permissions.stories.js index a2ccd77f5..5676fc932 100644 --- a/packages/html/stories/Permissions.stories.js +++ b/packages/html/stories/Permissions.stories.js @@ -1,3 +1,20 @@ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2020, JGraph Ltd + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import { Graph, ConnectionHandler, diff --git a/packages/html/stories/PortRefs.stories.js b/packages/html/stories/PortRefs.stories.js index 68d5bcc29..154ae89d7 100644 --- a/packages/html/stories/PortRefs.stories.js +++ b/packages/html/stories/PortRefs.stories.js @@ -1,3 +1,20 @@ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2020, JGraph Ltd + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import { Graph, RubberBandHandler, diff --git a/packages/html/stories/RadialTreeLayout.stories.js b/packages/html/stories/RadialTreeLayout.stories.js index 185b9b182..bc6aed5a7 100644 --- a/packages/html/stories/RadialTreeLayout.stories.js +++ b/packages/html/stories/RadialTreeLayout.stories.js @@ -1,3 +1,20 @@ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2020, JGraph Ltd + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import { Graph, RubberBandHandler, diff --git a/packages/html/stories/SecondLabel.stories.js b/packages/html/stories/SecondLabel.stories.js index e2d978b11..ee6097ba3 100644 --- a/packages/html/stories/SecondLabel.stories.js +++ b/packages/html/stories/SecondLabel.stories.js @@ -1,3 +1,20 @@ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2020, JGraph Ltd + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import { Graph, RectangleShape, diff --git a/packages/html/stories/Shape.stories.js b/packages/html/stories/Shape.stories.js index 95f8798c0..a70fabfb3 100644 --- a/packages/html/stories/Shape.stories.js +++ b/packages/html/stories/Shape.stories.js @@ -1,3 +1,20 @@ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2020, JGraph Ltd + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import { Graph, CylinderShape, constants, CellRenderer } from '@maxgraph/core'; import { globalTypes } from '../.storybook/preview'; diff --git a/packages/html/stories/Stencils.stories.js b/packages/html/stories/Stencils.stories.js index b765f737b..69a724ea1 100644 --- a/packages/html/stories/Stencils.stories.js +++ b/packages/html/stories/Stencils.stories.js @@ -1,3 +1,20 @@ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2020, JGraph Ltd + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import { Graph, ConnectionHandler, diff --git a/packages/html/stories/Stylesheet.stories.js b/packages/html/stories/Stylesheet.stories.js index b30f7c3dc..cead0d7d4 100644 --- a/packages/html/stories/Stylesheet.stories.js +++ b/packages/html/stories/Stylesheet.stories.js @@ -1,3 +1,20 @@ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2020, JGraph Ltd + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import { Graph, Perimeter, constants, EdgeStyle } from '@maxgraph/core'; import { globalTypes } from '../.storybook/preview'; diff --git a/packages/html/stories/SwimLanes.stories.js b/packages/html/stories/SwimLanes.stories.js index 8ea9c62fe..54511e7b0 100644 --- a/packages/html/stories/SwimLanes.stories.js +++ b/packages/html/stories/SwimLanes.stories.js @@ -1,3 +1,20 @@ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2020, JGraph Ltd + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import { Editor, ConnectionHandler, diff --git a/packages/html/stories/Thread.stories.js b/packages/html/stories/Thread.stories.js index 7c32282ac..41a72acdf 100644 --- a/packages/html/stories/Thread.stories.js +++ b/packages/html/stories/Thread.stories.js @@ -1,3 +1,20 @@ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2020, JGraph Ltd + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import { Graph, Client } from '@maxgraph/core'; import { globalTypes } from '../.storybook/preview'; diff --git a/packages/html/stories/Toolbar.stories.js b/packages/html/stories/Toolbar.stories.js index 4c1bbba06..fb4172618 100644 --- a/packages/html/stories/Toolbar.stories.js +++ b/packages/html/stories/Toolbar.stories.js @@ -1,3 +1,20 @@ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2020, JGraph Ltd + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import { Graph, RubberBandHandler, diff --git a/packages/html/stories/Tree.stories.js b/packages/html/stories/Tree.stories.js index 84d89cab9..c4d8b79cf 100644 --- a/packages/html/stories/Tree.stories.js +++ b/packages/html/stories/Tree.stories.js @@ -1,3 +1,20 @@ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2020, JGraph Ltd + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import { Graph, CylinderShape, diff --git a/packages/html/stories/UserObject.stories.js b/packages/html/stories/UserObject.stories.js index 1a659a3f3..a2f30a2fe 100644 --- a/packages/html/stories/UserObject.stories.js +++ b/packages/html/stories/UserObject.stories.js @@ -1,3 +1,20 @@ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2020, JGraph Ltd + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import { Graph, Rectangle, diff --git a/packages/html/stories/Validation.stories.js b/packages/html/stories/Validation.stories.js index eb1096d8f..6c804f68d 100644 --- a/packages/html/stories/Validation.stories.js +++ b/packages/html/stories/Validation.stories.js @@ -1,3 +1,20 @@ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2020, JGraph Ltd + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import { Graph, RubberBandHandler, diff --git a/packages/html/stories/Visibility.stories.js b/packages/html/stories/Visibility.stories.js index 68bfc603f..c52102c91 100644 --- a/packages/html/stories/Visibility.stories.js +++ b/packages/html/stories/Visibility.stories.js @@ -1,3 +1,20 @@ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2020, JGraph Ltd + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import { Graph, RubberBandHandler, DomHelpers } from '@maxgraph/core'; import { globalTypes } from '../.storybook/preview'; diff --git a/packages/html/stories/Window.stories.js b/packages/html/stories/Window.stories.js index e3975d3c8..5dc8d472d 100644 --- a/packages/html/stories/Window.stories.js +++ b/packages/html/stories/Window.stories.js @@ -1,3 +1,20 @@ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2020, JGraph Ltd + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import { Graph, MaxWindow, diff --git a/packages/html/stories/Wrapping.stories.js b/packages/html/stories/Wrapping.stories.js index 6688aeae0..d0a219963 100644 --- a/packages/html/stories/Wrapping.stories.js +++ b/packages/html/stories/Wrapping.stories.js @@ -1,3 +1,20 @@ +/* +Copyright 2021-present The maxGraph project Contributors +Copyright (c) 2006-2020, JGraph Ltd + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import { Graph } from '@maxgraph/core'; import { globalTypes } from '../.storybook/preview'; diff --git a/packages/ts-example/src/custom-shapes.ts b/packages/ts-example/src/custom-shapes.ts index 3ca037e67..690aa039e 100644 --- a/packages/ts-example/src/custom-shapes.ts +++ b/packages/ts-example/src/custom-shapes.ts @@ -1,3 +1,19 @@ +/* +Copyright 2022-present The maxGraph project Contributors + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import {AbstractCanvas2D, CellRenderer, type ColorValue, EllipseShape, Rectangle, RectangleShape} from '@maxgraph/core'; export function registerCustomShapes(): void { diff --git a/packages/ts-example/src/main.ts b/packages/ts-example/src/main.ts index 23fefb994..f70114646 100644 --- a/packages/ts-example/src/main.ts +++ b/packages/ts-example/src/main.ts @@ -1,3 +1,19 @@ +/* +Copyright 2022-present The maxGraph project Contributors + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import './style.css'; import {type CellStyle, Client, Graph, InternalEvent, RubberBandHandler} from '@maxgraph/core'; import {registerCustomShapes} from "./custom-shapes"; diff --git a/packages/ts-example/src/style.css b/packages/ts-example/src/style.css index dcb56b86e..d93f13259 100644 --- a/packages/ts-example/src/style.css +++ b/packages/ts-example/src/style.css @@ -1,3 +1,19 @@ +/* +Copyright 2022-present The maxGraph project Contributors + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + body { font-family: Avenir, Helvetica, Arial, sans-serif; -webkit-font-smoothing: antialiased; diff --git a/scripts/dev.js b/scripts/dev.js index a39a08dad..d70497f59 100644 --- a/scripts/dev.js +++ b/scripts/dev.js @@ -1,3 +1,19 @@ +/* +Copyright 2021-present The maxGraph project Contributors + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + const {execSync} = require('child_process'); const inquirer = require('inquirer'); @@ -21,8 +37,8 @@ async function acquireScopeOptions() { name: 'package', message: 'Select a package to run.', choices: [ - new inquirer.Separator(), - ...getPackageNames(), + new inquirer.Separator(), + ...getPackageNames(), new inquirer.Separator() ] }