mirror of
https://github.com/google/blockly.git
synced 2026-01-07 17:10:11 +01:00
* fix: add layer manager to fix dragging * chore: fix block animations * chore: add tests * chore: format
23 lines
446 B
TypeScript
23 lines
446 B
TypeScript
/**
|
|
* @license
|
|
* Copyright 2023 Google LLC
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
/** @internal */
|
|
export interface IRenderedElement {
|
|
/**
|
|
* @returns The root SVG element of htis rendered element.
|
|
*/
|
|
getSvgRoot(): SVGElement;
|
|
}
|
|
|
|
/**
|
|
* @returns True if the given object is an IRenderedElement.
|
|
*
|
|
* @internal
|
|
*/
|
|
export function isRenderedElement(obj: any): obj is IRenderedElement {
|
|
return obj['getSvgRoot'] !== undefined;
|
|
}
|