diff --git a/src/pages/HoverIcons.js b/src/pages/HoverIcons.js index 4e5de5dcb..c7f60c25b 100644 --- a/src/pages/HoverIcons.js +++ b/src/pages/HoverIcons.js @@ -1,8 +1,5 @@ /** * Copyright (c) 2006-2013, JGraph Ltd - - Hover icons. This example demonstrates showing - icons on vertices as mouse hovers over them. */ import React from 'react'; @@ -24,6 +21,8 @@ class HoverIcons extends React.Component { return ( <>

Hover icons

+ This example demonstrates showing + icons on vertices as mouse hovers over them.
{ diff --git a/src/pages/HoverStyle.js b/src/pages/HoverStyle.js index 4748b09ea..d436387b6 100644 --- a/src/pages/HoverStyle.js +++ b/src/pages/HoverStyle.js @@ -1,8 +1,5 @@ /** * Copyright (c) 2006-2013, JGraph Ltd - - Hoverstyle. This example shows hot to change - the style of a vertex on mouseover. */ import React from 'react'; @@ -21,6 +18,9 @@ class HoverStyle extends React.Component { return ( <>

Hoverstyle

+ This example shows hot to change + the style of a vertex on mouseover. +
{ this.el = el; diff --git a/src/pages/HtmlLabel.js b/src/pages/HtmlLabel.js index 85febc51a..e20b14e30 100644 --- a/src/pages/HtmlLabel.js +++ b/src/pages/HtmlLabel.js @@ -1,8 +1,5 @@ /** * Copyright (c) 2006-2013, JGraph Ltd - - HTML label. This example demonstrates using - HTML labels that are connected to the state of the user object. */ import React from 'react'; @@ -20,6 +17,8 @@ class MYNAMEHERE extends React.Component { return ( <>

HTML label

+ This example demonstrates using + HTML labels that are connected to the state of the user object.
{ diff --git a/src/pages/Images.js b/src/pages/Images.js index 40bc341f4..611d640e1 100644 --- a/src/pages/Images.js +++ b/src/pages/Images.js @@ -1,8 +1,5 @@ /** * Copyright (c) 2006-2013, JGraph Ltd - - Images. This example demonstrates using - background images and images for for the label- and image-shape. */ import React from 'react'; @@ -25,6 +22,9 @@ class Images extends React.Component { return ( <>

Images

+ This example demonstrates using + background images and images for for the label- and image-shape. +
{ this.el = el; diff --git a/src/pages/Indicators.js b/src/pages/Indicators.js index ab5f08666..1493f3bf4 100644 --- a/src/pages/Indicators.js +++ b/src/pages/Indicators.js @@ -1,9 +1,5 @@ /** * Copyright (c) 2006-2013, JGraph Ltd - - Indicators. This example demonstrates the use of - indicators, which are small subshapes inside a parent shape, typically - an mxLabel. */ import React from 'react'; @@ -22,6 +18,10 @@ class Indicators extends React.Component { return ( <>

Indicators

+ This example demonstrates the use of + indicators, which are small subshapes inside a parent shape, typically + an mxLabel. +
{ this.el = el; diff --git a/src/pages/JQuery.js b/src/pages/JQuery.js index 0fa06130c..54a629e58 100644 --- a/src/pages/JQuery.js +++ b/src/pages/JQuery.js @@ -1,8 +1,5 @@ /** * Copyright (c) 2006-2013, JGraph Ltd - - JQuery. This example demonstrates using - a JQuery plugin to generate labels for vertices on the fly. */ import React from 'react'; @@ -10,7 +7,7 @@ import mxEvent from '../mxgraph/util/mxEvent'; import mxGraph from '../mxgraph/view/mxGraph'; import mxRubberband from '../mxgraph/handler/mxRubberband'; -class MYNAMEHERE extends React.Component { +class JQuery extends React.Component { constructor(props) { super(props); } @@ -20,6 +17,8 @@ class MYNAMEHERE extends React.Component { return ( <>

JQuery plugin for labels

+ This example demonstrates using + a JQuery plugin to generate labels for vertices on the fly.
{ diff --git a/src/pages/JsonData.js b/src/pages/JsonData.js index a1302ecb8..44348e705 100644 --- a/src/pages/JsonData.js +++ b/src/pages/JsonData.js @@ -1,8 +1,5 @@ /** * Copyright (c) 2006-2013, JGraph Ltd - - JSON data. This example demonstrates using - JSON to encode/decode parts of the graph model in mxCodec. */ import React from 'react'; @@ -31,6 +28,9 @@ class JsonData extends React.Component { return ( <>

JSON data

+ This example demonstrates using + JSON to encode/decode parts of the graph model in mxCodec. +
{ this.el = el; diff --git a/src/pages/LOD.js b/src/pages/LOD.js index 849966ac6..2775f0f58 100644 --- a/src/pages/LOD.js +++ b/src/pages/LOD.js @@ -1,8 +1,5 @@ /** * Copyright (c) 2006-2013, JGraph Ltd - - Level of detail. This example demonstrates - implementing a level of detail per cell. */ import React from 'react'; @@ -19,6 +16,9 @@ class LOD extends React.Component { return ( <>

Level of detail

+ This example demonstrates + implementing a level of detail per cell. +
{ this.el = el; diff --git a/src/pages/LabelPosition.js b/src/pages/LabelPosition.js index 4fc8a7b49..12de17dcb 100644 --- a/src/pages/LabelPosition.js +++ b/src/pages/LabelPosition.js @@ -1,8 +1,5 @@ /** * Copyright (c) 2006-2013, JGraph Ltd - - Label Position. This example demonstrates the use of the - label position styles to set the position of vertex labels. */ import React from 'react'; @@ -18,6 +15,9 @@ class LabelPosition extends React.Component { return ( <>

Label Position

+ This example demonstrates the use of the + label position styles to set the position of vertex labels. +
{ this.el = el; diff --git a/src/pages/Labels.js b/src/pages/Labels.js index a3bc89e47..464a832fd 100644 --- a/src/pages/Labels.js +++ b/src/pages/Labels.js @@ -1,10 +1,5 @@ /** * Copyright (c) 2006-2013, JGraph Ltd - - Labels. This example demonstrates the use of wrapping - and clipping for HTML labels of vertices, truncating labels to fit the - size of a vertex, and manually placing vertex labels and relative children - that act as "sublabels". */ import React from 'react'; @@ -24,6 +19,11 @@ class Labels extends React.Component { return ( <>

Hello, World!

+ This example demonstrates the use of wrapping + and clipping for HTML labels of vertices, truncating labels to fit the + size of a vertex, and manually placing vertex labels and relative children + that act as "sublabels". +
{ this.el = el; diff --git a/src/pages/Layers.js b/src/pages/Layers.js index 3adaedaff..3511f6950 100644 --- a/src/pages/Layers.js +++ b/src/pages/Layers.js @@ -1,8 +1,5 @@ /** * Copyright (c) 2006-2013, JGraph Ltd - - Layers. This example demonstrates using - multiple layers to contain cells. */ import React from 'react'; @@ -22,6 +19,9 @@ class Layers extends React.Component { return ( <>

Layers

+ This example demonstrates using + multiple layers to contain cells. +
{ this.el = el; diff --git a/src/pages/Map.js b/src/pages/Map.js index dcc378f4a..f2984baa7 100644 --- a/src/pages/Map.js +++ b/src/pages/Map.js @@ -1,8 +1,5 @@ /** * Copyright (c) 2006-2013, JGraph Ltd - - Map. This example demonstrates using - a graph container as a Google Maps overlay. */ import React from 'react'; @@ -10,7 +7,7 @@ import mxEvent from '../mxgraph/util/mxEvent'; import mxGraph from '../mxgraph/view/mxGraph'; import mxRubberband from '../mxgraph/handler/mxRubberband'; -class MYNAMEHERE extends React.Component { +class Map extends React.Component { constructor(props) { super(props); } @@ -20,6 +17,8 @@ class MYNAMEHERE extends React.Component { return ( <>

Google maps

+ This example demonstrates using + a graph container as a Google Maps overlay.
{ @@ -38,7 +37,7 @@ class MYNAMEHERE extends React.Component { }; } -export default MYNAMEHERE; +export default Map; diff --git a/src/pages/Markers.js b/src/pages/Markers.js index 4a1d15882..561ca4e6e 100644 --- a/src/pages/Markers.js +++ b/src/pages/Markers.js @@ -1,8 +1,5 @@ /** * Copyright (c) 2006-2013, JGraph Ltd - - Markers. This example demonstrates creating - custom markers and customizing the built-in markers. */ import React from 'react'; @@ -25,6 +22,9 @@ class Markers extends React.Component { return ( <>

Markers

+ This example demonstrates creating + custom markers and customizing the built-in markers. +
{ this.el = el; diff --git a/src/pages/MenuStyle.js b/src/pages/MenuStyle.js index 2a3d8514b..01e3e3021 100644 --- a/src/pages/MenuStyle.js +++ b/src/pages/MenuStyle.js @@ -10,7 +10,7 @@ import mxEvent from '../mxgraph/util/mxEvent'; import mxGraph from '../mxgraph/view/mxGraph'; import mxRubberband from '../mxgraph/handler/mxRubberband'; -class MYNAMEHERE extends React.Component { +class MenuStyle extends React.Component { constructor(props) { super(props); } @@ -38,7 +38,7 @@ class MYNAMEHERE extends React.Component { }; } -export default MYNAMEHERE; +export default MenuStyle; diff --git a/src/pages/Merge.js b/src/pages/Merge.js index 938943056..613ff2b14 100644 --- a/src/pages/Merge.js +++ b/src/pages/Merge.js @@ -1,8 +1,5 @@ /** * Copyright (c) 2006-2013, JGraph Ltd - - Merge. This example demonstrates using - the mergeChildren function to merge two graphs. */ import React from 'react'; @@ -21,6 +18,9 @@ class Merge extends React.Component { return ( <>

Merge

+ This example demonstrates using + the mergeChildren function to merge two graphs. +
{ this.el = el; diff --git a/src/pages/Monitor.js b/src/pages/Monitor.js index 6c623a5f2..494209a83 100644 --- a/src/pages/Monitor.js +++ b/src/pages/Monitor.js @@ -1,8 +1,5 @@ /** * Copyright (c) 2006-2013, JGraph Ltd - - Monitor. This eample demonstrates using a - graph to display the current state of a workflow. */ import React from 'react'; @@ -25,6 +22,9 @@ class Monitor extends React.Component { return ( <>

mxGraph Workflow Monitor

+ This example demonstrates using a + graph to display the current state of a workflow. +
{ this.el = el; diff --git a/src/pages/Morph.js b/src/pages/Morph.js index e82553120..513617b32 100644 --- a/src/pages/Morph.js +++ b/src/pages/Morph.js @@ -1,8 +1,5 @@ /** * Copyright (c) 2006-2013, JGraph Ltd - - Morph. This example demonstrates using - mxMorphing for simple cell animations. */ import React from 'react'; @@ -21,7 +18,10 @@ class Morph extends React.Component { // A container for the graph return ( <> -

Hello, World!

+

Morph

+ This example demonstrates using + mxMorphing for simple cell animations. +
{ this.el = el; diff --git a/src/pages/OffPage.js b/src/pages/OffPage.js index 4b794778c..7812848dc 100644 --- a/src/pages/OffPage.js +++ b/src/pages/OffPage.js @@ -1,9 +1,5 @@ /** * Copyright (c) 2006-2013, JGraph Ltd - - Offpage. This example demonstrates creating - offpage connectors in a graph and loading a new diagram on a - single click. */ import React from 'react'; @@ -23,6 +19,9 @@ class OffPage extends React.Component { return ( <>

Offpage connector

+ This example demonstrates creating + offpage connectors in a graph and loading a new diagram on a + single click.
{ diff --git a/src/pages/OrgChart.js b/src/pages/OrgChart.js index b242437a6..f30ec85a4 100644 --- a/src/pages/OrgChart.js +++ b/src/pages/OrgChart.js @@ -43,7 +43,7 @@ class OrgChart extends React.Component { zIndex: 1, position: 'relative', overflow: 'hidden', - height: '80vh', + height: '50vh', background: 'transparent', borderStyle: 'solid', borderColor: 'lightgray', diff --git a/src/pages/Orthogonal.js b/src/pages/Orthogonal.js index fd73c1280..bdcc98981 100644 --- a/src/pages/Orthogonal.js +++ b/src/pages/Orthogonal.js @@ -1,8 +1,5 @@ /** * Copyright (c) 2006-2013, JGraph Ltd - - Orthogonal. This example demonstrates the use - of port constraints and orthogonal edge styles and handlers. */ import React from 'react'; @@ -27,6 +24,9 @@ class Orthogonal extends React.Component { return ( <>

Orthogonal

+ This example demonstrates the use + of port constraints and orthogonal edge styles and handlers. +
{ this.el = el; diff --git a/src/pages/Overlays.js b/src/pages/Overlays.js index 6af1db609..b15cae0e2 100644 --- a/src/pages/Overlays.js +++ b/src/pages/Overlays.js @@ -1,9 +1,5 @@ /** * Copyright (c) 2006-2013, JGraph Ltd - - Overlays. This example demonstrates cell - highlighting, overlays and handling click and double click - events. See also: events.html for more event handling. */ import React from 'react'; @@ -24,6 +20,10 @@ class Overlays extends React.Component { return ( <>

Overlays

+ This example demonstrates cell + highlighting, overlays and handling click and double click + events. See also: events.html for more event handling. +
{ this.el = el; diff --git a/src/pages/PageBreaks.js b/src/pages/PageBreaks.js index 34be06d7c..68e5f9cd4 100644 --- a/src/pages/PageBreaks.js +++ b/src/pages/PageBreaks.js @@ -1,9 +1,5 @@ /** * Copyright (c) 2006-2013, JGraph Ltd - - Pagebreaks. This example demonstrates using the - pageBreaksVisible and preferPageSize switches and adding headers and - footers to print output. */ import React from 'react'; @@ -24,6 +20,9 @@ class PageBreaks extends React.Component { return ( <>

Pagebreaks

+ This example demonstrates using the + pageBreaksVisible and preferPageSize switches and adding headers and + footers to print output.
{ diff --git a/src/pages/Perimeter.js b/src/pages/Perimeter.js index 4fa319980..af4581ab2 100644 --- a/src/pages/Perimeter.js +++ b/src/pages/Perimeter.js @@ -1,8 +1,5 @@ /** * Copyright (c) 2006-2013, JGraph Ltd - - Perimeter. This example demonstrates how to - avoid edge and label intersections. */ import React from 'react'; @@ -22,6 +19,9 @@ class Perimeter extends React.Component { return ( <>

Perimeter

+ This example demonstrates how to + avoid edge and label intersections. +
{ this.el = el; diff --git a/src/pages/Permissions.js b/src/pages/Permissions.js index b75fbe543..e70978930 100644 --- a/src/pages/Permissions.js +++ b/src/pages/Permissions.js @@ -1,8 +1,5 @@ /** * Copyright (c) 2006-2013, JGraph Ltd - - Hello, World!. This example demonstrates creating - permissions to define the available operations a the graph. */ import React from 'react'; @@ -36,6 +33,8 @@ class Permissions extends React.Component { return ( <>

Permissions

+ This example demonstrates creating + permissions to define the available operations a the graph.
{ diff --git a/src/pages/PortRefs.js b/src/pages/PortRefs.js index 7e25f6165..950f597ac 100644 --- a/src/pages/PortRefs.js +++ b/src/pages/PortRefs.js @@ -1,11 +1,5 @@ /** * Copyright (c) 2006-2013, JGraph Ltd - - Portsrefs. This example demonstrates referencing - connection points by ID. The main difference to the implementation - where the connection point is stored in the connecting edge is that - changes to the original port will be reflected in all existing - connections since they reference that port. */ import React from 'react'; @@ -31,6 +25,11 @@ class PortRefs extends React.Component { return ( <>

Port References Example

+ This example demonstrates referencing + connection points by ID. The main difference to the implementation + where the connection point is stored in the connecting edge is that + changes to the original port will be reflected in all existing + connections since they reference that port.
{ diff --git a/src/pages/Ports.js b/src/pages/Ports.js index 856eb54bd..ef9165e02 100644 --- a/src/pages/Ports.js +++ b/src/pages/Ports.js @@ -1,9 +1,5 @@ /** * Copyright (c) 2006-2013, JGraph Ltd - - Ports. This example demonstrates implementing - ports as child vertices with relative positions and drag and drop - as well as the use of images and HTML in cells. */ import React from 'react'; @@ -21,6 +17,9 @@ class Ports extends React.Component { return ( <>

Ports example

+ This example demonstrates implementing + ports as child vertices with relative positions and drag and drop + as well as the use of images and HTML in cells.
{ diff --git a/src/pages/RadialTreeLayout.js b/src/pages/RadialTreeLayout.js index 766e083cc..995ce278e 100644 --- a/src/pages/RadialTreeLayout.js +++ b/src/pages/RadialTreeLayout.js @@ -1,9 +1,5 @@ /** * Copyright (c) 2006-2014, JGraph Ltd - - Hierarchical Layout. This example demonstrates the - use of the hierarchical and organic layouts. Note that the hierarchical - layout requires another script tag in the head of the page. */ import React from 'react'; @@ -23,6 +19,10 @@ class RadialTreeLayout extends React.Component { return ( <>

Hierarchical Layout

+ This example demonstrates the + use of the hierarchical and organic layouts. Note that the hierarchical + layout requires another script tag in the head of the page. +
{ this.el = el; diff --git a/src/pages/Resources.js b/src/pages/Resources.js index 2991df0cc..20818f07a 100644 --- a/src/pages/Resources.js +++ b/src/pages/Resources.js @@ -1,8 +1,7 @@ /** * Copyright (c) 2006-2018, JGraph Ltd - Resources. This example demonstrates disabling the Synchronous - XMLHttpRequest on main thread warning. + */ import React from 'react'; @@ -21,6 +20,8 @@ class Resources extends React.Component { return ( <>

Resources

+ This example demonstrates disabling the Synchronous + XMLHttpRequest on main thread warning.
{ diff --git a/src/pages/Schema.js b/src/pages/Schema.js index b1c59b344..234aa569c 100644 --- a/src/pages/Schema.js +++ b/src/pages/Schema.js @@ -1,8 +1,5 @@ /** * Copyright (c) 2006-2013, JGraph Ltd - - Schema. This example demonstrates implementing - a SQL schema editor. */ import React from 'react'; @@ -10,7 +7,7 @@ import mxEvent from '../mxgraph/util/mxEvent'; import mxGraph from '../mxgraph/view/mxGraph'; import mxRubberband from '../mxgraph/handler/mxRubberband'; -class MYNAMEHERE extends React.Component { +class Schema extends React.Component { constructor(props) { super(props); } @@ -20,6 +17,8 @@ class MYNAMEHERE extends React.Component { return ( <>

Schema example

+ This example demonstrates implementing + a SQL schema editor.
{ diff --git a/src/pages/Scrollbars.js b/src/pages/Scrollbars.js index c525e2be8..66dff9bab 100644 --- a/src/pages/Scrollbars.js +++ b/src/pages/Scrollbars.js @@ -1,8 +1,7 @@ /** * Copyright (c) 2006-2015, JGraph Ltd - Scrollbars. This example demonstrates using - a scrollable table with different sections in a cell label. + */ import React from 'react'; @@ -10,7 +9,7 @@ import mxEvent from '../mxgraph/util/mxEvent'; import mxGraph from '../mxgraph/view/mxGraph'; import mxRubberband from '../mxgraph/handler/mxRubberband'; -class MYNAMEHERE extends React.Component { +class Scrollbars extends React.Component { constructor(props) { super(props); } @@ -20,6 +19,8 @@ class MYNAMEHERE extends React.Component { return ( <>

Scrollbars

+ This example demonstrates using + a scrollable table with different sections in a cell label.
{ @@ -38,7 +39,7 @@ class MYNAMEHERE extends React.Component { }; } -export default MYNAMEHERE; +export default Scrollbars;