Ignore:
Timestamp:
12/12/24 17:06:06 (6 weeks ago)
Author:
stefan toskovski <stefantoska84@…>
Branches:
main
Children:
79a0317
Parents:
d565449
Message:

Pred finalna verzija

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified imaps-frontend/node_modules/konva/lib/Node.d.ts

    rd565449 r0c6b92a  
    4040    [index: string]: any;
    4141};
    42 export interface KonvaEventObject<EventType> {
     42export interface KonvaEventObject<EventType, This = Node> {
    4343    type: string;
    4444    target: Shape | Stage;
    4545    evt: EventType;
    4646    pointerId: number;
    47     currentTarget: Node;
     47    currentTarget: This;
    4848    cancelBubble: boolean;
    4949    child?: Node;
    5050}
    51 export type KonvaEventListener<This, EventType> = (this: This, ev: KonvaEventObject<EventType>) => void;
     51export type KonvaEventListener<This, EventType> = (this: This, ev: KonvaEventObject<EventType, This>) => void;
    5252export declare abstract class Node<Config extends NodeConfig = NodeConfig> {
    5353    _id: number;
     
    181181        attrs: Config & Record<string, any>;
    182182        className: string;
    183         children?: any[] | undefined;
     183        children?: Array<any>;
    184184    };
    185185    toJSON(): string;
     
    320320    transformsEnabled: GetSet<string, this>;
    321321    visible: GetSet<boolean, this>;
    322     width: number;
     322    width: GetSet<number, this>;
    323323    height: GetSet<number, this>;
    324324    x: GetSet<number, this>;
Note: See TracChangeset for help on using the changeset viewer.