-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clipboard Improvements #225
base: master
Are you sure you want to change the base?
Conversation
Things that need to get worked on:
|
@bjoernh2000 let me know if you can work on this? |
let selection = reference.view.getSelectedFeatures(); | ||
if (selectedFeatures.length > 0) { | ||
reference.pasteboard[0] = selectedFeatures[0]; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems like the cut system also got modified during the variable change but its not using the latest selection system
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok I can change that to also use the recent selection system
|
||
// if (pasteboardFeatures.length == 1) { // 1 feature | ||
// reference.updateDefaultsFromFeature(pasteboardFeatures[0]); | ||
// reference.activateTool(pasteboardFeatures[0].getType()); | ||
|
||
// } else if (pasteboardFeatures.length > 1) { // multiple features | ||
// console.log("multiple features detected") | ||
// reference.updateDefaultsFromFeatures(pasteboardFeatures); | ||
// reference.activateTools(pasteboardFeatures); | ||
// } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Delete these if you are not planning to use them anymore
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The copying of connections needs to be completed along with some slight code modifications
Updated Clipboard to allow multiple clippings.
Further fixes needed: