touchcontroller
Advanced tools
Comparing version 3.0.0 to 3.0.1
@@ -14,3 +14,3 @@ import { Vector } from 'xyzt'; | ||
drawLine(options1: IParticleOptions, options2: IParticleOptions, segmentSize: number): void; | ||
readonly liveParticlesCount: number; | ||
get liveParticlesCount(): number; | ||
addContext(context: CanvasRenderingContext2D): void; | ||
@@ -17,0 +17,0 @@ subscribe(callback: () => void): void; |
@@ -18,10 +18,10 @@ import { Vector } from 'xyzt'; | ||
zIndex: number; | ||
static compare(a: Particle, b: Particle): number; | ||
static compare(a: Particle, b: Particle): 0 | -1 | 1; | ||
private shapeData; | ||
constructor(options: IParticleOptions, zIndex: number); | ||
initializeSource(): Promise<void>; | ||
readonly size: Vector; | ||
readonly live: boolean; | ||
get size(): Vector; | ||
get live(): boolean; | ||
update(delta: number): void; | ||
render(ctx: CanvasRenderingContext2D): void; | ||
} |
@@ -10,3 +10,3 @@ import { Vector } from 'xyzt'; | ||
update(delta: number): Particle[]; | ||
readonly size: Vector; | ||
get size(): Vector; | ||
} |
@@ -1,3 +0,3 @@ | ||
import { Touch } from '../Touch'; | ||
import { TouchFrame } from '../TouchFrame'; | ||
import { Touch } from '../touch/Touch'; | ||
import { TouchFrame } from '../touch/TouchFrame'; | ||
import { Awaitable } from './Awaitable'; | ||
@@ -4,0 +4,0 @@ import { IElement } from './IElement'; |
@@ -1,7 +0,9 @@ | ||
import { Observable } from 'rxjs/Observable'; | ||
import { Touch } from '../Touch'; | ||
import { TouchFrame } from '../TouchFrame'; | ||
import { Observable } from 'rxjs/internal/Observable'; | ||
import { Grid } from '../touch/Grid'; | ||
import { Touch } from '../touch/Touch'; | ||
import { TouchFrame } from '../touch/TouchFrame'; | ||
export interface ITouchController { | ||
touches: Observable<Touch>; | ||
hoveredFrames: Observable<TouchFrame>; | ||
applyGrid(grid: Grid): ITouchController; | ||
} |
import { IListener } from '../interfaces/IListener'; | ||
import { EventManager } from '../main'; | ||
import { Touch } from '../Touch'; | ||
import { TouchFrame } from '../TouchFrame'; | ||
import { Touch } from '../touch/Touch'; | ||
import { TouchFrame } from '../touch/TouchFrame'; | ||
import { IElement } from './../interfaces/IElement'; | ||
@@ -10,3 +10,3 @@ export declare class MouseListener implements IListener { | ||
private rotating; | ||
readonly title: string; | ||
get title(): string; | ||
startEventType: string; | ||
@@ -13,0 +13,0 @@ private elements; |
import { IListener } from '../interfaces/IListener'; | ||
import { Touch } from '../Touch'; | ||
import { TouchFrame } from '../TouchFrame'; | ||
import { Touch } from '../touch/Touch'; | ||
import { IElement } from './../interfaces/IElement'; | ||
@@ -8,9 +7,9 @@ import { EventManager } from './../utils/EventManager'; | ||
private eventManager; | ||
readonly title: string; | ||
get title(): string; | ||
startEventType: string; | ||
private elements; | ||
constructor(eventManager: EventManager); | ||
acceptsEvent(event: Event): boolean; | ||
init(element: IElement, anchorElement: IElement, newTouch: (touch: Touch) => void, newHoverFrame: (frame: TouchFrame) => void): void; | ||
acceptsEvent(): boolean; | ||
init(element: IElement, anchorElement: IElement, newTouch: (touch: Touch) => void): void; | ||
startFromExternalEvent(element: IElement, originalEvent: Event): Promise<void>; | ||
} |
@@ -1,4 +0,4 @@ | ||
import { BoundingBox, Transformation, Vector } from 'xyzt'; | ||
import { DrawController } from './drawController/CanvasParticlesRenderer'; | ||
import { Grid } from './Grid'; | ||
import { IParticleOptions, IParticleOptionsExternals, Particle } from './drawController/Particle'; | ||
import { Scene } from './drawController/Scene'; | ||
import { Awaitable } from './interfaces/Awaitable'; | ||
@@ -11,16 +11,18 @@ import { IElement } from './interfaces/IElement'; | ||
import { TouchListener } from './listeners/TouchListener'; | ||
import { MultiTouchController } from './MultiTouchController'; | ||
import { multiTouchTransformations } from './multiTouchTransformations'; | ||
import { Plugins } from './plugins'; | ||
import { Touch } from './Touch'; | ||
import { TouchController } from './TouchController'; | ||
import { DebugLayer } from './utils/DebugLayer'; | ||
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 { Touch } from './touch/Touch'; | ||
import { TouchController } from './touch/TouchController'; | ||
import { TouchFrame } from './touch/TouchFrame'; | ||
import { average, particleOptionsAverage, TAverageItems, VectorAverage } from './utils/average'; | ||
import { SourceCache } from './utils/Cache'; | ||
import { CanvasRectangle } from './utils/CanvasRectangle'; | ||
import { EventManager } from './utils/EventManager'; | ||
import { GridTouchController } from './GridTouchController'; | ||
declare const listeners: { | ||
MouseListener: typeof MouseListener; | ||
TouchListener: typeof TouchListener; | ||
}; | ||
export { TouchController, MultiTouchController, DebugLayer, multiTouchTransformations, Touch, listeners, DrawController, EventManager, Plugins, Grid, ITouchController, GridTouchController, Awaitable, IElement, IEvent, IListener, Transformation, // Note: exporting also Transformation from external library due to Vector is esential | ||
BoundingBox, // Note: exporting also BoundingBox from external library due to Vector is esential | ||
Vector, }; | ||
import { getBoundingClientRectEnhanced } from './utils/getBoundingClientRectEnhanced'; | ||
import { createCanvasFromSrc, createColoredCanvasFromSrc, createImageFromSrc } from './utils/imageTools'; | ||
import { sign } from './utils/mathTools'; | ||
import { MultiTouchControllerDebugLayer } from './utils/MultiTouchControllerDebugLayer'; | ||
export { sign, Grid, Touch, Scene, IEvent, average, IElement, Particle, IListener, Awaitable, TouchFrame, MultiTouch, SourceCache, EventManager, VectorAverage, TAverageItems, TouchListener, MouseListener, DrawController, CanvasRectangle, TouchController, ITouchController, IParticleOptions, createImageFromSrc, createCanvasFromSrc, GridTouchController, multiTouchTransforms, MultiTouchController, particleOptionsAverage, IParticleOptionsExternals, createColoredCanvasFromSrc, getBoundingClientRectEnhanced, MultiTouchControllerDebugLayer }; |
@@ -5,3 +5,3 @@ export declare class SourceCache<TId, TSource> { | ||
getItem(id: TId): TSource | null; | ||
setItem(id: TId, source: TSource): number; | ||
setItem(id: TId, source: TSource): void; | ||
} |
@@ -1,1 +0,1 @@ | ||
export declare function sign(x: number): number; | ||
export declare function sign(x: number): 0 | -1 | 1; |
{ | ||
"name": "touchcontroller", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"author": "Pavol Hejný <me@pavolhejny.com> (https://pavolhejny.com)", | ||
@@ -13,3 +13,3 @@ "description": "Touch and mouse controller for web apps and games", | ||
"start": "npm run develop", | ||
"build": "webpack --config webpack.production.config.js", | ||
"build": "rm -rf ./dist && webpack --config webpack.production.config.js", | ||
"develop-samples-server": "node server.js", | ||
@@ -16,0 +16,0 @@ "develop-build": "npx onchange \"src/**/*.{ts,tsx}\" --initial --kill --delay 500 -- webpack --config webpack.development.config.js", |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
1868057
35
1847