touchcontroller
Advanced tools
Comparing version 3.3.0 to 3.4.0
@@ -1,4 +0,4 @@ | ||
import { MultiTouchController } from '../multitouch/MultiTouchController'; | ||
export declare class MultiTouchControllerDebugLayer { | ||
constructor(multiTouchController: MultiTouchController<any>); | ||
import { MultitouchController } from '../multitouch/MultitouchController'; | ||
export declare class MultitouchControllerDebugLayer { | ||
constructor(multitouchController: MultitouchController<any>); | ||
} |
@@ -5,8 +5,8 @@ import { Vector } from 'xyzt'; | ||
deadParticlesCount: number; | ||
private liveCtx; | ||
private deadCtx; | ||
private scene; | ||
private readonly liveCtx; | ||
private readonly deadCtx; | ||
private readonly scene; | ||
private lastRenderNow; | ||
private contexts; | ||
private subscribers; | ||
private readonly contexts; | ||
private readonly subscribers; | ||
constructor(quality: Vector, initialColor?: string); | ||
@@ -13,0 +13,0 @@ drawPoint(options: IParticleOptions): void; |
@@ -16,3 +16,3 @@ import { Vector } from 'xyzt'; | ||
export declare class Particle { | ||
private options; | ||
private readonly options; | ||
zIndex: number; | ||
@@ -19,0 +19,0 @@ static compare(a: Particle, b: Particle): 0 | -1 | 1; |
import { Vector } from 'xyzt'; | ||
import { Particle } from './Particle'; | ||
export declare class Scene { | ||
private ctx; | ||
private readonly ctx; | ||
particles: Particle[]; | ||
@@ -6,0 +6,0 @@ constructor(ctx: CanvasRenderingContext2D); |
import { Observable } from 'rxjs/internal/Observable'; | ||
import { Grid } from '../touch/Grid'; | ||
import { Touch } from '../touch/Touch'; | ||
@@ -8,3 +7,2 @@ import { TouchFrame } from '../touch/TouchFrame'; | ||
hoveredFrames: Observable<TouchFrame>; | ||
applyGrid(grid: Grid): ITouchController; | ||
} |
@@ -7,5 +7,5 @@ import { IListener } from '../interfaces/IListener'; | ||
export declare class MouseListener implements IListener { | ||
private eventManager; | ||
private buttons; | ||
private rotating; | ||
private readonly eventManager; | ||
private readonly buttons; | ||
private readonly rotating; | ||
get title(): string; | ||
@@ -12,0 +12,0 @@ startEventType: string; |
@@ -6,3 +6,3 @@ import { IListener } from '../interfaces/IListener'; | ||
export declare class TouchListener implements IListener { | ||
private eventManager; | ||
private readonly eventManager; | ||
get title(): string; | ||
@@ -9,0 +9,0 @@ startEventType: string; |
@@ -1,3 +0,2 @@ | ||
import { emulateTouch } from './debug/emulateTouch'; | ||
import { MultiTouchControllerDebugLayer } from './debug/MultiTouchControllerDebugLayer'; | ||
import { MultitouchControllerDebugLayer } from './debug/MultiTouchControllerDebugLayer'; | ||
import { TouchControllerDebugLayer } from './debug/TouchControllerDebugLayer'; | ||
@@ -7,2 +6,4 @@ import { DrawController } from './drawController/CanvasParticlesRenderer'; | ||
import { Scene } from './drawController/Scene'; | ||
import { emulateTouch } from './emulate/emulateTouch'; | ||
import { IEmulateTouchOptions, IEmulateTouchOptionsAdvanced } from './emulate/IEmulateTouchOptions'; | ||
import { Awaitable } from './interfaces/Awaitable'; | ||
@@ -15,7 +16,5 @@ import { IElement } from './interfaces/IElement'; | ||
import { TouchListener } from './listeners/TouchListener'; | ||
import { MultiTouch } from './multitouch/MultiTouch'; | ||
import { MultiTouchController } from './multitouch/MultiTouchController'; | ||
import { multiTouchTransforms } from './multitouch/multiTouchTransforms'; | ||
import { Grid } from './touch/Grid'; | ||
import { GridTouchController } from './touch/GridTouchController'; | ||
import { Multitouch } from './multitouch/Multitouch'; | ||
import { MultitouchController } from './multitouch/MultitouchController'; | ||
import { multitouchTransforms } from './multitouch/multiTouchTransforms/multiTouchTransforms'; | ||
import { Touch } from './touch/Touch'; | ||
@@ -32,2 +31,2 @@ import { TouchController } from './touch/TouchController'; | ||
import { padArray } from './utils/padArray'; | ||
export { sign, Grid, Touch, Scene, IEvent, average, padArray, IElement, Particle, IListener, Awaitable, TouchFrame, MultiTouch, SourceCache, EventManager, emulateTouch, VectorAverage, TAverageItems, TouchListener, MouseListener, DrawController, CanvasRectangle, TouchController, ITouchController, IParticleOptions, createImageFromSrc, createCanvasFromSrc, GridTouchController, multiTouchTransforms, MultiTouchController, particleOptionsAverage, IParticleOptionsExternals, TouchControllerDebugLayer, createColoredCanvasFromSrc, getBoundingClientRectEnhanced, MultiTouchControllerDebugLayer }; | ||
export { sign, Touch, Scene, IEvent, average, padArray, IElement, Particle, IListener, Awaitable, TouchFrame, Multitouch, SourceCache, EventManager, emulateTouch, VectorAverage, TAverageItems, TouchListener, MouseListener, DrawController, CanvasRectangle, TouchController, ITouchController, IParticleOptions, createImageFromSrc, createCanvasFromSrc, multitouchTransforms, MultitouchController, IEmulateTouchOptions, particleOptionsAverage, IParticleOptionsExternals, TouchControllerDebugLayer, createColoredCanvasFromSrc, IEmulateTouchOptionsAdvanced, getBoundingClientRectEnhanced, MultitouchControllerDebugLayer }; |
@@ -10,4 +10,4 @@ import { Subject } from 'rxjs/internal/Subject'; | ||
readonly uuid: string; | ||
frames: Subject<TouchFrame>; | ||
firstFrame: Promise<TouchFrame>; | ||
readonly frames: Subject<TouchFrame>; | ||
readonly firstFrame: Promise<TouchFrame>; | ||
constructor(type: 'TOUCH' | 'MOUSE', // TODO: maybe as second optional param and extendable | ||
@@ -14,0 +14,0 @@ anchorElement: IElement, buttonIdentifier?: string | number | undefined); |
@@ -7,9 +7,7 @@ import { Subject } from 'rxjs/internal/Subject'; | ||
import { EventManager } from '../utils/EventManager'; | ||
import { Grid } from './Grid'; | ||
import { GridTouchController } from './GridTouchController'; | ||
import { Touch } from './Touch'; | ||
import { TouchFrame } from './TouchFrame'; | ||
export declare class TouchController implements ITouchController { | ||
elements: IElement[]; | ||
anchorElement: HTMLElement; | ||
readonly elements: IElement[]; | ||
readonly anchorElement: HTMLElement; | ||
static fromCanvas(canvas: HTMLCanvasElement): TouchController; | ||
@@ -25,5 +23,3 @@ readonly touches: Subject<Touch>; | ||
addInitialElement(element: IElement, newElementCreator: (event: Event) => Awaitable<IElement>): void; | ||
emulateTouch(touch: Touch): void; | ||
applyGrid(grid: Grid): GridTouchController; | ||
private callListenerOnElement; | ||
} |
import { Vector } from 'xyzt'; | ||
import { IElement } from '../interfaces/IElement'; | ||
export declare class TouchFrame { | ||
element: IElement; | ||
anchorElement: IElement; | ||
positionRelative: Vector; | ||
time: number; | ||
rotating: boolean; | ||
force: number; | ||
radius: Vector; | ||
readonly element: IElement; | ||
readonly anchorElement: IElement; | ||
readonly positionRelative: Vector; | ||
readonly time: number; | ||
readonly rotating: boolean; | ||
readonly force: number; | ||
readonly radius: Vector; | ||
position: Vector; | ||
@@ -12,0 +12,0 @@ constructor(element: IElement, anchorElement: IElement, positionRelative?: Vector, time?: number, rotating?: boolean, force?: number, radius?: Vector, countPosition?: boolean); |
export declare class SourceCache<TId, TSource> { | ||
private storage; | ||
private readonly storage; | ||
hasItem(id: TId): boolean; | ||
@@ -4,0 +4,0 @@ getItem(id: TId): TSource | null; |
@@ -8,3 +8,3 @@ import { BoundingBox, ITransform } from 'xyzt'; | ||
export declare class CanvasRectangle extends BoundingBox { | ||
options: ICanvasRectangleOptions; | ||
readonly options: ICanvasRectangleOptions; | ||
constructor(options: ICanvasRectangleOptions); | ||
@@ -11,0 +11,0 @@ render(ctx: CanvasRenderingContext2D): void; |
{ | ||
"name": "touchcontroller", | ||
"version": "3.3.0", | ||
"version": "3.4.0", | ||
"author": "Pavol Hejný <me@pavolhejny.com> (https://pavolhejny.com)", | ||
@@ -5,0 +5,0 @@ "description": "Touch and mouse controller for web apps and games", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
0
1301419
6299