Skip to content

Commit

Permalink
v0.11.0
Browse files Browse the repository at this point in the history
  • Loading branch information
TahaSh committed Jul 10, 2024
1 parent 2d35482 commit af6396e
Show file tree
Hide file tree
Showing 4 changed files with 261 additions and 223 deletions.
15 changes: 14 additions & 1 deletion dist/veloxi.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ export declare class ClickEventPlugin extends EventPlugin {

declare type CompleteCallback = () => void;

declare class CoreView {
declare class CoreView implements View {
readonly id: string;
name: string;
element: HTMLElement;
Expand Down Expand Up @@ -207,6 +207,9 @@ declare class CoreView {
get viewProps(): ViewPropCollection;
getPropByName(propName: ViewPropName): IViewProp | undefined;
_copyAnimatorsToAnotherView(view: CoreView): void;
getChildren(viewName: string): View[];
getChild(viewName: string): View;
getParent(viewName: string): View | undefined;
}

export declare function createApp(): App;
Expand Down Expand Up @@ -248,6 +251,8 @@ declare class DragEvent_2 {
previousY: number;
x: number;
y: number;
pointerX: number;
pointerY: number;
width: number;
height: number;
distance: number;
Expand All @@ -260,6 +265,8 @@ declare class DragEvent_2 {
previousY: number;
x: number;
y: number;
pointerX: number;
pointerY: number;
isDragging: boolean;
target: EventTarget | null;
directions: Array<Direction>;
Expand All @@ -272,6 +279,8 @@ declare class DragEvent_2 {
previousY: number;
x: number;
y: number;
pointerX: number;
pointerY: number;
width: number;
height: number;
distance: number;
Expand Down Expand Up @@ -602,6 +611,7 @@ declare class Registry {
removeViewById(viewId: ViewId, pluginId: PluginId): void;
private _unassignViewFromPlugin;
getViewById(viewId: string): CoreView | undefined;
getViewsById(viewIds: string[]): CoreView[];
private _getPluginById;
private _getPluginViewById;
destroy(pluginName?: string, callback?: () => void): void;
Expand Down Expand Up @@ -786,6 +796,9 @@ export declare interface View {
overlapsWith(view: View): boolean;
intersects(x: number, y: number): boolean;
hasElement(element: HTMLElement): boolean;
getChild(viewName: string): View;
getChildren(viewName: string): View[];
getParent(viewName: string): View | undefined;
position: ViewPosition;
opacity: ViewOpacity;
borderRadius: ViewBorderRadius;
Expand Down
Loading

0 comments on commit af6396e

Please sign in to comment.