Skip to content

Commit

Permalink
v0.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
TahaSh committed Jun 20, 2024
1 parent 211a148 commit 362f705
Show file tree
Hide file tree
Showing 4 changed files with 367 additions and 324 deletions.
13 changes: 12 additions & 1 deletion dist/veloxi.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,8 @@ declare class CoreView {
get _parents(): CoreView[];
get rotation(): ViewRotation;
get size(): ViewSize;
get _localWidth(): number;
get _localHeight(): number;
get opacity(): ViewOpacity;
get borderRadius(): ViewBorderRadius;
get origin(): ViewOrigin;
Expand Down Expand Up @@ -528,9 +530,12 @@ declare class PointerMoveEvent extends PointerEvent_2 {
declare class PointerUpEvent extends PointerEvent_2 {
}

declare function pointToViewProgress(point: Partial<Point>, view: View, maxDistance: number): number;

declare class PositionProp extends ViewProp<Vec2> implements ViewPosition {
private _animateLayoutUpdateNextFrame;
private _parentScaleInverse;
private get _parentDiff();
get x(): number;
get y(): number;
get initialX(): number;
Expand Down Expand Up @@ -604,6 +609,8 @@ declare class Registry {
getViewsByNameForPlugin<TConfig extends PluginConfig = PluginConfig, TPluginApi extends PluginApi = PluginApi>(plugin: IPlugin<TConfig, TPluginApi>, viewName: string): Array<CoreView>;
}

declare function remap(value: number, a: number, b: number, c: number, d: number): number;

declare class RotationProp extends ViewProp<number> implements ViewRotation {
private _unit;
get degrees(): number;
Expand Down Expand Up @@ -641,6 +648,8 @@ export declare type Size = {
declare class SizeProp extends ViewProp<Vec2> implements ViewSize {
get width(): number;
get height(): number;
get localWidth(): number;
get localHeight(): number;
get widthAfterScale(): number;
get heightAfterScale(): number;
get initialWidth(): number;
Expand Down Expand Up @@ -712,7 +721,9 @@ declare namespace Utils {
export {
minBy,
clamp,
valueAtPercentage
valueAtPercentage,
remap,
pointToViewProgress
}
}
export { Utils }
Expand Down
Loading

0 comments on commit 362f705

Please sign in to comment.