Class StaticEntityAbstract

Hierarchy (view full)

Constructors

Properties

_app: App
_boundingBox: Nullable<BoundingBox> = null
_cachedNode: Nullable<Group> = null
_currentKonvasDrawContext: Nullable<DrawContext> = null
_isKonvasCacheDirty: boolean = false
_isStatic = true
_konvasCache: null | KonvasCache<Record<string, Shape<ShapeConfig> | Group | LabelContainer[]>> = null
disabled: boolean = false
highlight: TrackableProperty<boolean> = ...
hitBoxes: HitBox[] = []
hover: TrackableProperty<boolean> = ...
isReady: boolean = false
metadata: any = {}
onHoverTimer: null | Timeout = null

Accessors

Methods

  • Parameters

    • params: {
          callback?: ((params: {
              e: KonvaEventObject<MouseEvent>;
              entity: BaseEntity;
              label?: LabelContainer;
          }) => void);
          eventType?: string;
          namespace?: string;
          targets?: (Shape<ShapeConfig> | Group)[];
      }
      • Optionalcallback?: ((params: {
            e: KonvaEventObject<MouseEvent>;
            entity: BaseEntity;
            label?: LabelContainer;
        }) => void)
      • OptionaleventType?: string
      • Optionalnamespace?: string
      • Optionaltargets?: (Shape<ShapeConfig> | Group)[]

    Returns void