2011-04-21 13:37:51 -04:00
|
|
|
/*
|
2013-01-28 21:03:27 -05:00
|
|
|
* Paper.js - The Swiss Army Knife of Vector Graphics Scripting.
|
2011-04-21 13:37:51 -04:00
|
|
|
* http://paperjs.org/
|
2011-06-30 06:01:51 -04:00
|
|
|
*
|
2014-01-03 19:47:16 -05:00
|
|
|
* Copyright (c) 2011 - 2014, Juerg Lehni & Jonathan Puckey
|
|
|
|
* http://scratchdisk.com/ & http://jonathanpuckey.com/
|
2011-06-30 06:01:51 -04:00
|
|
|
*
|
2011-07-01 06:17:45 -04:00
|
|
|
* Distributed under the MIT license. See LICENSE file for details.
|
|
|
|
*
|
2011-04-21 13:37:51 -04:00
|
|
|
* All rights reserved.
|
|
|
|
*/
|
|
|
|
|
2013-12-08 12:06:31 -05:00
|
|
|
// Path#_selectedSegmentState is the addition of all segment's states, and is
|
|
|
|
// compared with SelectionState.SEGMENT, the combination of all SelectionStates
|
|
|
|
// to see if all segments are fully selected.
|
2011-04-21 13:37:51 -04:00
|
|
|
var SelectionState = {
|
2011-06-14 10:37:25 -04:00
|
|
|
HANDLE_IN: 1,
|
|
|
|
HANDLE_OUT: 2,
|
2013-12-08 12:06:31 -05:00
|
|
|
POINT: 4,
|
|
|
|
SEGMENT: 7 // HANDLE_IN | HANDLE_OUT | POINT
|
2011-04-21 13:37:51 -04:00
|
|
|
};
|