Skip to content

Commit

Permalink
Reorder modes to be bit more intuitive
Browse files Browse the repository at this point in the history
Need to draw before you can alter
  • Loading branch information
supersonicclay committed Nov 11, 2019
1 parent 65bb8c9 commit cf1ac64
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions examples/advanced/example.js
Expand Up @@ -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: [
Expand All @@ -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 }]
Expand Down

0 comments on commit cf1ac64

Please sign in to comment.