From cf1ac645817b945962aba97805c2d08aadfb694c Mon Sep 17 00:00:00 2001 From: Clay Anderson Date: Sun, 10 Nov 2019 20:22:30 -0700 Subject: [PATCH] Reorder modes to be bit more intuitive Need to draw before you can alter --- examples/advanced/example.js | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/examples/advanced/example.js b/examples/advanced/example.js index a84c3b7a9..5773961a5 100644 --- a/examples/advanced/example.js +++ b/examples/advanced/example.js @@ -79,19 +79,6 @@ const ALL_MODES = [ category: 'View', modes: [{ label: 'View', mode: ViewMode }] }, - { - category: 'Alter', - modes: [ - { label: 'Modify', mode: ModifyMode }, - { label: 'Elevation', mode: ElevationMode }, - { label: 'Translate', mode: new SnappableMode(new TranslateMode()) }, - { label: 'Rotate', mode: RotateMode }, - { label: 'Scale', mode: ScaleMode }, - { label: 'Duplicate', mode: DuplicateMode }, - { label: 'Extrude', mode: ExtrudeMode }, - { label: 'Split', mode: SplitPolygonMode } - ] - }, { category: 'Draw', modes: [ @@ -107,6 +94,19 @@ const ALL_MODES = [ { label: 'Draw Ellipse Using 3 Points', mode: DrawEllipseUsingThreePointsMode } ] }, + { + category: 'Alter', + modes: [ + { label: 'Modify', mode: ModifyMode }, + { label: 'Elevation', mode: ElevationMode }, + { label: 'Translate', mode: new SnappableMode(new TranslateMode()) }, + { label: 'Rotate', mode: RotateMode }, + { label: 'Scale', mode: ScaleMode }, + { label: 'Duplicate', mode: DuplicateMode }, + { label: 'Extrude', mode: ExtrudeMode }, + { label: 'Split', mode: SplitPolygonMode } + ] + }, { category: 'Composite', modes: [{ label: 'Draw LineString + Modify', mode: COMPOSITE_MODE }]