mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-06-28 14:20:12 +00:00
add global compatibility. fix Rater setImageData declaration
This commit is contained in:
15
types/paper/index.d.ts
vendored
15
types/paper/index.d.ts
vendored
@@ -1,11 +1,14 @@
|
||||
// Type definitions for Paper.js v0.9.24
|
||||
// Project: http://paperjs.org/
|
||||
// Definitions by: Clark Stevenson <https://github.com/clark-stevenson>
|
||||
// Definitions by: Clark Stevenson <https://github.com/clark-stevenson>, Jon Lucas <https://github.com/Xakaloz>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
type NativeMouseEvent = MouseEvent;
|
||||
|
||||
declare module 'paper' {
|
||||
/**
|
||||
* @namespace paper
|
||||
*/
|
||||
declare module paper {
|
||||
|
||||
/**
|
||||
* The version of Paper.js, as a string.
|
||||
@@ -2093,8 +2096,7 @@ declare module 'paper' {
|
||||
* @param data
|
||||
* @param point
|
||||
*/
|
||||
getImageData(data: ImageData, point: Point): void;
|
||||
|
||||
setImageData(data: ImageData, point: Point): void;
|
||||
}
|
||||
/**
|
||||
* A PlacedSymbol represents an instance of a symbol which has been placed in a Paper.js project.
|
||||
@@ -4196,3 +4198,8 @@ declare module 'paper' {
|
||||
stop(): void;
|
||||
}
|
||||
}
|
||||
|
||||
declare module 'paper'
|
||||
{
|
||||
export = paper;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user