import { MutableFunction } from "./mutables.types"; import { Point } from "./point.types"; import { ContainerEvent } from "./events.types"; import { EventMode } from "../enums"; export type DisplayObjectProps = { id?: string; label?: string; position?: Point; pivot?: Point; eventMode?: EventMode; visible?: boolean; zIndex?: number; alpha?: number; }; export type DisplayObjectMutable = { getDisplayObject: () => DisplayObject; //position setPosition: (position: MutableFunction) => void; setPositionX: (x: MutableFunction) => void; setPositionY: (y: MutableFunction) => void; getPosition: () => Point; //pivot setPivot: (pivot: MutableFunction) => void; setPivotX: (x: MutableFunction) => void; setPivotY: (y: MutableFunction) => void; getPivot: () => Point; //events on: (event: ContainerEvent, callback: (data: Data) => void) => void; //visible setVisible: (visible: MutableFunction) => void; getVisible: () => boolean; //zIndex setZIndex: (zIndex: number) => void; getZIndex: () => number; //alpha setAlpha: (alpha: number) => void; getAlpha: () => number; };