mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-07-27 22:29:11 -04:00
Bigger refactoring of handling of segment selection: Have Path#_selectedSegmentState be the summed up value of all Segment's states, and compare it to segments.length * SelectionState.POINT in #fullySelected.
This commit is contained in:
parent
e670c262c3
commit
a32b687bfd
5 changed files with 43 additions and 51 deletions
src/project
|
@ -142,8 +142,8 @@ var Project = this.Project = Base.extend({
|
|||
|
||||
// TODO: Implement setSelectedItems?
|
||||
|
||||
_selectItem: function(item, select) {
|
||||
if (select) {
|
||||
_updateSelection: function(item) {
|
||||
if (item._selected) {
|
||||
this._selectedItemCount++;
|
||||
this._selectedItems[item.getId()] = item;
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue