From 0b51e1da2a8716ad01d51aa9c20514aa8379ff63 Mon Sep 17 00:00:00 2001 From: mcyph <20507948+mcyph@users.noreply.github.com> Date: Fri, 26 Mar 2021 12:45:54 +1100 Subject: [PATCH] cleanups and bugfixes --- src/pages/Animation.js | 7 ++-- src/pages/AutoLayout.js | 2 +- src/pages/Collapse.js | 72 ++++++++++++++++----------------- src/pages/Constituent.js | 43 +++++++++----------- src/pages/ContextIcons.js | 5 +-- src/pages/DragSource.js | 11 +++-- src/pages/Drop.js | 5 +-- src/pages/DynamicLoading.js | 5 +-- src/pages/DynamicStyle.js | 5 +-- src/pages/DynamicToolbar.js | 6 +-- src/pages/EdgeTolerance.js | 11 +++-- src/pages/Editing.js | 13 +++--- src/pages/Events.js | 14 +++---- src/pages/ExtendCanvas.js | 5 +-- src/pages/FileIO.js | 22 +++++----- src/pages/FixedIcon.js | 13 +++--- src/pages/FixedPoints.js | 5 +-- src/pages/Folding.js | 4 +- src/pages/Grid.js | 7 ++-- src/pages/Groups.js | 8 ++-- src/pages/Guides.js | 11 +++-- src/pages/Handles.js | 4 +- src/pages/HelloPort.js | 5 +-- src/pages/HelloWorld.js | 10 ++--- src/pages/HierarchicalLayout.js | 9 ++--- src/pages/HoverIcons.js | 9 ++--- src/pages/HoverStyle.js | 6 +-- src/pages/Images.js | 7 ++-- src/pages/Indicators.js | 6 +-- src/pages/JsonData.js | 5 +-- src/pages/LOD.js | 4 +- src/pages/LabelPosition.js | 5 +-- src/pages/Labels.js | 13 +++--- src/pages/Layers.js | 4 +- src/pages/Markers.js | 5 +-- src/pages/Merge.js | 9 ++--- src/pages/Monitor.js | 9 ++--- src/pages/Morph.js | 4 +- src/pages/OffPage.js | 10 ++--- src/pages/OrgChart.js | 31 +++++++------- src/pages/Orthogonal.js | 19 +++++---- src/pages/Overlays.js | 6 +-- src/pages/PageBreaks.js | 12 +++--- src/pages/Perimeter.js | 8 ++-- src/pages/Permissions.js | 7 ++-- src/pages/PortRefs.js | 10 ++--- src/pages/Previews.js | 16 ++++++-- src/pages/RadialTreeLayout.js | 7 ++-- src/pages/Resources.js | 5 +-- src/pages/SecondLabel.js | 6 +-- src/pages/Shape.js | 6 +-- src/pages/Stencils.js | 28 ++++++------- src/pages/Stylesheet.js | 10 ++--- src/pages/SwimLanes.js | 12 +++--- src/pages/Template.js | 22 +++++----- src/pages/Thread.js | 5 +-- src/pages/Toolbar.js | 5 +-- src/pages/Tree.js | 6 +-- src/pages/UserObject.js | 43 +++++++++++--------- src/pages/Validation.js | 5 +-- src/pages/Visibility.js | 5 +-- src/pages/Windows.js | 5 +-- src/pages/Wrapping.js | 5 +-- src/pages/_app.js | 2 +- 64 files changed, 307 insertions(+), 377 deletions(-) diff --git a/src/pages/Animation.js b/src/pages/Animation.js index 41f33c76e..d9f719fe3 100644 --- a/src/pages/Animation.js +++ b/src/pages/Animation.js @@ -5,7 +5,7 @@ import React from 'react'; import mxGraph from '../mxgraph/view/mxGraph'; -import mxPoint from "../mxgraph/util/mxPoint"; +import mxPoint from '../mxgraph/util/mxPoint'; class Animation extends React.Component { constructor(props) { @@ -17,9 +17,8 @@ class Animation extends React.Component { return ( <>
{this.el = el;}}
+ ref={el => {
+ this.el = el;
+ }}
style={{
border: 'solid 1px black',
overflow: 'hidden',
height: '241px',
- cursor: 'default'
+ cursor: 'default',
}}
/>
|
{this.propertiesEl = el;}}
+ ref={el => {
+ this.propertiesEl = el;
+ }}
style={{
border: 'solid 1px black',
- padding: '10px'
+ padding: '10px',
}}
/>
|