doc: update copyright and license in source file headers (#100)
Ensure that all source files contain the Apache-2.0 license and that the 'maxGraph Contributors' are mentioned.development
parent
ea9a6dd260
commit
f9d757548e
|
@ -1,7 +1,20 @@
|
||||||
/**
|
/*
|
||||||
* Copyright (c) 2006-2017, JGraph Ltd
|
Copyright 2021-present The maxGraph project Contributors
|
||||||
* Copyright (c) 2006-2017, Gaudenz Alder
|
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 {
|
class Client {
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1,7 +1,20 @@
|
||||||
/**
|
/*
|
||||||
* Copyright (c) 2006-2019, JGraph Ltd
|
Copyright 2021-present The maxGraph project Contributors
|
||||||
* Copyright (c) 2006-2019, draw.io AG
|
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 EditorPopupMenu from './EditorPopupMenu';
|
||||||
import UndoManager from '../view/undoable_changes/UndoManager';
|
import UndoManager from '../view/undoable_changes/UndoManager';
|
||||||
|
|
|
@ -1,9 +1,20 @@
|
||||||
/**
|
/*
|
||||||
* Copyright (c) 2006-2015, JGraph Ltd
|
Copyright 2021-present The maxGraph project Contributors
|
||||||
* Copyright (c) 2006-2015, Gaudenz Alder
|
Copyright (c) 2006-2015, JGraph Ltd
|
||||||
* Updated to ES9 syntax by David Morrissey 2021
|
Copyright (c) 2006-2015, Gaudenz Alder
|
||||||
* Type definitions from the typed-mxgraph project
|
|
||||||
*/
|
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 InternalEvent from '../view/event/InternalEvent';
|
||||||
import EventObject from '../view/event/EventObject';
|
import EventObject from '../view/event/EventObject';
|
||||||
|
|
|
@ -1,9 +1,21 @@
|
||||||
/**
|
/*
|
||||||
* Copyright (c) 2006-2015, JGraph Ltd
|
Copyright 2021-present The maxGraph project Contributors
|
||||||
* Copyright (c) 2006-2015, Gaudenz Alder
|
Copyright (c) 2006-2015, JGraph Ltd
|
||||||
* Updated to ES9 syntax by David Morrissey 2021
|
Copyright (c) 2006-2015, Gaudenz Alder
|
||||||
* Type definitions from the typed-mxgraph project
|
|
||||||
*/
|
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 Cell from '../view/cell/Cell';
|
||||||
import MaxPopupMenu from '../gui/MaxPopupMenu';
|
import MaxPopupMenu from '../gui/MaxPopupMenu';
|
||||||
import { getTextContent } from '../util/domUtils';
|
import { getTextContent } from '../util/domUtils';
|
||||||
|
@ -155,12 +167,12 @@ export class EditorPopupMenu {
|
||||||
* @param parent DOM node that represents the parent menu item.
|
* @param parent DOM node that represents the parent menu item.
|
||||||
*/
|
*/
|
||||||
addItems(
|
addItems(
|
||||||
editor: Editor,
|
editor: Editor,
|
||||||
menu: MaxPopupMenu,
|
menu: MaxPopupMenu,
|
||||||
cell: Cell | null=null,
|
cell: Cell | null=null,
|
||||||
evt: MouseEvent | null=null,
|
evt: MouseEvent | null=null,
|
||||||
conditions: any,
|
conditions: any,
|
||||||
item: Element,
|
item: Element,
|
||||||
parent: PopupMenuItem | null=null
|
parent: PopupMenuItem | null=null
|
||||||
) {
|
) {
|
||||||
let addSeparator = false;
|
let addSeparator = false;
|
||||||
|
|
|
@ -1,9 +1,20 @@
|
||||||
/**
|
/*
|
||||||
* Copyright (c) 2006-2015, JGraph Ltd
|
Copyright 2021-present The maxGraph project Contributors
|
||||||
* Copyright (c) 2006-2015, Gaudenz Alder
|
Copyright (c) 2006-2015, JGraph Ltd
|
||||||
* Updated to ES9 syntax by David Morrissey 2021
|
Copyright (c) 2006-2015, Gaudenz Alder
|
||||||
* Type definitions from the typed-mxgraph project
|
|
||||||
*/
|
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 Client from '../Client';
|
||||||
import MaxToolbar from '../gui/MaxToolbar';
|
import MaxToolbar from '../gui/MaxToolbar';
|
||||||
|
|
|
@ -1,9 +1,20 @@
|
||||||
/**
|
/*
|
||||||
* Copyright (c) 2006-2015, JGraph Ltd
|
Copyright 2021-present The maxGraph project Contributors
|
||||||
* Copyright (c) 2006-2015, Gaudenz Alder
|
Copyright (c) 2006-2015, JGraph Ltd
|
||||||
* Updated to ES9 syntax by David Morrissey 2021
|
Copyright (c) 2006-2015, Gaudenz Alder
|
||||||
* Type definitions from the typed-mxgraph project
|
|
||||||
*/
|
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 Client from '../Client';
|
||||||
import InternalEvent from '../view/event/InternalEvent';
|
import InternalEvent from '../view/event/InternalEvent';
|
||||||
|
|
|
@ -1,9 +1,20 @@
|
||||||
/**
|
/*
|
||||||
* Copyright (c) 2006-2015, JGraph Ltd
|
Copyright 2021-present The maxGraph project Contributors
|
||||||
* Copyright (c) 2006-2015, Gaudenz Alder
|
Copyright (c) 2006-2015, JGraph Ltd
|
||||||
* Updated to ES9 syntax by David Morrissey 2021
|
Copyright (c) 2006-2015, Gaudenz Alder
|
||||||
* Type definitions from the typed-mxgraph project
|
|
||||||
*/
|
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 Client from '../Client';
|
||||||
import InternalEvent from '../view/event/InternalEvent';
|
import InternalEvent from '../view/event/InternalEvent';
|
||||||
|
|
|
@ -1,9 +1,21 @@
|
||||||
/**
|
/*
|
||||||
* Copyright (c) 2006-2015, JGraph Ltd
|
Copyright 2021-present The maxGraph project Contributors
|
||||||
* Copyright (c) 2006-2015, Gaudenz Alder
|
Copyright (c) 2006-2015, JGraph Ltd
|
||||||
* Updated to ES9 syntax by David Morrissey 2021
|
Copyright (c) 2006-2015, Gaudenz Alder
|
||||||
* Type definitions from the typed-mxgraph project
|
|
||||||
*/
|
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 EventSource from '../view/event/EventSource';
|
||||||
import { fit, getDocumentScrollOrigin } from '../util/styleUtils';
|
import { fit, getDocumentScrollOrigin } from '../util/styleUtils';
|
||||||
import EventObject from '../view/event/EventObject';
|
import EventObject from '../view/event/EventObject';
|
||||||
|
@ -382,7 +394,7 @@ class MaxPopupMenu extends EventSource implements Partial<PopupMenuItem> {
|
||||||
* @param force Optional boolean to ignore <smartSeparators>. Default is false.
|
* @param force Optional boolean to ignore <smartSeparators>. Default is false.
|
||||||
*/
|
*/
|
||||||
addSeparator(parent: PopupMenuItem | null=null, force = 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
|
// all the necessary DOM elements are present as in PopupMenuItem
|
||||||
parent = <PopupMenuItem>(parent || this);
|
parent = <PopupMenuItem>(parent || this);
|
||||||
|
|
||||||
|
|
|
@ -1,9 +1,20 @@
|
||||||
/**
|
/*
|
||||||
* Copyright (c) 2006-2015, JGraph Ltd
|
Copyright 2021-present The maxGraph project Contributors
|
||||||
* Copyright (c) 2006-2015, Gaudenz Alder
|
Copyright (c) 2006-2015, JGraph Ltd
|
||||||
* Updated to ES9 syntax by David Morrissey 2021
|
Copyright (c) 2006-2015, Gaudenz Alder
|
||||||
* Type definitions from the typed-mxgraph project
|
|
||||||
*/
|
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 InternalEvent from '../view/event/InternalEvent';
|
||||||
import Point from '../view/geometry/Point';
|
import Point from '../view/geometry/Point';
|
||||||
|
|
|
@ -1,9 +1,20 @@
|
||||||
/**
|
/*
|
||||||
* Copyright (c) 2006-2015, JGraph Ltd
|
Copyright 2021-present The maxGraph project Contributors
|
||||||
* Copyright (c) 2006-2015, Gaudenz Alder
|
Copyright (c) 2006-2015, JGraph Ltd
|
||||||
* Updated to ES9 syntax by David Morrissey 2021
|
Copyright (c) 2006-2015, Gaudenz Alder
|
||||||
* Type definitions from the typed-mxgraph project
|
|
||||||
*/
|
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 Rectangle from '../view/geometry/Rectangle';
|
||||||
import EventObject from '../view/event/EventObject';
|
import EventObject from '../view/event/EventObject';
|
||||||
|
|
|
@ -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 */
|
/* Graph mixins */
|
||||||
import './view/mixins/PortsMixin';
|
import './view/mixins/PortsMixin';
|
||||||
import './view/mixins/PanningMixin';
|
import './view/mixins/PanningMixin';
|
||||||
|
|
|
@ -1,9 +1,20 @@
|
||||||
/**
|
/*
|
||||||
* Copyright (c) 2006-2015, JGraph Ltd
|
Copyright 2021-present The maxGraph project Contributors
|
||||||
* Copyright (c) 2006-2015, Gaudenz Alder
|
Copyright (c) 2006-2015, JGraph Ltd
|
||||||
* Updated to ES9 syntax by David Morrissey 2021
|
Copyright (c) 2006-2015, Gaudenz Alder
|
||||||
* Type definitions from the typed-mxgraph project
|
|
||||||
*/
|
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 CellPath from '../view/cell/CellPath';
|
||||||
import CodecRegistry from './CodecRegistry';
|
import CodecRegistry from './CodecRegistry';
|
||||||
|
|
|
@ -1,9 +1,20 @@
|
||||||
/**
|
/*
|
||||||
* Copyright (c) 2006-2015, JGraph Ltd
|
Copyright 2021-present The maxGraph project Contributors
|
||||||
* Copyright (c) 2006-2015, Gaudenz Alder
|
Copyright (c) 2006-2015, JGraph Ltd
|
||||||
* Updated to ES9 syntax by David Morrissey 2021
|
Copyright (c) 2006-2015, Gaudenz Alder
|
||||||
* Type definitions from the typed-mxgraph project
|
|
||||||
*/
|
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';
|
import ObjectCodec from './ObjectCodec';
|
||||||
|
|
||||||
|
|
|
@ -1,9 +1,20 @@
|
||||||
/**
|
/*
|
||||||
* Copyright (c) 2006-2015, JGraph Ltd
|
Copyright 2021-present The maxGraph project Contributors
|
||||||
* Copyright (c) 2006-2015, Gaudenz Alder
|
Copyright (c) 2006-2015, JGraph Ltd
|
||||||
* Updated to ES9 syntax by David Morrissey 2021
|
Copyright (c) 2006-2015, Gaudenz Alder
|
||||||
* Type definitions from the typed-mxgraph project
|
|
||||||
*/
|
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 ObjectIdentity from '../util/ObjectIdentity';
|
||||||
import MaxLog from '../gui/MaxLog';
|
import MaxLog from '../gui/MaxLog';
|
||||||
|
|
|
@ -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 { DIRECTION } from './util/Constants';
|
||||||
import type Cell from './view/cell/Cell';
|
import type Cell from './view/cell/Cell';
|
||||||
import type CellState from './view/cell/CellState';
|
import type CellState from './view/cell/CellState';
|
||||||
|
|
|
@ -1,9 +1,20 @@
|
||||||
/**
|
/*
|
||||||
* Copyright (c) 2006-2015, JGraph Ltd
|
Copyright 2021-present The maxGraph project Contributors
|
||||||
* Copyright (c) 2006-2015, Gaudenz Alder
|
Copyright (c) 2006-2015, JGraph Ltd
|
||||||
* Updated to ES9 syntax by David Morrissey 2021
|
Copyright (c) 2006-2015, Gaudenz Alder
|
||||||
* Type definitions from the typed-mxgraph project
|
|
||||||
*/
|
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 { Graph } from '../view/Graph';
|
||||||
import CellArray from '../view/cell/CellArray';
|
import CellArray from '../view/cell/CellArray';
|
||||||
|
|
|
@ -1,9 +1,20 @@
|
||||||
/**
|
/*
|
||||||
* Copyright (c) 2006-2015, JGraph Ltd
|
Copyright 2021-present The maxGraph project Contributors
|
||||||
* Copyright (c) 2006-2015, Gaudenz Alder
|
Copyright (c) 2006-2015, JGraph Ltd
|
||||||
* Updated to ES9 syntax by David Morrissey 2021
|
Copyright (c) 2006-2015, Gaudenz Alder
|
||||||
* Type definitions from the typed-mxgraph project
|
|
||||||
*/
|
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
|
* 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 = 'block',
|
||||||
BLOCK_THIN = 'blockThin',
|
BLOCK_THIN = 'blockThin',
|
||||||
OPEN = 'open',
|
OPEN = 'open',
|
||||||
OPEN_THIN = 'openThin',
|
OPEN_THIN = 'openThin',
|
||||||
OVAL = 'oval',
|
OVAL = 'oval',
|
||||||
DIAMOND = 'diamond',
|
DIAMOND = 'diamond',
|
||||||
DIAMOND_THIN = 'diamondThin',
|
DIAMOND_THIN = 'diamondThin',
|
||||||
|
@ -528,7 +539,7 @@ export const enum DIRECTION {
|
||||||
*
|
*
|
||||||
* Constant for text direction left to right. Default is ltr. Use this
|
* Constant for text direction left to right. Default is ltr. Use this
|
||||||
* value for left to right text direction.
|
* value for left to right text direction.
|
||||||
*
|
*
|
||||||
* Constant for text direction right to left. Default is rtl. Use this
|
* Constant for text direction right to left. Default is rtl. Use this
|
||||||
* value for right to left text direction.
|
* 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}.
|
* Name under which {@link Triangle} is registered in {@link CellRenderer}.
|
||||||
* Default is triangle.
|
* Default is triangle.
|
||||||
*/
|
*/
|
||||||
TRIANGLE = 'triangle',
|
TRIANGLE = 'triangle',
|
||||||
|
|
||||||
|
|
|
@ -1,9 +1,20 @@
|
||||||
/**
|
/*
|
||||||
* Copyright (c) 2006-2015, JGraph Ltd
|
Copyright 2021-present The maxGraph project Contributors
|
||||||
* Copyright (c) 2006-2015, Gaudenz Alder
|
Copyright (c) 2006-2015, JGraph Ltd
|
||||||
* Updated to ES9 syntax by David Morrissey 2021
|
Copyright (c) 2006-2015, Gaudenz Alder
|
||||||
* Type definitions from the typed-mxgraph project
|
|
||||||
*/
|
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';
|
import ObjectIdentity from './ObjectIdentity';
|
||||||
|
|
||||||
|
|
|
@ -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';
|
import Client from '../Client';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns the touch or mouse event that contains the mouse coordinates.
|
||||||
|
*/
|
||||||
export const getMainEvent = (evt: MouseEvent) => {
|
export const getMainEvent = (evt: MouseEvent) => {
|
||||||
let t = evt as any;
|
let t = evt as any;
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,21 @@
|
||||||
/**
|
/*
|
||||||
* Copyright (c) 2006-2020, JGraph Ltd
|
Copyright 2021-present The maxGraph project Contributors
|
||||||
* Copyright (c) 2006-2020, draw.io AG
|
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';
|
import { write } from './domUtils';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -70,11 +84,11 @@ import { write } from './domUtils';
|
||||||
*/
|
*/
|
||||||
class MaxXmlRequest {
|
class MaxXmlRequest {
|
||||||
constructor(
|
constructor(
|
||||||
url: string,
|
url: string,
|
||||||
params: string | null=null,
|
params: string | null=null,
|
||||||
method: 'GET' | 'POST'='POST',
|
method: 'GET' | 'POST'='POST',
|
||||||
async: boolean=true,
|
async: boolean=true,
|
||||||
username: string | null=null,
|
username: string | null=null,
|
||||||
password: string | null=null
|
password: string | null=null
|
||||||
) {
|
) {
|
||||||
this.url = url;
|
this.url = url;
|
||||||
|
@ -237,9 +251,9 @@ class MaxXmlRequest {
|
||||||
* @param ontimeout Optional function to execute on timeout.
|
* @param ontimeout Optional function to execute on timeout.
|
||||||
*/
|
*/
|
||||||
send(
|
send(
|
||||||
onload: Function | null=null,
|
onload: Function | null=null,
|
||||||
onerror: Function | null=null,
|
onerror: Function | null=null,
|
||||||
timeout: number | null=null,
|
timeout: number | null=null,
|
||||||
ontimeout: Function | null=null
|
ontimeout: Function | null=null
|
||||||
): void {
|
): void {
|
||||||
this.request = this.create();
|
this.request = this.create();
|
||||||
|
@ -442,12 +456,12 @@ export const load = (url: string) => {
|
||||||
* @param headers Optional with headers, eg. {'Authorization': 'token xyz'}
|
* @param headers Optional with headers, eg. {'Authorization': 'token xyz'}
|
||||||
*/
|
*/
|
||||||
export const get = (
|
export const get = (
|
||||||
url: string,
|
url: string,
|
||||||
onload: Function | null=null,
|
onload: Function | null=null,
|
||||||
onerror: Function | null=null,
|
onerror: Function | null=null,
|
||||||
binary: boolean=false,
|
binary: boolean=false,
|
||||||
timeout: number | null=null,
|
timeout: number | null=null,
|
||||||
ontimeout: Function | null=null,
|
ontimeout: Function | null=null,
|
||||||
headers: { [key: string]: string } | null=null
|
headers: { [key: string]: string } | null=null
|
||||||
) => {
|
) => {
|
||||||
const req = new MaxXmlRequest(url, null, 'GET');
|
const req = new MaxXmlRequest(url, null, 'GET');
|
||||||
|
@ -480,8 +494,8 @@ export const get = (
|
||||||
* @param onerror Optional function to execute on error.
|
* @param onerror Optional function to execute on error.
|
||||||
*/
|
*/
|
||||||
export const getAll = (
|
export const getAll = (
|
||||||
urls: string[],
|
urls: string[],
|
||||||
onload: (arg0: any) => void,
|
onload: (arg0: any) => void,
|
||||||
onerror: () => void
|
onerror: () => void
|
||||||
) => {
|
) => {
|
||||||
let remain = urls.length;
|
let remain = urls.length;
|
||||||
|
@ -545,9 +559,9 @@ export const getAll = (
|
||||||
* @param onerror Optional function to execute on error.
|
* @param onerror Optional function to execute on error.
|
||||||
*/
|
*/
|
||||||
export const post = (
|
export const post = (
|
||||||
url: string,
|
url: string,
|
||||||
params: string | null=null,
|
params: string | null=null,
|
||||||
onload: Function,
|
onload: Function,
|
||||||
onerror: Function | null=null
|
onerror: Function | null=null
|
||||||
) => {
|
) => {
|
||||||
return new MaxXmlRequest(url, params).send(onload, onerror);
|
return new MaxXmlRequest(url, params).send(onload, onerror);
|
||||||
|
|
|
@ -1,9 +1,20 @@
|
||||||
/**
|
/*
|
||||||
* Copyright (c) 2006-2015, JGraph Ltd
|
Copyright 2021-present The maxGraph project Contributors
|
||||||
* Copyright (c) 2006-2015, Gaudenz Alder
|
Copyright (c) 2006-2015, JGraph Ltd
|
||||||
* Updated to ES9 syntax by David Morrissey 2021
|
Copyright (c) 2006-2015, Gaudenz Alder
|
||||||
* Type definitions from the typed-mxgraph project
|
|
||||||
*/
|
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';
|
import { getFunctionName } from './StringUtils';
|
||||||
|
|
||||||
|
|
|
@ -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 {
|
import {
|
||||||
NODETYPE,
|
NODETYPE,
|
||||||
NONE,
|
NONE,
|
||||||
|
@ -6,7 +22,6 @@ import { getTextContent } from './domUtils';
|
||||||
|
|
||||||
import type { Properties } from '../types';
|
import type { Properties } from '../types';
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Strips all whitespaces from the beginning of the string. Without the
|
* Strips all whitespaces from the beginning of the string. Without the
|
||||||
* second parameter, this will trim these characters:
|
* second parameter, this will trim these characters:
|
||||||
|
|
|
@ -1,7 +1,21 @@
|
||||||
/**
|
/*
|
||||||
* Copyright (c) 2006-2016, JGraph Ltd
|
Copyright 2021-present The maxGraph project Contributors
|
||||||
* Copyright (c) 2006-2016, Gaudenz Alder
|
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 Client from '../Client';
|
||||||
import { NONE } from './Constants';
|
import { NONE } from './Constants';
|
||||||
import MaxXmlRequest, { get, load } from './MaxXmlRequest';
|
import MaxXmlRequest, { get, load } from './MaxXmlRequest';
|
||||||
|
|
|
@ -1,9 +1,20 @@
|
||||||
/**
|
/*
|
||||||
* Copyright (c) 2006-2015, JGraph Ltd
|
Copyright 2021-present The maxGraph project Contributors
|
||||||
* Copyright (c) 2006-2015, Gaudenz Alder
|
Copyright (c) 2006-2015, JGraph Ltd
|
||||||
* Updated to ES9 syntax by David Morrissey 2021
|
Copyright (c) 2006-2015, Gaudenz Alder
|
||||||
* Type definitions from the typed-mxgraph project
|
|
||||||
*/
|
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.
|
* Converts relative and absolute URLs to absolute URLs with protocol and domain.
|
||||||
|
|
|
@ -1,9 +1,20 @@
|
||||||
/**
|
/*
|
||||||
* Copyright (c) 2006-2015, JGraph Ltd
|
Copyright 2021-present The maxGraph project Contributors
|
||||||
* Copyright (c) 2006-2015, Gaudenz Alder
|
Copyright (c) 2006-2015, JGraph Ltd
|
||||||
* Updated to ES9 syntax by David Morrissey 2021
|
Copyright (c) 2006-2015, Gaudenz Alder
|
||||||
* Type definitions from the typed-mxgraph project
|
|
||||||
*/
|
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.
|
* A singleton class that provides cross-browser helper methods.
|
||||||
|
@ -20,7 +31,7 @@
|
||||||
* ```
|
* ```
|
||||||
*/
|
*/
|
||||||
export const utils = {
|
export const utils = {
|
||||||
/*
|
/*
|
||||||
* Specifies the resource key for the title of the error window. If the
|
* 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
|
* resource for this key does not exist then the value is used as
|
||||||
* the title. Default is 'error'.
|
* the title. Default is 'error'.
|
||||||
|
@ -93,7 +104,7 @@ export const copyTextToClipboard = (text: string): void => {
|
||||||
const fallbackCopyTextToClipboard = (text: string):void => {
|
const fallbackCopyTextToClipboard = (text: string):void => {
|
||||||
var textArea = document.createElement("textarea");
|
var textArea = document.createElement("textarea");
|
||||||
textArea.value = text;
|
textArea.value = text;
|
||||||
|
|
||||||
// Avoid scrolling to bottom
|
// Avoid scrolling to bottom
|
||||||
textArea.style.top = "0";
|
textArea.style.top = "0";
|
||||||
textArea.style.left = "0";
|
textArea.style.left = "0";
|
||||||
|
|
|
@ -1,9 +1,21 @@
|
||||||
/**
|
/*
|
||||||
* Copyright (c) 2006-2015, JGraph Ltd
|
Copyright 2021-present The maxGraph project Contributors
|
||||||
* Copyright (c) 2006-2015, Gaudenz Alder
|
Copyright (c) 2006-2015, JGraph Ltd
|
||||||
* Updated to ES9 syntax by David Morrissey 2021
|
Copyright (c) 2006-2015, Gaudenz Alder
|
||||||
* Type definitions from the typed-mxgraph project
|
|
||||||
*/
|
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 Point from '../view/geometry/Point';
|
||||||
import Dictionary from './Dictionary';
|
import Dictionary from './Dictionary';
|
||||||
|
|
||||||
|
|
|
@ -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';
|
import ObjectIdentity from './ObjectIdentity';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -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 Editor from '../editor/Editor';
|
||||||
import { KeyboardEventListener, MouseEventListener } from '../types';
|
import { KeyboardEventListener, MouseEventListener } from '../types';
|
||||||
import InternalEvent from "../view/event/InternalEvent";
|
import InternalEvent from "../view/event/InternalEvent";
|
||||||
|
|
|
@ -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';
|
import { NODETYPE } from './Constants';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -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 DragSource, { DropHandler } from '../view/other/DragSource';
|
||||||
import Point from '../view/geometry/Point';
|
import Point from '../view/geometry/Point';
|
||||||
import { TOOLTIP_VERTICAL_OFFSET } from './Constants';
|
import { TOOLTIP_VERTICAL_OFFSET } from './Constants';
|
||||||
|
|
|
@ -1,9 +1,21 @@
|
||||||
/**
|
/*
|
||||||
* Copyright (c) 2006-2015, JGraph Ltd
|
Copyright 2021-present The maxGraph project Contributors
|
||||||
* Copyright (c) 2006-2015, Gaudenz Alder
|
Copyright (c) 2006-2015, JGraph Ltd
|
||||||
* Updated to ES9 syntax by David Morrissey 2021
|
Copyright (c) 2006-2015, Gaudenz Alder
|
||||||
* Type definitions from the typed-mxgraph project
|
|
||||||
*/
|
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 { DIRECTION, DIRECTION_MASK } from './Constants';
|
||||||
import Point from '../view/geometry/Point';
|
import Point from '../view/geometry/Point';
|
||||||
import Rectangle from '../view/geometry/Rectangle';
|
import Rectangle from '../view/geometry/Rectangle';
|
||||||
|
|
|
@ -1,9 +1,21 @@
|
||||||
/**
|
/*
|
||||||
* Copyright (c) 2006-2015, JGraph Ltd
|
Copyright 2021-present The maxGraph project Contributors
|
||||||
* Copyright (c) 2006-2015, Gaudenz Alder
|
Copyright (c) 2006-2015, JGraph Ltd
|
||||||
* Updated to ES9 syntax by David Morrissey 2021
|
Copyright (c) 2006-2015, Gaudenz Alder
|
||||||
* Type definitions from the typed-mxgraph project
|
|
||||||
*/
|
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 Client from '../Client';
|
||||||
import { PAGE_FORMAT_A4_PORTRAIT } from './Constants';
|
import { PAGE_FORMAT_A4_PORTRAIT } from './Constants';
|
||||||
import Rectangle from '../view/geometry/Rectangle';
|
import Rectangle from '../view/geometry/Rectangle';
|
||||||
|
|
|
@ -1,9 +1,21 @@
|
||||||
/**
|
/*
|
||||||
* Copyright (c) 2006-2015, JGraph Ltd
|
Copyright 2021-present The maxGraph project Contributors
|
||||||
* Copyright (c) 2006-2015, Gaudenz Alder
|
Copyright (c) 2006-2015, JGraph Ltd
|
||||||
* Updated to ES9 syntax by David Morrissey 2021
|
Copyright (c) 2006-2015, Gaudenz Alder
|
||||||
* Type definitions from the typed-mxgraph project
|
|
||||||
*/
|
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 Client from '../Client';
|
||||||
import {
|
import {
|
||||||
ALIGN,
|
ALIGN,
|
||||||
|
|
|
@ -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 Cell from '../view/cell/Cell';
|
||||||
import CellArray from '../view/cell/CellArray';
|
import CellArray from '../view/cell/CellArray';
|
||||||
import Dictionary from './Dictionary';
|
import Dictionary from './Dictionary';
|
||||||
|
|
|
@ -1,10 +1,22 @@
|
||||||
|
|
||||||
/**
|
/*
|
||||||
* Copyright (c) 2006-2015, JGraph Ltd
|
Copyright 2021-present The maxGraph project Contributors
|
||||||
* Copyright (c) 2006-2015, Gaudenz Alder
|
Copyright (c) 2006-2015, JGraph Ltd
|
||||||
* Updated to ES9 syntax by David Morrissey 2021
|
Copyright (c) 2006-2015, Gaudenz Alder
|
||||||
* Type definitions from the typed-mxgraph project
|
|
||||||
*/
|
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 { DIALECT, NODETYPE, NS_SVG } from './Constants';
|
||||||
import Point from '../view/geometry/Point';
|
import Point from '../view/geometry/Point';
|
||||||
import Cell from '../view/cell/Cell';
|
import Cell from '../view/cell/Cell';
|
||||||
|
|
|
@ -1,9 +1,20 @@
|
||||||
/**
|
/*
|
||||||
* Copyright (c) 2006-2015, JGraph Ltd
|
Copyright 2021-present The maxGraph project Contributors
|
||||||
* Copyright (c) 2006-2015, Gaudenz Alder
|
Copyright (c) 2006-2015, JGraph Ltd
|
||||||
* Updated to ES9 syntax by David Morrissey 2021
|
Copyright (c) 2006-2015, Gaudenz Alder
|
||||||
* Type definitions from the typed-mxgraph project
|
|
||||||
*/
|
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 Image from './image/ImageBox';
|
||||||
import EventObject from './event/EventObject';
|
import EventObject from './event/EventObject';
|
||||||
|
|
|
@ -1,9 +1,21 @@
|
||||||
/**
|
/*
|
||||||
* Copyright (c) 2006-2018, JGraph Ltd
|
Copyright 2021-present The maxGraph project Contributors
|
||||||
* Copyright (c) 2006-2018, Gaudenz Alder
|
Copyright (c) 2006-2018, JGraph Ltd
|
||||||
* Updated to ES9 syntax by David Morrissey 2021
|
Copyright (c) 2006-2018, Gaudenz Alder
|
||||||
* Type definitions from the typed-mxgraph project
|
|
||||||
*/
|
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 EventSource from './event/EventSource';
|
||||||
import UndoableEdit from './undoable_changes/UndoableEdit';
|
import UndoableEdit from './undoable_changes/UndoableEdit';
|
||||||
import CellPath from './cell/CellPath';
|
import CellPath from './cell/CellPath';
|
||||||
|
|
|
@ -1,7 +1,20 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2006-2015, JGraph Ltd
|
Copyright 2021-present The maxGraph project Contributors
|
||||||
* Copyright (c) 2006-2015, Gaudenz Alder
|
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 Client from "../Client";
|
||||||
import CellArray from "./cell/CellArray"
|
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
|
* Implements the selection model for a graph. Here is a listener that handles
|
||||||
* all removed selection cells.
|
* all removed selection cells.
|
||||||
*
|
*
|
||||||
* (code)
|
* (code)
|
||||||
* graph.getSelectionModel().addListener(mxEvent.CHANGE, function(sender, evt)
|
* graph.getSelectionModel().addListener(mxEvent.CHANGE, function(sender, evt)
|
||||||
* {
|
* {
|
||||||
* var cells = evt.getProperty('added');
|
* var cells = evt.getProperty('added');
|
||||||
*
|
*
|
||||||
* for (var i = 0; i < cells.length; i++)
|
* for (var i = 0; i < cells.length; i++)
|
||||||
* {
|
* {
|
||||||
* // Handle cells[i]...
|
* // Handle cells[i]...
|
||||||
* }
|
* }
|
||||||
* });
|
* });
|
||||||
* (end)
|
* (end)
|
||||||
*
|
*
|
||||||
* Event: mxEvent.UNDO
|
* Event: mxEvent.UNDO
|
||||||
*
|
*
|
||||||
* Fires after the selection was changed in <changeSelection>. The
|
* Fires after the selection was changed in <changeSelection>. The
|
||||||
* <code>edit</code> property contains the {@link UndoableEdit} which contains the
|
* <code>edit</code> property contains the {@link UndoableEdit} which contains the
|
||||||
* {@link SelectionChange}.
|
* {@link SelectionChange}.
|
||||||
*
|
*
|
||||||
* Event: mxEvent.CHANGE
|
* Event: mxEvent.CHANGE
|
||||||
*
|
*
|
||||||
* Fires after the selection changes by executing an {@link SelectionChange}. The
|
* Fires after the selection changes by executing an {@link SelectionChange}. The
|
||||||
* <code>added</code> and <code>removed</code> properties contain arrays of
|
* <code>added</code> and <code>removed</code> properties contain arrays of
|
||||||
* cells that have been added to or removed from the selection, respectively.
|
* cells that have been added to or removed from the selection, respectively.
|
||||||
* The names are inverted due to historic reasons. This cannot be changed.
|
* The names are inverted due to historic reasons. This cannot be changed.
|
||||||
*
|
*
|
||||||
* Constructor: mxGraphSelectionModel
|
* Constructor: mxGraphSelectionModel
|
||||||
*
|
*
|
||||||
* Constructs a new graph selection model for the given {@link Graph}.
|
* Constructs a new graph selection model for the given {@link Graph}.
|
||||||
*
|
*
|
||||||
* Parameters:
|
* Parameters:
|
||||||
*
|
*
|
||||||
* graph - Reference to the enclosing {@link Graph}.
|
* graph - Reference to the enclosing {@link Graph}.
|
||||||
*/
|
*/
|
||||||
class GraphSelectionModel extends EventSource {
|
class GraphSelectionModel extends EventSource {
|
||||||
|
@ -75,7 +88,7 @@ class GraphSelectionModel extends EventSource {
|
||||||
* value is used as the status message. Default is 'updatingSelection'.
|
* value is used as the status message. Default is 'updatingSelection'.
|
||||||
*/
|
*/
|
||||||
updatingSelectionResource = Client.language !== 'none' ? 'updatingSelection' : '';
|
updatingSelectionResource = Client.language !== 'none' ? 'updatingSelection' : '';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Specifies if only one selected item at a time is allowed.
|
* Specifies if only one selected item at a time is allowed.
|
||||||
* Default is false.
|
* Default is false.
|
||||||
|
@ -98,7 +111,7 @@ class GraphSelectionModel extends EventSource {
|
||||||
setSingleSelection(singleSelection: boolean) {
|
setSingleSelection(singleSelection: boolean) {
|
||||||
this.singleSelection = singleSelection;
|
this.singleSelection = singleSelection;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns true if the given {@link Cell} is selected.
|
* Returns true if the given {@link Cell} is selected.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -1,9 +1,20 @@
|
||||||
/**
|
/*
|
||||||
* Copyright (c) 2006-2015, JGraph Ltd
|
Copyright 2021-present The maxGraph project Contributors
|
||||||
* Copyright (c) 2006-2015, Gaudenz Alder
|
Copyright (c) 2006-2015, JGraph Ltd
|
||||||
* Updated to ES9 syntax by David Morrissey 2021
|
Copyright (c) 2006-2015, Gaudenz Alder
|
||||||
* Type definitions from the typed-mxgraph project
|
|
||||||
*/
|
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 Point from './geometry/Point';
|
||||||
import Rectangle from './geometry/Rectangle';
|
import Rectangle from './geometry/Rectangle';
|
||||||
|
|
|
@ -1,9 +1,21 @@
|
||||||
/**
|
/*
|
||||||
* Copyright (c) 2006-2015, JGraph Ltd
|
Copyright 2021-present The maxGraph project Contributors
|
||||||
* Copyright (c) 2006-2015, Gaudenz Alder
|
Copyright (c) 2006-2015, JGraph Ltd
|
||||||
* Updated to ES9 syntax by David Morrissey 2021
|
Copyright (c) 2006-2015, Gaudenz Alder
|
||||||
* Type definitions from the typed-mxgraph project
|
|
||||||
*/
|
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 EventSource from '../event/EventSource';
|
||||||
import EventObject from '../event/EventObject';
|
import EventObject from '../event/EventObject';
|
||||||
import InternalEvent from '../event/InternalEvent';
|
import InternalEvent from '../event/InternalEvent';
|
||||||
|
|
|
@ -1,9 +1,21 @@
|
||||||
/**
|
/*
|
||||||
* Copyright (c) 2006-2015, JGraph Ltd
|
Copyright 2021-present The maxGraph project Contributors
|
||||||
* Copyright (c) 2006-2015, Gaudenz Alder
|
Copyright (c) 2006-2015, JGraph Ltd
|
||||||
* Updated to ES9 syntax by David Morrissey 2021
|
Copyright (c) 2006-2015, Gaudenz Alder
|
||||||
* Type definitions from the typed-mxgraph project
|
|
||||||
*/
|
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 { setOpacity } from '../../util/styleUtils';
|
||||||
import GeometryChange from '../undoable_changes/GeometryChange';
|
import GeometryChange from '../undoable_changes/GeometryChange';
|
||||||
import TerminalChange from '../undoable_changes/TerminalChange';
|
import TerminalChange from '../undoable_changes/TerminalChange';
|
||||||
|
|
|
@ -1,9 +1,21 @@
|
||||||
/**
|
/*
|
||||||
* Copyright (c) 2006-2015, JGraph Ltd
|
Copyright 2021-present The maxGraph project Contributors
|
||||||
* Copyright (c) 2006-2015, Gaudenz Alder
|
Copyright (c) 2006-2015, JGraph Ltd
|
||||||
* Updated to ES9 syntax by David Morrissey 2021
|
Copyright (c) 2006-2015, Gaudenz Alder
|
||||||
* Type definitions from the typed-mxgraph project
|
|
||||||
*/
|
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 Point from '../geometry/Point';
|
||||||
import CellStatePreview from '../cell/CellStatePreview';
|
import CellStatePreview from '../cell/CellStatePreview';
|
||||||
import Animation from './Animation';
|
import Animation from './Animation';
|
||||||
|
|
|
@ -1,9 +1,21 @@
|
||||||
/**
|
/*
|
||||||
* Copyright (c) 2006-2015, JGraph Ltd
|
Copyright 2021-present The maxGraph project Contributors
|
||||||
* Copyright (c) 2006-2015, Gaudenz Alder
|
Copyright (c) 2006-2015, JGraph Ltd
|
||||||
* Updated to ES9 syntax by David Morrissey 2021
|
Copyright (c) 2006-2015, Gaudenz Alder
|
||||||
* Type definitions from the typed-mxgraph project
|
|
||||||
*/
|
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 { arcToCurves, getRotatedPoint } from '../../util/mathUtils';
|
||||||
import {
|
import {
|
||||||
DEFAULT_FONTFAMILY,
|
DEFAULT_FONTFAMILY,
|
||||||
|
|
|
@ -1,9 +1,20 @@
|
||||||
/**
|
/*
|
||||||
* Copyright (c) 2006-2015, JGraph Ltd
|
Copyright 2021-present The maxGraph project Contributors
|
||||||
* Copyright (c) 2006-2015, Gaudenz Alder
|
Copyright (c) 2006-2015, JGraph Ltd
|
||||||
* Updated to ES9 syntax by David Morrissey 2021
|
Copyright (c) 2006-2015, Gaudenz Alder
|
||||||
* Type definitions from the typed-mxgraph project
|
|
||||||
*/
|
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 { isNotNullish } from '../../util/Utils';
|
||||||
import { mod } from '../../util/mathUtils';
|
import { mod } from '../../util/mathUtils';
|
||||||
|
|
|
@ -1,9 +1,21 @@
|
||||||
/**
|
/*
|
||||||
* Copyright (c) 2006-2015, JGraph Ltd
|
Copyright 2021-present The maxGraph project Contributors
|
||||||
* Copyright (c) 2006-2015, Gaudenz Alder
|
Copyright (c) 2006-2015, JGraph Ltd
|
||||||
* Updated to ES9 syntax by David Morrissey 2021
|
Copyright (c) 2006-2015, Gaudenz Alder
|
||||||
* Type definitions from the typed-mxgraph project
|
|
||||||
*/
|
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 AbstractCanvas2D from './AbstractCanvas2D';
|
||||||
import {
|
import {
|
||||||
DEFAULT_FONTFAMILY,
|
DEFAULT_FONTFAMILY,
|
||||||
|
@ -44,7 +56,7 @@ import { DirectionValue, TextDirectionValue } from '../../types';
|
||||||
class mxXmlCanvas2D extends AbstractCanvas2D {
|
class mxXmlCanvas2D extends AbstractCanvas2D {
|
||||||
constructor(root: SVGElement) {
|
constructor(root: SVGElement) {
|
||||||
super();
|
super();
|
||||||
|
|
||||||
this.root = root;
|
this.root = root;
|
||||||
|
|
||||||
// Writes default settings;
|
// Writes default settings;
|
||||||
|
@ -279,14 +291,14 @@ class mxXmlCanvas2D extends AbstractCanvas2D {
|
||||||
* are between 1 (opaque) and 0 (transparent).
|
* are between 1 (opaque) and 0 (transparent).
|
||||||
*/
|
*/
|
||||||
setGradient(
|
setGradient(
|
||||||
color1: string | null,
|
color1: string | null,
|
||||||
color2: string | null,
|
color2: string | null,
|
||||||
x: number,
|
x: number,
|
||||||
y: number,
|
y: number,
|
||||||
w: number,
|
w: number,
|
||||||
h: number,
|
h: number,
|
||||||
direction: DirectionValue,
|
direction: DirectionValue,
|
||||||
alpha1: number=1.0,
|
alpha1: number=1.0,
|
||||||
alpha2: number=1.0
|
alpha2: number=1.0
|
||||||
) {
|
) {
|
||||||
if (color1 != null && color2 != null) {
|
if (color1 != null && color2 != null) {
|
||||||
|
@ -753,13 +765,13 @@ class mxXmlCanvas2D extends AbstractCanvas2D {
|
||||||
* @param flipV Boolean indicating if the image should be flipped vertically.
|
* @param flipV Boolean indicating if the image should be flipped vertically.
|
||||||
*/
|
*/
|
||||||
image(
|
image(
|
||||||
x: number,
|
x: number,
|
||||||
y: number,
|
y: number,
|
||||||
w: number,
|
w: number,
|
||||||
h: number,
|
h: number,
|
||||||
src: string,
|
src: string,
|
||||||
aspect: boolean,
|
aspect: boolean,
|
||||||
flipH: boolean,
|
flipH: boolean,
|
||||||
flipV: boolean
|
flipV: boolean
|
||||||
) {
|
) {
|
||||||
src = this.converter.convert(src);
|
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.
|
* @param dir Optional string that specifies the text direction. Possible values are rtl and ltr.
|
||||||
*/
|
*/
|
||||||
text(
|
text(
|
||||||
x: number,
|
x: number,
|
||||||
y: number,
|
y: number,
|
||||||
w: number,
|
w: number,
|
||||||
h: number,
|
h: number,
|
||||||
str: string | HTMLElement,
|
str: string | HTMLElement,
|
||||||
align: string | null=null,
|
align: string | null=null,
|
||||||
valign: string | null=null,
|
valign: string | null=null,
|
||||||
wrap: boolean | null=null,
|
wrap: boolean | null=null,
|
||||||
format: string | null=null,
|
format: string | null=null,
|
||||||
overflow: string | null=null,
|
overflow: string | null=null,
|
||||||
clip: boolean | null=null,
|
clip: boolean | null=null,
|
||||||
rotation: number | null=null,
|
rotation: number | null=null,
|
||||||
dir: TextDirectionValue | null=null
|
dir: TextDirectionValue | null=null
|
||||||
): void {
|
): void {
|
||||||
if (this.textEnabled && str != null) {
|
if (this.textEnabled && str != null) {
|
||||||
|
|
|
@ -1,9 +1,20 @@
|
||||||
/**
|
/*
|
||||||
* Copyright (c) 2006-2015, JGraph Ltd
|
Copyright 2021-present The maxGraph project Contributors
|
||||||
* Copyright (c) 2006-2015, Gaudenz Alder
|
Copyright (c) 2006-2015, JGraph Ltd
|
||||||
* Updated to ES9 syntax by David Morrissey 2021
|
Copyright (c) 2006-2015, Gaudenz Alder
|
||||||
* Type definitions from the typed-mxgraph project
|
|
||||||
*/
|
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 { NODETYPE } from '../../util/Constants';
|
||||||
import Geometry from '../geometry/Geometry';
|
import Geometry from '../geometry/Geometry';
|
||||||
|
|
|
@ -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 Cell from './Cell';
|
||||||
import Dictionary from '../../util/Dictionary';
|
import Dictionary from '../../util/Dictionary';
|
||||||
import ObjectIdentity from '../../util/ObjectIdentity';
|
import ObjectIdentity from '../../util/ObjectIdentity';
|
||||||
|
|
|
@ -1,9 +1,21 @@
|
||||||
/**
|
/*
|
||||||
* Copyright (c) 2006-2015, JGraph Ltd
|
Copyright 2021-present The maxGraph project Contributors
|
||||||
* Copyright (c) 2006-2015, Gaudenz Alder
|
Copyright (c) 2006-2015, JGraph Ltd
|
||||||
* Updated to ES9 syntax by David Morrissey 2021
|
Copyright (c) 2006-2015, Gaudenz Alder
|
||||||
* Type definitions from the typed-mxgraph project
|
|
||||||
*/
|
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 {
|
import {
|
||||||
DEFAULT_VALID_COLOR,
|
DEFAULT_VALID_COLOR,
|
||||||
DIALECT,
|
DIALECT,
|
||||||
|
|
|
@ -1,9 +1,21 @@
|
||||||
/**
|
/*
|
||||||
* Copyright (c) 2006-2015, JGraph Ltd
|
Copyright 2021-present The maxGraph project Contributors
|
||||||
* Copyright (c) 2006-2015, Gaudenz Alder
|
Copyright (c) 2006-2015, JGraph Ltd
|
||||||
* Updated to ES9 syntax by David Morrissey 2021
|
Copyright (c) 2006-2015, Gaudenz Alder
|
||||||
* Type definitions from the typed-mxgraph project
|
|
||||||
*/
|
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 EventSource from '../event/EventSource';
|
||||||
import {
|
import {
|
||||||
DEFAULT_HOTSPOT,
|
DEFAULT_HOTSPOT,
|
||||||
|
|
|
@ -1,9 +1,20 @@
|
||||||
/**
|
/*
|
||||||
* Copyright (c) 2006-2015, JGraph Ltd
|
Copyright 2021-present The maxGraph project Contributors
|
||||||
* Copyright (c) 2006-2015, Gaudenz Alder
|
Copyright (c) 2006-2015, JGraph Ltd
|
||||||
* Updated to ES9 syntax by David Morrissey 2021
|
Copyright (c) 2006-2015, Gaudenz Alder
|
||||||
* Type definitions from the typed-mxgraph project
|
|
||||||
*/
|
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 Point from '../geometry/Point';
|
||||||
import Rectangle from '../geometry/Rectangle';
|
import Rectangle from '../geometry/Rectangle';
|
||||||
|
|
|
@ -1,9 +1,21 @@
|
||||||
/**
|
/*
|
||||||
* Copyright (c) 2006-2015, JGraph Ltd
|
Copyright 2021-present The maxGraph project Contributors
|
||||||
* Copyright (c) 2006-2015, Gaudenz Alder
|
Copyright (c) 2006-2015, JGraph Ltd
|
||||||
* Updated to ES9 syntax by David Morrissey 2021
|
Copyright (c) 2006-2015, Gaudenz Alder
|
||||||
* Type definitions from the typed-mxgraph project
|
|
||||||
*/
|
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 Cell from './Cell';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1,7 +1,20 @@
|
||||||
/**
|
/*
|
||||||
* Copyright (c) 2006-2017, JGraph Ltd
|
Copyright 2021-present The maxGraph project Contributors
|
||||||
* Copyright (c) 2006-2017, Gaudenz Alder
|
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 RectangleShape from '../geometry/node/RectangleShape';
|
||||||
import EllipseShape from '../geometry/node/EllipseShape';
|
import EllipseShape from '../geometry/node/EllipseShape';
|
||||||
|
|
|
@ -1,9 +1,20 @@
|
||||||
/**
|
/*
|
||||||
* Copyright (c) 2006-2015, JGraph Ltd
|
Copyright 2021-present The maxGraph project Contributors
|
||||||
* Copyright (c) 2006-2015, Gaudenz Alder
|
Copyright (c) 2006-2015, JGraph Ltd
|
||||||
* Updated to ES9 syntax by David Morrissey 2021
|
Copyright (c) 2006-2015, Gaudenz Alder
|
||||||
* Type definitions from the typed-mxgraph project
|
|
||||||
*/
|
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 Point from '../geometry/Point';
|
||||||
import Rectangle from '../geometry/Rectangle';
|
import Rectangle from '../geometry/Rectangle';
|
||||||
|
|
|
@ -1,9 +1,20 @@
|
||||||
/**
|
/*
|
||||||
* Copyright (c) 2006-2015, JGraph Ltd
|
Copyright 2021-present The maxGraph project Contributors
|
||||||
* Copyright (c) 2006-2015, Gaudenz Alder
|
Copyright (c) 2006-2015, JGraph Ltd
|
||||||
* Updated to ES9 syntax by David Morrissey 2021
|
Copyright (c) 2006-2015, Gaudenz Alder
|
||||||
* Type definitions from the typed-mxgraph project
|
|
||||||
*/
|
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 Point from '../geometry/Point';
|
||||||
import Dictionary from '../../util/Dictionary';
|
import Dictionary from '../../util/Dictionary';
|
||||||
|
|
|
@ -1,9 +1,21 @@
|
||||||
/**
|
/*
|
||||||
* Copyright (c) 2006-2015, JGraph Ltd
|
Copyright 2021-present The maxGraph project Contributors
|
||||||
* Copyright (c) 2006-2015, Gaudenz Alder
|
Copyright (c) 2006-2015, JGraph Ltd
|
||||||
* Updated to ES9 syntax by David Morrissey 2021
|
Copyright (c) 2006-2015, Gaudenz Alder
|
||||||
* Type definitions from the typed-mxgraph project
|
|
||||||
*/
|
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 CellMarker from './CellMarker';
|
||||||
import InternalMouseEvent from '../event/InternalMouseEvent';
|
import InternalMouseEvent from '../event/InternalMouseEvent';
|
||||||
import { Graph } from '../Graph';
|
import { Graph } from '../Graph';
|
||||||
|
|
|
@ -1,10 +1,20 @@
|
||||||
/**
|
/*
|
||||||
* Copyright (c) 2006-2017, JGraph Ltd
|
Copyright 2021-present The maxGraph project Contributors
|
||||||
* Copyright (c) 2006-2017, Gaudenz Alder
|
Copyright (c) 2006-2017, JGraph Ltd
|
||||||
*/
|
Copyright (c) 2006-2017, Gaudenz Alder
|
||||||
/**
|
|
||||||
* Creates a temporary set of cell states.
|
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 Rectangle from '../geometry/Rectangle';
|
||||||
import Dictionary from '../../util/Dictionary';
|
import Dictionary from '../../util/Dictionary';
|
||||||
|
@ -15,6 +25,9 @@ import Shape from '../geometry/Shape';
|
||||||
import CellArray from './CellArray';
|
import CellArray from './CellArray';
|
||||||
import { Graph } from '../Graph';
|
import { Graph } from '../Graph';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Creates a temporary set of cell states.
|
||||||
|
*/
|
||||||
class TemporaryCellStates {
|
class TemporaryCellStates {
|
||||||
oldValidateCellState: Function | null;
|
oldValidateCellState: Function | null;
|
||||||
|
|
||||||
|
|
|
@ -1,9 +1,20 @@
|
||||||
/**
|
/*
|
||||||
* Copyright (c) 2006-2015, JGraph Ltd
|
Copyright 2021-present The maxGraph project Contributors
|
||||||
* Copyright (c) 2006-2015, Gaudenz Alder
|
Copyright (c) 2006-2015, JGraph Ltd
|
||||||
* Updated to ES9 syntax by David Morrissey 2021
|
Copyright (c) 2006-2015, Gaudenz Alder
|
||||||
* Type definitions from the typed-mxgraph project
|
|
||||||
*/
|
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 { getRotatedPoint, toRadians } from '../../util/mathUtils';
|
||||||
import Point from '../geometry/Point';
|
import Point from '../geometry/Point';
|
||||||
|
|
|
@ -1,9 +1,20 @@
|
||||||
/**
|
/*
|
||||||
* Copyright (c) 2006-2015, JGraph Ltd
|
Copyright 2021-present The maxGraph project Contributors
|
||||||
* Copyright (c) 2006-2015, Gaudenz Alder
|
Copyright (c) 2006-2015, JGraph Ltd
|
||||||
* Updated to ES9 syntax by David Morrissey 2021
|
Copyright (c) 2006-2015, Gaudenz Alder
|
||||||
* Type definitions from the typed-mxgraph project
|
|
||||||
*/
|
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<string, any>;
|
type EventProperties = Record<string, any>;
|
||||||
|
|
||||||
|
|
|
@ -1,9 +1,20 @@
|
||||||
/**
|
/*
|
||||||
* Copyright (c) 2006-2015, JGraph Ltd
|
Copyright 2021-present The maxGraph project Contributors
|
||||||
* Copyright (c) 2006-2015, Gaudenz Alder
|
Copyright (c) 2006-2015, JGraph Ltd
|
||||||
* Updated to ES9 syntax by David Morrissey 2021
|
Copyright (c) 2006-2015, Gaudenz Alder
|
||||||
* Type definitions from the typed-mxgraph project
|
|
||||||
*/
|
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';
|
import EventObject from './EventObject';
|
||||||
|
|
||||||
|
|
|
@ -1,9 +1,21 @@
|
||||||
/**
|
/*
|
||||||
* Copyright (c) 2006-2015, JGraph Ltd
|
Copyright 2021-present The maxGraph project Contributors
|
||||||
* Copyright (c) 2006-2015, Gaudenz Alder
|
Copyright (c) 2006-2015, JGraph Ltd
|
||||||
* Updated to ES9 syntax by David Morrissey 2021
|
Copyright (c) 2006-2015, Gaudenz Alder
|
||||||
* Type definitions from the typed-mxgraph project
|
|
||||||
*/
|
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 InternalMouseEvent from './InternalMouseEvent';
|
||||||
import Client from '../../Client';
|
import Client from '../../Client';
|
||||||
import { isConsumed, isMouseEvent } from '../../util/EventUtils';
|
import { isConsumed, isMouseEvent } from '../../util/EventUtils';
|
||||||
|
|
|
@ -1,9 +1,21 @@
|
||||||
/**
|
/*
|
||||||
* Copyright (c) 2006-2015, JGraph Ltd
|
Copyright 2021-present The maxGraph project Contributors
|
||||||
* Copyright (c) 2006-2015, Gaudenz Alder
|
Copyright (c) 2006-2015, JGraph Ltd
|
||||||
* Updated to ES9 syntax by David Morrissey 2021
|
Copyright (c) 2006-2015, Gaudenz Alder
|
||||||
* Type definitions from the typed-mxgraph project
|
|
||||||
*/
|
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 {
|
import {
|
||||||
getClientX,
|
getClientX,
|
||||||
getClientY,
|
getClientY,
|
||||||
|
|
|
@ -1,9 +1,21 @@
|
||||||
/**
|
/*
|
||||||
* Copyright (c) 2006-2015, JGraph Ltd
|
Copyright 2021-present The maxGraph project Contributors
|
||||||
* Copyright (c) 2006-2015, Gaudenz Alder
|
Copyright (c) 2006-2015, JGraph Ltd
|
||||||
* Updated to ES9 syntax by David Morrissey 2021
|
Copyright (c) 2006-2015, Gaudenz Alder
|
||||||
* Type definitions from the typed-mxgraph project
|
|
||||||
*/
|
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 Rectangle from './Rectangle';
|
||||||
import Shape from './Shape';
|
import Shape from './Shape';
|
||||||
import SvgCanvas2D from '../canvas/SvgCanvas2D';
|
import SvgCanvas2D from '../canvas/SvgCanvas2D';
|
||||||
|
|
|
@ -1,9 +1,20 @@
|
||||||
/**
|
/*
|
||||||
* Copyright (c) 2006-2015, JGraph Ltd
|
Copyright 2021-present The maxGraph project Contributors
|
||||||
* Copyright (c) 2006-2015, Gaudenz Alder
|
Copyright (c) 2006-2015, JGraph Ltd
|
||||||
* Updated to ES9 syntax by David Morrissey 2021
|
Copyright (c) 2006-2015, Gaudenz Alder
|
||||||
* Type definitions from the typed-mxgraph project
|
|
||||||
*/
|
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 Point from './Point';
|
||||||
import Rectangle from './Rectangle';
|
import Rectangle from './Rectangle';
|
||||||
|
|
|
@ -1,9 +1,20 @@
|
||||||
/**
|
/*
|
||||||
* Copyright (c) 2006-2015, JGraph Ltd
|
Copyright 2021-present The maxGraph project Contributors
|
||||||
* Copyright (c) 2006-2015, Gaudenz Alder
|
Copyright (c) 2006-2015, JGraph Ltd
|
||||||
* Updated to ES9 syntax by David Morrissey 2021
|
Copyright (c) 2006-2015, Gaudenz Alder
|
||||||
* Type definitions from the typed-mxgraph project
|
|
||||||
*/
|
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.
|
* Implements a 2-dimensional vector with double precision coordinates.
|
||||||
|
|
|
@ -1,9 +1,20 @@
|
||||||
/**
|
/*
|
||||||
* Copyright (c) 2006-2015, JGraph Ltd
|
Copyright 2021-present The maxGraph project Contributors
|
||||||
* Copyright (c) 2006-2015, Gaudenz Alder
|
Copyright (c) 2006-2015, JGraph Ltd
|
||||||
* Updated to ES9 syntax by David Morrissey 2021
|
Copyright (c) 2006-2015, Gaudenz Alder
|
||||||
* Type definitions from the typed-mxgraph project
|
|
||||||
*/
|
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 Point from './Point';
|
||||||
|
|
||||||
|
|
|
@ -1,9 +1,21 @@
|
||||||
/**
|
/*
|
||||||
* Copyright (c) 2006-2015, JGraph Ltd
|
Copyright 2021-present The maxGraph project Contributors
|
||||||
* Copyright (c) 2006-2015, Gaudenz Alder
|
Copyright (c) 2006-2015, JGraph Ltd
|
||||||
* Updated to ES9 syntax by David Morrissey 2021
|
Copyright (c) 2006-2015, Gaudenz Alder
|
||||||
* Type definitions from the typed-mxgraph project
|
|
||||||
*/
|
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 Rectangle from './Rectangle';
|
||||||
import { isNotNullish } from '../../util/Utils';
|
import { isNotNullish } from '../../util/Utils';
|
||||||
import { getBoundingBox, getDirectedBounds, mod } from '../../util/mathUtils';
|
import { getBoundingBox, getDirectedBounds, mod } from '../../util/mathUtils';
|
||||||
|
|
|
@ -1,9 +1,21 @@
|
||||||
/**
|
/*
|
||||||
* Copyright (c) 2006-2015, JGraph Ltd
|
Copyright 2021-present The maxGraph project Contributors
|
||||||
* Copyright (c) 2006-2015, Gaudenz Alder
|
Copyright (c) 2006-2015, JGraph Ltd
|
||||||
* Updated to ES9 syntax by David Morrissey 2021
|
Copyright (c) 2006-2015, Gaudenz Alder
|
||||||
* Type definitions from the typed-mxgraph project
|
|
||||||
*/
|
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 Shape from '../Shape';
|
||||||
import { ARROW_SIZE, ARROW_SPACING, ARROW_WIDTH, NONE } from '../../../util/Constants';
|
import { ARROW_SIZE, ARROW_SPACING, ARROW_WIDTH, NONE } from '../../../util/Constants';
|
||||||
import { relativeCcw } from '../../../util/mathUtils';
|
import { relativeCcw } from '../../../util/mathUtils';
|
||||||
|
|
|
@ -1,9 +1,21 @@
|
||||||
/**
|
/*
|
||||||
* Copyright (c) 2006-2015, JGraph Ltd
|
Copyright 2021-present The maxGraph project Contributors
|
||||||
* Copyright (c) 2006-2015, Gaudenz Alder
|
Copyright (c) 2006-2015, JGraph Ltd
|
||||||
* Updated to ES9 syntax by David Morrissey 2021
|
Copyright (c) 2006-2015, Gaudenz Alder
|
||||||
* Type definitions from the typed-mxgraph project
|
|
||||||
*/
|
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 Shape from '../Shape';
|
||||||
import { ARROW_SIZE, ARROW_SPACING, ARROW_WIDTH } from '../../../util/Constants';
|
import { ARROW_SIZE, ARROW_SPACING, ARROW_WIDTH } from '../../../util/Constants';
|
||||||
import Rectangle from '../Rectangle';
|
import Rectangle from '../Rectangle';
|
||||||
|
|
|
@ -1,9 +1,21 @@
|
||||||
/**
|
/*
|
||||||
* Copyright (c) 2006-2015, JGraph Ltd
|
Copyright 2021-present The maxGraph project Contributors
|
||||||
* Copyright (c) 2006-2015, Gaudenz Alder
|
Copyright (c) 2006-2015, JGraph Ltd
|
||||||
* Updated to ES9 syntax by David Morrissey 2021
|
Copyright (c) 2006-2015, Gaudenz Alder
|
||||||
* Type definitions from the typed-mxgraph project
|
|
||||||
*/
|
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 { DEFAULT_MARKERSIZE, NONE } from '../../../util/Constants';
|
||||||
import PolylineShape from './PolylineShape';
|
import PolylineShape from './PolylineShape';
|
||||||
import MarkerShape from './MarkerShape';
|
import MarkerShape from './MarkerShape';
|
||||||
|
|
|
@ -1,9 +1,21 @@
|
||||||
/**
|
/*
|
||||||
* Copyright (c) 2006-2015, JGraph Ltd
|
Copyright 2021-present The maxGraph project Contributors
|
||||||
* Copyright (c) 2006-2015, Gaudenz Alder
|
Copyright (c) 2006-2015, JGraph Ltd
|
||||||
* Updated to ES9 syntax by David Morrissey 2021
|
Copyright (c) 2006-2015, Gaudenz Alder
|
||||||
* Type definitions from the typed-mxgraph project
|
|
||||||
*/
|
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 Shape from '../Shape';
|
||||||
import AbstractCanvas2D from '../../canvas/AbstractCanvas2D';
|
import AbstractCanvas2D from '../../canvas/AbstractCanvas2D';
|
||||||
import Rectangle from '../Rectangle';
|
import Rectangle from '../Rectangle';
|
||||||
|
|
|
@ -1,9 +1,21 @@
|
||||||
/**
|
/*
|
||||||
* Copyright (c) 2006-2015, JGraph Ltd
|
Copyright 2021-present The maxGraph project Contributors
|
||||||
* Copyright (c) 2006-2015, Gaudenz Alder
|
Copyright (c) 2006-2015, JGraph Ltd
|
||||||
* Updated to ES9 syntax by David Morrissey 2021
|
Copyright (c) 2006-2015, Gaudenz Alder
|
||||||
* Type definitions from the typed-mxgraph project
|
|
||||||
*/
|
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 { ArrowType } from '../../../types';
|
||||||
import AbstractCanvas2D from '../../canvas/AbstractCanvas2D';
|
import AbstractCanvas2D from '../../canvas/AbstractCanvas2D';
|
||||||
import { ARROW } from '../../../util/Constants';
|
import { ARROW } from '../../../util/Constants';
|
||||||
|
|
|
@ -1,9 +1,21 @@
|
||||||
/**
|
/*
|
||||||
* Copyright (c) 2006-2015, JGraph Ltd
|
Copyright 2021-present The maxGraph project Contributors
|
||||||
* Copyright (c) 2006-2015, Gaudenz Alder
|
Copyright (c) 2006-2015, JGraph Ltd
|
||||||
* Updated to ES9 syntax by David Morrissey 2021
|
Copyright (c) 2006-2015, Gaudenz Alder
|
||||||
* Type definitions from the typed-mxgraph project
|
|
||||||
*/
|
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 Shape from '../Shape';
|
||||||
import { LINE_ARCSIZE } from '../../../util/Constants';
|
import { LINE_ARCSIZE } from '../../../util/Constants';
|
||||||
import Point from '../Point';
|
import Point from '../Point';
|
||||||
|
|
|
@ -1,9 +1,21 @@
|
||||||
/**
|
/*
|
||||||
* Copyright (c) 2006-2015, JGraph Ltd
|
Copyright 2021-present The maxGraph project Contributors
|
||||||
* Copyright (c) 2006-2015, Gaudenz Alder
|
Copyright (c) 2006-2015, JGraph Ltd
|
||||||
* Updated to ES9 syntax by David Morrissey 2021
|
Copyright (c) 2006-2015, Gaudenz Alder
|
||||||
* Type definitions from the typed-mxgraph project
|
|
||||||
*/
|
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 ActorShape from '../ActorShape';
|
||||||
import AbstractCanvas2D from '../../canvas/AbstractCanvas2D';
|
import AbstractCanvas2D from '../../canvas/AbstractCanvas2D';
|
||||||
import Rectangle from '../Rectangle';
|
import Rectangle from '../Rectangle';
|
||||||
|
|
|
@ -1,9 +1,21 @@
|
||||||
/**
|
/*
|
||||||
* Copyright (c) 2006-2015, JGraph Ltd
|
Copyright 2021-present The maxGraph project Contributors
|
||||||
* Copyright (c) 2006-2015, Gaudenz Alder
|
Copyright (c) 2006-2015, JGraph Ltd
|
||||||
* Updated to ES9 syntax by David Morrissey 2021
|
Copyright (c) 2006-2015, Gaudenz Alder
|
||||||
* Type definitions from the typed-mxgraph project
|
|
||||||
*/
|
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 Shape from '../Shape';
|
||||||
import AbstractCanvas2D from '../../canvas/AbstractCanvas2D';
|
import AbstractCanvas2D from '../../canvas/AbstractCanvas2D';
|
||||||
import Rectangle from '../Rectangle';
|
import Rectangle from '../Rectangle';
|
||||||
|
|
|
@ -1,9 +1,20 @@
|
||||||
/**
|
/*
|
||||||
* Copyright (c) 2006-2015, JGraph Ltd
|
Copyright 2021-present The maxGraph project Contributors
|
||||||
* Copyright (c) 2006-2015, Gaudenz Alder
|
Copyright (c) 2006-2015, JGraph Ltd
|
||||||
* Updated to ES9 syntax by David Morrissey 2021
|
Copyright (c) 2006-2015, Gaudenz Alder
|
||||||
* Type definitions from the typed-mxgraph project
|
|
||||||
*/
|
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 Rectangle from '../Rectangle';
|
||||||
import Shape from '../Shape';
|
import Shape from '../Shape';
|
||||||
|
|
|
@ -1,9 +1,21 @@
|
||||||
/**
|
/*
|
||||||
* Copyright (c) 2006-2015, JGraph Ltd
|
Copyright 2021-present The maxGraph project Contributors
|
||||||
* Copyright (c) 2006-2015, Gaudenz Alder
|
Copyright (c) 2006-2015, JGraph Ltd
|
||||||
* Updated to ES9 syntax by David Morrissey 2021
|
Copyright (c) 2006-2015, Gaudenz Alder
|
||||||
* Type definitions from the typed-mxgraph project
|
|
||||||
*/
|
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 Shape from '../Shape';
|
||||||
import AbstractCanvas2D from '../../../view/canvas/AbstractCanvas2D';
|
import AbstractCanvas2D from '../../../view/canvas/AbstractCanvas2D';
|
||||||
import Rectangle from '../Rectangle';
|
import Rectangle from '../Rectangle';
|
||||||
|
|
|
@ -1,9 +1,21 @@
|
||||||
/**
|
/*
|
||||||
* Copyright (c) 2006-2015, JGraph Ltd
|
Copyright 2021-present The maxGraph project Contributors
|
||||||
* Copyright (c) 2006-2015, Gaudenz Alder
|
Copyright (c) 2006-2015, JGraph Ltd
|
||||||
* Updated to ES9 syntax by David Morrissey 2021
|
Copyright (c) 2006-2015, Gaudenz Alder
|
||||||
* Type definitions from the typed-mxgraph project
|
|
||||||
*/
|
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 ActorShape from '../ActorShape';
|
||||||
import Point from '../Point';
|
import Point from '../Point';
|
||||||
import { LINE_ARCSIZE } from '../../../util/Constants';
|
import { LINE_ARCSIZE } from '../../../util/Constants';
|
||||||
|
|
|
@ -1,9 +1,20 @@
|
||||||
/**
|
/*
|
||||||
* Copyright (c) 2006-2015, JGraph Ltd
|
Copyright 2021-present The maxGraph project Contributors
|
||||||
* Copyright (c) 2006-2015, Gaudenz Alder
|
Copyright (c) 2006-2015, JGraph Ltd
|
||||||
* Updated to ES9 syntax by David Morrissey 2021
|
Copyright (c) 2006-2015, Gaudenz Alder
|
||||||
* Type definitions from the typed-mxgraph project
|
|
||||||
*/
|
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 RectangleShape from './RectangleShape';
|
||||||
import Rectangle from '../Rectangle';
|
import Rectangle from '../Rectangle';
|
||||||
|
|
|
@ -1,9 +1,21 @@
|
||||||
/**
|
/*
|
||||||
* Copyright (c) 2006-2015, JGraph Ltd
|
Copyright 2021-present The maxGraph project Contributors
|
||||||
* Copyright (c) 2006-2015, Gaudenz Alder
|
Copyright (c) 2006-2015, JGraph Ltd
|
||||||
* Updated to ES9 syntax by David Morrissey 2021
|
Copyright (c) 2006-2015, Gaudenz Alder
|
||||||
* Type definitions from the typed-mxgraph project
|
|
||||||
*/
|
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 Rectangle from '../Rectangle';
|
||||||
import {
|
import {
|
||||||
ALIGN,
|
ALIGN,
|
||||||
|
|
|
@ -1,9 +1,20 @@
|
||||||
/**
|
/*
|
||||||
* Copyright (c) 2006-2015, JGraph Ltd
|
Copyright 2021-present The maxGraph project Contributors
|
||||||
* Copyright (c) 2006-2015, Gaudenz Alder
|
Copyright (c) 2006-2015, JGraph Ltd
|
||||||
* Updated to ES9 syntax by David Morrissey 2021
|
Copyright (c) 2006-2015, Gaudenz Alder
|
||||||
* Type definitions from the typed-mxgraph project
|
|
||||||
*/
|
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 {
|
import {
|
||||||
LINE_ARCSIZE,
|
LINE_ARCSIZE,
|
||||||
|
|
|
@ -1,9 +1,21 @@
|
||||||
/**
|
/*
|
||||||
* Copyright (c) 2006-2015, JGraph Ltd
|
Copyright 2021-present The maxGraph project Contributors
|
||||||
* Copyright (c) 2006-2015, Gaudenz Alder
|
Copyright (c) 2006-2015, JGraph Ltd
|
||||||
* Updated to ES9 syntax by David Morrissey 2021
|
Copyright (c) 2006-2015, Gaudenz Alder
|
||||||
* Type definitions from the typed-mxgraph project
|
|
||||||
*/
|
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 Shape from '../Shape';
|
||||||
import Point from '../Point';
|
import Point from '../Point';
|
||||||
import { LINE_ARCSIZE } from '../../../util/Constants';
|
import { LINE_ARCSIZE } from '../../../util/Constants';
|
||||||
|
|
|
@ -1,9 +1,20 @@
|
||||||
/**
|
/*
|
||||||
* Copyright (c) 2006-2015, JGraph Ltd
|
Copyright 2021-present The maxGraph project Contributors
|
||||||
* Copyright (c) 2006-2015, Gaudenz Alder
|
Copyright (c) 2006-2015, JGraph Ltd
|
||||||
* Updated to ES9 syntax by David Morrissey 2021
|
Copyright (c) 2006-2015, Gaudenz Alder
|
||||||
* Type definitions from the typed-mxgraph project
|
|
||||||
*/
|
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 ConnectionConstraint from '../../other/ConnectionConstraint';
|
||||||
import Rectangle from '../Rectangle';
|
import Rectangle from '../Rectangle';
|
||||||
|
|
|
@ -1,27 +1,20 @@
|
||||||
/**
|
/*
|
||||||
* Copyright (c) 2006-2015, JGraph Ltd
|
Copyright 2021-present The maxGraph project Contributors
|
||||||
* Copyright (c) 2006-2015, Gaudenz Alder
|
Copyright (c) 2006-2015, JGraph Ltd
|
||||||
* Updated to ES9 syntax by David Morrissey 2021
|
Copyright (c) 2006-2015, Gaudenz Alder
|
||||||
* Type definitions from the typed-mxgraph project
|
|
||||||
*
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* Code to add stencils.
|
you may not use this file except in compliance with the License.
|
||||||
*
|
You may obtain a copy of the License at
|
||||||
* ```javascript
|
|
||||||
* let req = mxUtils.load('test/stencils.xml');
|
http://www.apache.org/licenses/LICENSE-2.0
|
||||||
* let root = req.getDocumentElement();
|
|
||||||
* let shape = root.firstChild;
|
Unless required by applicable law or agreed to in writing, software
|
||||||
*
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
* while (shape != null)
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
* {
|
See the License for the specific language governing permissions and
|
||||||
* if (shape.nodeType === mxConstants.NODETYPE_ELEMENT)
|
limitations under the License.
|
||||||
* {
|
*/
|
||||||
* mxStencilRegistry.addStencil(shape.getAttribute('name'), new mxStencil(shape));
|
|
||||||
* }
|
|
||||||
*
|
|
||||||
* shape = shape.nextSibling;
|
|
||||||
* }
|
|
||||||
* ```
|
|
||||||
*/
|
|
||||||
|
|
||||||
import StencilShape from './StencilShape';
|
import StencilShape from './StencilShape';
|
||||||
|
|
||||||
|
@ -33,6 +26,22 @@ type Stencils = {
|
||||||
* A singleton class that provides a registry for stencils and the methods
|
* A singleton class that provides a registry for stencils and the methods
|
||||||
* for painting those stencils onto a canvas or into a DOM.
|
* 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
|
||||||
*/
|
*/
|
||||||
class StencilShapeRegistry {
|
class StencilShapeRegistry {
|
||||||
|
|
|
@ -1,9 +1,20 @@
|
||||||
/**
|
/*
|
||||||
* Copyright (c) 2006-2015, JGraph Ltd
|
Copyright 2021-present The maxGraph project Contributors
|
||||||
* Copyright (c) 2006-2015, Gaudenz Alder
|
Copyright (c) 2006-2015, JGraph Ltd
|
||||||
* Updated to ES9 syntax by David Morrissey 2021
|
Copyright (c) 2006-2015, Gaudenz Alder
|
||||||
* Type definitions from the typed-mxgraph project
|
|
||||||
*/
|
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 Shape from '../Shape';
|
||||||
import Rectangle from '../Rectangle';
|
import Rectangle from '../Rectangle';
|
||||||
import {
|
import {
|
||||||
|
|
|
@ -1,9 +1,20 @@
|
||||||
/**
|
/*
|
||||||
* Copyright (c) 2006-2015, JGraph Ltd
|
Copyright 2021-present The maxGraph project Contributors
|
||||||
* Copyright (c) 2006-2015, Gaudenz Alder
|
Copyright (c) 2006-2015, JGraph Ltd
|
||||||
* Updated to ES9 syntax by David Morrissey 2021
|
Copyright (c) 2006-2015, Gaudenz Alder
|
||||||
* Type definitions from the typed-mxgraph project
|
|
||||||
*/
|
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 Client from '../../../Client';
|
||||||
import {
|
import {
|
||||||
|
|
|
@ -1,9 +1,20 @@
|
||||||
/**
|
/*
|
||||||
* Copyright (c) 2006-2015, JGraph Ltd
|
Copyright 2021-present The maxGraph project Contributors
|
||||||
* Copyright (c) 2006-2015, Gaudenz Alder
|
Copyright (c) 2006-2015, JGraph Ltd
|
||||||
* Updated to ES9 syntax by David Morrissey 2021
|
Copyright (c) 2006-2015, Gaudenz Alder
|
||||||
* Type definitions from the typed-mxgraph project
|
|
||||||
*/
|
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 Point from '../Point';
|
||||||
import ActorShape from '../ActorShape';
|
import ActorShape from '../ActorShape';
|
||||||
|
|
|
@ -1,9 +1,20 @@
|
||||||
/**
|
/*
|
||||||
* Copyright (c) 2006-2015, JGraph Ltd
|
Copyright 2021-present The maxGraph project Contributors
|
||||||
* Copyright (c) 2006-2015, Gaudenz Alder
|
Copyright (c) 2006-2015, JGraph Ltd
|
||||||
* Updated to ES9 syntax by David Morrissey 2021
|
Copyright (c) 2006-2015, Gaudenz Alder
|
||||||
* Type definitions from the typed-mxgraph project
|
|
||||||
*/
|
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 { getValue } from '../../util/Utils';
|
||||||
import {
|
import {
|
||||||
|
|
|
@ -1,7 +1,21 @@
|
||||||
/**
|
/*
|
||||||
* Copyright (c) 2006-2016, JGraph Ltd
|
Copyright 2021-present The maxGraph project Contributors
|
||||||
* Copyright (c) 2006-2016, Gaudenz Alder
|
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 Geometry from '../geometry/Geometry';
|
||||||
import Cell from '../cell/Cell';
|
import Cell from '../cell/Cell';
|
||||||
import Point from '../geometry/Point';
|
import Point from '../geometry/Point';
|
||||||
|
|
|
@ -1,9 +1,21 @@
|
||||||
/**
|
/*
|
||||||
* Copyright (c) 2006-2015, JGraph Ltd
|
Copyright 2021-present The maxGraph project Contributors
|
||||||
* Copyright (c) 2006-2015, Gaudenz Alder
|
Copyright (c) 2006-2015, JGraph Ltd
|
||||||
* Updated to ES9 syntax by David Morrissey 2021
|
Copyright (c) 2006-2015, Gaudenz Alder
|
||||||
* Type definitions from the typed-mxgraph project
|
|
||||||
*/
|
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 Image from '../image/ImageBox';
|
||||||
import Client from '../../Client';
|
import Client from '../../Client';
|
||||||
import {
|
import {
|
||||||
|
|
|
@ -1,9 +1,21 @@
|
||||||
/**
|
/*
|
||||||
* Copyright (c) 2006-2015, JGraph Ltd
|
Copyright 2021-present The maxGraph project Contributors
|
||||||
* Copyright (c) 2006-2015, Gaudenz Alder
|
Copyright (c) 2006-2015, JGraph Ltd
|
||||||
* Updated to ES9 syntax by David Morrissey 2021
|
Copyright (c) 2006-2015, Gaudenz Alder
|
||||||
* Type definitions from the typed-mxgraph project
|
|
||||||
*/
|
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 CellMarker from '../cell/CellMarker';
|
||||||
import Point from '../geometry/Point';
|
import Point from '../geometry/Point';
|
||||||
import {
|
import {
|
||||||
|
|
|
@ -1,9 +1,21 @@
|
||||||
/**
|
/*
|
||||||
* Copyright (c) 2006-2015, JGraph Ltd
|
Copyright 2021-present The maxGraph project Contributors
|
||||||
* Copyright (c) 2006-2015, Gaudenz Alder
|
Copyright (c) 2006-2015, JGraph Ltd
|
||||||
* Updated to ES9 syntax by David Morrissey 2021
|
Copyright (c) 2006-2015, Gaudenz Alder
|
||||||
* Type definitions from the typed-mxgraph project
|
|
||||||
*/
|
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 Point from '../geometry/Point';
|
||||||
import { CURSOR } from '../../util/Constants';
|
import { CURSOR } from '../../util/Constants';
|
||||||
import Rectangle from '../geometry/Rectangle';
|
import Rectangle from '../geometry/Rectangle';
|
||||||
|
|
|
@ -1,9 +1,21 @@
|
||||||
/**
|
/*
|
||||||
* Copyright (c) 2006-2015, JGraph Ltd
|
Copyright 2021-present The maxGraph project Contributors
|
||||||
* Copyright (c) 2006-2015, Gaudenz Alder
|
Copyright (c) 2006-2015, JGraph Ltd
|
||||||
* Updated to ES9 syntax by David Morrissey 2021
|
Copyright (c) 2006-2015, Gaudenz Alder
|
||||||
* Type definitions from the typed-mxgraph project
|
|
||||||
*/
|
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 EdgeHandler from './EdgeHandler';
|
||||||
import {
|
import {
|
||||||
CURSOR,
|
CURSOR,
|
||||||
|
|
|
@ -1,9 +1,20 @@
|
||||||
/**
|
/*
|
||||||
* Copyright (c) 2006-2015, JGraph Ltd
|
Copyright 2021-present The maxGraph project Contributors
|
||||||
* Copyright (c) 2006-2015, Gaudenz Alder
|
Copyright (c) 2006-2015, JGraph Ltd
|
||||||
* Updated to ES9 syntax by David Morrissey 2021
|
Copyright (c) 2006-2015, Gaudenz Alder
|
||||||
* Type definitions from the typed-mxgraph project
|
|
||||||
*/
|
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 { Graph } from '../Graph';
|
||||||
import InternalEvent from '../event/InternalEvent';
|
import InternalEvent from '../event/InternalEvent';
|
||||||
|
|
|
@ -1,9 +1,21 @@
|
||||||
/**
|
/*
|
||||||
* Copyright (c) 2006-2015, JGraph Ltd
|
Copyright 2021-present The maxGraph project Contributors
|
||||||
* Copyright (c) 2006-2015, Gaudenz Alder
|
Copyright (c) 2006-2015, JGraph Ltd
|
||||||
* Updated to ES9 syntax by David Morrissey 2021
|
Copyright (c) 2006-2015, Gaudenz Alder
|
||||||
* Type definitions from the typed-mxgraph project
|
|
||||||
*/
|
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 EventSource from '../event/EventSource';
|
||||||
import { hasScrollbars } from '../../util/styleUtils';
|
import { hasScrollbars } from '../../util/styleUtils';
|
||||||
import EventObject from '../event/EventObject';
|
import EventObject from '../event/EventObject';
|
||||||
|
|
|
@ -1,9 +1,21 @@
|
||||||
/**
|
/*
|
||||||
* Copyright (c) 2006-2015, JGraph Ltd
|
Copyright 2021-present The maxGraph project Contributors
|
||||||
* Copyright (c) 2006-2015, Gaudenz Alder
|
Copyright (c) 2006-2015, JGraph Ltd
|
||||||
* Updated to ES9 syntax by David Morrissey 2021
|
Copyright (c) 2006-2015, Gaudenz Alder
|
||||||
* Type definitions from the typed-mxgraph project
|
|
||||||
*/
|
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 MaxPopupMenu from '../../gui/MaxPopupMenu';
|
||||||
import InternalEvent from '../event/InternalEvent';
|
import InternalEvent from '../event/InternalEvent';
|
||||||
import { getScrollOrigin } from '../../util/styleUtils';
|
import { getScrollOrigin } from '../../util/styleUtils';
|
||||||
|
|
|
@ -1,7 +1,20 @@
|
||||||
/**
|
/*
|
||||||
* Copyright (c) 2006-2016, JGraph Ltd
|
Copyright 2021-present The maxGraph project Contributors
|
||||||
* Copyright (c) 2006-2016, Gaudenz Alder
|
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 {
|
import {
|
||||||
convertPoint,
|
convertPoint,
|
||||||
|
|
|
@ -1,9 +1,21 @@
|
||||||
/**
|
/*
|
||||||
* Copyright (c) 2006-2015, JGraph Ltd
|
Copyright 2021-present The maxGraph project Contributors
|
||||||
* Copyright (c) 2006-2015, Gaudenz Alder
|
Copyright (c) 2006-2015, JGraph Ltd
|
||||||
* Updated to ES9 syntax by David Morrissey 2021
|
Copyright (c) 2006-2015, Gaudenz Alder
|
||||||
* Type definitions from the typed-mxgraph project
|
|
||||||
*/
|
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 EventSource from '../event/EventSource';
|
||||||
import Dictionary from '../../util/Dictionary';
|
import Dictionary from '../../util/Dictionary';
|
||||||
import EventObject from '../event/EventObject';
|
import EventObject from '../event/EventObject';
|
||||||
|
|
|
@ -1,9 +1,20 @@
|
||||||
/**
|
/*
|
||||||
* Copyright (c) 2006-2015, JGraph Ltd
|
Copyright 2021-present The maxGraph project Contributors
|
||||||
* Copyright (c) 2006-2015, Gaudenz Alder
|
Copyright (c) 2006-2015, JGraph Ltd
|
||||||
* Updated to ES9 syntax by David Morrissey 2021
|
Copyright (c) 2006-2015, Gaudenz Alder
|
||||||
* Type definitions from the typed-mxgraph project
|
|
||||||
*/
|
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 Client from '../../Client';
|
||||||
import InternalEvent from '../event/InternalEvent';
|
import InternalEvent from '../event/InternalEvent';
|
||||||
|
|
|
@ -1,9 +1,21 @@
|
||||||
/**
|
/*
|
||||||
* Copyright (c) 2006-2015, JGraph Ltd
|
Copyright 2021-present The maxGraph project Contributors
|
||||||
* Copyright (c) 2006-2015, Gaudenz Alder
|
Copyright (c) 2006-2015, JGraph Ltd
|
||||||
* Updated to ES9 syntax by David Morrissey 2021
|
Copyright (c) 2006-2015, Gaudenz Alder
|
||||||
* Type definitions from the typed-mxgraph project
|
|
||||||
*/
|
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 InternalEvent from '../event/InternalEvent';
|
||||||
import { fit, getScrollOrigin } from '../../util/styleUtils';
|
import { fit, getScrollOrigin } from '../../util/styleUtils';
|
||||||
import { TOOLTIP_VERTICAL_OFFSET } from '../../util/Constants';
|
import { TOOLTIP_VERTICAL_OFFSET } from '../../util/Constants';
|
||||||
|
|
|
@ -1,9 +1,21 @@
|
||||||
/**
|
/*
|
||||||
* Copyright (c) 2006-2015, JGraph Ltd
|
Copyright 2021-present The maxGraph project Contributors
|
||||||
* Copyright (c) 2006-2015, Gaudenz Alder
|
Copyright (c) 2006-2015, JGraph Ltd
|
||||||
* Updated to ES9 syntax by David Morrissey 2021
|
Copyright (c) 2006-2015, Gaudenz Alder
|
||||||
* Type definitions from the typed-mxgraph project
|
|
||||||
*/
|
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 Rectangle from '../geometry/Rectangle';
|
||||||
import {
|
import {
|
||||||
CURSOR,
|
CURSOR,
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue