mirror of
https://github.com/konvajs/konva.git
synced 2025-06-28 04:42:02 +08:00
typescript fixes. close #1866
This commit is contained in:
parent
6e28a2a93b
commit
9e790a36ee
@ -198,7 +198,8 @@ export abstract class Node<Config extends NodeConfig = NodeConfig> {
|
|||||||
// for transform the cache can be NOT empty
|
// for transform the cache can be NOT empty
|
||||||
// but we still need to recalculate it if it is dirty
|
// but we still need to recalculate it if it is dirty
|
||||||
const isTransform = attr === TRANSFORM || attr === ABSOLUTE_TRANSFORM;
|
const isTransform = attr === TRANSFORM || attr === ABSOLUTE_TRANSFORM;
|
||||||
const invalid = cache === undefined || (isTransform && cache.dirty === true);
|
const invalid =
|
||||||
|
cache === undefined || (isTransform && cache.dirty === true);
|
||||||
|
|
||||||
// if not cached, we need to set it using the private getter method.
|
// if not cached, we need to set it using the private getter method.
|
||||||
if (invalid) {
|
if (invalid) {
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
export interface GetSet<Type, This> {
|
export interface GetSet<Type, This> {
|
||||||
(): Type;
|
(): Type;
|
||||||
(v: Type): This;
|
(v: Type | null | undefined): This;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface Vector2d {
|
export interface Vector2d {
|
||||||
|
Loading…
Reference in New Issue
Block a user