Skip to content
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

Continue using the last tool. #48

Open
ar0ra1 opened this issue Apr 7, 2020 · 1 comment
Open

Continue using the last tool. #48

ar0ra1 opened this issue Apr 7, 2020 · 1 comment

Comments

@ar0ra1
Copy link

ar0ra1 commented Apr 7, 2020

I have a canvas that requires, the person to draw a rectangle multiple times. Each time the person has to re-select the Rectangle Shape from the toolbar. Is there a way to keep using the Rectangle tool after creating a single instance ?

For default config, I have this

defaultActivePlugin: {
		name: 'Rectangle',
		mode: 'lastUsed'
	}

but this is for init only.

@extremeCrazyCoder
Copy link
Contributor

As far as I can tell using the API / Configuration options: No

Using the Code: Partially
I tried adding this (the code for deactivating the tool is here:

if (_this.onlyOneItem) {
) but just ignoring the deactivating gives error messages. So you will probably need to deactivate the tool and then reactivate it.
But I did not test this assumption.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants