From adcef6350ed64fc3b9243202b6507009d70ccbd1 Mon Sep 17 00:00:00 2001 From: mcyph <20507948+mcyph@users.noreply.github.com> Date: Thu, 25 Mar 2021 13:49:21 +1100 Subject: [PATCH] integrated more examples into the next.js app and moved static files into the public next.js dir --- src/mxgraph/shape/mxArrow.js | 1 + src/pages/Guides.js | 254 +++++------- src/pages/Handles.js | 374 ++++++++++-------- src/pages/HelloPort.js | 212 +++++----- src/pages/HierarchicalLayout.js | 224 +++++------ src/pages/HoverIcons.js | 312 ++++++--------- src/pages/HoverStyle.js | 265 +++++-------- src/pages/Images.js | 164 ++++---- src/pages/Indicators.js | 170 ++++---- src/pages/index.js | 16 + .../editors/config/diagrameditor.xml | 0 .../editors/config/editor-commons.xml | 0 .../editors/config/keyhandler-commons.xml | 0 .../editors/config/keyhandler-minimal.xml | 0 .../editors/config/layouteditor.xml | 0 .../editors/config/processeditor.xml | 0 .../editors/config/wfeditor-commons.xml | 0 .../editors/config/wfgraph-commons.xml | 0 .../editors/config/wftoolbar-commons.xml | 0 .../editors/config/workfloweditor.xml | 0 src/{pages => public}/editors/css/process.css | 0 .../editors/css/wordpress.css | 0 .../editors/diagrameditor.html | 0 .../editors/diagrams/empty.xml | 0 .../editors/diagrams/swimlanes.xml | 0 .../editors/diagrams/travel-booking.xml | 0 .../editors/diagrams/withdrawal.xml | 0 .../editors/grapheditor.html | 0 .../editors/help/index-all.html | 0 src/{pages => public}/editors/help/index.html | 0 .../editors/images/actor.gif | Bin .../editors/images/alignbottom.gif | Bin .../editors/images/aligncenter.gif | Bin .../editors/images/alignleft.gif | Bin .../editors/images/alignmiddle.gif | Bin .../editors/images/alignright.gif | Bin .../editors/images/aligntop.gif | Bin .../editors/images/arrow.gif | Bin src/{pages => public}/editors/images/bell.png | Bin src/{pages => public}/editors/images/bg.gif | Bin .../editors/images/block_end.gif | Bin .../editors/images/block_start.gif | Bin src/{pages => public}/editors/images/bold.gif | Bin .../editors/images/bottom.gif | Bin src/{pages => public}/editors/images/box.png | Bin .../editors/images/camera.gif | Bin .../editors/images/center.gif | Bin .../editors/images/classic_end.gif | Bin .../editors/images/classic_start.gif | Bin .../editors/images/cloud.gif | Bin .../editors/images/cmp-bg.gif | Bin .../editors/images/collapse.gif | Bin .../editors/images/connect.gif | Bin .../editors/images/connector.gif | Bin .../editors/images/console.gif | Bin src/{pages => public}/editors/images/copy.gif | Bin .../editors/images/cube_green.png | Bin src/{pages => public}/editors/images/cut.gif | Bin .../editors/images/cylinder.gif | Bin .../editors/images/delete.gif | Bin .../editors/images/diagram.gif | Bin .../editors/images/diamond_end.gif | Bin .../editors/images/diamond_start.gif | Bin .../editors/images/doubleellipse.gif | Bin src/{pages => public}/editors/images/down.gif | Bin .../editors/images/draw/drawbg.jpg | Bin .../editors/images/draw/drawbgcolor.jpg | Bin .../editors/images/draw/drawfooter.jpg | Bin .../editors/images/draw/drawheader.jpg | Bin .../editors/images/draw/mxlogo.jpg | Bin .../editors/images/dude3.png | Bin .../editors/images/earth.png | Bin .../editors/images/ellipse.gif | Bin .../editors/images/entity.gif | Bin .../editors/images/expand.gif | Bin .../editors/images/fillcolor.gif | Bin src/{pages => public}/editors/images/fit.gif | Bin src/{pages => public}/editors/images/font.gif | Bin .../editors/images/fontcolor.gif | Bin src/{pages => public}/editors/images/gear.gif | Bin src/{pages => public}/editors/images/gear.png | Bin src/{pages => public}/editors/images/grid.gif | Bin .../editors/images/group.gif | Bin src/{pages => public}/editors/images/help.gif | Bin .../editors/images/hexagon.gif | Bin .../editors/images/hline.gif | Bin .../editors/images/house.gif | Bin .../editors/images/house.png | Bin .../editors/images/image.gif | Bin .../editors/images/italic.gif | Bin src/{pages => public}/editors/images/left.gif | Bin .../editors/images/linecolor.gif | Bin src/{pages => public}/editors/images/link.gif | Bin .../editors/images/loading.gif | Bin .../editors/images/middle.gif | Bin src/{pages => public}/editors/images/new.gif | Bin src/{pages => public}/editors/images/open.gif | Bin .../editors/images/open_end.gif | Bin .../editors/images/open_start.gif | Bin .../editors/images/outline.gif | Bin .../editors/images/oval_end.gif | Bin .../editors/images/oval_start.gif | Bin .../editors/images/overlays/check.png | Bin .../editors/images/overlays/error.png | Bin .../editors/images/overlays/flash.png | Bin .../editors/images/overlays/forbidden.png | Bin .../editors/images/overlays/help.png | Bin .../editors/images/overlays/house.png | Bin .../editors/images/overlays/information.png | Bin .../editors/images/overlays/lightbulb_on.png | Bin .../editors/images/overlays/pencil.png | Bin .../editors/images/overlays/printer.png | Bin .../editors/images/overlays/user3.png | Bin .../editors/images/overlays/users3.png | Bin .../editors/images/overlays/workplace.png | Bin .../editors/images/package.png | Bin src/{pages => public}/editors/images/pan.gif | Bin .../editors/images/paste.gif | Bin .../editors/images/plain.gif | Bin .../editors/images/preferences.gif | Bin .../editors/images/press.gif | Bin .../editors/images/preview.gif | Bin .../editors/images/print.gif | Bin .../editors/images/printer.png | Bin .../editors/images/properties.gif | Bin .../editors/images/rectangle.gif | Bin src/{pages => public}/editors/images/redo.gif | Bin .../editors/images/refresh.gif | Bin .../editors/images/rhombus.gif | Bin .../editors/images/right.gif | Bin .../editors/images/rounded.gif | Bin src/{pages => public}/editors/images/save.gif | Bin .../editors/images/saveas.gif | Bin .../editors/images/script.gif | Bin .../editors/images/select.gif | Bin .../editors/images/server.png | Bin .../editors/images/straight.gif | Bin .../editors/images/swimlane.gif | Bin .../editors/images/symbols/cancel_end.png | Bin .../images/symbols/cancel_intermediate.png | Bin .../editors/images/symbols/error.png | Bin .../editors/images/symbols/event.png | Bin .../editors/images/symbols/event_end.png | Bin .../images/symbols/event_intermediate.png | Bin .../editors/images/symbols/fork.png | Bin .../editors/images/symbols/inclusive.png | Bin .../editors/images/symbols/link.png | Bin .../editors/images/symbols/merge.png | Bin .../editors/images/symbols/message.png | Bin .../editors/images/symbols/message_end.png | Bin .../images/symbols/message_intermediate.png | Bin .../editors/images/symbols/multiple.png | Bin .../editors/images/symbols/rule.png | Bin .../images/symbols/small_cancel_end.gif | Bin .../symbols/small_cancel_intermediate.gif | Bin .../editors/images/symbols/small_error.gif | Bin .../editors/images/symbols/small_event.gif | Bin .../images/symbols/small_event_end.gif | Bin .../symbols/small_event_intermediate.gif | Bin .../editors/images/symbols/small_fork.gif | Bin .../images/symbols/small_inclusive.gif | Bin .../editors/images/symbols/small_link.gif | Bin .../editors/images/symbols/small_merge.gif | Bin .../editors/images/symbols/small_message.gif | Bin .../images/symbols/small_message_end.gif | Bin .../symbols/small_message_intermediate.gif | Bin .../editors/images/symbols/small_multiple.gif | Bin .../editors/images/symbols/small_rule.gif | Bin .../images/symbols/small_terminate.gif | Bin .../editors/images/symbols/small_timer.gif | Bin .../editors/images/symbols/terminate.png | Bin .../editors/images/symbols/timer.png | Bin .../editors/images/tasks.gif | Bin src/{pages => public}/editors/images/text.gif | Bin .../editors/images/toback.gif | Bin .../editors/images/tofront.gif | Bin .../editors/images/toolbar.gif | Bin src/{pages => public}/editors/images/top.gif | Bin src/{pages => public}/editors/images/tree.gif | Bin .../editors/images/triangle.gif | Bin .../editors/images/underline.gif | Bin src/{pages => public}/editors/images/undo.gif | Bin .../editors/images/ungroup.gif | Bin src/{pages => public}/editors/images/up.gif | Bin .../editors/images/vertical.gif | Bin .../editors/images/workplace.png | Bin .../editors/images/wrench.png | Bin src/{pages => public}/editors/images/zoom.gif | Bin .../editors/images/zoomactual.gif | Bin .../editors/images/zoomin.gif | Bin .../editors/images/zoomout.gif | Bin src/{pages => public}/editors/js/app.js | 0 .../editors/layouteditor.html | 0 .../editors/processeditor.html | 0 .../editors/resources/app.txt | 0 .../editors/resources/app_de.txt | 0 .../editors/resources/app_zh.txt | 0 .../editors/workfloweditor.html | 0 .../map-background/images/layers-2x.png | Bin .../map-background/images/layers.png | Bin .../map-background/images/marker-icon-2x.png | Bin .../map-background/images/marker-icon.png | Bin .../map-background/images/marker-shadow.png | Bin .../map-background/leaflet-src.js | 0 .../map-background/leaflet.css | 0 .../map-background/leaflet.js | 0 .../map-background/map-background.html | 0 207 files changed, 909 insertions(+), 1083 deletions(-) rename src/{pages => public}/editors/config/diagrameditor.xml (100%) rename src/{pages => public}/editors/config/editor-commons.xml (100%) rename src/{pages => public}/editors/config/keyhandler-commons.xml (100%) rename src/{pages => public}/editors/config/keyhandler-minimal.xml (100%) rename src/{pages => public}/editors/config/layouteditor.xml (100%) rename src/{pages => public}/editors/config/processeditor.xml (100%) rename src/{pages => public}/editors/config/wfeditor-commons.xml (100%) rename src/{pages => public}/editors/config/wfgraph-commons.xml (100%) rename src/{pages => public}/editors/config/wftoolbar-commons.xml (100%) rename src/{pages => public}/editors/config/workfloweditor.xml (100%) rename src/{pages => public}/editors/css/process.css (100%) rename src/{pages => public}/editors/css/wordpress.css (100%) rename src/{pages => public}/editors/diagrameditor.html (100%) rename src/{pages => public}/editors/diagrams/empty.xml (100%) rename src/{pages => public}/editors/diagrams/swimlanes.xml (100%) rename src/{pages => public}/editors/diagrams/travel-booking.xml (100%) rename src/{pages => public}/editors/diagrams/withdrawal.xml (100%) rename src/{pages => public}/editors/grapheditor.html (100%) rename src/{pages => public}/editors/help/index-all.html (100%) rename src/{pages => public}/editors/help/index.html (100%) rename src/{pages => public}/editors/images/actor.gif (100%) rename src/{pages => public}/editors/images/alignbottom.gif (100%) rename src/{pages => public}/editors/images/aligncenter.gif (100%) rename src/{pages => public}/editors/images/alignleft.gif (100%) rename src/{pages => public}/editors/images/alignmiddle.gif (100%) rename src/{pages => public}/editors/images/alignright.gif (100%) rename src/{pages => public}/editors/images/aligntop.gif (100%) rename src/{pages => public}/editors/images/arrow.gif (100%) rename src/{pages => public}/editors/images/bell.png (100%) rename src/{pages => public}/editors/images/bg.gif (100%) rename src/{pages => public}/editors/images/block_end.gif (100%) rename src/{pages => public}/editors/images/block_start.gif (100%) rename src/{pages => public}/editors/images/bold.gif (100%) rename src/{pages => public}/editors/images/bottom.gif (100%) rename src/{pages => public}/editors/images/box.png (100%) rename src/{pages => public}/editors/images/camera.gif (100%) rename src/{pages => public}/editors/images/center.gif (100%) rename src/{pages => public}/editors/images/classic_end.gif (100%) rename src/{pages => public}/editors/images/classic_start.gif (100%) rename src/{pages => public}/editors/images/cloud.gif (100%) rename src/{pages => public}/editors/images/cmp-bg.gif (100%) rename src/{pages => public}/editors/images/collapse.gif (100%) rename src/{pages => public}/editors/images/connect.gif (100%) rename src/{pages => public}/editors/images/connector.gif (100%) rename src/{pages => public}/editors/images/console.gif (100%) rename src/{pages => public}/editors/images/copy.gif (100%) rename src/{pages => public}/editors/images/cube_green.png (100%) rename src/{pages => public}/editors/images/cut.gif (100%) rename src/{pages => public}/editors/images/cylinder.gif (100%) rename src/{pages => public}/editors/images/delete.gif (100%) rename src/{pages => public}/editors/images/diagram.gif (100%) rename src/{pages => public}/editors/images/diamond_end.gif (100%) rename src/{pages => public}/editors/images/diamond_start.gif (100%) rename src/{pages => public}/editors/images/doubleellipse.gif (100%) rename src/{pages => public}/editors/images/down.gif (100%) rename src/{pages => public}/editors/images/draw/drawbg.jpg (100%) rename src/{pages => public}/editors/images/draw/drawbgcolor.jpg (100%) rename src/{pages => public}/editors/images/draw/drawfooter.jpg (100%) rename src/{pages => public}/editors/images/draw/drawheader.jpg (100%) rename src/{pages => public}/editors/images/draw/mxlogo.jpg (100%) rename src/{pages => public}/editors/images/dude3.png (100%) rename src/{pages => public}/editors/images/earth.png (100%) rename src/{pages => public}/editors/images/ellipse.gif (100%) rename src/{pages => public}/editors/images/entity.gif (100%) rename src/{pages => public}/editors/images/expand.gif (100%) rename src/{pages => public}/editors/images/fillcolor.gif (100%) rename src/{pages => public}/editors/images/fit.gif (100%) rename src/{pages => public}/editors/images/font.gif (100%) rename src/{pages => public}/editors/images/fontcolor.gif (100%) rename src/{pages => public}/editors/images/gear.gif (100%) rename src/{pages => public}/editors/images/gear.png (100%) rename src/{pages => public}/editors/images/grid.gif (100%) rename src/{pages => public}/editors/images/group.gif (100%) rename src/{pages => public}/editors/images/help.gif (100%) rename src/{pages => public}/editors/images/hexagon.gif (100%) rename src/{pages => public}/editors/images/hline.gif (100%) rename src/{pages => public}/editors/images/house.gif (100%) rename src/{pages => public}/editors/images/house.png (100%) rename src/{pages => public}/editors/images/image.gif (100%) rename src/{pages => public}/editors/images/italic.gif (100%) rename src/{pages => public}/editors/images/left.gif (100%) rename src/{pages => public}/editors/images/linecolor.gif (100%) rename src/{pages => public}/editors/images/link.gif (100%) rename src/{pages => public}/editors/images/loading.gif (100%) rename src/{pages => public}/editors/images/middle.gif (100%) rename src/{pages => public}/editors/images/new.gif (100%) rename src/{pages => public}/editors/images/open.gif (100%) rename src/{pages => public}/editors/images/open_end.gif (100%) rename src/{pages => public}/editors/images/open_start.gif (100%) rename src/{pages => public}/editors/images/outline.gif (100%) rename src/{pages => public}/editors/images/oval_end.gif (100%) rename src/{pages => public}/editors/images/oval_start.gif (100%) rename src/{pages => public}/editors/images/overlays/check.png (100%) rename src/{pages => public}/editors/images/overlays/error.png (100%) rename src/{pages => public}/editors/images/overlays/flash.png (100%) rename src/{pages => public}/editors/images/overlays/forbidden.png (100%) rename src/{pages => public}/editors/images/overlays/help.png (100%) rename src/{pages => public}/editors/images/overlays/house.png (100%) rename src/{pages => public}/editors/images/overlays/information.png (100%) rename src/{pages => public}/editors/images/overlays/lightbulb_on.png (100%) rename src/{pages => public}/editors/images/overlays/pencil.png (100%) rename src/{pages => public}/editors/images/overlays/printer.png (100%) rename src/{pages => public}/editors/images/overlays/user3.png (100%) rename src/{pages => public}/editors/images/overlays/users3.png (100%) rename src/{pages => public}/editors/images/overlays/workplace.png (100%) rename src/{pages => public}/editors/images/package.png (100%) rename src/{pages => public}/editors/images/pan.gif (100%) rename src/{pages => public}/editors/images/paste.gif (100%) rename src/{pages => public}/editors/images/plain.gif (100%) rename src/{pages => public}/editors/images/preferences.gif (100%) rename src/{pages => public}/editors/images/press.gif (100%) rename src/{pages => public}/editors/images/preview.gif (100%) rename src/{pages => public}/editors/images/print.gif (100%) rename src/{pages => public}/editors/images/printer.png (100%) rename src/{pages => public}/editors/images/properties.gif (100%) rename src/{pages => public}/editors/images/rectangle.gif (100%) rename src/{pages => public}/editors/images/redo.gif (100%) rename src/{pages => public}/editors/images/refresh.gif (100%) rename src/{pages => public}/editors/images/rhombus.gif (100%) rename src/{pages => public}/editors/images/right.gif (100%) rename src/{pages => public}/editors/images/rounded.gif (100%) rename src/{pages => public}/editors/images/save.gif (100%) rename src/{pages => public}/editors/images/saveas.gif (100%) rename src/{pages => public}/editors/images/script.gif (100%) rename src/{pages => public}/editors/images/select.gif (100%) rename src/{pages => public}/editors/images/server.png (100%) rename src/{pages => public}/editors/images/straight.gif (100%) rename src/{pages => public}/editors/images/swimlane.gif (100%) rename src/{pages => public}/editors/images/symbols/cancel_end.png (100%) rename src/{pages => public}/editors/images/symbols/cancel_intermediate.png (100%) rename src/{pages => public}/editors/images/symbols/error.png (100%) rename src/{pages => public}/editors/images/symbols/event.png (100%) rename src/{pages => public}/editors/images/symbols/event_end.png (100%) rename src/{pages => public}/editors/images/symbols/event_intermediate.png (100%) rename src/{pages => public}/editors/images/symbols/fork.png (100%) rename src/{pages => public}/editors/images/symbols/inclusive.png (100%) rename src/{pages => public}/editors/images/symbols/link.png (100%) rename src/{pages => public}/editors/images/symbols/merge.png (100%) rename src/{pages => public}/editors/images/symbols/message.png (100%) rename src/{pages => public}/editors/images/symbols/message_end.png (100%) rename src/{pages => public}/editors/images/symbols/message_intermediate.png (100%) rename src/{pages => public}/editors/images/symbols/multiple.png (100%) rename src/{pages => public}/editors/images/symbols/rule.png (100%) rename src/{pages => public}/editors/images/symbols/small_cancel_end.gif (100%) rename src/{pages => public}/editors/images/symbols/small_cancel_intermediate.gif (100%) rename src/{pages => public}/editors/images/symbols/small_error.gif (100%) rename src/{pages => public}/editors/images/symbols/small_event.gif (100%) rename src/{pages => public}/editors/images/symbols/small_event_end.gif (100%) rename src/{pages => public}/editors/images/symbols/small_event_intermediate.gif (100%) rename src/{pages => public}/editors/images/symbols/small_fork.gif (100%) rename src/{pages => public}/editors/images/symbols/small_inclusive.gif (100%) rename src/{pages => public}/editors/images/symbols/small_link.gif (100%) rename src/{pages => public}/editors/images/symbols/small_merge.gif (100%) rename src/{pages => public}/editors/images/symbols/small_message.gif (100%) rename src/{pages => public}/editors/images/symbols/small_message_end.gif (100%) rename src/{pages => public}/editors/images/symbols/small_message_intermediate.gif (100%) rename src/{pages => public}/editors/images/symbols/small_multiple.gif (100%) rename src/{pages => public}/editors/images/symbols/small_rule.gif (100%) rename src/{pages => public}/editors/images/symbols/small_terminate.gif (100%) rename src/{pages => public}/editors/images/symbols/small_timer.gif (100%) rename src/{pages => public}/editors/images/symbols/terminate.png (100%) rename src/{pages => public}/editors/images/symbols/timer.png (100%) rename src/{pages => public}/editors/images/tasks.gif (100%) rename src/{pages => public}/editors/images/text.gif (100%) rename src/{pages => public}/editors/images/toback.gif (100%) rename src/{pages => public}/editors/images/tofront.gif (100%) rename src/{pages => public}/editors/images/toolbar.gif (100%) rename src/{pages => public}/editors/images/top.gif (100%) rename src/{pages => public}/editors/images/tree.gif (100%) rename src/{pages => public}/editors/images/triangle.gif (100%) rename src/{pages => public}/editors/images/underline.gif (100%) rename src/{pages => public}/editors/images/undo.gif (100%) rename src/{pages => public}/editors/images/ungroup.gif (100%) rename src/{pages => public}/editors/images/up.gif (100%) rename src/{pages => public}/editors/images/vertical.gif (100%) rename src/{pages => public}/editors/images/workplace.png (100%) rename src/{pages => public}/editors/images/wrench.png (100%) rename src/{pages => public}/editors/images/zoom.gif (100%) rename src/{pages => public}/editors/images/zoomactual.gif (100%) rename src/{pages => public}/editors/images/zoomin.gif (100%) rename src/{pages => public}/editors/images/zoomout.gif (100%) rename src/{pages => public}/editors/js/app.js (100%) rename src/{pages => public}/editors/layouteditor.html (100%) rename src/{pages => public}/editors/processeditor.html (100%) rename src/{pages => public}/editors/resources/app.txt (100%) rename src/{pages => public}/editors/resources/app_de.txt (100%) rename src/{pages => public}/editors/resources/app_zh.txt (100%) rename src/{pages => public}/editors/workfloweditor.html (100%) rename src/{pages => public}/map-background/images/layers-2x.png (100%) rename src/{pages => public}/map-background/images/layers.png (100%) rename src/{pages => public}/map-background/images/marker-icon-2x.png (100%) rename src/{pages => public}/map-background/images/marker-icon.png (100%) rename src/{pages => public}/map-background/images/marker-shadow.png (100%) rename src/{pages => public}/map-background/leaflet-src.js (100%) rename src/{pages => public}/map-background/leaflet.css (100%) rename src/{pages => public}/map-background/leaflet.js (100%) rename src/{pages => public}/map-background/map-background.html (100%) diff --git a/src/mxgraph/shape/mxArrow.js b/src/mxgraph/shape/mxArrow.js index 04c405e10..9a704f390 100644 --- a/src/mxgraph/shape/mxArrow.js +++ b/src/mxgraph/shape/mxArrow.js @@ -4,6 +4,7 @@ * Updated to ES9 syntax by David Morrissey 2021 */ import mxShape from './mxShape'; +import mxConstants from "../util/mxConstants"; class mxArrow extends mxShape { /** diff --git a/src/pages/Guides.js b/src/pages/Guides.js index fb2a43c82..2cb9eab7e 100644 --- a/src/pages/Guides.js +++ b/src/pages/Guides.js @@ -12,8 +12,13 @@ import React from 'react'; import mxEvent from '../mxgraph/util/mxEvent'; import mxGraph from '../mxgraph/view/mxGraph'; import mxRubberband from '../mxgraph/handler/mxRubberband'; +import mxGraphHandler from '../mxgraph/handler/mxGraphHandler'; +import mxEdgeHandler from '../mxgraph/handler/mxEdgeHandler'; +import mxConstants from '../mxgraph/util/mxConstants'; +import mxEdgeStyle from '../mxgraph/view/mxEdgeStyle'; +import mxKeyHandler from '../mxgraph/handler/mxKeyHandler'; -class MYNAMEHERE extends React.Component { +class Guides extends React.Component { constructor(props) { super(props); } @@ -23,161 +28,120 @@ class MYNAMEHERE extends React.Component { return ( <>