Skip to content

Commit

Permalink
v1.8.5
Browse files Browse the repository at this point in the history
  • Loading branch information
Travis CI User committed Feb 26, 2020
1 parent 354da59 commit 1cc6d94
Show file tree
Hide file tree
Showing 306 changed files with 51,899 additions and 0 deletions.
7 changes: 7 additions & 0 deletions @interactjs/actions/.npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# copied from [root]/.npmignore
*.ts
!*.d.ts
*.spec.ts
*.spec.js
dist/docs
guide
23 changes: 23 additions & 0 deletions @interactjs/actions/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
Copyright (c) 2012-present Taye Adeyemi <[email protected]>

Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated
documentation files (the "Software"), to deal in the Software
without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense,
and/or sell copies of the Software, and to permit persons to
whom the Software is furnished to do so, subject to the
following conditions:

The above copyright notice and this permission notice shall
be included in all copies or substantial portions of the
Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY
KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1 change: 1 addition & 0 deletions @interactjs/actions/actions.spec.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export {};
19 changes: 19 additions & 0 deletions @interactjs/actions/drag.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
declare module '@interactjs/core/Interactable' {
interface Interactable {
draggable: DraggableMethod;
}
}
declare module '@interactjs/core/defaultOptions' {
interface ActionDefaults {
drag: Interact.DraggableOptions;
}
}
declare module '@interactjs/core/scope' {
interface ActionMap {
drag?: typeof drag;
}
}
export declare type DragEvent = Interact.InteractEvent<'drag'>;
export declare type DraggableMethod = Interact.ActionMethod<Interact.DraggableOptions>;
declare const drag: Interact.Plugin;
export default drag;
162 changes: 162 additions & 0 deletions @interactjs/actions/drag.js

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

61 changes: 61 additions & 0 deletions @interactjs/actions/drag.js.map

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

1 change: 1 addition & 0 deletions @interactjs/actions/drag.spec.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export {};
42 changes: 42 additions & 0 deletions @interactjs/actions/gesture.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
export declare type GesturableMethod = Interact.ActionMethod<Interact.GesturableOptions>;
declare module '@interactjs/core/Interaction' {
interface Interaction {
gesture?: {
angle: number;
distance: number;
scale: number;
startAngle: number;
startDistance: number;
};
}
}
declare module '@interactjs/core/Interactable' {
interface Interactable {
gesturable: GesturableMethod;
}
}
declare module '@interactjs/core/defaultOptions' {
interface ActionDefaults {
gesture: Interact.GesturableOptions;
}
}
declare module '@interactjs/core/scope' {
interface ActionMap {
gesture?: typeof gesture;
}
}
export interface GestureEvent extends Interact.InteractEvent<'gesture'> {
distance: number;
angle: number;
da: number;
scale: number;
ds: number;
box: Interact.Rect;
touches: Interact.PointerType[];
}
export interface GestureSignalArg extends Interact.DoPhaseArg<'gesture', Interact.EventPhase> {
iEvent: GestureEvent;
interaction: Interact.Interaction<'gesture'>;
}
declare const gesture: Interact.Plugin;
export default gesture;
Loading

0 comments on commit 1cc6d94

Please sign in to comment.