Skip to content

Commit

Permalink
v1.8.0-alpha.0
Browse files Browse the repository at this point in the history
  • Loading branch information
taye committed Nov 17, 2019
1 parent 26f0894 commit fa8ac07
Show file tree
Hide file tree
Showing 127 changed files with 29,610 additions and 2,452 deletions.
63 changes: 2 additions & 61 deletions @interactjs/actions/resize.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { Interaction } from '../core/Interaction';
import { ActionName, Scope } from '../core/scope';
import { ActionName } from '../core/scope';
export declare type EdgeName = 'top' | 'left' | 'bottom' | 'right';
export declare type ResizableMethod = Interact.ActionMethod<Interact.ResizableOptions>;
declare module '@interactjs/core/Interactable' {
Expand All @@ -10,23 +9,8 @@ declare module '@interactjs/core/Interactable' {
declare module '@interactjs/core/Interaction' {
interface Interaction {
resizeAxes: 'x' | 'y' | 'xy';
resizeRects: {
start: Interact.FullRect;
current: Interact.Rect;
inverted: Interact.FullRect;
previous: Interact.FullRect;
delta: Interact.FullRect;
};
resizeStartAspectRatio: number;
}
interface ActionProps {
edges?: {
[edge in 'top' | 'left' | 'bottom' | 'right']?: boolean;
};
_linkedEdges?: {
[edge in 'top' | 'left' | 'bottom' | 'right']?: boolean;
};
}
}
declare module '@interactjs/core/defaultOptions' {
interface ActionDefaults {
Expand All @@ -45,48 +29,5 @@ export interface ResizeEvent extends Interact.InteractEvent<ActionName.Resize> {
deltaRect?: Interact.FullRect;
edges?: Interact.ActionProps['edges'];
}
declare function install(scope: Scope): void;
declare const resize: {
id: string;
install: typeof install;
listeners: {
'interactions:new': ({ interaction }: {
interaction: any;
}) => void;
'interactions:action-start': (arg: any) => void;
'interactions:action-move': (arg: any) => void;
'interactions:action-end': typeof end;
};
defaults: import("../types/types").ResizableOptions;
checker(_pointer: import("../types/types").PointerType, _event: import("../types/types").PointerEventType, interactable: import("@interactjs/core/Interactable").Interactable, element: import("../types/types").Element, interaction: Interaction<any>, rect: import("../types/types").Rect): {
name: string;
edges: {
[edge: string]: boolean;
};
axes?: undefined;
} | {
name: string;
axes: string;
edges?: undefined;
};
cursors: {
x: string;
y: string;
xy: string;
top: string;
left: string;
bottom: string;
right: string;
topleft: string;
bottomright: string;
topright: string;
bottomleft: string;
};
getCursor({ edges, axis, name }: import("../types/types").ActionProps<any>): string;
defaultMargin: number;
};
declare function end({ iEvent, interaction }: {
iEvent: ResizeEvent;
interaction: Interaction;
}): void;
declare const resize: Interact.Plugin;
export default resize;
135 changes: 36 additions & 99 deletions @interactjs/actions/resize.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit fa8ac07

Please sign in to comment.