paper.js/src/path/SelectionState.js
2014-08-16 19:24:54 +02:00

21 lines
646 B
JavaScript

/*
* Paper.js - The Swiss Army Knife of Vector Graphics Scripting.
* http://paperjs.org/
*
* Copyright (c) 2011 - 2014, Juerg Lehni & Jonathan Puckey
* http://scratchdisk.com/ & http://jonathanpuckey.com/
*
* Distributed under the MIT license. See LICENSE file for details.
*
* All rights reserved.
*/
// 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.
var SelectionState = {
HANDLE_IN: 1,
HANDLE_OUT: 2,
POINT: 4,
SEGMENT: 7 // HANDLE_IN | HANDLE_OUT | POINT
};