mirror of
https://github.com/google/blockly.git
synced 2026-01-07 09:00:11 +01:00
feat: make isMutator public (#6316)
* feat: make isMutator public * fix: move isFlyout and isMutator to getters * chore: delete change detector test
This commit is contained in:
@@ -61,14 +61,27 @@ export class Workspace implements IASTNodeLocation {
|
||||
*/
|
||||
rendered = false;
|
||||
|
||||
/**
|
||||
* Is this workspace the surface for a flyout?
|
||||
* @internal
|
||||
*/
|
||||
internalIsFlyout = false;
|
||||
|
||||
/** Is this workspace the surface for a flyout? */
|
||||
isFlyout = false;
|
||||
get isFlyout(): boolean {
|
||||
return this.internalIsFlyout;
|
||||
}
|
||||
|
||||
/**
|
||||
* Is this workspace the surface for a mutator?
|
||||
* @internal
|
||||
*/
|
||||
isMutator = false;
|
||||
internalIsMutator = false;
|
||||
|
||||
/** Is this workspace the surface for a mutator? */
|
||||
get isMutator(): boolean {
|
||||
return this.internalIsMutator;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns `true` if the workspace is currently in the process of a bulk
|
||||
|
||||
Reference in New Issue
Block a user