mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 06:47:03 +00:00
Merge branch 'master' of https://github.com/DefinitelyTyped/DefinitelyTyped
This commit is contained in:
@@ -18,6 +18,7 @@ If adding a new definition:
|
||||
If changing an existing definition:
|
||||
- [ ] Provide a URL to documentation or source code which provides context for the suggested changes: <<url here>>
|
||||
- [ ] Increase the version number in the header if appropriate.
|
||||
- [ ] If you are making substantial changes, consider adding a `tslint.json` containing `{ "extends": "../tslint.json" }`.
|
||||
|
||||
If removing a declaration:
|
||||
- [ ] If a package was never on DefinitelyTyped, you don't need to do anything. (If you wrote a package and provided types, you don't need to register it with us.)
|
||||
|
||||
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
||||
// Type definitions for Angular Growl 2 v.0.7.5
|
||||
// Type definitions for Angular Growl 2 0.7
|
||||
// Project: http://janstevens.github.io/angular-growl-2
|
||||
// Definitions by: Tadeusz Hucal <https://github.com/mkp05>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
@@ -15,6 +15,6 @@
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"chosen-tests.ts"
|
||||
"chosen-js-tests.ts"
|
||||
]
|
||||
}
|
||||
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
||||
// Type definitions for cookie-session v2.0.0-alpha.1
|
||||
// Type definitions for cookie-session 2.0
|
||||
// Project: https://github.com/expressjs/cookie-session
|
||||
// Definitions by: Borislav Zhivkov <https://github.com/borislavjivkov/>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
Vendored
+179
-179
File diff suppressed because it is too large
Load Diff
Vendored
+2
-2
@@ -1,5 +1,5 @@
|
||||
// Type definitions for Farbtastic: jQuery Color Wheel v2.0.0-alpha.1
|
||||
// Project: http://mattfarina.github.io/farbtastic/
|
||||
// Type definitions for Farbtastic: jQuery Color Wheel 2.0
|
||||
// Project: https://github.com/mattfarina/farbtastic
|
||||
// Definitions by: Matt Brooks <https://github.com/EnableSoftware>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
|
||||
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
||||
// Type definitions for fromjs v2.1.6.1
|
||||
// Type definitions for fromjs 2.1
|
||||
// Project: https://github.com/suckgamony/fromjs
|
||||
// Definitions by: Glenn Dierckx <https://github.com/glenndierckx>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
||||
// Type definitions for YouTube Data API v3
|
||||
// Type definitions for YouTube Data API 3.0
|
||||
// Project: https://developers.google.com/youtube/v3/
|
||||
// Definitions by: Frank M <https://github.com/sgtfrankieboy>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
||||
// Type definitions for CSS3 InfoBubble with tabs for Google Maps API V3
|
||||
// Type definitions for CSS3 InfoBubble with tabs for Google Maps API 3.0
|
||||
// Project: http://google-maps-utility-library-v3.googlecode.com/svn/trunk/infobubble/src/
|
||||
// Definitions by: Johan Nilsson <https://github.com/Dashue>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
||||
// Type definitions for Google Recaptcha v2
|
||||
// Type definitions for Google Recaptcha 2.0
|
||||
// Project: https://www.google.com/recaptcha
|
||||
// Definitions by: Kristof Mattei <http://kristofmattei.be>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
||||
// Type definitions for hello.js 0.2.3
|
||||
// Type definitions for hello.js 0.2
|
||||
// Project: http://adodson.com/hello.js/
|
||||
// Definitions by: Pavel Zika <https://github.com/PavelPZ>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
||||
// Type definitions for HERE Maps API for JavaScript v3.0.12.4
|
||||
// Type definitions for HERE Maps API for JavaScript 3.0s
|
||||
// Project: https://developer.here.com/
|
||||
// Definitions by: Joshua Efiong <https://github.com/Josh-ES/>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
Vendored
+2
-2
@@ -1,4 +1,4 @@
|
||||
// Type definitions for html2canvas.js v0.5.0-bata.4
|
||||
// Type definitions for html2canvas.js 0.5
|
||||
// Project: https://github.com/niklasvh/html2canvas
|
||||
// Definitions by: Richard Hepburn <https://github.com/rwhepburn/>, Pei-Tang Huang <https://github.com/tan9/>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
@@ -36,7 +36,7 @@ declare namespace Html2Canvas {
|
||||
|
||||
/** Whether to attempt to load cross-origin images as CORS served, before reverting back to proxy. */
|
||||
useCORS?: boolean;
|
||||
|
||||
|
||||
/** Use svg powered rendering where available (FF11+). */
|
||||
svgRendering?: boolean;
|
||||
}
|
||||
|
||||
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
||||
// Type definitions for Imgur REST API v3
|
||||
// Type definitions for Imgur REST API 3.0
|
||||
// Project: https://api.imgur.com/
|
||||
// Definitions by: Luke William Westby <http://github.com/lukewestby>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// Type definitions for inversify 1.0.0-beta.5
|
||||
// Type definitions for inversify 1.0
|
||||
// Project: https://github.com/inversify/inversify-binding-decorators
|
||||
// Definitions by: inversify <https://github.com/inversify/>
|
||||
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// Type definitions for inversify-inject-decorators 1.0.0-beta.1
|
||||
// Type definitions for inversify-inject-decorators 1.0
|
||||
// Project: https://github.com/inversify/inversify-inject-decorators
|
||||
// Definitions by: inversify <https://github.com/inversify/>
|
||||
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
||||
|
||||
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
||||
// Type definitions for inversify 2.0.0-rc.12
|
||||
// Type definitions for inversify 2.0
|
||||
// Project: https://github.com/inversify/InversifyJS
|
||||
// Definitions by: inversify <https://github.com/inversify>
|
||||
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
||||
|
||||
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
||||
// Type definitions for IxJS 1.0.6 / ix.js
|
||||
// Type definitions for IxJS 1.0
|
||||
// Project: https://github.com/Reactive-Extensions/IxJS
|
||||
// Definitions by: Igor Oleinikov <https://github.com/Igorbek>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
||||
// Type definitions for jasmine-expect 2.0.0-beta2
|
||||
// Type definitions for jasmine-expect 2.0
|
||||
// Project: https://github.com/JamieMason/Jasmine-Matchers
|
||||
// Definitions by: UserPixel <https://github.com/UserPixel>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
||||
// Type definitions for for the JSF 2.0 Ajax request API
|
||||
// Type definitions for the JSF 2.0 Ajax request API
|
||||
// Project: https://docs.oracle.com/cd/E17802_01/j2ee/javaee/javaserverfaces/2.0/docs/js-api/symbols/jsf.ajax.html
|
||||
// Definitions by: Lars Michaelis and Stephan Zerhusen <https://github.com/ButterFaces/ButterFaces>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
||||
// Type definitions for jQuery Cycle2 version 2.1.2 (build 20140216)
|
||||
// Type definitions for jQuery Cycle2 version 2.1
|
||||
// Project: http://jquery.malsup.com/cycle2/
|
||||
// https://github.com/malsup/cycle2
|
||||
// Definitions by: Donny Nadolny <https://github.com/dnadolny/>
|
||||
|
||||
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
||||
// Type definitions for jQuery.form.js 3.26.0-2013.01.28
|
||||
// Type definitions for jQuery.form.js 3.26
|
||||
// Project: http://malsup.com/jquery/form/
|
||||
// Definitions by: François Guillot <http://fguillot.developpez.com/>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
Vendored
+3
-3
@@ -1,4 +1,4 @@
|
||||
// Type definitions for jQuery.jsignature v2
|
||||
// Type definitions for jQuery.jsignature 2.0
|
||||
// Project: https://github.com/willowsystems/jSignature
|
||||
// Definitions by: Patrick Magee <https://github.com/pjmagee>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
@@ -8,11 +8,11 @@
|
||||
|
||||
interface JQuery {
|
||||
|
||||
/**
|
||||
/**
|
||||
* inits the jSignature widget
|
||||
*/
|
||||
jSignature(): JQuery;
|
||||
|
||||
|
||||
/**
|
||||
* Arguments vary per command. When provided, command is expected to be a string with a command for jSignature. Commands supported at this time: init, reset, getData, setData, listPlugins
|
||||
* @summary
|
||||
|
||||
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
||||
// Type definitions for jQuery rowGrid.js plugin (v1.0.2)
|
||||
// Type definitions for jQuery rowGrid.js plugin 1.0
|
||||
// Project: https://github.com/brunjo/rowGrid.js
|
||||
// Definitions by: Vinayak Garg <https://github.com/vinayak-garg>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
||||
// Type definitions for json-pointer 1.0 l
|
||||
// Type definitions for json-pointer 1.0
|
||||
// Project: https://www.npmjs.org/package/json-pointer
|
||||
// Definitions by: Bart van der Schoor <https://github.com/Bartvds>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
Vendored
+4
-2
@@ -1,4 +1,4 @@
|
||||
// Type definitions for jsonwebtoken 7.1.6
|
||||
// Type definitions for jsonwebtoken 7.2.0
|
||||
// Project: https://github.com/auth0/node-jsonwebtoken
|
||||
// Definitions by: Maxime LUCE <https://github.com/SomaticIT>, Daniel Heim <https://github.com/danielheim>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
@@ -38,16 +38,18 @@ export interface SignOptions {
|
||||
* - none: No digital signature or MAC value included
|
||||
*/
|
||||
algorithm?: string;
|
||||
keyid?: string;
|
||||
/** @member {string} - Lifetime for the token expressed in a string describing a time span [rauchg/ms](https://github.com/rauchg/ms.js). Eg: `60`, `"2 days"`, `"10h"`, `"7d"` */
|
||||
expiresIn?: string | number;
|
||||
notBefore?: string;
|
||||
audience?: string;
|
||||
audience?: string | string[];
|
||||
subject?: string;
|
||||
issuer?: string;
|
||||
jwtid?: string;
|
||||
noTimestamp?: boolean;
|
||||
header?: Object;
|
||||
encoding?: string;
|
||||
|
||||
}
|
||||
|
||||
export interface VerifyOptions {
|
||||
|
||||
@@ -19,10 +19,20 @@ var cert: Buffer;
|
||||
// sign with default (HMAC SHA256)
|
||||
token = jwt.sign({ foo: 'bar' }, 'shhhhh');
|
||||
|
||||
// sign with default (HMAC SHA256) and single audience
|
||||
token = jwt.sign({ foo: 'bar' }, 'shhhhh', { audience: "theAudience"});
|
||||
|
||||
// sign with default (HMAC SHA256) and multiple audiences
|
||||
token = jwt.sign({ foo: 'bar' }, 'shhhhh', { audience: ["audience1", "audience2"]});
|
||||
|
||||
// sign with default (HMAC SHA256) and a keyid
|
||||
token = jwt.sign({ foo: 'bar' }, 'shhhhh', { keyid: "theKeyId"});
|
||||
|
||||
// sign with RSA SHA256
|
||||
cert = fs.readFileSync('private.key'); // get private key
|
||||
token = jwt.sign({ foo: 'bar' }, cert, { algorithm: 'RS256'});
|
||||
|
||||
|
||||
// sign asynchronously
|
||||
jwt.sign({ foo: 'bar' }, cert, { algorithm: 'RS256' }, function(err: Error, token: string) {
|
||||
console.log(token);
|
||||
|
||||
Vendored
+2
-2
@@ -1,4 +1,4 @@
|
||||
// Type definitions for jsPlumb 1.3.16 jQuery adapter
|
||||
// Type definitions for jsPlumb jQuery adapter 1.3
|
||||
// Project: http://jsplumb.org
|
||||
// Definitions by: Steve Shearn <https://github.com/shearnie/>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
@@ -38,7 +38,7 @@ interface jsPlumbInstance {
|
||||
getInstance(): jsPlumbInstance;
|
||||
getInstance(defaults: Defaults): jsPlumbInstance;
|
||||
getInstanceIndex(): number;
|
||||
|
||||
|
||||
SVG: string;
|
||||
CANVAS: string;
|
||||
VML: string;
|
||||
|
||||
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
||||
// Type definitions for JW Player 6
|
||||
// Type definitions for JW Player 6.0
|
||||
// Project: http://developer.longtailvideo.com/trac/
|
||||
// Definitions by: Martin Duparc <https://github.com/martinduparc/>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
||||
// Type definitions for KaTeX v.0.5.0
|
||||
// Type definitions for KaTeX 0.5
|
||||
// Project: http://khan.github.io/KaTeX/
|
||||
// Definitions by: Michael Randolph <https://github.com/mrand01>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
||||
// Type definitions for logat 1.x.x
|
||||
// Type definitions for logat 1.0
|
||||
// Project: https://github.com/krvikash35/logat
|
||||
// Definitions by: Vikash <https://github.com/krvikash35/>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
||||
// Type definitions for minilog v2
|
||||
// Type definitions for minilog 2.0
|
||||
// Project: https://github.com/mixu/minilog
|
||||
// Definitions by: Guido <http://guido.io>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
@@ -96,7 +96,6 @@
|
||||
"asOfVersion": "2.0.18"
|
||||
},
|
||||
{
|
||||
<<<<<<< HEAD
|
||||
"libraryName": "camel-case",
|
||||
"typingsPackageName": "camel-case",
|
||||
"sourceRepoURL": "https://github.com/blakeembrey/camel-case",
|
||||
|
||||
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
||||
// Type definitions for nw.js v0.13.x and later
|
||||
// Type definitions for nw.js 0.13
|
||||
// Project: http://nwjs.io
|
||||
// Definitions by: Alireza Dabiri Nejad <https://github.com/alirdn>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
||||
// Type definitions for OwlCarousel v.1.3.3
|
||||
// Type definitions for OwlCarousel 1.3
|
||||
// Project: https://github.com/OwlFonk/OwlCarousel
|
||||
// Definitions by: Damian Piątkowski <https://github.com/dpiatkowski>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
Vendored
+5
-5
@@ -1,4 +1,4 @@
|
||||
// Type definitions for PhantomJS v1.9.0 API
|
||||
// Type definitions for PhantomJS API 1.9
|
||||
// Project: https://github.com/ariya/phantomjs/wiki/API-Reference
|
||||
// Definitions by: Jed Hunsaker <https://github.com/jedhunsaker>, Mike Keesey <https://github.com/keesey>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
@@ -45,7 +45,7 @@ interface System {
|
||||
}
|
||||
|
||||
interface WebPage {
|
||||
|
||||
|
||||
// Properties
|
||||
canGoBack: boolean;
|
||||
canGoForward: boolean;
|
||||
@@ -205,13 +205,13 @@ interface WebPageSettings {
|
||||
}
|
||||
|
||||
interface FileSystem {
|
||||
|
||||
|
||||
// Properties
|
||||
separator: string;
|
||||
workingDirectory: string;
|
||||
|
||||
|
||||
// Functions
|
||||
|
||||
|
||||
// Query Functions
|
||||
list(path: string): string[];
|
||||
absolute(path: string): string;
|
||||
|
||||
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
||||
// Type definitions for Pixi-spine v1.3, works with pixi.js v4
|
||||
// Type definitions for Pixi-spine 1.3
|
||||
// Project: https://github.com/pixijs/pixi-spine/tree/master
|
||||
// Definitions by: Ivan Popelyshev <https://github.com/pixijs/pixi-spine>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
Vendored
+343
-80
@@ -1,6 +1,6 @@
|
||||
// Type definitions for Pixi.js 4.1
|
||||
// Project: https://github.com/pixijs/pixi.js/tree/dev
|
||||
// Definitions by: clark-stevenson <https://github.com/pixijs/pixi-typescript>
|
||||
// Type definitions for Pixi.js v4.3.0
|
||||
// Project: https://github.com/pixijs/pixi.js/
|
||||
// Definitions by: Clark Stevenson <https://github.com/clark-stevenson>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
declare module PIXI {
|
||||
@@ -10,29 +10,55 @@ declare module PIXI {
|
||||
export var PI_2: typeof CONST.PI_2;
|
||||
export var RAD_TO_DEG: typeof CONST.RAD_TO_DEG;
|
||||
export var DEG_TO_RAD: typeof CONST.DEG_TO_RAD;
|
||||
export var TARGET_FPMS: typeof CONST.TARGET_FPMS;
|
||||
export var RENDERER_TYPE: typeof CONST.RENDERER_TYPE;
|
||||
export var BLEND_MODES: typeof CONST.BLEND_MODES;
|
||||
export var DRAW_MODES: typeof CONST.DRAW_MODES;
|
||||
export var SCALE_MODES: typeof CONST.SCALE_MODES;
|
||||
export var WRAP_MODES: typeof CONST.WRAP_MODES;
|
||||
export var TRANSFORM_MODE: typeof CONST.TRANSFORM_MODE;
|
||||
export var SPRITE_MAX_TEXTURES: typeof CONST.SPRITE_MAX_TEXTURES;
|
||||
export var PRECISION: typeof CONST.PRECISION;
|
||||
export var TEXT_STYLE_CHANGED: typeof CONST.TEXT_STYLE_CHANGED;
|
||||
export var GC_MODES: typeof CONST.GC_MODES;
|
||||
export var MIPMAP_TEXTURES: typeof CONST.MIPMAP_TEXTURES;
|
||||
export var RETINA_PREFIX: typeof CONST.RETINA_PREFIX;
|
||||
export var RESOLUTION: typeof CONST.RESOLUTION;
|
||||
export var FILTER_RESOLUTION: typeof CONST.FILTER_RESOLUTION;
|
||||
export var DEFAULT_RENDER_OPTIONS: typeof CONST.DEFAULT_RENDER_OPTIONS;
|
||||
export var SHAPES: typeof CONST.SHAPES;
|
||||
export var SPRITE_BATCH_SIZE: typeof CONST.SPRITE_BATCH_SIZE;
|
||||
export var TEXT_GRADIENT: typeof CONST.TEXT_GRADIENT;
|
||||
|
||||
export function autoDetectRenderer(width: number, height: number, options?: PIXI.IRendererOptions, noWebGL?: boolean): PIXI.WebGLRenderer | PIXI.CanvasRenderer;
|
||||
export var loader: PIXI.loaders.Loader;
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////////
|
||||
///////////////////////////////SETTINGS///////////////////////////////////////
|
||||
//////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
export module settings {
|
||||
export var TARGET_FPMS: number;
|
||||
export var MIPMAP_TEXTURES: boolean;
|
||||
export var RESOLUTION: number;
|
||||
export var FILTER_RESOLUTION: number;
|
||||
export var SPRITE_MAX_TEXTURES: number;
|
||||
export var SPRITE_BATCH_SIZE: number;
|
||||
export var RETINA_PREFIX: RegExp;
|
||||
export var RENDER_OPTIONS: {
|
||||
view: HTMLCanvasElement,
|
||||
antialias: boolean,
|
||||
forceFXAA: boolean,
|
||||
autoResize: boolean,
|
||||
transparent: boolean,
|
||||
backgroundColor: number,
|
||||
clearBeforeRender: boolean,
|
||||
preserveDrawingBuffer: boolean,
|
||||
roundPixels: boolean
|
||||
};
|
||||
export var TRANSFORM_MODE: number;
|
||||
export var GC_MODE: number;
|
||||
export var GC_MAX_IDLE: number;
|
||||
export var GC_MAX_CHECK_COUNT: number;
|
||||
export var WRAP_MODE: number;
|
||||
export var SCALE_MODE: number;
|
||||
export var PRECISION: string;
|
||||
export var UPLOADS_PER_FRAME: number;
|
||||
export var CAN_UPLOAD_SAME_BUFFER: boolean;
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////////
|
||||
/////////////////////////////ACCESSIBILITY////////////////////////////////////
|
||||
//////////////////////////////////////////////////////////////////////////////
|
||||
@@ -124,18 +150,15 @@ declare module PIXI {
|
||||
TRIANGLE_FAN: number;
|
||||
};
|
||||
export var SCALE_MODES: {
|
||||
DEFAULT: number,
|
||||
LINEAR: number,
|
||||
NEAREST: number
|
||||
};
|
||||
export var GC_MODES: {
|
||||
DEFAULT: number;
|
||||
AUTO: number;
|
||||
MANUAL: number;
|
||||
};
|
||||
export var WRAP_MODES: {
|
||||
CLAMP: number;
|
||||
DEFAULT: number;
|
||||
MIRRORED_REPEAT: number;
|
||||
REPEAT: number;
|
||||
};
|
||||
@@ -144,21 +167,6 @@ declare module PIXI {
|
||||
DYNAMIC: number;
|
||||
STATIC: number;
|
||||
};
|
||||
export var MIPMAP_TEXTURES: boolean;
|
||||
export var RETINA_PREFIX: RegExp;
|
||||
export var RESOLUTION: number;
|
||||
export var FILTER_RESOLUTION: number;
|
||||
export var DEFAULT_RENDER_OPTIONS: {
|
||||
view: HTMLCanvasElement;
|
||||
antialias: boolean;
|
||||
forceFXAA: boolean;
|
||||
autoResize: boolean;
|
||||
transparent: boolean;
|
||||
backgroundColor: number;
|
||||
clearBeforeRender: boolean;
|
||||
preserveDrawingBuffer: boolean;
|
||||
roundPixels: boolean;
|
||||
};
|
||||
export var URL_FILE_EXTENSION: RegExp | string;
|
||||
export var DATA_URI: RegExp | string;
|
||||
export var SVG_SIZE: RegExp | string;
|
||||
@@ -170,7 +178,6 @@ declare module PIXI {
|
||||
RREC: number;
|
||||
};
|
||||
export var PRECISION: {
|
||||
DEFAULT: string;
|
||||
LOW: string;
|
||||
MEDIUM: string;
|
||||
HIGH: string;
|
||||
@@ -179,8 +186,6 @@ declare module PIXI {
|
||||
LINEAR_VERTICAL: number;
|
||||
LINEAR_HORIZONTAL: number;
|
||||
};
|
||||
export var SPRITE_BATCH_SIZE: number;
|
||||
export var SPRITE_MAX_TEXTURES: number;
|
||||
export var TEXT_STYLE_CHANGED: string;
|
||||
|
||||
}
|
||||
@@ -224,16 +229,15 @@ declare module PIXI {
|
||||
height: number;
|
||||
|
||||
protected onChildrenChange: (...args: any[]) => void;
|
||||
addChild(child: DisplayObject): DisplayObject;
|
||||
addChild(...child: DisplayObject[]): DisplayObject;
|
||||
addChildAt(child: DisplayObject, index: number): DisplayObject;
|
||||
addChild<T extends DisplayObject>(child: T, ...additionalChildren: DisplayObject[]): T;
|
||||
addChildAt<T extends DisplayObject>(child: T, index: number): T;
|
||||
swapChildren(child: DisplayObject, child2: DisplayObject): void;
|
||||
getChildIndex(child: DisplayObject): number;
|
||||
setChildIndex(child: DisplayObject, index: number): void;
|
||||
getChildAt(index: number): DisplayObject;
|
||||
removeChild(child: DisplayObject): DisplayObject;
|
||||
removeChildAt(index: number): DisplayObject;
|
||||
removeChildren(beginIndex?: number, endIndex?: number): DisplayObject | DisplayObject[];
|
||||
removeChildren(beginIndex?: number, endIndex?: number): DisplayObject[];
|
||||
updateTransform(): void;
|
||||
calculateBounds(): void;
|
||||
protected _calculateBounds(): void;
|
||||
@@ -331,7 +335,7 @@ declare module PIXI {
|
||||
toGlobal(position: Point, point?: Point, skipUpdate?: boolean): Point;
|
||||
toLocal(position: Point, from?: DisplayObject, point?: Point, skipUpdate?: boolean): Point;
|
||||
protected renderWebGL(renderer: WebGLRenderer): void;
|
||||
protected renderCanvas(renderer: CanvasRenderer): void;
|
||||
renderCanvas(renderer: CanvasRenderer): void;
|
||||
setParent(container: Container): Container;
|
||||
setTransform(x?: number, y?: number, scaleX?: number, scaleY?: number, rotation?: number, skewX?: number, skewY?: number, pivotX?: number, pivotY?: number): DisplayObject;
|
||||
destroy(): void;
|
||||
@@ -784,9 +788,9 @@ declare module PIXI {
|
||||
export class CanvasRenderer extends SystemRenderer {
|
||||
|
||||
// plugintarget mixin start
|
||||
protected __plugins: any[];
|
||||
static __plugins: any[];
|
||||
static registerPlugin(pluginName: string, ctor: Function): void;
|
||||
plugins: any;
|
||||
registerPlugin(pluginName: string, ctor: Function): void;
|
||||
initPlugins(): void;
|
||||
destroyPlugins(): void;
|
||||
// plugintarget mixin end
|
||||
@@ -798,6 +802,9 @@ declare module PIXI {
|
||||
refresh: boolean;
|
||||
maskManager: CanvasMaskManager;
|
||||
smoothProperty: string;
|
||||
extract: extract.CanvasExtract;
|
||||
|
||||
context: CanvasRenderingContext2D;
|
||||
|
||||
render(displayObject: PIXI.DisplayObject, renderTexture?: PIXI.RenderTexture, clear?: boolean, transform?: PIXI.Transform, skipUpdateTransform?: boolean): void
|
||||
setBlendMode(blendMode: number): void;
|
||||
@@ -856,9 +863,9 @@ declare module PIXI {
|
||||
export class WebGLRenderer extends SystemRenderer {
|
||||
|
||||
// plugintarget mixin start
|
||||
protected __plugins: any[];
|
||||
static __plugins: any[];
|
||||
static registerPlugin(pluginName: string, ctor: Function): void;
|
||||
plugins: any;
|
||||
registerPlugin(pluginName: string, ctor: Function): void;
|
||||
initPlugins(): void;
|
||||
destroyPlugins(): void;
|
||||
// plugintarget mixin end
|
||||
@@ -878,14 +885,16 @@ declare module PIXI {
|
||||
emptyRenderer: ObjectRenderer;
|
||||
currentRenderer: ObjectRenderer;
|
||||
gl: WebGLRenderingContext;
|
||||
CONTEXT_UID: number;
|
||||
state: WebGLState;
|
||||
renderingToScreen: boolean;
|
||||
boundTextures: Texture[];
|
||||
filterManager: FilterManager;
|
||||
textureManager: TextureManager;
|
||||
extract: extract.WebGLExtract;
|
||||
protected drawModes: any;
|
||||
protected _activeShader: Shader;
|
||||
protected _activeRenderTarget: RenderTarget;
|
||||
_activeRenderTarget: RenderTarget;
|
||||
protected _initContext(): void;
|
||||
|
||||
render(displayObject: PIXI.DisplayObject, renderTexture?: PIXI.RenderTexture, clear?: boolean, transform?: PIXI.Transform, skipUpdateTransform?: boolean): void
|
||||
@@ -898,9 +907,10 @@ declare module PIXI {
|
||||
bindRenderTexture(renderTexture: RenderTexture, transform: Transform): WebGLRenderer;
|
||||
bindRenderTarget(renderTarget: RenderTarget): WebGLRenderer;
|
||||
bindShader(shader: Shader): WebGLRenderer;
|
||||
bindTexture(texture: Texture, location: number, forceLocation?: boolean): WebGLRenderer;
|
||||
unbindTexture(texture: Texture): WebGLRenderer;
|
||||
protected createVao(): glCore.VertexArrayObject;
|
||||
bindTexture(texture: Texture | BaseTexture, location?: number, forceLocation?: boolean): number;
|
||||
unbindTexture(texture: Texture | BaseTexture): WebGLRenderer;
|
||||
createVao(): glCore.VertexArrayObject;
|
||||
bindVao(vao: glCore.VertexArrayObject): WebGLRenderer;
|
||||
reset(): WebGLRenderer;
|
||||
handleContextLost: (event: WebGLContextEvent) => void;
|
||||
handleContextRestored: () => void;
|
||||
@@ -998,7 +1008,6 @@ declare module PIXI {
|
||||
vao: glCore.VertexArrayObject;
|
||||
initVao(shader: glCore.GLShader): void;
|
||||
map(targetTextureFrame: Rectangle, destinationFrame: Rectangle): Quad;
|
||||
draw(): Quad;
|
||||
upload(): Quad;
|
||||
destroy(): void;
|
||||
|
||||
@@ -1126,7 +1135,7 @@ declare module PIXI {
|
||||
constructor(renderer: WebGLRenderer);
|
||||
|
||||
renderer: WebGLRenderer;
|
||||
onContextChange: () => void;
|
||||
onContextChange(): void;
|
||||
destroy(): void;
|
||||
|
||||
}
|
||||
@@ -1186,7 +1195,7 @@ declare module PIXI {
|
||||
protected _tint: number;
|
||||
protected _tintRGB: number;
|
||||
blendMode: number;
|
||||
shader: glCore.GLShader | Filter;
|
||||
pluginName: string;
|
||||
protected cachedTint: number;
|
||||
texture: Texture;
|
||||
protected textureDirty: boolean;
|
||||
@@ -1208,7 +1217,7 @@ declare module PIXI {
|
||||
containsPoint(point: Point): boolean;
|
||||
destroy(options?: IDestroyOptions | boolean): void;
|
||||
|
||||
static from(source: number | string | BaseTexture | HTMLCanvasElement | HTMLVideoElement): Sprite;
|
||||
static from(source: number | string | BaseTexture | HTMLImageElement | HTMLCanvasElement | HTMLVideoElement): Sprite;
|
||||
static fromFrame(frameId: string): Sprite;
|
||||
static fromImage(imageId: string, crossorigin?: boolean, scaleMode?: number): Sprite;
|
||||
|
||||
@@ -1274,9 +1283,7 @@ declare module PIXI {
|
||||
}
|
||||
|
||||
// text
|
||||
|
||||
export class TextStyle {
|
||||
|
||||
export interface TextStyleOptions {
|
||||
align?: string;
|
||||
breakWords?: boolean;
|
||||
dropShadow?: boolean;
|
||||
@@ -1302,14 +1309,45 @@ declare module PIXI {
|
||||
textBaseline?: string;
|
||||
wordWrap?: boolean;
|
||||
wordWrapWidth?: number;
|
||||
|
||||
}
|
||||
|
||||
export class TextStyle implements TextStyleOptions {
|
||||
align: string;
|
||||
breakWords: boolean;
|
||||
dropShadow: boolean;
|
||||
dropShadowAngle: number;
|
||||
dropShadowBlur: number;
|
||||
dropShadowColor: string | number;
|
||||
dropShadowDistance: number;
|
||||
fill: string | string[] | number | number[] | CanvasGradient | CanvasPattern;
|
||||
fillGradientType: number;
|
||||
fontFamily: string;
|
||||
fontSize: number | string;
|
||||
fontStyle: string;
|
||||
fontVariant: string;
|
||||
fontWeight: string;
|
||||
letterSpacing: number;
|
||||
lineHeight: number;
|
||||
lineJoin: string;
|
||||
miterLimit: number;
|
||||
padding: number;
|
||||
stroke: string | number;
|
||||
strokeThickness: number;
|
||||
styleID: number;
|
||||
textBaseline: string;
|
||||
wordWrap: boolean;
|
||||
wordWrapWidth: number;
|
||||
constructor(style?: TextStyleOptions);
|
||||
public clone(): TextStyle;
|
||||
public reset(): void;
|
||||
}
|
||||
|
||||
export class Text extends Sprite {
|
||||
|
||||
static getFontStyle(style: TextStyle): string;
|
||||
static getFontStyle(style: TextStyleOptions): string;
|
||||
static calculateFontProperties(style: string): any;
|
||||
|
||||
constructor(text?: string, style?: TextStyle);
|
||||
constructor(text?: string, style?: TextStyleOptions);
|
||||
|
||||
canvas: HTMLCanvasElement;
|
||||
context: CanvasRenderingContext2D;
|
||||
@@ -1337,7 +1375,7 @@ declare module PIXI {
|
||||
protected wordWrap(text: string): string;
|
||||
protected _calculateBounds(): void;
|
||||
protected _onStyleChange: () => void;
|
||||
protected _generateFillStyle(style: string | number | CanvasGradient, lines: number): string | number | CanvasGradient;
|
||||
protected _generateFillStyle(style: string | number | CanvasGradient, lines: string[]): string | number | CanvasGradient;
|
||||
destroy(options?: IDestroyOptions | boolean): void;
|
||||
dirty: boolean;
|
||||
|
||||
@@ -1372,7 +1410,7 @@ declare module PIXI {
|
||||
}
|
||||
export class BaseTexture extends utils.EventEmitter {
|
||||
|
||||
constructor(source?: HTMLImageElement | HTMLCanvasElement, scaleMode?: number, resolution?: number);
|
||||
constructor(source?: HTMLImageElement | HTMLCanvasElement | HTMLVideoElement, scaleMode?: number, resolution?: number);
|
||||
|
||||
protected uuid: number;
|
||||
protected touched: number;
|
||||
@@ -1385,7 +1423,7 @@ declare module PIXI {
|
||||
hasLoaded: boolean;
|
||||
isLoading: boolean;
|
||||
wrapMode: number;
|
||||
source: HTMLImageElement | HTMLCanvasElement;
|
||||
source: HTMLImageElement | HTMLCanvasElement | HTMLVideoElement;
|
||||
origSource: HTMLImageElement;
|
||||
imageType: string;
|
||||
sourceScale: number;
|
||||
@@ -1404,7 +1442,7 @@ declare module PIXI {
|
||||
protected _loadSvgSourceUsingDataUri(dataUri: string): void;
|
||||
protected _loadSvgSourceUsingXhr(): void;
|
||||
protected _loadSvgSourceUsingString(svgString: string): void;
|
||||
loadSource(source: HTMLImageElement | HTMLCanvasElement): void;
|
||||
protected loadSource(source: HTMLImageElement | HTMLCanvasElement | HTMLVideoElement): void;
|
||||
protected _sourceLoaded(): void;
|
||||
destroy(): void;
|
||||
dispose(): void;
|
||||
@@ -1465,7 +1503,7 @@ declare module PIXI {
|
||||
static fromCanvas(canvas: HTMLCanvasElement, scaleMode?: number): Texture;
|
||||
static fromVideo(video: HTMLVideoElement | string, scaleMode?: number): Texture;
|
||||
static fromVideoUrl(videoUrl: string, scaleMode?: number): Texture;
|
||||
static from(source: number | string | BaseTexture | HTMLCanvasElement | HTMLVideoElement): Texture;
|
||||
static from(source: number | string | BaseTexture | HTMLImageElement | HTMLCanvasElement | HTMLVideoElement): Texture;
|
||||
static addTextureToCache(texture: Texture, id: string): void;
|
||||
static removeTextureFromCache(id: string): Texture;
|
||||
|
||||
@@ -1520,6 +1558,8 @@ declare module PIXI {
|
||||
static fromUrl(videoSrc: string | any | string[] | any[]): VideoBaseTexture;
|
||||
static fromUrls(videoSrc: string | any | string[] | any[]): VideoBaseTexture;
|
||||
|
||||
source: HTMLVideoElement;
|
||||
protected loadSource(source: HTMLVideoElement): void;
|
||||
}
|
||||
|
||||
// ticker
|
||||
@@ -1585,9 +1625,9 @@ declare module PIXI {
|
||||
|
||||
}
|
||||
export class WebGLExtract {
|
||||
protected renderer: CanvasRenderer;
|
||||
protected renderer: WebGLRenderer;
|
||||
|
||||
constructor(renderer: CanvasRenderer);
|
||||
constructor(renderer: WebGLRenderer);
|
||||
|
||||
image(target?: DisplayObject | RenderTexture): HTMLImageElement;
|
||||
base64(target?: DisplayObject | RenderTexture): string;
|
||||
@@ -1744,7 +1784,7 @@ declare module PIXI {
|
||||
export class FXAAFilter extends Filter { }
|
||||
export class BlurFilter extends Filter {
|
||||
|
||||
constructor(strength?: number, quality?: number, resolution?: number);
|
||||
constructor(strength?: number, quality?: number, resolution?: number, kernelSize?: number);
|
||||
|
||||
blurXFilter: BlurXFilter;
|
||||
blurYFilter: BlurYFilter;
|
||||
@@ -1759,7 +1799,7 @@ declare module PIXI {
|
||||
}
|
||||
export class BlurXFilter extends Filter {
|
||||
|
||||
constructor(strength?: number, quality?: number, resolution?: number);
|
||||
constructor(strength?: number, quality?: number, resolution?: number, kernelSize?: number);
|
||||
|
||||
protected _quality: number;
|
||||
|
||||
@@ -1773,7 +1813,7 @@ declare module PIXI {
|
||||
}
|
||||
export class BlurYFilter extends Filter {
|
||||
|
||||
constructor(strength?: number, quality?: number, resolution?: number);
|
||||
constructor(strength?: number, quality?: number, resolution?: number, kernelSize?: number);
|
||||
|
||||
protected _quality: number;
|
||||
|
||||
@@ -2102,10 +2142,10 @@ declare module PIXI {
|
||||
dirtyVertex: boolean;
|
||||
protected _geometryVersion: number;
|
||||
blendMode: number;
|
||||
pluginName: string;
|
||||
canvasPadding: number;
|
||||
drawMode: number;
|
||||
texture: Texture;
|
||||
shader: glCore.GLShader;
|
||||
tintRgb: Float32Array;
|
||||
protected _glDatas: { [n: number]: any; };
|
||||
protected _renderWebGL(renderer: WebGLRenderer): void;
|
||||
@@ -2256,7 +2296,6 @@ declare module PIXI {
|
||||
dynamicBuffer: any;
|
||||
dynamicData: any;
|
||||
|
||||
bind(): void;
|
||||
destroy(): void;
|
||||
|
||||
}
|
||||
@@ -2303,7 +2342,7 @@ declare module PIXI {
|
||||
interface uploadHook<UploadHookSource> {
|
||||
(prepare: UploadHookSource, item: any): boolean
|
||||
}
|
||||
export abstract class BasePrepare<UploadHookSource extends CanvasPrepare | WebGLRenderer>{
|
||||
export abstract class BasePrepare<UploadHookSource>{
|
||||
|
||||
constructor(renderer: SystemRenderer);
|
||||
|
||||
@@ -2317,11 +2356,11 @@ declare module PIXI {
|
||||
protected ticking: boolean;
|
||||
protected delayedTick: () => void;
|
||||
|
||||
upload(item: Function | DisplayObject | Container, done?: () => void): void;
|
||||
upload(item: Function | DisplayObject | BaseTexture | TextStyle | any, done?: () => void): void;
|
||||
protected tick(): void;
|
||||
protected prepareItems(): void;
|
||||
register(addHook?: addHook, uploadHook?: uploadHook<UploadHookSource>): BasePrepare<UploadHookSource>;
|
||||
add(item: DisplayObject | Container | any): BasePrepare<UploadHookSource>;
|
||||
register(addHook?: addHook, uploadHook?: uploadHook<UploadHookSource>): this;
|
||||
add(item: DisplayObject | any): this;
|
||||
destroy(): void;
|
||||
|
||||
}
|
||||
@@ -2410,12 +2449,12 @@ declare module PIXI {
|
||||
drawType: number;
|
||||
data: ArrayBuffer | ArrayBufferView | any;
|
||||
|
||||
upload(data: ArrayBuffer | ArrayBufferView | any, offset: number, dontBind: boolean): void;
|
||||
upload(data: ArrayBuffer | ArrayBufferView | any, offset?: number, dontBind?: boolean): void;
|
||||
bind(): void;
|
||||
|
||||
static createVertexBuffer(gl: WebGLRenderingContext, data: ArrayBuffer | ArrayBufferView | any, drawType: number): WebGLBuffer;
|
||||
static createIndexBuffer(gl: WebGLRenderingContext, data: ArrayBuffer | ArrayBufferView | any, drawType: number): WebGLBuffer;
|
||||
static create(gl: WebGLRenderingContext, type: number, data: ArrayBuffer | ArrayBufferView | any, drawType: number): WebGLBuffer;
|
||||
static createVertexBuffer(gl: WebGLRenderingContext, data: ArrayBuffer | ArrayBufferView | any, drawType: number): GLBuffer;
|
||||
static createIndexBuffer(gl: WebGLRenderingContext, data: ArrayBuffer | ArrayBufferView | any, drawType: number): GLBuffer;
|
||||
static create(gl: WebGLRenderingContext, type: number, data: ArrayBuffer | ArrayBufferView | any, drawType: number): GLBuffer;
|
||||
|
||||
destroy(): void;
|
||||
|
||||
@@ -2450,6 +2489,7 @@ declare module PIXI {
|
||||
gl: WebGLRenderingContext;
|
||||
program: WebGLProgram;
|
||||
uniforms: any;
|
||||
attributes: any;
|
||||
|
||||
bind(): void;
|
||||
destroy(): void;
|
||||
@@ -2457,7 +2497,7 @@ declare module PIXI {
|
||||
}
|
||||
export class GLTexture {
|
||||
|
||||
constructor(gl: WebGLRenderingContext, width: number, height: number, format: number, type: number);
|
||||
constructor(gl: WebGLRenderingContext, width?: number, height?: number, format?: number, type?: number);
|
||||
|
||||
gl: WebGLRenderingContext;
|
||||
texture: WebGLTexture;
|
||||
@@ -2468,9 +2508,9 @@ declare module PIXI {
|
||||
format: number;
|
||||
type: number;
|
||||
|
||||
upload(source: HTMLImageElement | ImageData | HTMLVideoElement): void;
|
||||
upload(source: HTMLImageElement | ImageData | HTMLVideoElement | HTMLCanvasElement): void;
|
||||
uploadData(data: number, width: number, height: number): void;
|
||||
bind(): void;
|
||||
bind(location?: number): void;
|
||||
unbind(): void;
|
||||
minFilter(linear: boolean): void;
|
||||
magFilter(linear: boolean): void;
|
||||
@@ -2482,7 +2522,7 @@ declare module PIXI {
|
||||
enableWrapMirrorRepeat(): void;
|
||||
destroy(): void;
|
||||
|
||||
static fromSource(gl: WebGLRenderingContext, source: HTMLImageElement | ImageData | HTMLVideoElement, premultipleAlpha?: boolean): GLTexture;
|
||||
static fromSource(gl: WebGLRenderingContext, source: HTMLImageElement | ImageData | HTMLVideoElement | HTMLCanvasElement, premultipleAlpha?: boolean): GLTexture;
|
||||
static fromData(gl: WebGLRenderingContext, data: number[], width: number, height: number): GLTexture;
|
||||
|
||||
}
|
||||
@@ -2558,7 +2598,7 @@ declare module PIXI {
|
||||
export function hex2string(hex: number): string;
|
||||
export function rgb2hex(rgb: Number[]): number;
|
||||
export function canUseNewCanvasBlendModes(): boolean;
|
||||
export function getResolutionOfUrl(url: string): number;
|
||||
export function getResolutionOfUrl(url: string, defaultValue?: number): number;
|
||||
export function getSvgSize(svgString: string): any;
|
||||
export function decomposeDataUri(dataUri: string): IDecomposedDataUri;
|
||||
export function getUrlFileExtension(url: string): string;
|
||||
@@ -2625,6 +2665,229 @@ declare module PIXI {
|
||||
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////////
|
||||
/////////////////////////////depreciation/////////////////////////////////////
|
||||
//////////////////////////////////////////////////////////////////////////////
|
||||
// not sure how to handle blendmodes scalemodes basetexturecache
|
||||
module core {
|
||||
|
||||
/**
|
||||
* @class
|
||||
* @private
|
||||
* @name SpriteBatch
|
||||
* @memberof PIXI
|
||||
* @see PIXI.ParticleContainer
|
||||
* @throws {ReferenceError} SpriteBatch does not exist any more, please use the new ParticleContainer instead.
|
||||
* @deprecated since version 3.0.0
|
||||
*/
|
||||
type SpriteBatch = ParticleContainer;
|
||||
|
||||
/**
|
||||
* @class
|
||||
* @private
|
||||
* @name AssetLoader
|
||||
* @memberof PIXI
|
||||
* @see PIXI.loaders.Loader
|
||||
* @throws {ReferenceError} The loader system was overhauled in pixi v3, please see the new PIXI.loaders.Loader class.
|
||||
* @deprecated since version 3.0.0
|
||||
*/
|
||||
type AssetLoader = loaders.Loader;
|
||||
|
||||
/**
|
||||
* @class
|
||||
* @private
|
||||
* @name Stage
|
||||
* @memberof PIXI
|
||||
* @see PIXI.Container
|
||||
* @deprecated since version 3.0.0
|
||||
*/
|
||||
type Stage = Container;
|
||||
|
||||
/**
|
||||
* @class
|
||||
* @private
|
||||
* @name DisplayObjectContainer
|
||||
* @memberof PIXI
|
||||
* @see PIXI.Container
|
||||
* @deprecated since version 3.0.0
|
||||
*/
|
||||
type DisplayObjectContainer = Container;
|
||||
|
||||
/**
|
||||
* @class
|
||||
* @private
|
||||
* @name Strip
|
||||
* @memberof PIXI
|
||||
* @see PIXI.mesh.Mesh
|
||||
* @deprecated since version 3.0.0
|
||||
*/
|
||||
type Strip = mesh.Mesh;
|
||||
|
||||
/**
|
||||
* @class
|
||||
* @private
|
||||
* @name Rope
|
||||
* @memberof PIXI
|
||||
* @see PIXI.mesh.Rope
|
||||
* @deprecated since version 3.0.0
|
||||
*/
|
||||
type Rope = mesh.Rope;
|
||||
|
||||
/**
|
||||
* @class
|
||||
* @private
|
||||
* @name ParticleContainer
|
||||
* @memberof PIXI
|
||||
* @see PIXI.particles.ParticleContainer
|
||||
* @deprecated since version 4.0.0
|
||||
*/
|
||||
type ParticleContainer = particles.ParticleContainer;
|
||||
|
||||
/**
|
||||
* @class
|
||||
* @private
|
||||
* @name MovieClip
|
||||
* @memberof PIXI
|
||||
* @see PIXI.extras.MovieClip
|
||||
* @deprecated since version 3.0.0
|
||||
*/
|
||||
type MovieClip = extras.AnimatedSprite
|
||||
|
||||
/**
|
||||
* @class
|
||||
* @private
|
||||
* @name TilingSprite
|
||||
* @memberof PIXI
|
||||
* @see PIXI.extras.TilingSprite
|
||||
* @deprecated since version 3.0.0
|
||||
*/
|
||||
type TilingSprite = extras.TilingSprite;
|
||||
|
||||
/**
|
||||
* @class
|
||||
* @private
|
||||
* @name BitmapText
|
||||
* @memberof PIXI
|
||||
* @see PIXI.extras.BitmapText
|
||||
* @deprecated since version 3.0.0
|
||||
*/
|
||||
type BitmapText = extras.BitmapText;
|
||||
|
||||
/**
|
||||
* @namespace
|
||||
* @private
|
||||
* @name math
|
||||
* @memberof PIXI
|
||||
* @see PIXI
|
||||
* @deprecated since version 3.0.6
|
||||
*/
|
||||
type math = any;
|
||||
|
||||
/**
|
||||
* @class
|
||||
* @private
|
||||
* @name PIXI.AbstractFilter
|
||||
* @see PIXI.Filter
|
||||
* @deprecated since version 3.0.6
|
||||
*/
|
||||
type AbstractFilter = Filter;
|
||||
|
||||
/**
|
||||
* @class
|
||||
* @private
|
||||
* @name PIXI.TransformManual
|
||||
* @see PIXI.TransformBase
|
||||
* @deprecated since version 4.0.0
|
||||
*/
|
||||
type TransformManual = TransformBase;
|
||||
|
||||
/**
|
||||
* @static
|
||||
* @constant
|
||||
* @name PIXI.TARGET_FPMS
|
||||
* @see PIXI.settings.TARGET_FPMS
|
||||
* @deprecated since version 4.2.0
|
||||
*/
|
||||
type TARGET_FPMS = number;
|
||||
|
||||
/**
|
||||
* @static
|
||||
* @constant
|
||||
* @name PIXI.FILTER_RESOLUTION
|
||||
* @see PIXI.settings.FILTER_RESOLUTION
|
||||
* @deprecated since version 4.2.0
|
||||
*/
|
||||
type FILTER_RESOLUTION = number;
|
||||
|
||||
/**
|
||||
* @static
|
||||
* @constant
|
||||
* @name PIXI.RESOLUTION
|
||||
* @see PIXI.settings.RESOLUTION
|
||||
* @deprecated since version 4.2.0
|
||||
*/
|
||||
type RESOLUTION = number;
|
||||
|
||||
/**
|
||||
* @static
|
||||
* @constant
|
||||
* @name PIXI.MIPMAP_TEXTURES
|
||||
* @see PIXI.settings.MIPMAP_TEXTURES
|
||||
* @deprecated since version 4.2.0
|
||||
*/
|
||||
type MIPMAP_TEXTURES = any;
|
||||
|
||||
/**
|
||||
* @static
|
||||
* @constant
|
||||
* @name PIXI.SPRITE_BATCH_SIZE
|
||||
* @see PIXI.settings.SPRITE_BATCH_SIZE
|
||||
* @deprecated since version 4.2.0
|
||||
*/
|
||||
type SPRITE_BATCH_SIZE = number;
|
||||
|
||||
/**
|
||||
* @static
|
||||
* @constant
|
||||
* @name PIXI.SPRITE_MAX_TEXTURES
|
||||
* @see PIXI.settings.SPRITE_MAX_TEXTURES
|
||||
* @deprecated since version 4.2.0
|
||||
*/
|
||||
type SPRITE_MAX_TEXTURES = number;
|
||||
|
||||
/**
|
||||
* @static
|
||||
* @constant
|
||||
* @name PIXI.RETINA_PREFIX
|
||||
* @see PIXI.settings.RETINA_PREFIX
|
||||
* @deprecated since version 4.2.0
|
||||
*/
|
||||
type RETINA_PREFIX = RegExp | string;
|
||||
|
||||
/**
|
||||
* @static
|
||||
* @constant
|
||||
* @name PIXI.DEFAULT_RENDER_OPTIONS
|
||||
* @see PIXI.settings.RENDER_OPTIONS
|
||||
* @deprecated since version 4.2.0
|
||||
*/
|
||||
type DEFAULT_RENDER_OPTIONS = number;
|
||||
|
||||
}
|
||||
|
||||
export module extras {
|
||||
|
||||
/**
|
||||
* @class
|
||||
* @name MovieClip
|
||||
* @memberof PIXI.extras
|
||||
* @see PIXI.extras.AnimatedSprite
|
||||
* @deprecated since version 4.2.0
|
||||
*/
|
||||
type MovieClip = extras.AnimatedSprite;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
declare module pixi {
|
||||
|
||||
@@ -459,7 +459,7 @@ namespace basics {
|
||||
|
||||
this.stage.addChild(this.basicText);
|
||||
|
||||
var style: PIXI.TextStyle = {
|
||||
var style: PIXI.TextStyleOptions = {
|
||||
fontSize: 36,
|
||||
fontFamily: 'Arial',
|
||||
fontWeight: 'bold',
|
||||
|
||||
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
||||
// Type definitions for Plupload 2
|
||||
// Type definitions for Plupload 2.0
|
||||
// Project: http://www.plupload.com/
|
||||
// Definitions by: Patrick Bußmann <https://github.com/patrickbussmann/>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
Vendored
+9
-9
@@ -1,4 +1,4 @@
|
||||
// Type definitions for pty.js 0.2.7-1
|
||||
// Type definitions for pty.js 0.2
|
||||
// Project: https://github.com/chjj/pty.js
|
||||
// Definitions by: Vadim Macagon <https://github.com/enlight/>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
@@ -28,7 +28,7 @@ export declare class Terminal implements stream.Stream {
|
||||
/** Read-only number of rows in the terminal. */
|
||||
rows: number;
|
||||
/**
|
||||
* Read-only identifier of the spawned process associated with the slave end of the
|
||||
* Read-only identifier of the spawned process associated with the slave end of the
|
||||
* pseudo-terminal. This will be null if the terminal was created via [[Terminal.open]].
|
||||
*/
|
||||
pid: number;
|
||||
@@ -46,14 +46,14 @@ export declare class Terminal implements stream.Stream {
|
||||
stdin: Terminal;
|
||||
socket: net.Socket;
|
||||
|
||||
/**
|
||||
* Creates a new pseudo-terminal, spawns a child process, and associates it with the slave
|
||||
/**
|
||||
* Creates a new pseudo-terminal, spawns a child process, and associates it with the slave
|
||||
* end of the pseudo-terminal.
|
||||
*/
|
||||
constructor(file?: string, args?: string[], opt?: TerminalOptions);
|
||||
|
||||
resize(cols?: number, rows?: number): void;
|
||||
/**
|
||||
/**
|
||||
* Sends a signal to the spawned process associated with the slave end of the
|
||||
* pseudo-terminal (this only works if [[pid]] is not null).
|
||||
*/
|
||||
@@ -67,7 +67,7 @@ export declare class Terminal implements stream.Stream {
|
||||
pause(): void;
|
||||
resume(): void;
|
||||
setEncoding(encoding: string): void;
|
||||
/**
|
||||
/**
|
||||
* Closes the master end of the pseudo-terminal, and attempts to kill the spawned process
|
||||
* associated with the slave end of the pseudo-terminal (but only if [[pid]] is not null).
|
||||
*/
|
||||
@@ -95,8 +95,8 @@ export declare class Terminal implements stream.Stream {
|
||||
eventNames(): string[];
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new pseudo-terminal, spawns a child process, and associates it with the slave
|
||||
/**
|
||||
* Creates a new pseudo-terminal, spawns a child process, and associates it with the slave
|
||||
* end of the pseudo-terminal.
|
||||
*/
|
||||
export declare function createTerminal(file?: string, args?: string[], opt?: TerminalOptions): Terminal;
|
||||
@@ -104,7 +104,7 @@ export declare function createTerminal(file?: string, args?: string[], opt?: Ter
|
||||
export declare function fork(file?: string, args?: string[], opt?: TerminalOptions): Terminal;
|
||||
/** Alias for [[createTerminal]]. */
|
||||
export declare function spawn(file?: string, args?: string[], opt?: TerminalOptions): Terminal;
|
||||
/**
|
||||
/**
|
||||
* Creates a new pseudo-terminal.
|
||||
* This function is not available on Windows, use [[fork]] there instead.
|
||||
*/
|
||||
|
||||
Vendored
+3
-3
@@ -1,4 +1,4 @@
|
||||
// Type definitions for pug 2.0.0-beta6
|
||||
// Type definitions for pug 2.0
|
||||
// Project: https://github.com/pugjs/pug
|
||||
// Definitions by: TonyYang <https://github.com/TonyPythoneer>, Michał Lytek <https://github.com/19majkel94>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
@@ -125,12 +125,12 @@ declare module 'pug' {
|
||||
/// Types ///
|
||||
///////////////////
|
||||
|
||||
/**
|
||||
/**
|
||||
* A function that can be use to render html string of compiled template.
|
||||
*/
|
||||
export type compileTemplate = (locals?: LocalsObject) => string;
|
||||
|
||||
/**
|
||||
/**
|
||||
* An object that can have multiple properties of any type.
|
||||
*/
|
||||
export interface LocalsObject {
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// Type definitions for React v0.14 (react-addons-create-fragment)
|
||||
// Type definitions for React (react-addons-create-fragment) 0.14
|
||||
// Project: http://facebook.github.io/react/
|
||||
// Definitions by: Asana <https://asana.com>, AssureSign <http://www.assuresign.com>, Microsoft <https://microsoft.com>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// Type definitions for React v0.14 (react-addons-css-transition-group)
|
||||
// Type definitions for React (react-addons-css-transition-group) 0.14
|
||||
// Project: http://facebook.github.io/react/
|
||||
// Definitions by: Asana <https://asana.com>, AssureSign <http://www.assuresign.com>, Microsoft <https://microsoft.com>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// Type definitions for React v0.14 (react-addons-linked-state-mixin)
|
||||
// Type definitions for React (react-addons-linked-state-mixin) 0.14
|
||||
// Project: http://facebook.github.io/react/
|
||||
// Definitions by: Asana <https://asana.com>, AssureSign <http://www.assuresign.com>, Microsoft <https://microsoft.com>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
||||
// Type definitions for React v0.14 (react-addons-perf)
|
||||
// Type definitions for React (react-addons-perf) 0.14
|
||||
// Project: http://facebook.github.io/react/
|
||||
// Definitions by: Asana <https://asana.com>, AssureSign <http://www.assuresign.com>, Microsoft <https://microsoft.com>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// Type definitions for React v0.14 (react-addons-pure-render-mixin)
|
||||
// Type definitions for React (react-addons-pure-render-mixin) 0.14
|
||||
// Project: http://facebook.github.io/react/
|
||||
// Definitions by: Asana <https://asana.com>, AssureSign <http://www.assuresign.com>, Microsoft <https://microsoft.com>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// Type definitions for React v0.14 (react-addons-shallow-compare)
|
||||
// Type definitions for React (react-addons-shallow-compare) 0.14
|
||||
// Project: http://facebook.github.io/react/
|
||||
// Definitions by: Asana <https://asana.com>, AssureSign <http://www.assuresign.com>, Microsoft <https://microsoft.com>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
||||
// Type definitions for React v0.14 (react-addons-test-utils)
|
||||
// Type definitions for React (react-addons-test-utils) 0.14
|
||||
// Project: http://facebook.github.io/react/
|
||||
// Definitions by: Asana <https://asana.com>, AssureSign <http://www.assuresign.com>, Microsoft <https://microsoft.com>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// Type definitions for React v0.14 (react-addons-transition-group)
|
||||
// Type definitions for React (react-addons-transition-group) 0.14
|
||||
// Project: http://facebook.github.io/react/
|
||||
// Definitions by: Asana <https://asana.com>, AssureSign <http://www.assuresign.com>, Microsoft <https://microsoft.com>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
||||
// Type definitions for React v0.14 (react-addons-update)
|
||||
// Type definitions for React (react-addons-update) 0.14
|
||||
// Project: http://facebook.github.io/react/
|
||||
// Definitions by: Asana <https://asana.com>, AssureSign <http://www.assuresign.com>, Microsoft <https://microsoft.com>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
||||
// Type definitions for react-big-calendar v0.11.X
|
||||
// Type definitions for react-big-calendar 0.11
|
||||
// Project: https://github.com/intljusticemission/react-big-calendar
|
||||
// Definitions by: Piotr Witek <http://piotrwitek.github.io>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
||||
// Type definitions for React v0.14 (react-dom)
|
||||
// Type definitions for React (react-dom) 0.14
|
||||
// Project: http://facebook.github.io/react/
|
||||
// Definitions by: Asana <https://asana.com>, AssureSign <http://www.assuresign.com>, Microsoft <https://microsoft.com>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
||||
// Type definitions for react-fontawesome v.1.1.0
|
||||
// Type definitions for react-fontawesome 1.1
|
||||
// Project: https://github.com/danawoodman/react-fontawesome
|
||||
// Definitions by: Timur Rustamov <https://github.com/timurrustamov>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
||||
// Type definitions for Samchon Framework v2.0.0-gamma.9
|
||||
// Type definitions for Samchon Framework 2.0
|
||||
// Project: https://github.com/samchon/framework
|
||||
// Definitions by: Jeongho Nam <http://samchon.org>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
||||
// Type definitions for Sortable.js v1.3.0-rc1
|
||||
// Type definitions for Sortable.js 1.3
|
||||
// Project: https://github.com/RubaXa/Sortable
|
||||
// Definitions by: Maw-Fox <http://github.com/Maw-Fox>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
||||
// Type definitions for three.js r81
|
||||
// Type definitions for three.js 0.81
|
||||
// Project: http://mrdoob.github.com/three.js/
|
||||
// Definitions by: Kon <http://phyzkit.net/>, Satoru Kimura <https://github.com/gyohk>, Florent Poujol <https://github.com/florentpoujol>, SereznoKot <https://github.com/SereznoKot>
|
||||
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
||||
|
||||
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
||||
// Type definitions for valdr.js v1.1.5 (valdr-message)
|
||||
// Type definitions for valdr.js (valdr-message) 1.1
|
||||
// Project: https://github.com/netceteragroup/valdr
|
||||
// Definitions by: Kai Ilbertz <https://github.com/ilbertz>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
||||
// Type definitions for Vortex Web 1.2.0p1
|
||||
// Type definitions for Vortex Web 1.2
|
||||
// Project: http://www.prismtech.com/vortex/vortex-web
|
||||
// Definitions by: Stefan Profanter <https://github.com/Pro/>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
||||
// Type definitions for webpack 1.12.2 (module API)
|
||||
// Type definitions for webpack (module API) 1.12
|
||||
// Project: https://github.com/webpack/webpack
|
||||
// Definitions by: use-strict <https://github.com/use-strict>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
||||
// Type definitions for YDN-DB version 1
|
||||
// Type definitions for YDN-DB 1.0
|
||||
// Project: http://dev.yathit.com/ydn-db/index.html
|
||||
// Definitions by: Kyaw Tun <https://github.com/yathit>, Gabriel Monteagudo <https://github.com/gabrielmaldi>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
||||
// Type definitions for Zepto 1.0-rc.1
|
||||
// Type definitions for Zepto 1.0
|
||||
// Project: http://zeptojs.com/
|
||||
// Definitions by: Josh Baldwin <https://github.com/jbaldwin/>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
||||
// Type definitions for ZeroClipboard v2.x.x
|
||||
// Type definitions for ZeroClipboard 2.0
|
||||
// Project: https://github.com/zeroclipboard/zeroclipboard
|
||||
// Definitions by: Eric J. Smith <https://github.com/ejsmith>, Blake Niemyjski <https://github.com/niemyjski>, György Balássy <https://github.com/balassy>, Leon Yu <https://github.com/leonyu>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
Reference in New Issue
Block a user