mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Merge remote-tracking branch 'borisyankov/master'
d # Please enter a commit message to explain why this merge is necessary, # especially if it merges an updated upstream into a topic branch. # # Lines starting with '#' will be ignored, and an empty message aborts # the commit.
This commit is contained in:
+37
-13
@@ -13,6 +13,7 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam
|
||||
* [:link:](amcharts/AmCharts.d.ts) [amCharts](http://www.amcharts.com) by [aleksey-bykov](https://github.com/aleksey-bykov)
|
||||
* [:link:](amplifyjs/amplifyjs.d.ts) [AmplifyJs](http://amplifyjs.com) by [Jonas Eriksson](https://github.com/joeriks)
|
||||
* [:link:](amqp-rpc/amqp-rpc.d.ts) [amqp-rpc](https://github.com/demchenkoe/node-amqp-rpc) by [Wonshik Kim](https://github.com/wokim)
|
||||
* [:link:](amqplib/amqplib.d.ts) [amqplib 0.3.x](https://github.com/squaremo/amqp.node) by [Michael Nahkies](https://github.com/mnahkies)
|
||||
* [:link:](angular2/router.d.ts) [Angular](http://angular.io) by [angular team](https://github.com/angular)
|
||||
* [:link:](angular2/angular2.d.ts) [Angular](http://angular.io) by [angular team](https://github.com/angular)
|
||||
* [:link:](angular-file-upload/angular-file-upload.d.ts) [Angular File Upload](https://github.com/danialfarid/ng-file-upload) by [John Reilly](https://github.com/johnnyreilly)
|
||||
@@ -43,6 +44,7 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam
|
||||
* [:link:](angular-notifications/angular-notifications.d.ts) [angular-notifications](https://github.com/DerekRies/angular-notifications) by [Tomasz Ducin](https://github.com/ducin/DefinitelyTyped)
|
||||
* [:link:](angular-notify/angular-notify.d.ts) [angular-notify](https://github.com/cgross/angular-notify) by [Suwato](https://github.com/Suwato/DefinitelyTyped)
|
||||
* [:link:](angular-scroll/angular-scroll.d.ts) [angular-scroll](https://github.com/oblador/angular-scroll) by [Sam Herrmann](https://github.com/samherrmann)
|
||||
* [:link:](angular-signalr-hub/angular-signalr-hub.d.ts) [angular-signalr-hub](https://github.com/JustMaier/angular-signalr-hub) by [Adam Santaniello](https://github.com/AdamSantaniello)
|
||||
* [:link:](angular-spinner/angular-spinner.d.ts) [angular-spinner.js](https://github.com/urish/angular-spinner) by [Marcin Biegała](https://github.com/Biegal)
|
||||
* [:link:](angular-storage/angular-storage.d.ts) [angular-storage](https://github.com/auth0/angular-storage) by [Matthew DeKrey](https://github.com/mdekrey)
|
||||
* [:link:](angular.throttle/angular.throttle.d.ts) [angular.throttle](https://github.com/BaggersIO/angular.throttle) by [Stefan Steinhart](https://github.com/reppners)
|
||||
@@ -183,6 +185,7 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam
|
||||
* [:link:](cordova-ionic/plugins/keyboard.d.ts) [Cordova Keyboard plugin](https://github.com/driftyco/ionic-plugins-keyboard) by [Hendrik Maus](https://github.com/hendrikmaus)
|
||||
* [:link:](cordovarduino/cordovarduino.d.ts) [Cordovarduino plugin](https://github.com/stereolux/cordovarduino) by [Hendrik Maus](https://github.com/hendrikmaus)
|
||||
* [:link:](core-js/core-js.d.ts) [core-js](https://github.com/zloirock/core-js) by [Ron Buckton](http://github.com/rbuckton)
|
||||
* [:link:](cors/cors.d.ts) [cors](https://github.com/troygoode/node-cors) by [Mihhail Lapushkin](https://github.com/mihhail-lapushkin)
|
||||
* [:link:](couchbase/couchbase.d.ts) [Couchbase Couchnode](https://github.com/couchbase/couchnode) by [Basarat Ali Syed](https://github.com/basarat)
|
||||
* [:link:](createjs/createjs.d.ts) [CreateJS](http://www.createjs.com) by [Pedro Ferreira](https://bitbucket.org/drk4), [Chris Smith](https://github.com/evilangelist), [Satoru Kimura](https://github.com/gyohk)
|
||||
* [:link:](cron/cron.d.ts) [cron](https://www.npmjs.com/package/cron) by [Hiroki Horiuchi](https://github.com/horiuchi)
|
||||
@@ -202,6 +205,7 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam
|
||||
* [:link:](dagre/dagre.d.ts) [dagre](https://github.com/cpettitt/dagre) by [Qinfeng Chen](https://github.com/qinfchen)
|
||||
* [:link:](dagre-d3/dagre-d3.d.ts) [dagre-d3.core.js](https://github.com/cpettitt/dagre-d3) by [Mark Wong Siang Kai](https://github.com/markwongsk)
|
||||
* [:link:](dat-gui/dat-gui.d.ts) [dat.GUI](https://github.com/dataarts/dat.gui) by [Satoru Kimura](https://github.com/gyohk)
|
||||
* [:link:](data-driven/data-driven.d.ts) [data-driven.js](https://github.com/fluentsoftware/data-driven) by [Adam Babcock](https://github.com/mrhen)
|
||||
* [:link:](DataStream.js/DataStream.js.d.ts) [DataStream.js](https://github.com/kig/DataStream.js) by [Tat](https://github.com/tatchx)
|
||||
* [:link:](date.format.js/date.format.d.ts) [Date Format](http://blog.stevenlevithan.com/archives/date-time-format) by [Rob Stutton](https://github.com/balrob)
|
||||
* [:link:](datejs/datejs.d.ts) [DateJS](http://www.datejs.com) by [David Khristepher Santos](http://github.com/rupertavery)
|
||||
@@ -219,6 +223,7 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam
|
||||
* [:link:](dhtmlxscheduler/dhtmlxscheduler.d.ts) [dhtmlxScheduler](http://dhtmlx.com/docs/products/dhtmlxScheduler) by [Maksim Kozhukh](http://github.com/mkozhukh)
|
||||
* [:link:](di-lite/di-lite.d.ts) [di-lite](https://github.com/NickQiZhu/di.js) by [Timothy Morris](https://github.com/dcrusader)
|
||||
* [:link:](diff/diff.d.ts) [diff](https://github.com/kpdecker/jsdiff) by [vvakame](https://github.com/vvakame)
|
||||
* [:link:](diff-match-patch/diff-match-patch.d.ts) [diff-match-patch](https://www.npmjs.com/package/diff-match-patch) by [Asana](https://asana.com)
|
||||
* [:link:](docCookies/docCookies.d.ts) [docCookies](https://developer.mozilla.org/en-US/docs/Web/API/document.cookie) by [Jon Egerton](https://github.com/jonegerton)
|
||||
* [:link:](dock-spawn/dock-spawn.d.ts) [Dock Spawn](http://dockspawn.com) by [Drew Noakes](https://drewnoakes.com)
|
||||
* [:link:](documentdb/documentdb.d.ts) [DocumentDB](https://github.com/Azure/azure-documentdb-node) by [Noel Abrahams](https://github.com/NoelAbrahams), [Brett Gutstein](https://github.com/brettferdosi)
|
||||
@@ -231,9 +236,10 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam
|
||||
* [:link:](dot-case/dot-case.d.ts) [dot-case](https://github.com/blakeembrey/dot-case) by [Sam Saint-Pettersen](https://github.com/stpettersens)
|
||||
* [:link:](dotdotdot/dotdotdot.d.ts) [dotdotdot](http://dotdotdot.frebsite.nl) by [Milan Jaros](https://github.com/milanjaros)
|
||||
* [:link:](doublearray/doublearray.d.ts) [doublearray](https://github.com/takuyaa/doublearray) by [MIZUSHIMA Junki](https://github.com/mzsm)
|
||||
* [:link:](dragula/dragula.d.ts) [dragula](http://bevacqua.github.io/dragula) by [Paul Welter](https://github.com/pwelter34)
|
||||
* [:link:](drop/drop.d.ts) [Drop](http://github.hubspot.com/drop) by [Adi Dahiya](https://github.com/adidahiya)
|
||||
* [:link:](dropboxjs/dropboxjs.d.ts) [dropbox-js](https://github.com/dropbox/dropbox-js) by [Steve Fenton](https://github.com/Steve-Fenton), [Pedro Casaubon](https://github.com/xperiments)
|
||||
* [:link:](dropzone/dropzone.d.ts) [Dropzone](http://www.dropzonejs.com) by [Natan Vivo](https://github.com/nvivo)
|
||||
* [:link:](dropzone/dropzone.d.ts) [Dropzone](http://www.dropzonejs.com) by [Natan Vivo](https://github.com/nvivo), [Andy Hawkins](https://github.com/a904guy/,http://a904guy.com/,http://www.bmbsqd.com)
|
||||
* [:link:](dsv/dsv.d.ts) [dsv](https://www.npmjs.com/package/dsv) by [Jason Swearingen](https://jasonswearingen.github.io)
|
||||
* [:link:](dts-bundle/dts-bundle.d.ts) [dts-bundle](https://github.com/TypeStrong/dts-bundle) by [Asana](https://asana.com)
|
||||
* [:link:](durandal/durandal.d.ts) [Durandal](http://durandaljs.com) by [Blue Spire](https://github.com/BlueSpire)
|
||||
@@ -243,8 +249,8 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam
|
||||
* [:link:](easy-jsend/easy-jsend.d.ts) [easy-jsend](https://github.com/DeadAlready/easy-jsend) by [Karl Düüna](https://github.com/DeadAlready)
|
||||
* [:link:](easy-session/easy-session.d.ts) [easy-session](https://github.com/DeadAlready/node-easy-session) by [Karl Düüna](https://github.com/DeadAlready)
|
||||
* [:link:](easy-table/easy-table.d.ts) [easy-table](https://github.com/eldargab/easy-table) by [Bart van der Schoor](https://github.com/Bartvds)
|
||||
* [:link:](easy-x-headers/easy-x-headers.d.ts) [easy-x-headers](https://github.com/DeadAlready/easy-x-headers) by [Karl Düüna](https://github.com/DeadAlready)
|
||||
* [:link:](easy-xapi-supertest/easy-xapi-supertest.d.ts) [easy-x-headers](https://github.com/DeadAlready/easy-x-headers) by [Karl Düüna](https://github.com/DeadAlready)
|
||||
* [:link:](easy-x-headers/easy-x-headers.d.ts) [easy-x-headers](https://github.com/DeadAlready/easy-x-headers) by [Karl Düüna](https://github.com/DeadAlready)
|
||||
* [:link:](easy-xapi/easy-xapi.d.ts) [easy-xapi](https://github.com/DeadAlready/easy-xapi) by [Karl Düüna](https://github.com/DeadAlready)
|
||||
* [:link:](easystarjs/easystarjs.d.ts) [EasyStar.js](http://easystarjs.com) by [Magnus Gustafsson](https://github.com/borundin)
|
||||
* [:link:](egg.js/egg.js.d.ts) [Egg.js](https://github.com/mikeflynn/egg.js) by [Markus Peloso](https://github.com/ToastHawaii)
|
||||
@@ -274,7 +280,7 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam
|
||||
* [:link:](eventemitter3/eventemitter3.d.ts) [EventEmitter3](https://github.com/primus/eventemitter3) by [Yuichi Murata](https://github.com/mrk21)
|
||||
* [:link:](evernote/evernote.d.ts) [evernote v](https://www.npmjs.com/package/evernote) by [Zachary Collins](https://github.com/corps)
|
||||
* [:link:](exit/exit.d.ts) [exit](https://github.com/cowboy/node-exit) by [Bart van der Schoor](https://github.com/Bartvds)
|
||||
* [:link:](expect.js/expect.js.d.ts) [expect.js](https://github.com/LearnBoost/expect.js) by [Teppei Sato](https://github.com/teppeis)
|
||||
* [:link:](expect.js/expect.js.d.ts) [expect.js](https://github.com/Automattic/expect.js) by [Teppei Sato](https://github.com/teppeis)
|
||||
* [:link:](expectations/expectations.d.ts) [expectations.js](https://github.com/spmason/expectations) by [vvakame](https://github.com/vvakame)
|
||||
* [:link:](express/express.d.ts) [Express 4.x](http://expressjs.com) by [Boris Yankov](https://github.com/borisyankov)
|
||||
* [:link:](express-debug/express-debug.d.ts) [express-debug](https://github.com/devoidfury/express-debug) by [Federico Bond](https://github.com/federicobond)
|
||||
@@ -305,6 +311,7 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam
|
||||
* [:link:](fingerprintjs/fingerprint.d.ts) [fingerprintjs](https://github.com/Valve/fingerprintjs) by [Shunsuke Ohtani](https://github.com/zaneli)
|
||||
* [:link:](state-machine/state-machine.d.ts) [Finite State Machine](https://github.com/jakesgordon/javascript-state-machine) by [Boris Yankov](https://github.com/borisyankov), [Maarten Docter](https://github.com/mdocter), [William Sears](https://github.com/MrBigDog2U)
|
||||
* [:link:](firebase/firebase.d.ts) [Firebase API](https://www.firebase.com/docs/javascript/firebase) by [Vincent Botone](https://github.com/vbortone), [Shin1 Kashimura](https://github.com/in-async)
|
||||
* [:link:](firebase-client/firebase-client.d.ts) [Firebase Client](https://www.github.com/jpstevens/firebase-client) by [Andrew Breen](https://github.com/fpsscarecrow)
|
||||
* [:link:](firebase/firebase-simplelogin.d.ts) [Firebase Simple Login](https://www.firebase.com/docs/security/simple-login-overview.html) by [Wilker Lucio](http://github.com/wilkerlucio)
|
||||
* [:link:](first-mate/first-mate.d.ts) [first-mate](https://github.com/atom/first-mate) by [Vadim Macagon](https://github.com/enlight)
|
||||
* [:link:](flexSlider/flexSlider.d.ts) [FlexSlider 2 jquery plugin](https://github.com/woothemes/FlexSlider) by [Diullei Gomes](https://github.com/diullei)
|
||||
@@ -363,9 +370,9 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam
|
||||
* [:link:](greensock/greensock.d.ts) [GreenSock Animation Platform](http://www.greensock.com/get-started-js) by [Robert S](https://github.com/codebelt)
|
||||
* [:link:](gridfs-stream/gridfs-stream.d.ts) [gridfs-stream](https://github.com/aheckmann/gridfs-stream) by [Lior Mualem](https://github.com/liorm)
|
||||
* [:link:](gruntjs/gruntjs.d.ts) [Grunt 0.4.x](http://gruntjs.com) by [Jeff May](https://github.com/jeffmay), [Basarat Ali Syed](https://github.com/basarat)
|
||||
* [:link:](gsap/Core.d.ts) [GSAP](http://greensock.com) by [VILIC VANE](https://vilic.github.io)
|
||||
* [:link:](gsap/Ease.d.ts) [GSAP](http://greensock.com) by [VILIC VANE](https://vilic.github.io)
|
||||
* [:link:](gsap/TweenLite.d.ts) [GSAP](http://greensock.com) by [VILIC VANE](https://vilic.github.io)
|
||||
* [:link:](gsap/Core.d.ts) [GSAP](http://greensock.com) by [VILIC VANE](https://vilic.github.io)
|
||||
* [:link:](gulp/gulp.d.ts) [Gulp v3.8.x](http://gulpjs.com) by [Drew Noakes](https://drewnoakes.com)
|
||||
* [:link:](gulp-autoprefixer/gulp-autoprefixer.d.ts) [gulp-autoprefixer](https://github.com/sindresorhus/gulp-autoprefixer) by [Asana](https://asana.com)
|
||||
* [:link:](gulp-concat/gulp-concat.d.ts) [gulp-concat](http://github.com/wearefractal/gulp-concat) by [Keita Kagurazaka](https://github.com/k-kagurazaka)
|
||||
@@ -379,6 +386,7 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam
|
||||
* [:link:](gulp-istanbul/gulp-istanbul.d.ts) [gulp-istanbul](https://github.com/SBoudrias/gulp-istanbul) by [Asana](https://asana.com)
|
||||
* [:link:](gulp-jasmine-browser/gulp-jasmine-browser.d.ts) [gulp-jasmine-browser](https://github.com/jasmine/gulp-jasmine-browser) by [Tanguy Krotoff](https://github.com/tkrotoff)
|
||||
* [:link:](gulp-less/gulp-less.d.ts) [gulp-less](https://github.com/plus3network/gulp-less) by [Keita Kagurazaka](https://github.com/k-kagurazaka)
|
||||
* [:link:](gulp-load-plugins/gulp-load-plugins.d.ts) [gulp-load-plugins](https://github.com/jackfranklin/gulp-load-plugins) by [Joe Skeen](http://github.com/joeskeen)
|
||||
* [:link:](gulp-minify-css/gulp-minify-css.d.ts) [gulp-minify-css](https://github.com/jonathanepollack/gulp-minify-css) by [Keita Kagurazaka](https://github.com/k-kagurazaka)
|
||||
* [:link:](gulp-minify-html/gulp-minify-html.d.ts) [gulp-minify-html](https://github.com/murphydanger/gulp-minify-html) by [Tanguy Krotoff](https://github.com/tkrotoff)
|
||||
* [:link:](gulp-mocha/gulp-mocha.d.ts) [gulp-mocha](https://github.com/sindresorhus/gulp-mocha) by [Asana](https://asana.com)
|
||||
@@ -419,15 +427,15 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam
|
||||
* [:link:](html2canvas/html2canvas.d.ts) [html2canvas.js](https://github.com/niklasvh/html2canvas) by [Richard Hepburn](https://github.com/rwhepburn)
|
||||
* [:link:](htmlparser2/htmlparser2.d.ts) [htmlparser2 v3.7.x](https://github.com/fb55/htmlparser2) by [James Roland Cabresos](https://github.com/staticfunction)
|
||||
* [:link:](htmltojsx/htmltojsx.d.ts) [htmltojsx](https://www.npmjs.com/package/htmltojsx) by [Basarat Ali Syed](https://github.com/basarat)
|
||||
* [:link:](http-errors/http-errors.d.ts) [http-errors](https://github.com/jshttp/http-errors) by [Tanguy Krotoff](https://github.com/tkrotoff)
|
||||
* [:link:](statuses/statuses.d.ts) [http-errors](https://github.com/jshttp/statuses) by [Tanguy Krotoff](https://github.com/tkrotoff)
|
||||
* [:link:](http-errors/http-errors.d.ts) [http-errors](https://github.com/jshttp/http-errors) by [Tanguy Krotoff](https://github.com/tkrotoff)
|
||||
* [:link:](http-status/http-status.d.ts) [http-status](https://github.com/wdavidw/node-http-status) by [Michael Zabka](https://github.com/misak113)
|
||||
* [:link:](http-string-parser/http-string-parser.d.ts) [http-string-parser](https://github.com/apiaryio/http-string-parser) by [MIZUNE Pine](https://github.com/pine613)
|
||||
* [:link:](humane/humane.d.ts) [Humane](http://wavded.github.com/humane-js) by [jmvrbanac](https://github.com/jmvrbanac)
|
||||
* [:link:](hypertext-application-language/hypertext-application-language.d.ts) [Hypertext Application Language Draft 6](https://tools.ietf.org/html/draft-kelly-json-hal-06) by [Maks3w](https://github.com/maks3w)
|
||||
* [:link:](i18n-node/i18n-node.d.ts) [i18n-node](https://github.com/mashpie/i18n-node) by [Maxime LUCE](https://github.com/SomaticIT)
|
||||
* [:link:](ng-i18next/ng-i18next.d.ts) [i18next](https://github.com/i18next/ng-i18next) by [Cyril Schumacher](https://github.com/cyrilschumacher)
|
||||
* [:link:](i18next/i18next.d.ts) [i18next](http://i18next.com) by [Maarten Docter](https://github.com/mdocter)
|
||||
* [:link:](ng-i18next/ng-i18next.d.ts) [i18next](https://github.com/i18next/ng-i18next) by [Cyril Schumacher](https://github.com/cyrilschumacher)
|
||||
* [:link:](iban/iban.d.ts) [iban.js](https://github.com/arhs/iban.js) by [Cyril Schumacher](https://github.com/cyrilschumacher)
|
||||
* [:link:](icheck/icheck.d.ts) [iCheck](http://damirfoy.com/iCheck) by [Dániel Tar](https://github.com/qcz)
|
||||
* [:link:](imagemagick/imagemagick.d.ts) [imagemagick](http://github.com/rsms/node-imagemagick) by [Carlos Ballesteros Velasco](https://github.com/soywiz)
|
||||
@@ -472,7 +480,7 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam
|
||||
* [:link:](jjve/jjve.d.ts) [JJVE](https://github.com/silas/jjve) by [Wim Looman](https://github.com/Nemo157)
|
||||
* [:link:](joData/joData.d.ts) [joData](https://github.com/mccow002/joData) by [Chris Wrench](https://github.com/cgwrench)
|
||||
* [:link:](johnny-five/johnny-five.d.ts) [johnny-five](https://github.com/rwaldron/johnny-five) by [Toshiya Nakakura](https://github.com/nakakura)
|
||||
* [:link:](joi/joi.d.ts) [joi](https://github.com/spumko/joi) by [Bart van der Schoor](https://github.com/Bartvds)
|
||||
* [:link:](joi/joi.d.ts) [joi](https://github.com/spumko/joi) by [Bart van der Schoor](https://github.com/Bartvds), [Laurence Dougal Myers](https://github.com/laurence-myers)
|
||||
* [:link:](jointjs/jointjs.d.ts) [Joint JS](http://www.jointjs.com) by [Aidan Reel](http://github.com/areel), [David Durman](http://github.com/DavidDurman), [Ewout Van Gossum](https://github.com/DenEwout)
|
||||
* [:link:](jqrangeslider/jqrangeslider.d.ts) [jQRangeSlider](http://ghusse.github.com/jQRangeSlider) by [Dániel Tar](https://github.com/qcz)
|
||||
* [:link:](jquery/jquery.d.ts) [jQuery 1.10.x / 2.0.x](http://jquery.com) by [Boris Yankov](https://github.com/borisyankov), [Christian Hoffmeister](https://github.com/choffmeister), [Steve Fenton](https://github.com/Steve-Fenton), [Diullei Gomes](https://github.com/Diullei), [Tass Iliopoulos](https://github.com/tasoili), [Jason Swearingen](https://github.com/jasons-novaleaf), [Sean Hill](https://github.com/seanski), [Guus Goossens](https://github.com/Guuz), [Kelly Summerlin](https://github.com/ksummerlin), [Basarat Ali Syed](https://github.com/basarat), [Nicholas Wolverson](https://github.com/nwolverson), [Derek Cicerone](https://github.com/derekcicerone), [Andrew Gaspar](https://github.com/AndrewGaspar), [James Harrison Fisher](https://github.com/jameshfisher), [Seikichi Kondo](https://github.com/seikichi), [Benjamin Jackman](https://github.com/benjaminjackman), [Poul Sorensen](https://github.com/s093294), [Josh Strobl](https://github.com/JoshStrobl), [John Reilly](https://github.com/johnnyreilly), [Dick van den Brink](https://github.com/DickvdBrink)
|
||||
@@ -544,6 +552,7 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam
|
||||
* [:link:](jquery.timer/jquery.timer.d.ts) [jQueryTimer](https://github.com/jchavannes/jquery-timer) by [Joshua Strobl](https://github.com/JoshStrobl)
|
||||
* [:link:](jquery.total-storage/jquery.total-storage.d.ts) [jQueryTotalStorage](https://github.com/Upstatement/jquery-total-storage) by [Jeremy Brooks](https://github.com/JeremyCBrooks)
|
||||
* [:link:](jqueryui/jqueryui.d.ts) [jQueryUI](http://jqueryui.com) by [Boris Yankov](https://github.com/borisyankov), [John Reilly](https://github.com/johnnyreilly)
|
||||
* [:link:](ua-parser-js/ua-parser-js.d.ts) [js-cookie](https://github.com/faisalman/ua-parser-js) by [Viktor Miroshnikov](https://github.com/superduper)
|
||||
* [:link:](js-cookie/js-cookie.d.ts) [js-cookie](https://github.com/js-cookie/js-cookie) by [Theodore Brown](https://github.com/theodorejb)
|
||||
* [:link:](js-fixtures/fixtures.d.ts) [js-fixtures](https://github.com/badunk/js-fixtures) by [Kazi Manzur Rashid](https://github.com/kazimanzurrashid)
|
||||
* [:link:](js-git/js-git.d.ts) [js-git](https://github.com/creationix/js-git) by [Bart van der Schoor](https://github.com/Bartvds)
|
||||
@@ -583,6 +592,7 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam
|
||||
* [:link:](kafka-node/kafka-node.d.ts) [kafka-node](https://github.com/SOHU-Co/kafka-node) by [Daniel Imrie-Situnayake](https://github.com/dansitu)
|
||||
* [:link:](karma/karma.d.ts) [karma](https://github.com/karma-runner/karma) by [Tanguy Krotoff](https://github.com/tkrotoff)
|
||||
* [:link:](karma-jasmine/karma-jasmine.d.ts) [karma-jasmine plugin](https://github.com/karma-runner/karma-jasmine) by [Michel Salib](https://github.com/michelsalib)
|
||||
* [:link:](katex/katex.d.ts) [KaTeX v.0.5.0](http://khan.github.io/KaTeX) by [Michael Randolph](https://github.com/mrand01)
|
||||
* [:link:](kendo-ui/kendo-ui.d.ts) [Kendo UI Professional](http://www.telerik.com/kendo-ui) by [Telerik](https://github.com/telerik)
|
||||
* [:link:](keyboardjs/keyboardjs.d.ts) [KeyboardJS](https://github.com/RobertWHurst/KeyboardJS) by [Vincent Bortone](https://github.com/vbortone)
|
||||
* [:link:](keymaster/keymaster.d.ts) [keymaster](https://github.com/madrobby/keymaster) by [Martin W. Kirst](https://github.com/nitram509)
|
||||
@@ -672,6 +682,7 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam
|
||||
* [:link:](messenger/messenger.d.ts) [Messenger.js](https://github.com/HubSpot/messenger) by [Derek Cicerone](https://github.com/derekcicerone)
|
||||
* [:link:](meteor/meteor.d.ts) [Meteor](http://www.meteor.com) by [Dave Allen](https://github.com/fullflavedave)
|
||||
* [:link:](method-override/method-override.d.ts) [method-override](https://github.com/expressjs/method-override) by [Santi Albo](https://github.com/santialbo)
|
||||
* [:link:](metismenu/metismenu.d.ts) [metisMenu](http://github.com/onokumus/metisMenu) by [onokums](https://github.com/onokumus)
|
||||
* [:link:](microsoft-ajax/microsoft.ajax.d.ts) [Microsoft ASP.NET Ajax client side library](http://msdn.microsoft.com/en-us/library/ee341002(v=vs.100).aspx) by [Patrick Magee](https://github.com/pjmagee)
|
||||
* [:link:](xrm/xrm.d.ts) [Microsoft Dynamics xRM API](http://www.microsoft.com/en-us/download/details.aspx?id=44567) by [David Berry](https://github.com/6ix4our), [Matt Ngan](https://github.com/mattngan)
|
||||
* [:link:](xrm/xrm-6.d.ts) [Microsoft Dynamics xRM API v6](http://msdn.microsoft.com/en-us/library/gg328255.aspx) by [David Berry](https://github.com/6ix4our)
|
||||
@@ -698,16 +709,16 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam
|
||||
* [:link:](mkdirp/mkdirp.d.ts) [mkdirp](http://github.com/substack/node-mkdirp) by [Bart van der Schoor](https://github.com/Bartvds)
|
||||
* [:link:](mkpath/mkpath.d.ts) [mkpath](https://www.npmjs.com/package/mkpath) by [Jared Klopper](https://github.com/optical)
|
||||
* [:link:](mobile-detect/mobile-detect.d.ts) [mobile-detect](http://hgoebl.github.io/mobile-detect.js) by [Martin McWhorter](https://github.com/martinmcwhorter)
|
||||
* [:link:](mocha/mocha.d.ts) [mocha](http://mochajs.org) by [Kazi Manzur Rashid](https://github.com/kazimanzurrashid), [otiai10](https://github.com/otiai10), [jt000](https://github.com/jt000), [Vadim Macagon](https://github.com/enlight)
|
||||
* [:link:](mocha/mocha-node.d.ts) [mocha](http://mochajs.org) by [Vadim Macagon](https://github.com/enlight), [vvakame](https://github.com/vvakame)
|
||||
* [:link:](mocha/mocha.d.ts) [mocha](http://mochajs.org) by [Kazi Manzur Rashid](https://github.com/kazimanzurrashid), [otiai10](https://github.com/otiai10), [jt000](https://github.com/jt000), [Vadim Macagon](https://github.com/enlight)
|
||||
* [:link:](mocha-phantomjs/mocha-phantomjs.d.ts) [mocha-phantomjs](http://metaskills.net/mocha-phantomjs) by [Erik Schierboom](https://github.com/ErikSchierboom)
|
||||
* [:link:](mock-fs/mock-fs.d.ts) [mock-fs](https://github.com/tschaub/mock-fs) by [Wim Looman](https://github.com/Nemo157)
|
||||
* [:link:](mockery/mockery.d.ts) [mockery](https://github.com/mfncooper/mockery) by [jt000](https://github.com/jt000)
|
||||
* [:link:](modernizr/modernizr.d.ts) [Modernizr](http://modernizr.com) by [Boris Yankov](https://github.com/borisyankov), [Theodore Brown](https://github.com/theodorejb)
|
||||
* [:link:](moment-timezone/moment-timezone.d.ts) [moment-timezone.js](http://momentjs.com/timezone) by [Michel Salib](https://github.com/michelsalib)
|
||||
* [:link:](moment/moment-node.d.ts) [Moment.js](https://github.com/timrwood/moment) by [Michael Lakerveld](https://github.com/Lakerfield), [Aaron King](https://github.com/kingdango), [Hiroki Horiuchi](https://github.com/horiuchi), [Dick van den Brink](https://github.com/DickvdBrink), [Adi Dahiya](https://github.com/adidahiya)
|
||||
* [:link:](moment/moment.d.ts) [Moment.js](https://github.com/timrwood/moment) by [Michael Lakerveld](https://github.com/Lakerfield), [Aaron King](https://github.com/kingdango), [Hiroki Horiuchi](https://github.com/horiuchi), [Dick van den Brink](https://github.com/DickvdBrink), [Adi Dahiya](https://github.com/adidahiya)
|
||||
* [:link:](moment-range/moment-range.d.ts) [Moment.js](https://github.com/gf3/moment-range) by [Bart van den Burg](https://github.com/Burgov), [Wilgert Velinga](https://github.com/wilgert)
|
||||
* [:link:](moment/moment.d.ts) [Moment.js](https://github.com/timrwood/moment) by [Michael Lakerveld](https://github.com/Lakerfield), [Aaron King](https://github.com/kingdango), [Hiroki Horiuchi](https://github.com/horiuchi), [Dick van den Brink](https://github.com/DickvdBrink), [Adi Dahiya](https://github.com/adidahiya), [Matt Brooks](https://github.com/EnableSoftware)
|
||||
* [:link:](moment/moment-node.d.ts) [Moment.js](https://github.com/timrwood/moment) by [Michael Lakerveld](https://github.com/Lakerfield), [Aaron King](https://github.com/kingdango), [Hiroki Horiuchi](https://github.com/horiuchi), [Dick van den Brink](https://github.com/DickvdBrink), [Adi Dahiya](https://github.com/adidahiya), [Matt Brooks](https://github.com/EnableSoftware)
|
||||
* [:link:](mongodb/mongodb.d.ts) [MongoDB](https://github.com/mongodb/node-mongodb-native) by [Boris Yankov](https://github.com/borisyankov)
|
||||
* [:link:](mongoose/mongoose.d.ts) [Mongoose](http://mongoosejs.com) by [horiuchi](https://github.com/horiuchi)
|
||||
* [:link:](mongoose-mock/mongoose-mock.d.ts) [mongoose-mock](https://github.com/JohanObrink/mongoose-mock) by [jt000](https://github.com/jt000)
|
||||
@@ -781,8 +792,8 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam
|
||||
* [:link:](nopt/nopt.d.ts) [nopt](https://github.com/npm/nopt) by [jbondc](https://github.com/jbondc)
|
||||
* [:link:](notifyjs/notifyjs.d.ts) [notify.js](https://github.com/alexgibson/notify.js) by [soundTricker](https://github.com/soundTricker)
|
||||
* [:link:](notify/notify.d.ts) [Notify.js](https://github.com/jpillora/notifyjs) by [Xiaohan Zhang](https://github.com/hellochar)
|
||||
* [:link:](nouislider/nouislider.d.ts) [nouislider](https://github.com/leongersen/noUiSlider) by [Corey Jepperson](https://github.com/acoreyj)
|
||||
* [:link:](wnumb/wnumb.d.ts) [nouislider](https://github.com/leongersen/wnumb) by [Corey Jepperson](https://github.com/acoreyj)
|
||||
* [:link:](nouislider/nouislider.d.ts) [nouislider](https://github.com/leongersen/noUiSlider) by [Corey Jepperson](https://github.com/acoreyj)
|
||||
* [:link:](noVNC/noVNC.d.ts) [noVNC](https://github.com/kanaka/noVNC) by [Ken Smith](https://github.com/smithkl42)
|
||||
* [:link:](npm/npm.d.ts) [npm](https://github.com/npm/npm) by [Maxime LUCE](https://github.com/SomaticIT)
|
||||
* [:link:](nprogress/NProgress.d.ts) [NProgress](https://github.com/rstacruz/nprogress) by [Judah Gabriel Himango](http://debuggerdotbreak.wordpress.com)
|
||||
@@ -807,6 +818,7 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam
|
||||
* [:link:](param-case/param-case.d.ts) [param-case](https://github.com/blakeembrey/param-case) by [Sam Saint-Pettersen](https://github.com/stpettersens)
|
||||
* [:link:](parse/parse.d.ts) [Parse](https://parse.com) by [Ullisen Media Group](http://ullisenmedia.com)
|
||||
* [:link:](parsimmon/parsimmon.d.ts) [Parsimmon](https://github.com/jneen/parsimmon) by [Bart van der Schoor](https://github.com/Bartvds)
|
||||
* [:link:](pascal-case/pascal-case.d.ts) [pascal-case](https://github.com/blakeembrey/pascal-case) by [Sam Saint-Pettersen](https://github.com/stpettersens)
|
||||
* [:link:](passport/passport.d.ts) [Passport](http://passportjs.org) by [Horiuchi_H](https://github.com/horiuchi)
|
||||
* [:link:](passport-strategy/passport-strategy.d.ts) [Passport Strategy module](https://github.com/jaredhanson/passport-strategy) by [Lior Mualem](https://github.com/liorm)
|
||||
* [:link:](passport-twitter/passport-twitter.d.ts) [passport-facebook](https://github.com/jaredhanson/passport-facebook) by [James Roland Cabresos](https://github.com/staticfunction)
|
||||
@@ -814,10 +826,12 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam
|
||||
* [:link:](passport-facebook/passport-facebook.d.ts) [passport-facebook](https://github.com/jaredhanson/passport-facebook) by [James Roland Cabresos](https://github.com/staticfunction)
|
||||
* [:link:](passport-facebook-token/passport-facebook-token.d.ts) [passport-facebook-token](https://github.com/drudge/passport-facebook-token) by [Ray Martone](https://github.com/rmartone)
|
||||
* [:link:](passport-local/passport-local.d.ts) [passport-local](https://github.com/jaredhanson/passport-local) by [Maxime LUCE](https://github.com/SomaticIT)
|
||||
* [:link:](path-case/path-case.d.ts) [path-case](https://github.com/blakeembrey/path-case) by [Sam Saint-Pettersen](https://github.com/stpettersens)
|
||||
* [:link:](path-exists/path-exists.d.ts) [path-exists](https://github.com/sindresorhus/path-exists) by [Shogo Iwano](https://github.com/shiwano)
|
||||
* [:link:](path-to-regexp/path-to-regexp.d.ts) [path-to-regexp](https://github.com/pillarjs/path-to-regexp) by [xica](https://github.com/xica)
|
||||
* [:link:](pathjs/pathjs.d.ts) [Pathjs](https://github.com/mtrpcic/pathjs) by [Lokesh Peta](https://github.com/lokeshpeta)
|
||||
* [:link:](pathwatcher/pathwatcher.d.ts) [pathwatcher](https://github.com/atom/node-pathwatcher) by [vvakame](https://github.com/vvakame)
|
||||
* [:link:](PayPal-Cordova-Plugin/PayPal-Cordova-Plugin.d.ts) [PayPal-Cordova-Plugin](https://github.com/paypal/PayPal-Cordova-Plugin) by [Justin Unterreiner](https://github.com/Justin-Credible)
|
||||
* [:link:](pdf/pdf.d.ts) [PDF.js](https://github.com/mozilla/pdf.js) by [Josh Baldwin](https://github.com/jbaldwin)
|
||||
* [:link:](pdfkit/pdfkit.d.ts) [Pdfkit](http://pdfkit.org) by [Eric Hillah](https://github.com/erichillah)
|
||||
* [:link:](peerjs/peerjs.d.ts) [PeerJS](http://peerjs.com) by [Toshiya Nakakura](https://github.com/nakakura)
|
||||
@@ -846,7 +860,7 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam
|
||||
* [:link:](polyline/polyline.d.ts) [Polyline](https://github.com/mapbox/polyline) by [Arseniy Maximov](https://github.com/Kern0)
|
||||
* [:link:](polymer/polymer.d.ts) [polymer](https://github.com/Polymer/polymer) by [Louis Grignon](https://github.com/lgrignon), [Suguru Inatomi](https://github.com/laco0416)
|
||||
* [:link:](popcorn/popcorn.d.ts) [Popcorn](https://github.com/mozilla/popcorn-js) by [grapswiz](https://github.com/grapswiz)
|
||||
* [:link:](postal/postal.d.ts) [Postal](https://github.com/postaljs/postal.js) by [Lokesh Peta](https://github.com/lokeshpeta)
|
||||
* [:link:](postal/postal.d.ts) [Postal](https://github.com/postaljs/postal.js) by [Lokesh Peta](https://github.com/lokeshpeta), [Paul Jolly](https://github.com/myitcv)
|
||||
* [:link:](pouchDB/pouch.d.ts) [Pouch](http://pouchdb.com) by [Bill Sears](https://github.com/MrBigDog2U)
|
||||
* [:link:](power-assert/power-assert.d.ts) [power-assert](https://github.com/twada/power-assert) by [vvakame](https://github.com/vvakame)
|
||||
* [:link:](power-assert-formatter/power-assert-formatter.d.ts) [power-assert-formatter](https://github.com/twada/power-assert-formatter) by [vvakame](https://github.com/vvakame)
|
||||
@@ -878,6 +892,7 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam
|
||||
* [:link:](raygun4js/raygun4js.d.ts) [raygun4js](https://github.com/MindscapeHQ/raygun4js) by [Brian Surowiec](https://github.com/xt0rted)
|
||||
* [:link:](react/react.d.ts) [React (external module)](http://facebook.github.io/react) by [Asana](https://asana.com), [AssureSign](http://www.assuresign.com), [Microsoft](https://microsoft.com)
|
||||
* [:link:](react/react-global.d.ts) [React (internal module)](http://facebook.github.io/react) by [Asana](https://asana.com), [AssureSign](http://www.assuresign.com), [Microsoft](https://microsoft.com)
|
||||
* [:link:](react-dnd/react-dnd.d.ts) [React DnD](https://github.com/gaearon/react-dnd) by [Asana](https://asana.com)
|
||||
* [:link:](react-router/react-router.d.ts) [React Router](https://github.com/rackt/react-router) by [Yuichi Murata](https://github.com/mrk21), [Václav Ostrožlík](https://github.com/vasek17)
|
||||
* [:link:](react/react-addons.d.ts) [ReactWithAddons (external module)](http://facebook.github.io/react) by [Asana](https://asana.com), [AssureSign](http://www.assuresign.com)
|
||||
* [:link:](react/react-addons-global.d.ts) [ReactWithAddons (internal module)](http://facebook.github.io/react) by [Asana](https://asana.com), [AssureSign](http://www.assuresign.com)
|
||||
@@ -891,6 +906,7 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam
|
||||
* [:link:](request/request.d.ts) [request](https://github.com/mikeal/request) by [Carlos Ballesteros Velasco](https://github.com/soywiz), [bonnici](https://github.com/bonnici), [Bart van der Schoor](https://github.com/Bartvds)
|
||||
* [:link:](request-promise/request-promise.d.ts) [request-promise](https://www.npmjs.com/package/request-promise) by [Christopher Glantschnig](https://github.com/cglantschnig)
|
||||
* [:link:](requirejs/require.d.ts) [RequireJS](http://requirejs.org) by [Josh Baldwin](https://github.com/jbaldwin)
|
||||
* [:link:](resemblejs/resemblejs.d.ts) [Resemble.js](http://huddle.github.io/Resemble.js) by [Tim Perry](https://github.com/pimterry)
|
||||
* [:link:](response-time/response-time.d.ts) [response-time](https://github.com/expressjs/response-time) by [Uros Smolnik](https://github.com/urossmolnik)
|
||||
* [:link:](rest/rest.d.ts) [rest.js](https://github.com/cujojs/rest) by [Wim Looman](https://github.com/Nemo157)
|
||||
* [:link:](restangular/restangular.d.ts) [Restangular](https://github.com/mgonto/restangular) by [Boris Yankov](https://github.com/borisyankov)
|
||||
@@ -932,7 +948,9 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam
|
||||
* [:link:](selenium-webdriver/selenium-webdriver.d.ts) [Selenium WebDriverJS](https://code.google.com/p/selenium) by [Bill Armstrong](https://github.com/BillArmstrong)
|
||||
* [:link:](semver/semver.d.ts) [semver](https://github.com/isaacs/node-semver) by [Bart van der Schoor](https://github.com/Bartvds)
|
||||
* [:link:](sendgrid/sendgrid.d.ts) [sendgrid](https://github.com/sendgrid/sendgrid-nodejs) by [Maxime LUCE](https://github.com/SomaticIT)
|
||||
* [:link:](sentence-case/sentence-case.d.ts) [sentence-case](https://github.com/blakeembrey/sentence-case) by [Sam Saint-Pettersen](https://github.com/stpettersens)
|
||||
* [:link:](sequelize/sequelize.d.ts) [Sequelize 2.0.0 dev13](http://sequelizejs.com) by [samuelneff](https://github.com/samuelneff), [Peter Harris](https://github.com/codeanimal)
|
||||
* [:link:](sequelize-fixtures/sequelize-fixtures.d.ts) [Sequelize-Fixtures](https://github.com/domasx2/sequelize-fixtures) by [Christian Schwarz](https://github.com/cschwarz)
|
||||
* [:link:](on-headers/on-headers.d.ts) [serve-favicon](https://github.com/jshttp/on-headers) by [John Jeffery](https://github.com/jjeffery)
|
||||
* [:link:](serve-favicon/serve-favicon.d.ts) [serve-favicon](https://github.com/expressjs/serve-favicon) by [Uros Smolnik](https://github.com/urossmolnik)
|
||||
* [:link:](serve-static/serve-static.d.ts) [serve-static](https://github.com/expressjs/serve-static) by [Uros Smolnik](https://github.com/urossmolnik)
|
||||
@@ -960,6 +978,7 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam
|
||||
* [:link:](slickgrid/slick.headerbuttons.d.ts) [SlickGrid HeaderButtons Plugin](https://github.com/mleibman/SlickGrid) by [Derek Cicerone](https://github.com/derekcicerone)
|
||||
* [:link:](slickgrid/slick.rowselectionmodel.d.ts) [SlickGrid RowSelectionModel Plugin](https://github.com/mleibman/SlickGrid) by [Derek Cicerone](https://github.com/derekcicerone)
|
||||
* [:link:](smoothie/smoothie.d.ts) [Smoothie Charts](https://github.com/joewalnes/smoothie) by [Drew Noakes](https://drewnoakes.com), [Mike H. Hawley](https://github.com/mikehhawley)
|
||||
* [:link:](snake-case/snake-case.d.ts) [snake-case](https://github.com/blakeembrey/snake-case) by [Sam Saint-Pettersen](https://github.com/stpettersens)
|
||||
* [:link:](snapsvg/snapsvg.d.ts) [Snap-SVG](https://github.com/adobe-webplatform/Snap.svg) by [Lars Klein](https://github.com/lhk)
|
||||
* [:link:](socket.io/socket.io.d.ts) [socket.io](http://socket.io) by [PROGRE](https://github.com/progre), [Damian Connolly](https://github.com/divillysausages)
|
||||
* [:link:](socket.io-client/socket.io-client.d.ts) [socket.io-client](http://socket.io) by [PROGRE](https://github.com/progre), [Damian Connolly](https://github.com/divillysausages)
|
||||
@@ -1000,6 +1019,7 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam
|
||||
* [:link:](svg2png/svg2png.d.ts) [svg2png node package](https://github.com/domenic/svg2png) by [hans windhoff](https://github.com/hansrwindhoff)
|
||||
* [:link:](svgjs.draggable/svgjs.draggable.d.ts) [svgjs.draggable](http://www.svgjs.com) by [Luigi Trabacchin](https://github.com/LiFeleSs)
|
||||
* [:link:](swag/swag.d.ts) [swag](https://github.com/elving/swag) by [Shogo Iwano](https://github.com/shiwano)
|
||||
* [:link:](swap-case/swap-case.d.ts) [swap-case](https://github.com/blakeembrey/swap-case) by [Sam Saint-Pettersen](https://github.com/stpettersens)
|
||||
* [:link:](sweetalert/sweetalert.d.ts) [SweetAlert](https://github.com/t4t5/sweetalert) by [Markus Peloso](https://github.com/ToastHawaii)
|
||||
* [:link:](swfobject/swfobject.d.ts) [swfobject](https://code.google.com/p/swfobject) by [rou](https://github.com/rou)
|
||||
* [:link:](swig/swig.d.ts) [swig](http://github.com/paularmstrong/swig) by [Peter Harris](https://github.com/CodeAnimal), [Carlos Ballesteros Velasco](https://github.com/soywiz)
|
||||
@@ -1013,6 +1033,7 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam
|
||||
* [:link:](tape/tape.d.ts) [tape](https://github.com/substack/tape) by [Bart van der Schoor](https://github.com/Bartvds)
|
||||
* [:link:](tar/tar.d.ts) [tar](https://github.com/npm/node-tar) by [Maxime LUCE](https://github.com/SomaticIT)
|
||||
* [:link:](tcomb/tcomb.d.ts) [tcomb](http://gcanti.github.io/tcomb/guide/index.html) by [Hans Windhoff](https://github.com/hansrwindhoff)
|
||||
* [:link:](tea-merge/tea-merge.d.ts) [tea-merge](https://github.com/qualiancy/tea-merge) by [Mihhail Lapushkin](https://github.com/mihhail-lapushkin)
|
||||
* [:link:](tedious/tedious.d.ts) [tedious](https://pekim.github.io/tedious) by [Rogier Schouten](https://github.com/rogierschouten)
|
||||
* [:link:](tedious-connection-pool/tedious-connection-pool.d.ts) [tedious-connection-pool](https://github.com/pekim/tedious-connection-pool) by [Cyprien Autexier](https://github.com/sandorfr)
|
||||
* [:link:](teechart/teechart.d.ts) [TeeChart](http://www.steema.com) by [Steema Software](https://steema.com)
|
||||
@@ -1032,6 +1053,7 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam
|
||||
* [:link:](threejs/three-renderpass.d.ts) [three.js (RenderPass.js)](https://github.com/mrdoob/three.js/blob/r68/examples/js/postprocessing/RenderPass.js) by [Satoru Kimura](https://github.com/gyohk)
|
||||
* [:link:](threejs/three-shaderpass.d.ts) [three.js (ShaderPass.js)](https://github.com/mrdoob/three.js/blob/r68/examples/js/postprocessing/ShaderPass.js) by [Satoru Kimura](https://github.com/gyohk)
|
||||
* [:link:](threejs/three-trackballcontrols.d.ts) [three.js (TrackballControls.js)](https://github.com/mrdoob/three.js/blob/master/examples/js/controls/TrackballControls.js) by [Satoru Kimura](https://github.com/gyohk)
|
||||
* [:link:](threejs/three-transformcontrols.d.ts) [three.js (TransformControls.js)](https://github.com/mrdoob/three.js/blob/master/examples/js/controls/TransformControls.js) by [Stefan Profanter](https://github.com/Pro)
|
||||
* [:link:](threejs/three-vrcontrols.d.ts) [three.js (VRControls.js)](https://github.com/mrdoob/three.js/blob/master/examples/js/controls/VRControls.js) by [Toshiya Nakakura](https://github.com/nakakura)
|
||||
* [:link:](threejs/three-vreffect.d.ts) [three.js (VREffect.js)](https://github.com/mrdoob/three.js/blob/master/examples/js/effects/VREffect.js) by [Toshiya Nakakura](https://github.com/nakakura)
|
||||
* [:link:](threejs/three.d.ts) [three.js r71](http://mrdoob.github.com/three.js) by [Kon](http://phyzkit.net), [Satoru Kimura](https://github.com/gyohk)
|
||||
@@ -1083,12 +1105,14 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam
|
||||
* [:link:](js-url/js-url.d.ts) [url](https://github.com/websanova/js-url) by [MIZUNE Pine](https://github.com/pine613)
|
||||
* [:link:](urlrouter/urlrouter.d.ts) [urlrouter](https://github.com/fengmk2/urlrouter) by [soywiz](https://github.com/soywiz)
|
||||
* [:link:](urlsafe-base64/urlsafe-base64.d.ts) [urlsafe-base64](https://github.com/RGBboy/urlsafe-base64) by [Tanguy Krotoff](https://github.com/tkrotoff)
|
||||
* [:link:](usage/usage.d.ts) [usage](https://github.com/arunoda/node-usage) by [Pascal Vomhoff](https://github.com/pvomhoff)
|
||||
* [:link:](UUID/UUID.d.ts) [UUID.js core](https://github.com/LiosK/UUID.js) by [Jason Jarrett](https://github.com/staxmanade)
|
||||
* [:link:](valerie/valerie.d.ts) [valerie](https://github.com/davewatts/valerie) by [Howard Richards](https://github.com/conficient)
|
||||
* [:link:](validator/validator.d.ts) [validator.js](https://github.com/chriso/validator.js) by [tgfjt](https://github.com/tgfjt)
|
||||
* [:link:](vega/vega.d.ts) [Vega](http://trifacta.github.io/vega) by [Tom Crockett](http://github.com/pelotom)
|
||||
* [:link:](velocity-animate/velocity-animate.d.ts) [Velocity](http://velocityjs.org) by [Greg Smith](https://github.com/smrq)
|
||||
* [:link:](vex-js/vex-js.d.ts) [Vex](https://github.com/HubSpot/vex) by [Greg Cohan](https://github.com/gdcohan)
|
||||
* [:link:](vexflow/vexflow.d.ts) [VexFlow](http://vexflow.com) by [Roman Quiring](https://github.com/rquiring)
|
||||
* [:link:](victor/victor.d.ts) [Victor.js](http://victorjs.org) by [Ivane Gegia](https://twitter.com/ivanegegia)
|
||||
* [:link:](videojs/videojs.d.ts) [Video.js](https://github.com/zencoder/video-js) by [Vincent Bortone](https://github.com/vbortone)
|
||||
* [:link:](vimeo/froogaloop.d.ts) [Vimeo](http://developer.vimeo.com/player/js-api) by [Daz Wilkin](https://github.com/DazWilkin)
|
||||
@@ -1144,7 +1168,7 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam
|
||||
* [:link:](node_zeromq/zmq.d.ts) [ZeroMQ Node](https://github.com/JustinTulloss/zeromq.node) by [Dave McKeown](http://github.com/davemckeown)
|
||||
* [:link:](zip.js/zip.js.d.ts) [zip.js 2.x](https://github.com/gildas-lormeau/zip.js) by [Louis Grignon](https://github.com/lgrignon)
|
||||
* [:link:](scroller/easyscroller.d.ts) [Zynga EasyScroller](https://github.com/zynga/scroller) by [Boris Yankov](https://github.com/borisyankov)
|
||||
* [:link:](zynga-scroller/zynga-scroller.d.ts) [Zynga Scroller](http://zynga.github.com/scroller) by [Marcelo Haskell Camargo](https://github.com/haskellcamargo)
|
||||
* [:link:](scroller/scroller.d.ts) [Zynga Scroller](https://github.com/zynga/scroller) by [Boris Yankov](https://github.com/borisyankov)
|
||||
* [:link:](zynga-scroller/zynga-scroller.d.ts) [Zynga Scroller](http://zynga.github.com/scroller) by [Marcelo Haskell Camargo](https://github.com/haskellcamargo)
|
||||
* [:link:](viewporter/viewporter.d.ts) [Zynga Viewporter](https://github.com/zynga/viewporter) by [Boris Yankov](https://github.com/borisyankov)
|
||||
|
||||
|
||||
@@ -31,18 +31,23 @@ testApp.config((
|
||||
/**
|
||||
* $datepickerConfig tests
|
||||
*/
|
||||
$datepickerConfig.dayFormat = 'd';
|
||||
$datepickerConfig.dayHeaderFormat = 'E';
|
||||
$datepickerConfig.dayTitleFormat = 'dd-MM-yyyy';
|
||||
$datepickerConfig.datepickerMode = 'month';
|
||||
$datepickerConfig.formatDay = 'd';
|
||||
$datepickerConfig.formatDayHeader = 'E';
|
||||
$datepickerConfig.formatDayTitle = 'dd-MM-yyyy';
|
||||
$datepickerConfig.formatMonth = 'M';
|
||||
$datepickerConfig.formatMonthTitle = 'yy';
|
||||
$datepickerConfig.formatYear = 'y';
|
||||
$datepickerConfig.maxDate = '1389586124979';
|
||||
$datepickerConfig.maxMode = 'month';
|
||||
$datepickerConfig.minDate = '1389586124979';
|
||||
$datepickerConfig.monthFormat = 'M';
|
||||
$datepickerConfig.monthTitleFormat = 'yy';
|
||||
$datepickerConfig.minMode = 'month';
|
||||
$datepickerConfig.shortcutPropagation = true;
|
||||
$datepickerConfig.showWeeks = false;
|
||||
$datepickerConfig.startingDay = 1;
|
||||
$datepickerConfig.yearFormat = 'y';
|
||||
$datepickerConfig.yearRange = 10;
|
||||
$datepickerConfig.shortcutPropagation = true;
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
@@ -53,9 +58,12 @@ testApp.config((
|
||||
$datepickerPopupConfig.clearText = 'Reset Selection';
|
||||
$datepickerPopupConfig.closeOnDateSelection = false;
|
||||
$datepickerPopupConfig.closeText = 'Finished';
|
||||
$datepickerPopupConfig.dateFormat = 'dd-MM-yyyy';
|
||||
$datepickerPopupConfig.datepickerPopup = 'dd-MM-yyyy';
|
||||
$datepickerPopupConfig.datepickerPopupTemplateUrl = 'template.html';
|
||||
$datepickerPopupConfig.datepickerTemplateUrl = 'template.html';
|
||||
$datepickerPopupConfig.html5Types.date = 'MM-dd-yyyy';
|
||||
$datepickerPopupConfig.onOpenFocus = false;
|
||||
$datepickerPopupConfig.showButtonBar = false;
|
||||
$datepickerPopupConfig.toggleWeeksText = 'Show Weeks';
|
||||
|
||||
|
||||
/**
|
||||
@@ -72,9 +80,13 @@ testApp.config((
|
||||
$paginationConfig.firstText = 'First Page';
|
||||
$paginationConfig.itemsPerPage = 25;
|
||||
$paginationConfig.lastText = 'Last Page';
|
||||
$paginationConfig.maxSize = 13;
|
||||
$paginationConfig.numPages = 13;
|
||||
$paginationConfig.nextText = 'Next Page';
|
||||
$paginationConfig.previousText = 'Previous Page';
|
||||
$paginationConfig.rotate = false;
|
||||
$paginationConfig.templateUrl = 'template.html';
|
||||
$paginationConfig.totalItems = 13;
|
||||
|
||||
|
||||
/**
|
||||
@@ -122,6 +134,7 @@ testApp.config((
|
||||
animation: false,
|
||||
popupDelay: 1000,
|
||||
appendToBody: true,
|
||||
trigger: 'mouseenter hover',
|
||||
useContentExp: true
|
||||
});
|
||||
$tooltipProvider.setTriggers({
|
||||
@@ -148,6 +161,7 @@ testApp.controller('TestCtrl', (
|
||||
controller: 'ModalTestCtrl',
|
||||
controllerAs: 'vm',
|
||||
keyboard: true,
|
||||
openedClass: 'modal-open my-modal',
|
||||
resolve: {
|
||||
items: ()=> {
|
||||
return [1, 2, 3, 4, 5];
|
||||
|
||||
+74
-52
@@ -1,4 +1,4 @@
|
||||
// Type definitions for Angular UI Bootstrap 0.13.2
|
||||
// Type definitions for Angular UI Bootstrap 0.13.3
|
||||
// Project: https://github.com/angular-ui/bootstrap
|
||||
// Definitions by: Brian Surowiec <https://github.com/xt0rted>
|
||||
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
||||
@@ -36,42 +36,63 @@ declare module angular.ui.bootstrap {
|
||||
*
|
||||
* @default 'dd'
|
||||
*/
|
||||
dayFormat?: string;
|
||||
formatDay?: string;
|
||||
|
||||
/**
|
||||
* Format of month in year.
|
||||
*
|
||||
* @default 'MMM'
|
||||
*/
|
||||
monthFormat?: string;
|
||||
formatMonth?: string;
|
||||
|
||||
/**
|
||||
* Format of year in year range.
|
||||
*
|
||||
* @default 'yyyy'
|
||||
*/
|
||||
yearFormat?: string;
|
||||
formatYear?: string;
|
||||
|
||||
/**
|
||||
* Format of day in week header.
|
||||
*
|
||||
* @default 'EEE'
|
||||
*/
|
||||
dayHeaderFormat?: string;
|
||||
formatDayHeader?: string;
|
||||
|
||||
/**
|
||||
* Format of title when selecting day.
|
||||
*
|
||||
* @default 'MMM yyyy'
|
||||
*/
|
||||
dayTitleFormat?: string;
|
||||
formatDayTitle?: string;
|
||||
|
||||
/**
|
||||
* Format of title when selecting month.
|
||||
*
|
||||
* @default 'yyyy'
|
||||
*/
|
||||
monthTitleFormat?: string;
|
||||
formatMonthTitle?: string;
|
||||
|
||||
/**
|
||||
* Current mode of the datepicker (day|month|year). Can be used to initialize datepicker to specific mode.
|
||||
*
|
||||
* @default 'day'
|
||||
*/
|
||||
datepickerMode?: string;
|
||||
|
||||
/**
|
||||
* Set a lower limit for mode.
|
||||
*
|
||||
* @default 'day'
|
||||
*/
|
||||
minMode?: string;
|
||||
|
||||
/**
|
||||
* Set an upper limit for mode.
|
||||
*
|
||||
* @default 'year'
|
||||
*/
|
||||
maxMode?: string;
|
||||
|
||||
/**
|
||||
* Whether to display week numbers.
|
||||
@@ -122,7 +143,30 @@ declare module angular.ui.bootstrap {
|
||||
*
|
||||
* @default 'yyyy-MM-dd'
|
||||
*/
|
||||
dateFormat?: string;
|
||||
datepickerPopup?: string;
|
||||
|
||||
/**
|
||||
* Allows overriding of default template of the popup.
|
||||
*
|
||||
* @default 'template/datepicker/popup.html'
|
||||
*/
|
||||
datepickerPopupTemplateUrl?: string;
|
||||
|
||||
/**
|
||||
* Allows overriding of default template of the datepicker used in popup.
|
||||
*
|
||||
* @default 'template/datepicker/popup.html'
|
||||
*/
|
||||
datepickerTemplateUrl?: string;
|
||||
|
||||
/**
|
||||
* Allows overriding of the default format for html5 date inputs.
|
||||
*/
|
||||
html5Types?: {
|
||||
date?: string;
|
||||
'datetime-local'?: string;
|
||||
month?: string;
|
||||
};
|
||||
|
||||
/**
|
||||
* The text to display for the current day button.
|
||||
@@ -131,13 +175,6 @@ declare module angular.ui.bootstrap {
|
||||
*/
|
||||
currentText?: string;
|
||||
|
||||
/**
|
||||
* The text to display for the toggling week numbers button.
|
||||
*
|
||||
* @default 'Weeks'
|
||||
*/
|
||||
toggleWeeksText?: string;
|
||||
|
||||
/**
|
||||
* The text to display for the clear button.
|
||||
*
|
||||
@@ -172,6 +209,13 @@ declare module angular.ui.bootstrap {
|
||||
* @default true
|
||||
*/
|
||||
showButtonBar?: boolean;
|
||||
|
||||
/**
|
||||
* Whether to focus the datepicker popup upon opening.
|
||||
*
|
||||
* @default true
|
||||
*/
|
||||
onOpenFocus?: boolean;
|
||||
}
|
||||
|
||||
|
||||
@@ -318,6 +362,13 @@ declare module angular.ui.bootstrap {
|
||||
* a path to a template overriding modal's window template
|
||||
*/
|
||||
windowTemplateUrl?: string;
|
||||
|
||||
/**
|
||||
* The class added to the body element when the modal is opened.
|
||||
*
|
||||
* @default 'model-open'
|
||||
*/
|
||||
openedClass?: string;
|
||||
}
|
||||
|
||||
interface IModalStackService {
|
||||
@@ -354,11 +405,6 @@ declare module angular.ui.bootstrap {
|
||||
|
||||
|
||||
interface IPaginationConfig {
|
||||
/**
|
||||
* Current page number. First page is 1.
|
||||
*/
|
||||
page?: number;
|
||||
|
||||
/**
|
||||
* Total number of items in all pages.
|
||||
*/
|
||||
@@ -392,13 +438,6 @@ declare module angular.ui.bootstrap {
|
||||
*/
|
||||
rotate?: boolean;
|
||||
|
||||
/**
|
||||
* An optional expression called when a page is selected having the page number as argument.
|
||||
*
|
||||
* @default null
|
||||
*/
|
||||
onSelectPage?(page: number): void;
|
||||
|
||||
/**
|
||||
* Whether to display Previous / Next buttons.
|
||||
*
|
||||
@@ -440,6 +479,13 @@ declare module angular.ui.bootstrap {
|
||||
* @default 'Last'
|
||||
*/
|
||||
lastText?: string;
|
||||
|
||||
/**
|
||||
* Override the template for the component with a custom provided template.
|
||||
*
|
||||
* @default 'template/pagination/pagination.html'
|
||||
*/
|
||||
templateUrl?: string;
|
||||
}
|
||||
|
||||
interface IPagerConfig {
|
||||
@@ -450,16 +496,6 @@ declare module angular.ui.bootstrap {
|
||||
*/
|
||||
align?: boolean;
|
||||
|
||||
/**
|
||||
* Current page number. First page is 1.
|
||||
*/
|
||||
page?: number;
|
||||
|
||||
/**
|
||||
* Total number of items in all pages.
|
||||
*/
|
||||
totalItems?: number;
|
||||
|
||||
/**
|
||||
* Maximum number of items per page. A value less than one indicates all items on one page.
|
||||
*
|
||||
@@ -467,20 +503,6 @@ declare module angular.ui.bootstrap {
|
||||
*/
|
||||
itemsPerPage?: number;
|
||||
|
||||
/**
|
||||
* An optional expression assigned the total number of pages to display.
|
||||
*
|
||||
* @default angular.noop
|
||||
*/
|
||||
numPages?: number;
|
||||
|
||||
/**
|
||||
* An optional expression called when a page is selected having the page number as argument.
|
||||
*
|
||||
* @default null
|
||||
*/
|
||||
onSelectPage?(page: number): void;
|
||||
|
||||
/**
|
||||
* Text for Previous button.
|
||||
*
|
||||
@@ -654,7 +676,7 @@ declare module angular.ui.bootstrap {
|
||||
appendToBody?: boolean;
|
||||
|
||||
/**
|
||||
* Determines the default open triggers for tooltips and popovers
|
||||
* What should trigger a show of the tooltip? Supports a space separated list of event names.
|
||||
*
|
||||
* @default 'mouseenter' for tooltip, 'click' for popover
|
||||
*/
|
||||
|
||||
Vendored
+1
-2
@@ -20,8 +20,7 @@ declare class Promise<R> implements Promise.Thenable<R> {
|
||||
/**
|
||||
* Create a new promise. The passed in function will receive functions `resolve` and `reject` as its arguments which can be called to seal the fate of the created promise.
|
||||
*/
|
||||
constructor(callback: (resolve: (thenable: Promise.Thenable<R>) => void, reject: (error: any) => void) => void);
|
||||
constructor(callback: (resolve: (result: R) => void, reject: (error: any) => void) => void);
|
||||
constructor(callback: (resolve: (thenableOrResult: R | Promise.Thenable<R>) => void, reject: (error: any) => void) => void);
|
||||
|
||||
/**
|
||||
* Promises/A+ `.then()` with progress handler. Returns a new promise chained from this promise. The new promise will be rejected or resolved dedefer on the passed `fulfilledHandler`, `rejectedHandler` and the state of this promise.
|
||||
|
||||
Vendored
+1
-2
@@ -20,8 +20,7 @@ declare class Promise<R> implements Promise.Thenable<R>, Promise.Inspection<R> {
|
||||
/**
|
||||
* Create a new promise. The passed in function will receive functions `resolve` and `reject` as its arguments which can be called to seal the fate of the created promise.
|
||||
*/
|
||||
constructor(callback: (resolve: (thenable: Promise.Thenable<R>) => void, reject: (error: any) => void) => void);
|
||||
constructor(callback: (resolve: (result: R) => void, reject: (error: any) => void) => void);
|
||||
constructor(callback: (resolve: (thenableOrResult: R | Promise.Thenable<R>) => void, reject: (error: any) => void) => void);
|
||||
|
||||
/**
|
||||
* Promises/A+ `.then()` with progress handler. Returns a new promise chained from this promise. The new promise will be rejected or resolved dedefer on the passed `fulfilledHandler`, `rejectedHandler` and the state of this promise.
|
||||
|
||||
Vendored
+2
@@ -74,6 +74,8 @@ interface Cheerio {
|
||||
|
||||
children(selector?: string): Cheerio;
|
||||
|
||||
contents(): Cheerio;
|
||||
|
||||
each(func: (index: number, element: CheerioElement) => any): Cheerio;
|
||||
map(func: (index: number, element: CheerioElement) => any): Cheerio;
|
||||
|
||||
|
||||
Vendored
+1
-1
@@ -1822,7 +1822,7 @@ declare module chrome.tabCapture {
|
||||
videoConstraints?: MediaTrackConstraints;
|
||||
}
|
||||
|
||||
export function capture(options: CaptureOptions, callback: (stream: LocalMediaStream) => void): void;
|
||||
export function capture(options: CaptureOptions, callback: (stream: MediaStream) => void): void;
|
||||
export function getCapturedTabs(callback: (result: CaptureInfo[]) => void): void;
|
||||
}
|
||||
|
||||
|
||||
Vendored
+1
-1
@@ -32,7 +32,7 @@ interface Contacts {
|
||||
*/
|
||||
find(fields: string[],
|
||||
onSuccess: (contacts: Contact[]) => void,
|
||||
onError: (error: ContactError) => void,
|
||||
onError?: (error: ContactError) => void,
|
||||
options?: ContactFindOptions): void;
|
||||
/**
|
||||
* The navigator.contacts.pickContact method launches the Contact Picker to select a single contact.
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
/// <reference path="cors.d.ts" />
|
||||
|
||||
import express = require('express');
|
||||
import cors = require('cors');
|
||||
|
||||
var app = express();
|
||||
app.use(cors());
|
||||
app.use(cors({
|
||||
maxAge: 100,
|
||||
credentials: true
|
||||
}));
|
||||
Vendored
+24
@@ -0,0 +1,24 @@
|
||||
// Type definitions for cors
|
||||
// Project: https://github.com/troygoode/node-cors/
|
||||
// Definitions by: Mihhail Lapushkin <https://github.com/mihhail-lapushkin/>
|
||||
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
||||
|
||||
/// <reference path="../express/express.d.ts" />
|
||||
|
||||
declare module "cors" {
|
||||
import express = require('express');
|
||||
|
||||
module e {
|
||||
interface CorsOptions {
|
||||
origin?: any;
|
||||
methods?: any;
|
||||
allowedHeaders?: any;
|
||||
exposedHeaders?: any;
|
||||
credentials?: boolean;
|
||||
maxAge?: number;
|
||||
}
|
||||
}
|
||||
|
||||
function e(options?: e.CorsOptions): express.RequestHandler;
|
||||
export = e;
|
||||
}
|
||||
Vendored
+1
-1
@@ -830,7 +830,7 @@ declare module d3 {
|
||||
style(name: string, value: (datum: Datum, index: number, outerIndex: number) => Primitive, priority?: string): Transition<Datum>;
|
||||
style(obj: { [key: string]: Primitive | ((datum: Datum, index: number, outerIndex: number) => Primitive) }, priority?: string): Transition<Datum>;
|
||||
|
||||
styleTween(name: string, tween: (datum: Datum, index: number, attr: string) => Primitive, priority?: string): Transition<Datum>;
|
||||
styleTween(name: string, tween: (datum: Datum, index: number, attr: string) => (t: number) => Primitive, priority?: string): Transition<Datum>;
|
||||
|
||||
text(value: Primitive): Transition<Datum>;
|
||||
text(value: (datum: Datum, index: number, outerIndex: number) => Primitive): Transition<Datum>;
|
||||
|
||||
@@ -0,0 +1,32 @@
|
||||
///<reference path="./diff-match-patch.d.ts" />
|
||||
|
||||
import DiffMatchPatch = require("diff-match-patch");
|
||||
|
||||
var oldValue = "hello world, how are you?";
|
||||
var newValue = "hello again world. how have you been?";
|
||||
|
||||
var diffEngine = new DiffMatchPatch.diff_match_patch();
|
||||
var diffs = diffEngine.diff_main(oldValue, newValue);
|
||||
diffEngine.diff_cleanupSemantic(diffs);
|
||||
|
||||
var changes = "";
|
||||
var pattern = "";
|
||||
|
||||
diffs.forEach(function(diff) {
|
||||
var operation = diff[0]; // Operation (insert, delete, equal)
|
||||
var text = diff[1]; // Text of change
|
||||
|
||||
switch (operation) {
|
||||
case DiffMatchPatch.DIFF_INSERT:
|
||||
pattern += "I";
|
||||
break;
|
||||
case DiffMatchPatch.DIFF_DELETE:
|
||||
pattern += "D";
|
||||
break;
|
||||
case DiffMatchPatch.DIFF_EQUAL:
|
||||
pattern += "E";
|
||||
break;
|
||||
}
|
||||
|
||||
changes += text;
|
||||
});
|
||||
+39
@@ -0,0 +1,39 @@
|
||||
// Type definitions for diff-match-patch v1.0.0
|
||||
// Project: https://www.npmjs.com/package/diff-match-patch
|
||||
// Definitions by: Asana <https://asana.com>
|
||||
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
||||
|
||||
declare module "diff-match-patch" {
|
||||
type Diff = [number, string];
|
||||
|
||||
export class diff_match_patch {
|
||||
static new (): diff_match_patch;
|
||||
|
||||
Diff_Timeout: number;
|
||||
Diff_EditCost: number;
|
||||
Match_Threshold: number;
|
||||
Match_Distance: number;
|
||||
Patch_DeleteThreshold: number;
|
||||
Patch_Margin: number;
|
||||
Match_MaxBits: number;
|
||||
|
||||
diff_main(text1: string, text2: string, opt_checklines?: boolean, opt_deadline?: number): Diff[];
|
||||
diff_commonPrefix(text1: string, text2: string): number;
|
||||
diff_commonSuffix(text1: string, text2: string): number;
|
||||
diff_cleanupSemantic(diffs: Diff[]): void;
|
||||
diff_cleanupSemanticLossless(diffs: Diff[]): void;
|
||||
diff_cleanupEfficiency(diffs: Diff[]): void;
|
||||
diff_cleanupMerge(diffs: Diff[]): void;
|
||||
diff_xIndex(diffs: Diff[], loc: number): number;
|
||||
diff_prettyHtml(diffs: Diff[]): string;
|
||||
diff_text1(diffs: Diff[]): string;
|
||||
diff_text2(diffs: Diff[]): string;
|
||||
diff_levenshtein(diffs: Diff[]): number;
|
||||
diff_toDelta(diffs: Diff[]): string;
|
||||
diff_fromDelta(text1: string, delta: string): Diff[];
|
||||
}
|
||||
|
||||
export var DIFF_DELETE: number;
|
||||
export var DIFF_INSERT: number;
|
||||
export var DIFF_EQUAL: number;
|
||||
}
|
||||
+50
-3
@@ -121,11 +121,11 @@ result = <_.LoDashObjectWrapper<_.Dictionary<string>>>_(<{ [index: string]: stri
|
||||
|
||||
//Wrapped array shortcut methods
|
||||
result = <_.LoDashArrayWrapper<number>>_([1, 2, 3, 4]).concat(5, 6);
|
||||
result = <_.LoDashWrapper<string>>_([1, 2, 3, 4]).join(',');
|
||||
result = <_.LoDashWrapper<number>>_([1, 2, 3, 4]).pop();
|
||||
result = <string>_([1, 2, 3, 4]).join(',');
|
||||
result = <number>_([1, 2, 3, 4]).pop();
|
||||
_([1, 2, 3, 4]).push(5, 6, 7);
|
||||
result = <_.LoDashArrayWrapper<number>>_([1, 2, 3, 4]).reverse();
|
||||
result = <_.LoDashWrapper<number>>_([1, 2, 3, 4]).shift();
|
||||
result = <number>_([1, 2, 3, 4]).shift();
|
||||
result = <_.LoDashArrayWrapper<number>>_([1, 2, 3, 4]).slice(1, 2);
|
||||
result = <_.LoDashArrayWrapper<number>>_([1, 2, 3, 4]).slice(2);
|
||||
result = <_.LoDashArrayWrapper<number>>_([1, 2, 3, 4]).sort((a, b) => 1);
|
||||
@@ -1060,6 +1060,15 @@ result = <boolean>_(1).gte(2);
|
||||
result = <boolean>_([]).gte(2);
|
||||
result = <boolean>_({}).gte(2);
|
||||
|
||||
// _.isMatch
|
||||
var testIsMatchCustiomizerFn: (value: any, other: any, indexOrKey: number|string) => boolean;
|
||||
result = <boolean>_.isMatch({}, {});
|
||||
result = <boolean>_.isMatch({}, {}, testIsMatchCustiomizerFn);
|
||||
result = <boolean>_.isMatch({}, {}, testIsMatchCustiomizerFn, {});
|
||||
result = <boolean>_({}).isMatch({});
|
||||
result = <boolean>_({}).isMatch({}, testIsMatchCustiomizerFn);
|
||||
result = <boolean>_({}).isMatch({}, testIsMatchCustiomizerFn, {});
|
||||
|
||||
// _.lt
|
||||
result = <boolean>_.lt(1, 2);
|
||||
result = <boolean>_(1).lt(2);
|
||||
@@ -1086,6 +1095,14 @@ result = <Object>_([1]).toPlainObject();
|
||||
result = <Object>_<string>([]).toPlainObject();
|
||||
result = <Object>_({}).toPlainObject();
|
||||
|
||||
/********
|
||||
* Math *
|
||||
********/
|
||||
|
||||
// _.add
|
||||
result = <number>_.add(1, 1);
|
||||
result = <number>_(1).add(1);
|
||||
|
||||
/**********
|
||||
* Objects *
|
||||
***********/
|
||||
@@ -1113,6 +1130,25 @@ result = <_.LoDashObjectWrapper<NameAge>>_({ 'name': 'moe' }).extend({ 'age': 40
|
||||
return typeof a == 'undefined' ? b : a;
|
||||
});
|
||||
|
||||
// _.create
|
||||
interface TestCreateProto {
|
||||
a: number;
|
||||
}
|
||||
interface TestCreateProps {
|
||||
b: string;
|
||||
}
|
||||
interface TestCreateTResult extends TestCreateProto, TestCreateProps {}
|
||||
var testCreateProto: TestCreateProto;
|
||||
var testCreateProps: TestCreateProps;
|
||||
result = <{}>_.create(testCreateProto);
|
||||
result = <{}>_.create(testCreateProto, testCreateProps);
|
||||
result = <TestCreateProto>_.create<TestCreateProto>(testCreateProto);
|
||||
result = <TestCreateTResult>_.create<TestCreateTResult>(testCreateProto, testCreateProps);
|
||||
result = <{}>_(testCreateProto).create().value();
|
||||
result = <{}>_(testCreateProto).create(testCreateProps).value();
|
||||
result = <TestCreateProto>_(testCreateProto).create<TestCreateProto>().value();
|
||||
result = <TestCreateTResult>_(testCreateProto).create<TestCreateTResult>(testCreateProps).value();
|
||||
|
||||
result = <IStoogesAge[]>_.clone(stoogesAges);
|
||||
result = <IStoogesAge[]>_.clone(stoogesAges, true);
|
||||
result = <any>_.clone(stoogesAges, true, function (value) {
|
||||
@@ -1439,6 +1475,17 @@ result = <string>_.result(object, 'stuff');
|
||||
var tempObject = {};
|
||||
result = <typeof _>_.runInContext(tempObject);
|
||||
|
||||
// _.propertyOf
|
||||
interface TestPropertyOfObject {
|
||||
a: {
|
||||
b: number[];
|
||||
}
|
||||
}
|
||||
var testPropertyOfObject: TestPropertyOfObject;
|
||||
result = <(path: string|string[]) => any>_.propertyOf({});
|
||||
result = <(path: string|string[]) => any>_.propertyOf<TestPropertyOfObject>(testPropertyOfObject);
|
||||
result = <(path: string|string[]) => any>_({}).propertyOf().value();
|
||||
|
||||
result = <_.TemplateExecutor>_.template('hello <%= name %>');
|
||||
result = <string>_.template('<b><%- value %></b>', { 'value': '<script>' });
|
||||
|
||||
|
||||
Vendored
+89
-13
@@ -253,11 +253,11 @@ declare module _ {
|
||||
|
||||
interface LoDashArrayWrapper<T> extends LoDashWrapperBase<T[], LoDashArrayWrapper<T>> {
|
||||
concat(...items: T[]): LoDashArrayWrapper<T>;
|
||||
join(seperator?: string): LoDashWrapper<string>;
|
||||
pop(): LoDashWrapper<T>;
|
||||
join(seperator?: string): string;
|
||||
pop(): T;
|
||||
push(...items: T[]): void;
|
||||
reverse(): LoDashArrayWrapper<T>;
|
||||
shift(): LoDashWrapper<T>;
|
||||
shift(): T;
|
||||
slice(start: number, end?: number): LoDashArrayWrapper<T>;
|
||||
sort(compareFn?: (a: T, b: T) => number): LoDashArrayWrapper<T>;
|
||||
splice(start: number): LoDashArrayWrapper<T>;
|
||||
@@ -5861,6 +5861,33 @@ declare module _ {
|
||||
gte(other: any): boolean;
|
||||
}
|
||||
|
||||
//_.isMatch
|
||||
interface isMatchCustomizer {
|
||||
(value: any, other: any, indexOrKey?: number|string): boolean;
|
||||
}
|
||||
|
||||
interface LoDashStatic {
|
||||
/**
|
||||
* Performs a deep comparison between object and source to determine if object contains equivalent property
|
||||
* values. If customizer is provided it’s invoked to compare values. If customizer returns undefined
|
||||
* comparisons are handled by the method instead. The customizer is bound to thisArg and invoked with three
|
||||
* arguments: (value, other, index|key).
|
||||
* @param object The object to inspect.
|
||||
* @param source The object of property values to match.
|
||||
* @param customizer The function to customize value comparisons.
|
||||
* @param thisArg The this binding of customizer.
|
||||
* @return Returns true if object is a match, else false.
|
||||
*/
|
||||
isMatch(object: Object, source: Object, customizer?: isMatchCustomizer, thisArg?: any): boolean;
|
||||
}
|
||||
|
||||
interface LoDashObjectWrapper<T> {
|
||||
/**
|
||||
* @see _.isMatch
|
||||
*/
|
||||
isMatch(source: Object, customizer?: isMatchCustomizer, thisArg?: any): boolean;
|
||||
}
|
||||
|
||||
//_.lt
|
||||
interface LoDashStatic {
|
||||
/**
|
||||
@@ -5908,6 +5935,28 @@ declare module _ {
|
||||
toPlainObject(value?: any): Object;
|
||||
}
|
||||
|
||||
/********
|
||||
* Math *
|
||||
********/
|
||||
|
||||
//_.add
|
||||
interface LoDashStatic {
|
||||
/**
|
||||
* Adds two numbers.
|
||||
* @param augend The first number to add.
|
||||
* @param addend The second number to add.
|
||||
* @return Returns the sum.
|
||||
*/
|
||||
add(augend: number, addend: number): number;
|
||||
}
|
||||
|
||||
interface LoDashWrapper<T> {
|
||||
/**
|
||||
* @see _.add
|
||||
*/
|
||||
add(addend: number): number;
|
||||
}
|
||||
|
||||
/*************
|
||||
* Objects *
|
||||
*************/
|
||||
@@ -6104,6 +6153,25 @@ declare module _ {
|
||||
|
||||
}
|
||||
|
||||
//_.create
|
||||
interface LoDashStatic {
|
||||
/**
|
||||
* Creates an object that inherits from the given prototype object. If a properties object is provided its own
|
||||
* enumerable properties are assigned to the created object.
|
||||
* @param prototype The object to inherit from.
|
||||
* @param properties The properties to assign to the object.
|
||||
* @return Returns the new object.
|
||||
*/
|
||||
create<TResult extends {}>(prototype: Object, properties?: Object): TResult;
|
||||
}
|
||||
|
||||
interface LoDashObjectWrapper<T> {
|
||||
/**
|
||||
* @see _.create
|
||||
*/
|
||||
create<TResult extends {}>(properties?: Object): LoDashObjectWrapper<TResult>;
|
||||
}
|
||||
|
||||
//_.clone
|
||||
interface LoDashStatic {
|
||||
/**
|
||||
@@ -7242,6 +7310,24 @@ declare module _ {
|
||||
property<T,RT>(key: string): (obj: T) => RT;
|
||||
}
|
||||
|
||||
//_.propertyOf
|
||||
interface LoDashStatic {
|
||||
/**
|
||||
* The opposite of _.property; this method creates a function that returns the property value at a given path
|
||||
* on object.
|
||||
* @param object The object to query.
|
||||
* @return Returns the new function.
|
||||
*/
|
||||
propertyOf<T extends {}>(object: T): (path: string|string[]) => any;
|
||||
}
|
||||
|
||||
interface LoDashObjectWrapper<T> {
|
||||
/**
|
||||
* @see _.propertyOf
|
||||
*/
|
||||
propertyOf(): LoDashObjectWrapper<(path: string|string[]) => any>;
|
||||
}
|
||||
|
||||
//_.random
|
||||
interface LoDashStatic {
|
||||
/**
|
||||
@@ -7391,16 +7477,6 @@ declare module _ {
|
||||
constant<TResult>(): () => TResult;
|
||||
}
|
||||
|
||||
//_.create
|
||||
interface LoDashStatic {
|
||||
/**
|
||||
* Creates an object that inherits from the given prototype object. If a properties object is provided its own enumerable properties are assigned to the created object.
|
||||
* @param prototype The object to inherit from.
|
||||
* @param properties The properties to assign to the object.
|
||||
*/
|
||||
create<T>(prototype: Object, properties?: Object): Object;
|
||||
}
|
||||
|
||||
interface ListIterator<T, TResult> {
|
||||
(value: T, index: number, collection: T[]): TResult;
|
||||
}
|
||||
|
||||
+23
-5
@@ -1,4 +1,4 @@
|
||||
/// <reference path="node.d.ts" />
|
||||
/// <reference path="node-0.11.d.ts" />
|
||||
|
||||
import assert = require("assert");
|
||||
import fs = require("fs");
|
||||
@@ -11,6 +11,7 @@ import http = require("http");
|
||||
import net = require("net");
|
||||
import dgram = require("dgram");
|
||||
import querystring = require('querystring');
|
||||
import readline = require('readline');
|
||||
|
||||
assert(1 + 1 - 2 === 0, "The universe isn't how it should.");
|
||||
|
||||
@@ -71,9 +72,9 @@ url.format(url.parse('http://www.example.com/xyz'));
|
||||
|
||||
// https://google.com/search?q=you're%20a%20lizard%2C%20gary
|
||||
url.format({
|
||||
protocol: 'https',
|
||||
host: "google.com",
|
||||
pathname: 'search',
|
||||
protocol: 'https',
|
||||
host: "google.com",
|
||||
pathname: 'search',
|
||||
query: { q: "you're a lizard, gary" }
|
||||
});
|
||||
|
||||
@@ -139,5 +140,22 @@ var escaped: string = querystring.escape(original);
|
||||
console.log(escaped);
|
||||
// http%3A%2F%2Fexample.com%2Fproduct%2Fabcde.html
|
||||
var unescaped: string = querystring.unescape(escaped);
|
||||
console.log(unescaped);
|
||||
console.log(unescaped);
|
||||
// http://example.com/product/abcde.html
|
||||
|
||||
////////////////////////////////////////////////////
|
||||
///ReadLine tests : https://nodejs.org/docs/v0.11.0/api/readline.html
|
||||
////////////////////////////////////////////////////
|
||||
|
||||
var rl = readline.createInterface({
|
||||
input: process.stdin,
|
||||
output: process.stdout,
|
||||
});
|
||||
|
||||
rl.setPrompt("$>");
|
||||
rl.prompt();
|
||||
rl.prompt(true);
|
||||
|
||||
rl.question("do you like typescript?", function(answer: string) {
|
||||
rl.close();
|
||||
});
|
||||
|
||||
Vendored
+1
-1
@@ -570,7 +570,7 @@ declare module "readline" {
|
||||
import stream = require("stream");
|
||||
|
||||
export interface ReadLine extends events.EventEmitter {
|
||||
setPrompt(prompt: string, length: number): void;
|
||||
setPrompt(prompt: string): void;
|
||||
prompt(preserveCursor?: boolean): void;
|
||||
question(query: string, callback: Function): void;
|
||||
pause(): void;
|
||||
|
||||
+24
-6
@@ -12,6 +12,7 @@ import * as net from "net";
|
||||
import * as dgram from "dgram";
|
||||
import * as querystring from "querystring";
|
||||
import * as path from "path";
|
||||
import * as readline from "readline";
|
||||
|
||||
assert(1 + 1 - 2 === 0, "The universe isn't how it should.");
|
||||
|
||||
@@ -95,9 +96,9 @@ url.format(url.parse('http://www.example.com/xyz'));
|
||||
|
||||
// https://google.com/search?q=you're%20a%20lizard%2C%20gary
|
||||
url.format({
|
||||
protocol: 'https',
|
||||
host: "google.com",
|
||||
pathname: 'search',
|
||||
protocol: 'https',
|
||||
host: "google.com",
|
||||
pathname: 'search',
|
||||
query: { q: "you're a lizard, gary" }
|
||||
});
|
||||
|
||||
@@ -191,14 +192,14 @@ module http_tests {
|
||||
var code = 100;
|
||||
var codeMessage = http.STATUS_CODES['400'];
|
||||
var codeMessage = http.STATUS_CODES[400];
|
||||
|
||||
|
||||
var agent: http.Agent = new http.Agent({
|
||||
keepAlive: true,
|
||||
keepAliveMsecs: 10000,
|
||||
maxSockets: Infinity,
|
||||
maxFreeSockets: 256
|
||||
});
|
||||
|
||||
|
||||
var agent: http.Agent = http.globalAgent;
|
||||
}
|
||||
|
||||
@@ -221,7 +222,7 @@ var escaped: string = querystring.escape(original);
|
||||
console.log(escaped);
|
||||
// http%3A%2F%2Fexample.com%2Fproduct%2Fabcde.html
|
||||
var unescaped: string = querystring.unescape(escaped);
|
||||
console.log(unescaped);
|
||||
console.log(unescaped);
|
||||
// http://example.com/product/abcde.html
|
||||
|
||||
////////////////////////////////////////////////////
|
||||
@@ -362,3 +363,20 @@ module path_tests {
|
||||
// returns
|
||||
// '/home/user/dir/file.txt'
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////
|
||||
///ReadLine tests : https://nodejs.org/api/readline.html
|
||||
////////////////////////////////////////////////////
|
||||
|
||||
var rl = readline.createInterface({
|
||||
input: process.stdin,
|
||||
output: process.stdout,
|
||||
});
|
||||
|
||||
rl.setPrompt("$>");
|
||||
rl.prompt();
|
||||
rl.prompt(true);
|
||||
|
||||
rl.question("do you like typescript?", function(answer: string) {
|
||||
rl.close();
|
||||
});
|
||||
|
||||
Vendored
+1
-1
@@ -782,7 +782,7 @@ declare module "readline" {
|
||||
import * as stream from "stream";
|
||||
|
||||
export interface ReadLine extends events.EventEmitter {
|
||||
setPrompt(prompt: string, length: number): void;
|
||||
setPrompt(prompt: string): void;
|
||||
prompt(preserveCursor?: boolean): void;
|
||||
question(query: string, callback: Function): void;
|
||||
pause(): void;
|
||||
|
||||
@@ -0,0 +1,312 @@
|
||||
/// <reference path="../pixi.js/pixi.js.d.ts" />
|
||||
/// <reference path="pixi-spine.d.ts" />
|
||||
|
||||
module Spine {
|
||||
|
||||
export class Dragon {
|
||||
|
||||
private renderer: PIXI.CanvasRenderer | PIXI.WebGLRenderer;
|
||||
|
||||
private stage: PIXI.Container;
|
||||
|
||||
private dragon: PIXI.spine.Spine;
|
||||
|
||||
constructor() {
|
||||
|
||||
this.renderer = PIXI.autoDetectRenderer(800, 600, { backgroundColor: 0x1099bb });
|
||||
document.body.appendChild(this.renderer.view);
|
||||
|
||||
// create the root of the scene graph
|
||||
this.stage = new PIXI.Container();
|
||||
|
||||
PIXI.loader.add('dragon', '../../_assets/spine/dragon.json').load(this.onAssetsLoaded);
|
||||
|
||||
}
|
||||
|
||||
private onAssetsLoaded = (loader: PIXI.loaders.Loader, res: any): void => {
|
||||
|
||||
//initiate the spine animation
|
||||
this.dragon = new PIXI.spine.Spine(res.dragon.spineData);
|
||||
this.dragon.skeleton.setToSetupPose();
|
||||
this.dragon.update(0);
|
||||
this.dragon.autoUpdate = false;
|
||||
|
||||
//create a container for the spin animation and add the animation to it
|
||||
var dragonCage: PIXI.Container = new PIXI.Container();
|
||||
dragonCage.addChild(this.dragon);
|
||||
|
||||
// measure the spine animation and position it inside its container to align it to the origin
|
||||
var localRect: PIXI.Rectangle = this.dragon.getLocalBounds();
|
||||
this.dragon.position.set(-localRect.x, -localRect.y);
|
||||
|
||||
// now we can scale, position and rotate the container as any other display object
|
||||
var scale = Math.min((this.renderer.width * 0.7) / dragonCage.width, (this.renderer.height * 0.7) / dragonCage.height);
|
||||
dragonCage.scale.set(scale, scale);
|
||||
dragonCage.position.set((this.renderer.width - dragonCage.width) * 0.5, (this.renderer.height - dragonCage.height) * 0.5);
|
||||
|
||||
// add the container to the stage
|
||||
this.stage.addChild(dragonCage);
|
||||
|
||||
// once position and scaled, set the animation to play
|
||||
this.dragon.state.setAnimationByName(0, 'flying', true);
|
||||
|
||||
this.animate();
|
||||
|
||||
}
|
||||
|
||||
private animate = (): void => {
|
||||
|
||||
requestAnimationFrame(this.animate);
|
||||
|
||||
// update the spine animation, only needed if dragon.autoupdate is set to false
|
||||
this.dragon.update(0.01666666666667); // HARDCODED FRAMERATE!
|
||||
|
||||
this.renderer.render(this.stage);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
module Spine {
|
||||
|
||||
export class Goblin {
|
||||
|
||||
private renderer: PIXI.CanvasRenderer | PIXI.WebGLRenderer;
|
||||
|
||||
private stage: PIXI.Container;
|
||||
|
||||
private goblin: PIXI.spine.Spine;
|
||||
|
||||
constructor() {
|
||||
|
||||
this.renderer = PIXI.autoDetectRenderer(800, 600, { backgroundColor: 0x1099bb });
|
||||
document.body.appendChild(this.renderer.view);
|
||||
|
||||
// create the root of the scene graph
|
||||
this.stage = new PIXI.Container();
|
||||
this.stage.interactive = true;
|
||||
|
||||
PIXI.loader.add('goblins', '../../_assets/spine/goblins.json').load(this.onAssetsLoaded);
|
||||
|
||||
}
|
||||
|
||||
private onAssetsLoaded = (loader: PIXI.loaders.Loader, res: any): void => {
|
||||
|
||||
//initiate the spine animation
|
||||
this.goblin = new PIXI.spine.Spine(res.goblins.spineData);
|
||||
this.goblin.skeleton.setSkinByName('goblin');
|
||||
this.goblin.skeleton.setSlotsToSetupPose();
|
||||
|
||||
this.goblin.position.x = 400;
|
||||
this.goblin.position.y = 600;
|
||||
this.goblin.scale.set(1.5);
|
||||
|
||||
this.goblin.state.setAnimationByName(0, 'walk', true);
|
||||
|
||||
this.stage.addChild(this.goblin);
|
||||
|
||||
this.stage.on('click', () => {
|
||||
|
||||
// change current skin
|
||||
var currentSkinName = this.goblin.skeleton.skin.name;
|
||||
var newSkinName = (currentSkinName === 'goblin' ? 'goblingirl' : 'goblin');
|
||||
this.goblin.skeleton.setSkinByName(newSkinName);
|
||||
this.goblin.skeleton.setSlotsToSetupPose();
|
||||
|
||||
});
|
||||
|
||||
this.animate();
|
||||
|
||||
}
|
||||
|
||||
private animate = (): void => {
|
||||
|
||||
requestAnimationFrame(this.animate);
|
||||
|
||||
this.renderer.render(this.stage);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
module Spine {
|
||||
|
||||
export class Pixie {
|
||||
|
||||
private renderer: PIXI.CanvasRenderer | PIXI.WebGLRenderer;
|
||||
|
||||
private stage: PIXI.Container;
|
||||
|
||||
private pixie: PIXI.spine.Spine;
|
||||
|
||||
private position: number;
|
||||
private background: PIXI.Sprite;
|
||||
private background2: PIXI.Sprite;
|
||||
private foreground: PIXI.Sprite;
|
||||
private foreground2: PIXI.Sprite;
|
||||
|
||||
constructor() {
|
||||
|
||||
this.renderer = PIXI.autoDetectRenderer(800, 600, { backgroundColor: 0x1099bb });
|
||||
document.body.appendChild(this.renderer.view);
|
||||
|
||||
// create the root of the scene graph
|
||||
this.stage = new PIXI.Container();
|
||||
this.stage.interactive = true;
|
||||
|
||||
PIXI.loader.add('pixie', '../../_assets/spine/pixie.json').load(this.onAssetsLoaded);
|
||||
|
||||
}
|
||||
|
||||
private onAssetsLoaded = (loader: PIXI.loaders.Loader, res: any): void => {
|
||||
|
||||
this.background = PIXI.Sprite.fromImage('../../_assets/spine/iP4_BGtile.jpg');
|
||||
this.background2 = PIXI.Sprite.fromImage('../../_assets/spine/iP4_BGtile.jpg');
|
||||
this.stage.addChild(this.background);
|
||||
this.stage.addChild(this.background2);
|
||||
|
||||
this.foreground = PIXI.Sprite.fromImage('../../_assets/spine/iP4_ground.png');
|
||||
this.foreground2 = PIXI.Sprite.fromImage('../../_assets/spine/iP4_ground.png');
|
||||
this.stage.addChild(this.foreground);
|
||||
this.stage.addChild(this.foreground2);
|
||||
this.foreground.position.y = this.foreground2.position.y = 640 - this.foreground2.height;
|
||||
|
||||
this.pixie = new PIXI.spine.Spine(res.pixie.spineData);
|
||||
|
||||
var scale = 0.3;
|
||||
|
||||
this.pixie.position.x = 1024 / 3;
|
||||
this.pixie.position.y = 500;
|
||||
|
||||
this.pixie.scale.x = this.pixie.scale.y = scale;
|
||||
|
||||
this.stage.addChild(this.pixie);
|
||||
|
||||
this.pixie.stateData.setMixByName('running', 'jump', 0.2);
|
||||
this.pixie.stateData.setMixByName('jump', 'running', 0.4);
|
||||
|
||||
this.pixie.state.setAnimationByName(0, 'running', true);
|
||||
|
||||
this.stage.on('mousedown', this.onTouchStart);
|
||||
this.stage.on('touchstart', this.onTouchStart);
|
||||
|
||||
this.animate();
|
||||
|
||||
}
|
||||
|
||||
private onTouchStart = (): void => {
|
||||
|
||||
this.pixie.state.setAnimationByName(0, 'jump', false);
|
||||
this.pixie.state.addAnimationByName(0, 'running', true, 0);
|
||||
|
||||
}
|
||||
|
||||
private animate = (): void => {
|
||||
|
||||
this.position += 10;
|
||||
|
||||
this.background.position.x = -(this.position * 0.6);
|
||||
this.background.position.x %= 1286 * 2;
|
||||
if (this.background.position.x < 0) {
|
||||
this.background.position.x += 1286 * 2;
|
||||
}
|
||||
this.background.position.x -= 1286;
|
||||
|
||||
this.background2.position.x = -(this.position * 0.6) + 1286;
|
||||
this.background2.position.x %= 1286 * 2;
|
||||
if (this.background2.position.x < 0) {
|
||||
this.background2.position.x += 1286 * 2;
|
||||
}
|
||||
this.background2.position.x -= 1286;
|
||||
|
||||
this.foreground.position.x = -this.position;
|
||||
this.foreground.position.x %= 1286 * 2;
|
||||
if (this.foreground.position.x < 0) {
|
||||
this.foreground.position.x += 1286 * 2;
|
||||
}
|
||||
this.foreground.position.x -= 1286;
|
||||
|
||||
this.foreground2.position.x = -this.position + 1286;
|
||||
this.foreground2.position.x %= 1286 * 2;
|
||||
if (this.foreground2.position.x < 0) {
|
||||
this.foreground2.position.x += 1286 * 2;
|
||||
}
|
||||
this.foreground2.position.x -= 1286;
|
||||
|
||||
requestAnimationFrame(this.animate);
|
||||
|
||||
this.renderer.render(this.stage);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
module Spine {
|
||||
|
||||
export class SpineBoy {
|
||||
|
||||
private renderer: PIXI.CanvasRenderer | PIXI.WebGLRenderer;
|
||||
|
||||
private stage: PIXI.Container;
|
||||
|
||||
private spineboy: PIXI.spine.Spine;
|
||||
|
||||
constructor() {
|
||||
|
||||
this.renderer = PIXI.autoDetectRenderer(800, 600, { backgroundColor: 0x1099bb });
|
||||
document.body.appendChild(this.renderer.view);
|
||||
|
||||
// create the root of the scene graph
|
||||
this.stage = new PIXI.Container();
|
||||
this.stage.interactive = true;
|
||||
|
||||
PIXI.loader.add('spineboy', '../../_assets/spine/spineboy.json').load(this.onAssetsLoaded);
|
||||
|
||||
}
|
||||
|
||||
private onAssetsLoaded = (loader: PIXI.loaders.Loader, res: any): void => {
|
||||
|
||||
//initiate the spine animation
|
||||
this.spineboy = new PIXI.spine.Spine(res.spineboy.spineData);
|
||||
this.spineboy.position.x = this.renderer.width / 2;
|
||||
this.spineboy.position.y = this.renderer.height;
|
||||
this.spineboy.scale.set(1.5);
|
||||
|
||||
// set up the mixes!
|
||||
this.spineboy.stateData.setMixByName('walk', 'jump', 0.2);
|
||||
this.spineboy.stateData.setMixByName('jump', 'walk', 0.4);
|
||||
|
||||
// play animation
|
||||
this.spineboy.state.setAnimationByName(0, 'walk', true);
|
||||
|
||||
this.stage.addChild(this.spineboy);
|
||||
|
||||
|
||||
this.stage.on('click', () => {
|
||||
|
||||
this.spineboy.state.setAnimationByName(0, 'jump', false);
|
||||
this.spineboy.state.addAnimationByName(0, 'walk', true, 0);
|
||||
|
||||
});
|
||||
|
||||
this.animate();
|
||||
|
||||
}
|
||||
|
||||
private animate = (): void => {
|
||||
|
||||
requestAnimationFrame(this.animate);
|
||||
|
||||
this.renderer.render(this.stage);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
Vendored
+812
@@ -0,0 +1,812 @@
|
||||
// Type definitions for pixi-spine 1.0.4
|
||||
// Project: https://github.com/pixijs/pixi-spine/
|
||||
// Definitions by: martijncroezen <https://github.com/pixijs/pixi-typescript>
|
||||
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
||||
|
||||
/// <reference path="../pixi.js/pixi.js.d.ts" />
|
||||
declare module PIXI {
|
||||
|
||||
export module spine {
|
||||
|
||||
export interface Timeline {
|
||||
|
||||
frames: number[];
|
||||
|
||||
getFrameCount(): number;
|
||||
apply(skeleton: Skeleton, lastTime: number, time: number, firedEvents: Event[], alpha: number): void;
|
||||
|
||||
}
|
||||
|
||||
export interface Attachment {
|
||||
|
||||
name: string;
|
||||
type: number;
|
||||
|
||||
}
|
||||
|
||||
export class Animation {
|
||||
|
||||
constructor(name: string, timelines?: Timeline[], duration?: number);
|
||||
|
||||
apply(skeleton: Skeleton, lastTime: number, time: number, loop?: boolean, events?: Event[]): void;
|
||||
mix(skeleton: Skeleton, lastTime: number, time: number, loop?: boolean, events?: any[], alpha?: number): void;
|
||||
binarySearch(values: number[], target: number, step: number): number;
|
||||
binarySearch1(values: number[], target: number): number;
|
||||
linearSearch(values: number[], target: number, step: number): number;
|
||||
|
||||
name: string;
|
||||
timelines: Timeline[];
|
||||
duration: number;
|
||||
|
||||
}
|
||||
|
||||
export class AnimationState {
|
||||
|
||||
data: AnimationStateData;
|
||||
tracks: TrackEntry[];
|
||||
events: Event[];
|
||||
onStart: (index: number) => void;
|
||||
onEnd: (trackIndex: number) => void;
|
||||
onComplete: (i: number, count: number) => void;
|
||||
onEvent: (i: number, event: Event) => void;
|
||||
timeScale: number;
|
||||
|
||||
constructor(stateData: AnimationStateData);
|
||||
|
||||
update(delta: number): void;
|
||||
apply(skeleton: Skeleton): void;
|
||||
clearTracks(): void;
|
||||
clearTrack(trackIndex: number): void;
|
||||
private _expandToIndex(index: number): TrackEntry;
|
||||
setCurrent(index: number, entry: TrackEntry): void;
|
||||
setAnimationByName(trackIndex: number, animationName: string, loop: boolean): TrackEntry;
|
||||
setAnimation(trackIndex: number, animation: Animation, loop: boolean): TrackEntry;
|
||||
addAnimationByName(trackIndex: number, animationName: string, loop: boolean, delay: number): TrackEntry;
|
||||
addAnimation(trackIndex: number, animation: Animation, loop: boolean, delay: number): TrackEntry;
|
||||
getCurrent(trackIndex: number): TrackEntry;
|
||||
|
||||
}
|
||||
|
||||
export class Spine extends PIXI.Container {
|
||||
|
||||
constructor(spineData: any);
|
||||
|
||||
static fromAtlas(resourceName: string): Spine;
|
||||
|
||||
update(dt: number): void;
|
||||
|
||||
private autoUpdateTransform(): void;
|
||||
private createSprite(slot: Slot, attachment: Attachment): Sprite;
|
||||
private createMesh(slot, attachment)
|
||||
|
||||
spineData: any;
|
||||
skeleton: Skeleton;
|
||||
stateData: AnimationStateData;
|
||||
state: AnimationState;
|
||||
slotContainers: PIXI.Container[];
|
||||
autoUpdate: boolean;
|
||||
|
||||
}
|
||||
|
||||
export class AnimationStateData {
|
||||
|
||||
constructor(skeletonData: SkeletonData);
|
||||
|
||||
private _skelentonData: SkeletonData;
|
||||
private animationToMixTime: number;
|
||||
defaultMix: number;
|
||||
skeletonData: SkeletonData;
|
||||
setMixByName(fromName: string, toName: string, duration: number): void;
|
||||
setMix(from: Animation, to: Animation, duration: number): void;
|
||||
getMix(from: Animation, to: Animation): number;
|
||||
|
||||
}
|
||||
|
||||
export class AttachmentType {
|
||||
|
||||
static region: number;
|
||||
static boundingbox: number;
|
||||
static mesh: number;
|
||||
static skinnedmesh: number;
|
||||
|
||||
}
|
||||
|
||||
export class Bone {
|
||||
|
||||
data: BoneData;
|
||||
skeleton: Skeleton;
|
||||
parent: Bone;
|
||||
|
||||
constructor(boneData: BoneData, skeleton: Skeleton, parent: Bone);
|
||||
|
||||
x: number;
|
||||
y: number;
|
||||
rotation: number;
|
||||
rotationIK: number;
|
||||
scaleX: number;
|
||||
scaleY: number;
|
||||
flipX: boolean;
|
||||
flipY: boolean;
|
||||
m00: number;
|
||||
m01: number;
|
||||
worldX: number;
|
||||
m10: number;
|
||||
m11: number;
|
||||
worldY: number;
|
||||
worldRotation: number;;
|
||||
worldScaleX: number;
|
||||
worldScaleY: number;
|
||||
worldFlipX: boolean;
|
||||
worldFlipY: boolean;
|
||||
|
||||
updateWorldTransform(): void;
|
||||
setToSetupPose(): void;
|
||||
worldToLocal(world: number[]): void;
|
||||
localToWorld(local: number[]): void;
|
||||
|
||||
}
|
||||
|
||||
export class BoneData {
|
||||
|
||||
name: string;
|
||||
parent: Bone;
|
||||
|
||||
constructor(name: string, parent: Bone);
|
||||
|
||||
length: number;
|
||||
x: number;
|
||||
y: number;
|
||||
rotation: number;
|
||||
scaleX: number;
|
||||
scaleY: number;
|
||||
inheritScale: boolean;
|
||||
inheritRotation: boolean;
|
||||
flipX: boolean;
|
||||
flipY: boolean;
|
||||
|
||||
}
|
||||
|
||||
export class BoundingBoxAttachment implements Attachment {
|
||||
|
||||
constructor(name: string);
|
||||
|
||||
name: string;
|
||||
vertices: number[];
|
||||
type: number;
|
||||
|
||||
computeWorldVertices(x: number, y: number, bone: Bone, worldVertices: number[]): void;
|
||||
|
||||
}
|
||||
|
||||
export class ColorTimeline implements Timeline {
|
||||
|
||||
constructor(frameCount: number);
|
||||
|
||||
curves: Curves;
|
||||
frames: number[];
|
||||
slotIndex: number;
|
||||
|
||||
getFrameCount(): number;
|
||||
setFrame(frameIndex: number, time: number, r: number, g: number, b: number, a: number): void;
|
||||
apply(skeleton: Skeleton, lastTime: number, time: number, firedEvents: Event[], alpha: number): void;
|
||||
|
||||
}
|
||||
|
||||
export class Curves {
|
||||
|
||||
constructor(frameCount: number[]);
|
||||
|
||||
curves: number[];
|
||||
|
||||
setLinear(frameIndex: number): void;
|
||||
setStepped(frameIndex: number): void;
|
||||
setCurve(frameIndex: number, cx1: number, cy1: number, cx2: number, cy2: number): void;
|
||||
getCurvePercent(frameIndex: number, percent: number): number;
|
||||
|
||||
}
|
||||
|
||||
export class DrawOrderTimeline implements Timeline {
|
||||
|
||||
constructor(frameCount: number);
|
||||
|
||||
frames: number[];
|
||||
drawOrders: number[];
|
||||
|
||||
getFrameCount(): number;
|
||||
setFrame(frameIndex: number, time: number, drawOrder: number[]): void;
|
||||
apply(skeleton: Skeleton, lastTime: number, time: number, firedEvents: Event[], alpha: number): void;
|
||||
|
||||
}
|
||||
|
||||
export class Event {
|
||||
|
||||
constructor(data: any);
|
||||
|
||||
data: any;
|
||||
intValue: number;
|
||||
floatValue: number;
|
||||
stringValue: string;
|
||||
|
||||
}
|
||||
|
||||
export class EventData {
|
||||
|
||||
constructor(name: string);
|
||||
|
||||
name: string;
|
||||
|
||||
intValue: number;
|
||||
floatValue: number;
|
||||
stringValue: string;
|
||||
|
||||
}
|
||||
|
||||
export class EventTimeline implements Timeline {
|
||||
|
||||
constructor(frameCount: number);
|
||||
|
||||
frames: number[];
|
||||
events: Event[];
|
||||
|
||||
getFrameCount(): number;
|
||||
setFrame(frameIndex: number, time: number, event: Event): void;
|
||||
apply(skeleton: Skeleton, lastTime: number, time: number, firedEvents: Event[], alpha: number): void;
|
||||
|
||||
}
|
||||
|
||||
|
||||
export class FfdTimeline implements Timeline {
|
||||
|
||||
constructor(frameCount: number);
|
||||
|
||||
curves: Curves;
|
||||
frames: number[];
|
||||
frameVertices: number[];
|
||||
slotIndex: number;
|
||||
attachment: number;
|
||||
|
||||
getFrameCount(): number;
|
||||
setFrame(frameIndex: number, time: number, vertices: number[]): void;
|
||||
apply(skeleton: Skeleton, lastTime: number, time: number, firedEvents: Event[], alpha: number): void;
|
||||
|
||||
}
|
||||
|
||||
export class FlipXTimeline implements Timeline {
|
||||
|
||||
constructor(frameCount: number);
|
||||
|
||||
curves: Curves;
|
||||
frames: number[];
|
||||
boneIndex: number;
|
||||
|
||||
getFrameCount(): number;
|
||||
setFrame(frameIndex: number, time: number, vertices: number[]): void;
|
||||
apply(skeleton: Skeleton, lastTime: number, time: number, firedEvents: Event[], alpha: number): void;
|
||||
|
||||
}
|
||||
|
||||
export class FlipYTimeline implements Timeline {
|
||||
|
||||
constructor(frameCount: number);
|
||||
|
||||
curves: Curves;
|
||||
frames: number[];
|
||||
boneIndex: number;
|
||||
|
||||
getFrameCount(): number;
|
||||
setFrame(frameIndex: number, time: number, vertices: number[]): void;
|
||||
apply(skeleton: Skeleton, lastTime: number, time: number, firedEvents: Event[], alpha: number): void;
|
||||
|
||||
}
|
||||
|
||||
export class IkConstraint {
|
||||
|
||||
constructor(data: IkConstraintData, skeleton: Skeleton);
|
||||
|
||||
data: IkConstraintData;
|
||||
mix: number;
|
||||
bendDirection: number;
|
||||
bones: Bone[];
|
||||
target: Bone;
|
||||
|
||||
apply(): void;
|
||||
apply1(bone: Bone, targetX: number, targetY: number, alpha: number): void;
|
||||
apply2(parent: Bone, child: Bone, targetX: number, targetY: number, bendDirection: number, alpha: number): void;
|
||||
|
||||
}
|
||||
|
||||
export class IkConstraintData {
|
||||
|
||||
constructor(name: string);
|
||||
|
||||
name: string;
|
||||
bones: Bone[];
|
||||
target: Bone;
|
||||
bendDirection: number;
|
||||
mix: number;
|
||||
|
||||
}
|
||||
|
||||
export class IkConstraintTimeline implements Timeline {
|
||||
constructor(frameCount: number);
|
||||
|
||||
curves: Curves;
|
||||
frames: number[];
|
||||
ikConstraintIndex: number;
|
||||
|
||||
getFrameCount(): number;
|
||||
setFrame(frameIndex: number, time: number, mix: number, bendDirection: number): void;
|
||||
apply(skeleton: Skeleton, lastTime: number, time: number, firedEvents: Event[], alpha: number): void;
|
||||
|
||||
}
|
||||
|
||||
export class MeshAttachment implements Attachment {
|
||||
|
||||
constructor(name: string);
|
||||
|
||||
name: string;
|
||||
type: number;
|
||||
vertices: number[];
|
||||
uvs: number[]
|
||||
regionUVs: number[]
|
||||
triangles: number[]
|
||||
hullLength: number;
|
||||
r: number;
|
||||
g: number;
|
||||
b: number;
|
||||
a: number;
|
||||
path: string;
|
||||
rendererObject: any;
|
||||
regionU: number;
|
||||
regionV: number;
|
||||
regionU2: number;
|
||||
regionV2: number;
|
||||
regionRotate: boolean;
|
||||
regionOffsetX: number;
|
||||
regionOffsetY: number;
|
||||
regionWidth: number;
|
||||
regionHeight: number;
|
||||
regionOriginalWidth: number;
|
||||
regionOriginalHeight: number;
|
||||
edges: number[];
|
||||
width: number;
|
||||
height: number;
|
||||
|
||||
updateUVs(): void;
|
||||
computeWorldVertices(x: number, y: number, slot: Slot, worldVertices: number[]): void;
|
||||
|
||||
}
|
||||
|
||||
export class RegionAttachment implements Attachment {
|
||||
|
||||
constructor(name: string);
|
||||
|
||||
name: string;
|
||||
offset: number[];
|
||||
uvs: number[]
|
||||
type: number;
|
||||
x: number;
|
||||
y: number;
|
||||
rotation: number;
|
||||
scaleX: number;
|
||||
scaleY: number;
|
||||
width: number;
|
||||
height: number;
|
||||
r: number;
|
||||
g: number;
|
||||
b: number;
|
||||
a: number;
|
||||
path: string;
|
||||
rendererObject: any;
|
||||
regionOffsetX: number;
|
||||
regionOffsetY: number;
|
||||
regionWidth: number;
|
||||
regionHeight: number;
|
||||
regionOriginalWidth: number;
|
||||
regionOriginalHeight: number;
|
||||
|
||||
updateOffset(): void;
|
||||
setUVs(u: number, v: number, u2: number, v2: number, rotate: number): void;
|
||||
computeVertices(x: number, y: number, bone: Bone, vertices: number[]): void;
|
||||
|
||||
}
|
||||
|
||||
export class RotateTimeline implements Timeline {
|
||||
|
||||
constructor(frameCount: number);
|
||||
|
||||
curves: Curves;
|
||||
frames: number[];
|
||||
boneIndex: number;
|
||||
|
||||
getFrameCount(): number;
|
||||
setFrame(frameIndex: number, time: number, mix: number, bendDirection: number): void;
|
||||
apply(skeleton: Skeleton, lastTime: number, time: number, firedEvents: Event[], alpha: number): void;
|
||||
|
||||
}
|
||||
|
||||
export class ScaleTimeline implements Timeline {
|
||||
|
||||
constructor(frameCount: number);
|
||||
|
||||
curves: Curves;
|
||||
frames: number[];
|
||||
boneIndex: number;
|
||||
|
||||
getFrameCount(): number;
|
||||
setFrame(frameIndex: number, time: number, mix: number, bendDirection: number): void;
|
||||
apply(skeleton: Skeleton, lastTime: number, time: number, firedEvents: Event[], alpha: number): void;
|
||||
|
||||
}
|
||||
|
||||
export class Skeleton {
|
||||
|
||||
constructor(skeletonData: SkeletonData);
|
||||
|
||||
data: SkeletonData;
|
||||
bones: Bone[];
|
||||
slots: Slot[];
|
||||
drawOrder: Slot[];
|
||||
ikConstraints: IkConstraint[];
|
||||
boneCache: Bone[][];
|
||||
x: number;
|
||||
y: number;
|
||||
skin: Skin;
|
||||
r: number;
|
||||
g: number;
|
||||
b: number;
|
||||
a: number;
|
||||
time: number;
|
||||
flipX: boolean;
|
||||
flipY: boolean;
|
||||
|
||||
updateCache(): void;
|
||||
updateWorldTransform(): void;
|
||||
setToSetupPose(): void;
|
||||
setBonesToSetupPose(): void;
|
||||
setSlotsToSetupPose(): void;
|
||||
getRootBone(): Bone;
|
||||
findBone(boneName: string): Bone;
|
||||
findBoneIndex(boneName: string): number;
|
||||
findSlot(slotName: string): Slot;
|
||||
findSlotIndex(slotName: string): number;
|
||||
setSkinByName(skinName: string): Skin;
|
||||
setSkin(newSkin: Skin): void;
|
||||
getAttachmentBySlotName(slotName: string, attachmentName: string): Attachment;
|
||||
getAttachmentBySlotIndex(slotIndex: number, attachmentName: string): Attachment
|
||||
setAttachment(slotName: string, attachmentName: string): void;
|
||||
findIkConstraint(ikConstraintName: string): IkConstraint;
|
||||
update(delta: number): void;
|
||||
resetDrawOrder(): void;
|
||||
|
||||
}
|
||||
|
||||
export class SkeletonBounds {
|
||||
|
||||
polygonPool: Polygon[];
|
||||
polygons: Polygon[];
|
||||
boundingBoxes: BoundingBoxAttachment[];
|
||||
minX: number;
|
||||
minY: number;
|
||||
maxX: number;
|
||||
maxY: number;
|
||||
|
||||
update(skeleton: Skeleton, updateAabb: boolean): void;
|
||||
aabbCompute(): void;
|
||||
aabbContainsPoint(x: number, y: number): void;
|
||||
aabbIntersectsSegment(x1: number, y1: number, x2: number, y2: number): boolean;
|
||||
aabbIntersectsSkeleton(bounds: SkeletonBounds): boolean;
|
||||
containsPoint(x: number, y: number): BoundingBoxAttachment;
|
||||
intersectsSegment(x1: number, y1: number, x2: number, y2: number): BoundingBoxAttachment;
|
||||
polygonContainsPoint(polygon: Polygon, x: number, y: number): boolean;
|
||||
polygonIntersectsSegment(polygon: Polygon, x1: number, y1: number, x2: number, y2: number): boolean;
|
||||
getPolygon(attachment: Attachment): Polygon;
|
||||
getWidth(): number;
|
||||
getHeight(): number;
|
||||
|
||||
}
|
||||
|
||||
export class SkeletonData {
|
||||
|
||||
bones: Bone[];
|
||||
slots: Slot[];
|
||||
skins: Skin[];
|
||||
events: Event[];
|
||||
animations: Animation[];
|
||||
ikConstraints: IkConstraint[];
|
||||
name: string;
|
||||
defaultSkin: Skin;
|
||||
width: number;
|
||||
height: number;
|
||||
version: any;
|
||||
hash: any;
|
||||
|
||||
findBone(boneName: string): Bone;
|
||||
findBoneIndex(boneName: string): number;
|
||||
findSlot(slotName: string): Slot;
|
||||
findSlotIndex(slotName: string): number;
|
||||
findSkin(skinName: string): Skin;
|
||||
findEvent(eventName: string): Event;
|
||||
findAnimation(animationName: string): Animation
|
||||
findIkConstraint(ikConstraintName: string): IkConstraint;
|
||||
|
||||
}
|
||||
|
||||
export class SkeletonJsonParser {
|
||||
|
||||
constructor(attachmentLoader: any);
|
||||
|
||||
attachmentLoader: any;
|
||||
scale: number;
|
||||
|
||||
readSkeletonData(root: Bone, name: string): void;
|
||||
readAttachment(skin: Skin, name: string, map: any): void;
|
||||
readAnimation(name: string, map: any, skeletonData: SkeletonData): void;
|
||||
readCurve(timeline: Timeline, frameIndex: number, valueMap: any): void;
|
||||
toColor(hexString: string, colorIndex: string): number;
|
||||
getFloatArray(map: any, name: string, scale: number): number[];
|
||||
getIntArray(map: any, name: string): number[];
|
||||
|
||||
}
|
||||
|
||||
export class Skin {
|
||||
|
||||
constructor(name: string);
|
||||
|
||||
name: string;
|
||||
attachments: Attachment[];
|
||||
addAttachment(slotIndex: number, name: string, attachment: Attachment): void;
|
||||
getAttachment(slotIndex: number, name: string): Attachment;
|
||||
|
||||
protected _attachAll(skeleton: Skeleton, oldSkin: Skin): void;
|
||||
|
||||
}
|
||||
|
||||
export class SkinnedMeshAttachment implements Attachment {
|
||||
|
||||
constructor(name: string);
|
||||
|
||||
name: string;
|
||||
type: number;
|
||||
bones: number[];
|
||||
weights: number[];
|
||||
uvs: number[];
|
||||
regionUVs: number[];
|
||||
triangles: number[];
|
||||
hullLength: number;
|
||||
r: number;
|
||||
g: number;
|
||||
b: number;
|
||||
a: number;
|
||||
path: string;
|
||||
rendererObject: any;
|
||||
regionU: number;
|
||||
regionV: number;
|
||||
regionU2: number;
|
||||
regionV2: number;
|
||||
regionRotate: boolean;
|
||||
regionOffsetX: number;
|
||||
regionOffsetY: number;
|
||||
regionWidth: number;
|
||||
regionHeight: number;
|
||||
regionOriginalWidth: number;
|
||||
regionOriginalHeight: number;
|
||||
edges: number[];
|
||||
width: number;
|
||||
height: number;
|
||||
|
||||
updateUVs(u: number, v: number, u2: number, v2: number, rotate: boolean): void;
|
||||
computeWorldVertices(x: number, y: number, slot: Slot, worldVertices: number[]): void;
|
||||
|
||||
}
|
||||
|
||||
export class Slot {
|
||||
|
||||
constructor(slotData: SlotData, bone: Bone);
|
||||
|
||||
data: SlotData;
|
||||
bone: Bone;
|
||||
r: number;
|
||||
g: number;
|
||||
b: number;
|
||||
a: number;
|
||||
_attachmentTime: number;
|
||||
attachment: Attachment;
|
||||
attachmentVertices: number[];
|
||||
setAttachment(attachment: Attachment): void;
|
||||
setAttachmentTime(time: number): void;
|
||||
getAttachmentTime(): number;
|
||||
setToSetupPose(): void;
|
||||
|
||||
}
|
||||
|
||||
export class SlotData {
|
||||
|
||||
constructor(name: string, boneData: BoneData);
|
||||
|
||||
name: string;
|
||||
boneData: BoneData;
|
||||
|
||||
static PIXI_BLEND_MODE_MAP: {
|
||||
multiply: number;
|
||||
screen: number;
|
||||
additive: number;
|
||||
normal: number;
|
||||
};
|
||||
r: number;
|
||||
g: number;
|
||||
b: number;
|
||||
a: number;
|
||||
attachmentName: string;
|
||||
blendMode: number;
|
||||
|
||||
}
|
||||
|
||||
export class TrackEntry {
|
||||
|
||||
next: TrackEntry;
|
||||
previous: TrackEntry;
|
||||
animation: Animation;
|
||||
loop: boolean;
|
||||
delay: number;
|
||||
time: number;
|
||||
lastTime: number;
|
||||
endTime: number;
|
||||
timeScale: number;
|
||||
mixTime: number;
|
||||
mixDuration: number;
|
||||
mix: number;
|
||||
onStart: (index: number) => void;
|
||||
onEnd: (trackIndex: number) => void;
|
||||
onComplete: (i: number, count: number) => void;
|
||||
onEvent: (i: number, event: Event) => void;
|
||||
|
||||
}
|
||||
|
||||
export class TranslateTimeline implements Timeline {
|
||||
|
||||
constructor(frameCount: number);
|
||||
|
||||
curves: Curves[];
|
||||
frames: number[];
|
||||
boneIndex: number;
|
||||
|
||||
getFrameCount(): number;
|
||||
setFrame(frameIndex: number, time: number, x: number, y: number): void;
|
||||
apply(skeleton: Skeleton, lastTime: number, time: number, firedEvents: Event[], alpha: number): void;
|
||||
|
||||
}
|
||||
|
||||
export class Atlas {
|
||||
|
||||
constructor(atlasText: string, baseUrl: string, crossOrigin: any);
|
||||
|
||||
pages: AtlasPage[];
|
||||
regions: AtlasRegion[];
|
||||
texturesLoading: number;
|
||||
|
||||
findRegion(name: string): AtlasRegion;
|
||||
dispose(): void;
|
||||
updateUVs(page: AtlasPage): void;
|
||||
|
||||
Format: {
|
||||
|
||||
alpha: number;
|
||||
intensity: number;
|
||||
luminanceAlpha: number;
|
||||
rgb565: number;
|
||||
rgba4444: number;
|
||||
rgb888: number;
|
||||
rgba8888: number;
|
||||
|
||||
};
|
||||
|
||||
TextureFilter: {
|
||||
|
||||
nearest: number;
|
||||
linear: number;
|
||||
mipMap: number;
|
||||
mipMapNearestNearest: number;
|
||||
mipMapLinearNearest: number;
|
||||
mipMapNearestLinear: number;
|
||||
mipMapLinearLinear: number;
|
||||
|
||||
};
|
||||
|
||||
TextureWrap: {
|
||||
|
||||
mirroredRepeat: number;
|
||||
clampToEdge: number;
|
||||
repeat: number;
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
export class AtlasAttachmentParser {
|
||||
|
||||
constructor(atlas: Atlas);
|
||||
|
||||
newRegionAttachment(skin: Skin, name: string, path: string): RegionAttachment;
|
||||
newMeshAttachment(skin: Skin, name: string, path: string): SkinnedMeshAttachment;
|
||||
newSkinnedMeshAttachment(skin: Skin, name: string, path: string): SkinnedMeshAttachment;
|
||||
newBoundingBoxAttachment(skin: Skin, name: string): BoundingBoxAttachment;
|
||||
|
||||
}
|
||||
|
||||
export class AtlasPage {
|
||||
name: string;
|
||||
format: any;
|
||||
minFilter: any;
|
||||
magFilter: any;
|
||||
uWrap: any;
|
||||
vWrap: any;
|
||||
rendererObject: any;
|
||||
width: number;
|
||||
height: number;
|
||||
|
||||
}
|
||||
|
||||
export class AtlasReader {
|
||||
constructor(text: string);
|
||||
|
||||
lines: string[];
|
||||
index: number;
|
||||
|
||||
trim(value: string): string;
|
||||
readLine(): string;
|
||||
readValue(): string;
|
||||
readTuple(tuple: number): number;
|
||||
|
||||
}
|
||||
|
||||
export class AtlasRegion {
|
||||
|
||||
page: AtlasPage;
|
||||
name: string;
|
||||
x: number;
|
||||
y: number;
|
||||
width: number;
|
||||
height: number;
|
||||
u: number;
|
||||
v: number;
|
||||
u2: number;
|
||||
v2: number;
|
||||
offsetX: number;
|
||||
offsetY: number;
|
||||
originalWidth: number;
|
||||
originalHeight: number;
|
||||
index: number;
|
||||
rotate: boolean;
|
||||
splits: any;
|
||||
pads: any;
|
||||
|
||||
|
||||
}
|
||||
|
||||
export class AttachmentTimeline implements Timeline {
|
||||
|
||||
constructor(frameCount: number);
|
||||
|
||||
slotIndex: number;
|
||||
frames: number[];
|
||||
attachmentNames: string[];
|
||||
|
||||
getFrameCount(): number;
|
||||
setFrame(frameIndex: number, time: number, attachmentName: string): void;
|
||||
apply(skeleton: Skeleton, lastTime: number, time: number, firedEvents: Event[], alpha: number): void;
|
||||
|
||||
}
|
||||
|
||||
export class atlasParser {
|
||||
|
||||
constructor(resource: any, next: any);
|
||||
|
||||
AnimCache: any;
|
||||
enableCaching: boolean;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
Vendored
+1720
File diff suppressed because it is too large
Load Diff
-1193
File diff suppressed because it is too large
Load Diff
@@ -1 +0,0 @@
|
||||
|
||||
Vendored
-448
@@ -1,448 +0,0 @@
|
||||
// Type definitions for PIXI 1.3
|
||||
// Project: https://github.com/GoodBoyDigital/pixi.js/
|
||||
// Definitions by: xperiments <http://github.com/xperiments>
|
||||
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
||||
|
||||
declare module PIXI
|
||||
{
|
||||
|
||||
/* STATICS */
|
||||
export var gl:WebGLRenderingContext;
|
||||
export var BaseTextureCache: {};
|
||||
export var texturesToUpdate: BaseTexture[];
|
||||
export var texturesToDestroy: BaseTexture[];
|
||||
export var TextureCache: {};
|
||||
export var FrameCache: {};
|
||||
export var blendModes:{ NORMAL:number; SCREEN:number; };
|
||||
|
||||
|
||||
/* MODULE FUNCTIONS */
|
||||
export function autoDetectRenderer(width: number, height: number, view?: HTMLCanvasElement, transparent?: boolean, antialias?: boolean): IPixiRenderer;
|
||||
export function FilterBlock( mask:Graphics ):void;
|
||||
export function MaskFilter( graphics:Graphics ):void;
|
||||
|
||||
|
||||
/* DEBUG METHODS */
|
||||
|
||||
export function runList( x ):void;
|
||||
|
||||
/*INTERFACES*/
|
||||
|
||||
export interface IBasicCallback
|
||||
{
|
||||
():void
|
||||
}
|
||||
|
||||
export interface IEvent
|
||||
{
|
||||
type: string;
|
||||
content: any;
|
||||
}
|
||||
|
||||
export interface IHitArea
|
||||
{
|
||||
contains(x: number, y: number):boolean;
|
||||
}
|
||||
|
||||
export interface IInteractionDataCallback
|
||||
{
|
||||
(interactionData: InteractionData):void
|
||||
}
|
||||
|
||||
export interface IPixiRenderer
|
||||
{
|
||||
view: HTMLCanvasElement;
|
||||
render(stage: Stage): void;
|
||||
}
|
||||
|
||||
export interface IBitmapTextStyle
|
||||
{
|
||||
font?: string;
|
||||
align?: string;
|
||||
}
|
||||
|
||||
export interface ITextStyle
|
||||
{
|
||||
font?: string;
|
||||
stroke?: string;
|
||||
fill?: string;
|
||||
align?: string;
|
||||
strokeThickness?: number;
|
||||
wordWrap?: boolean;
|
||||
wordWrapWidth?:number;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/* CLASES */
|
||||
|
||||
export class AssetLoader extends EventTarget
|
||||
{
|
||||
assetURLs: string[];
|
||||
onComplete: IBasicCallback;
|
||||
onProgress: IBasicCallback;
|
||||
constructor(assetURLs: string[], crossorigin?:boolean );
|
||||
load(): void;
|
||||
}
|
||||
|
||||
export class BaseTexture extends EventTarget
|
||||
{
|
||||
height: number;
|
||||
width: number;
|
||||
source: string;
|
||||
|
||||
constructor(source: HTMLImageElement);
|
||||
constructor(source: HTMLCanvasElement);
|
||||
destroy():void;
|
||||
|
||||
static fromImage(imageUrl: string, crossorigin?:boolean ): BaseTexture;
|
||||
}
|
||||
|
||||
export class BitmapFontLoader extends EventTarget
|
||||
{
|
||||
baseUrl:string;
|
||||
crossorigin:boolean;
|
||||
texture:Texture;
|
||||
url:string;
|
||||
constructor(url: string, crossorigin?: boolean);
|
||||
load():void;
|
||||
}
|
||||
|
||||
export class BitmapText extends DisplayObjectContainer
|
||||
{
|
||||
width:number;
|
||||
height:number;
|
||||
constructor(text: string, style: IBitmapTextStyle);
|
||||
setStyle(style: IBitmapTextStyle): void;
|
||||
setText(text: string): void;
|
||||
}
|
||||
|
||||
export class CanvasRenderer implements IPixiRenderer
|
||||
{
|
||||
context: CanvasRenderingContext2D;
|
||||
height: number;
|
||||
view: HTMLCanvasElement;
|
||||
width: number;
|
||||
constructor(width: number, height: number, view?: HTMLCanvasElement, transparent?: boolean);
|
||||
render(stage: Stage): void;
|
||||
resize(width: number, height: number):void;
|
||||
}
|
||||
|
||||
export class Circle implements IHitArea
|
||||
{
|
||||
x: number;
|
||||
y: number;
|
||||
radius: number;
|
||||
constructor(x: number, y: number, radius: number);
|
||||
clone(): Circle;
|
||||
contains(x: number, y: number):boolean;
|
||||
}
|
||||
|
||||
// TODO what is renderGroup
|
||||
export class CustomRenderable extends DisplayObject
|
||||
{
|
||||
constructor();
|
||||
renderCanvas(renderer: CanvasRenderer): void;
|
||||
initWebGL(renderer: WebGLRenderer): void;
|
||||
renderWebGL(renderGroup: any, projectionMatrix: any): void;
|
||||
}
|
||||
|
||||
export class DisplayObject
|
||||
{
|
||||
x: number;
|
||||
y: number;
|
||||
alpha: number;
|
||||
buttonMode: boolean;
|
||||
filter:boolean;
|
||||
hitArea: IHitArea;
|
||||
parent: DisplayObjectContainer;
|
||||
pivot: Point;
|
||||
position: Point;
|
||||
rotation: number;
|
||||
renderable: boolean;
|
||||
scale: Point;
|
||||
stage: Stage;
|
||||
visible: boolean;
|
||||
worldAlpha: number;
|
||||
constructor();
|
||||
static autoDetectRenderer(width: number, height: number, view?: HTMLCanvasElement, transparent?: boolean): IPixiRenderer;
|
||||
click: IInteractionDataCallback;
|
||||
mousedown: IInteractionDataCallback;
|
||||
mouseout: IInteractionDataCallback;
|
||||
mouseover: IInteractionDataCallback;
|
||||
mouseup: IInteractionDataCallback;
|
||||
mouseupoutside: IInteractionDataCallback;
|
||||
mousemove: IInteractionDataCallback;
|
||||
tap: IInteractionDataCallback;
|
||||
touchend: IInteractionDataCallback;
|
||||
touchendoutside: IInteractionDataCallback;
|
||||
touchstart: IInteractionDataCallback;
|
||||
touchmove: IInteractionDataCallback;
|
||||
|
||||
//deprecated
|
||||
setInteractive(interactive: boolean): void;
|
||||
|
||||
// getters setters
|
||||
interactive:boolean;
|
||||
mask:Graphics;
|
||||
}
|
||||
|
||||
export class DisplayObjectContainer extends DisplayObject
|
||||
{
|
||||
children: DisplayObject[];
|
||||
constructor();
|
||||
|
||||
addChild(child: DisplayObject): void;
|
||||
addChildAt(child: DisplayObject, index: number): void;
|
||||
getChildAt(index:number):DisplayObject;
|
||||
removeChild(child: DisplayObject): void;
|
||||
swapChildren(child: DisplayObject, child2: DisplayObject): void;
|
||||
}
|
||||
|
||||
export class Ellipse implements IHitArea
|
||||
{
|
||||
x: number;
|
||||
y: number;
|
||||
width: number;
|
||||
height: number;
|
||||
|
||||
constructor(x: number, y: number, width: number, height: number);
|
||||
clone(): Ellipse;
|
||||
contains(x: number, y: number):boolean;
|
||||
getBounds():Rectangle;
|
||||
}
|
||||
|
||||
export class EventTarget
|
||||
{
|
||||
addEventListener(type: string, listener: (event: IEvent) => void );
|
||||
removeEventListener(type: string, listener: (event: IEvent) => void );
|
||||
dispatchEvent(event: IEvent);
|
||||
}
|
||||
|
||||
export class Graphics extends DisplayObjectContainer
|
||||
{
|
||||
lineWidth:number;
|
||||
lineColor:string;
|
||||
constructor();
|
||||
|
||||
beginFill(color?: number, alpha?: number): void;
|
||||
clear(): void;
|
||||
drawCircle(x: number, y: number, radius: number): void;
|
||||
drawElipse(x: number, y: number, width: number, height: number): void;
|
||||
drawRect(x: number, y: number, width: number, height: number): void;
|
||||
endFill(): void;
|
||||
lineStyle(lineWidth?: number, color?: number, alpha?: number ): void;
|
||||
lineTo(x: number, y: number): void;
|
||||
moveTo(x: number, y: number): void;
|
||||
|
||||
static POLY:number;
|
||||
static RECT:number;
|
||||
static CIRC:number;
|
||||
static ELIP:number;
|
||||
}
|
||||
|
||||
export class ImageLoader extends EventTarget
|
||||
{
|
||||
texture:Texture;
|
||||
constructor(url: string, crossorigin?: boolean);
|
||||
load(): void;
|
||||
}
|
||||
|
||||
/* TODO determine type of originalEvent*/
|
||||
export class InteractionData
|
||||
{
|
||||
global: Point;
|
||||
target: Sprite;
|
||||
constructor();
|
||||
originalEvent:any;
|
||||
getLocalPosition(displayObject: DisplayObject): Point;
|
||||
}
|
||||
|
||||
export class InteractionManager
|
||||
{
|
||||
mouse: InteractionData;
|
||||
stage: Stage;
|
||||
touchs:{ [id:string]:InteractionData };
|
||||
constructor(stage: Stage);
|
||||
}
|
||||
|
||||
export class JsonLoader extends EventTarget
|
||||
{
|
||||
url:string;
|
||||
crossorigin: boolean;
|
||||
baseUrl:string;
|
||||
loaded:boolean;
|
||||
constructor(url: string, crossorigin?: boolean);
|
||||
load(): void;
|
||||
}
|
||||
|
||||
export class MovieClip extends Sprite
|
||||
{
|
||||
animationSpeed: number;
|
||||
currentFrame:number;
|
||||
loop: boolean;
|
||||
playing: boolean;
|
||||
textures: Texture[];
|
||||
constructor(textures: Texture[]);
|
||||
onComplete:IBasicCallback;
|
||||
gotoAndPlay(frameNumber: number): void;
|
||||
gotoAndStop(frameNumber: number): void;
|
||||
play(): void;
|
||||
stop(): void;
|
||||
}
|
||||
|
||||
export class Point
|
||||
{
|
||||
x: number;
|
||||
y: number;
|
||||
constructor(x: number, y: number);
|
||||
clone(): Point;
|
||||
}
|
||||
|
||||
export class Polygon implements IHitArea
|
||||
{
|
||||
points: Point[];
|
||||
|
||||
constructor(points: Point[]);
|
||||
constructor(points: number[]);
|
||||
constructor(...points: Point[]);
|
||||
constructor(...points: number[]);
|
||||
|
||||
clone(): Polygon;
|
||||
contains( x:number, y:number ):boolean;
|
||||
}
|
||||
|
||||
export class Rectangle implements IHitArea
|
||||
{
|
||||
x: number;
|
||||
y: number;
|
||||
width: number;
|
||||
height: number;
|
||||
constructor(x: number, y: number, width: number, height: number);
|
||||
clone(): Rectangle;
|
||||
contains(x: number, y: number):boolean;
|
||||
}
|
||||
|
||||
export class RenderTexture extends Texture
|
||||
{
|
||||
constructor(width: number, height: number);
|
||||
resize(width: number, height: number): void;
|
||||
}
|
||||
|
||||
export class Sprite extends DisplayObjectContainer
|
||||
{
|
||||
anchor: Point;
|
||||
blendMode: number;
|
||||
texture: Texture;
|
||||
|
||||
//getters setters
|
||||
height: number;
|
||||
width: number;
|
||||
|
||||
constructor(texture: Texture);
|
||||
|
||||
static fromFrame(frameId: string): Sprite;
|
||||
static fromImage(url: string): Sprite;
|
||||
setTexture(texture: Texture): void;
|
||||
}
|
||||
|
||||
/* TODO determine type of frames */
|
||||
export class SpriteSheetLoader extends EventTarget
|
||||
{
|
||||
url:string;
|
||||
crossorigin:boolean;
|
||||
baseUrl:string;
|
||||
texture:Texture;
|
||||
frames:Object;
|
||||
constructor(url: string, crossorigin?: boolean);
|
||||
load();
|
||||
}
|
||||
|
||||
export class Stage extends DisplayObjectContainer
|
||||
{
|
||||
interactive:boolean;
|
||||
interactionManager:InteractionManager;
|
||||
constructor(backgroundColor: number, interactive?: boolean);
|
||||
getMousePosition(): Point;
|
||||
setBackgroundColor(backgroundColor: number): void;
|
||||
}
|
||||
|
||||
export class Text extends Sprite
|
||||
{
|
||||
constructor(text: string, style: ITextStyle);
|
||||
destroy(destroyTexture:boolean):void;
|
||||
setText(text: string): void;
|
||||
setStyle(style: ITextStyle): void;
|
||||
}
|
||||
|
||||
export class Texture extends EventTarget
|
||||
{
|
||||
baseTexture: BaseTexture;
|
||||
frame: Rectangle;
|
||||
trim:Point;
|
||||
render( displayObject:DisplayObject, position:Point, clear:boolean ):void;
|
||||
constructor(baseTexture: BaseTexture, frame?: Rectangle);
|
||||
destroy(destroyBase:boolean):void;
|
||||
setFrame(frame: Rectangle): void;
|
||||
|
||||
static addTextureToCache(texture: Texture, id: string): void;
|
||||
static fromCanvas(canvas: HTMLCanvasElement): Texture;
|
||||
static fromFrame(frameId: string): Texture;
|
||||
static fromImage(imageUrl: string, crossorigin?: boolean): Texture;
|
||||
static removeTextureFromCache(id: any): Texture;
|
||||
}
|
||||
|
||||
export class TilingSprite extends DisplayObjectContainer
|
||||
{
|
||||
width:number;
|
||||
height:number;
|
||||
texture:Texture;
|
||||
tilePosition: Point;
|
||||
tileScale: Point;
|
||||
constructor(texture: Texture, width: number, height: number);
|
||||
setTexture( texture: Texture ):void;
|
||||
}
|
||||
|
||||
export class WebGLBatch
|
||||
{
|
||||
constructor(webGLContext: WebGLRenderingContext);
|
||||
clean():void;
|
||||
restoreLostContext(gl:WebGLRenderingContext);
|
||||
init(sprite: Sprite): void;
|
||||
insertAfter(sprite: Sprite, previousSprite: Sprite): void;
|
||||
insertBefore(sprite: Sprite, nextSprite: Sprite): void;
|
||||
growBatch(): void;
|
||||
merge(batch: WebGLBatch): void;
|
||||
refresh(): void;
|
||||
remove(sprite: Sprite): void;
|
||||
render(): void;
|
||||
split(sprite: Sprite): WebGLBatch;
|
||||
update(): void;
|
||||
}
|
||||
|
||||
/* Determine type of Object */
|
||||
export class WebGLRenderGroup
|
||||
{
|
||||
render(projection:Object):void;
|
||||
}
|
||||
|
||||
export class WebGLRenderer implements IPixiRenderer
|
||||
{
|
||||
view: HTMLCanvasElement;
|
||||
constructor(width: number, height: number, view?: HTMLCanvasElement, transparent?: boolean, antialias?:boolean );
|
||||
render(stage: Stage): void;
|
||||
resize(width: number, height: number): void;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
declare function requestAnimFrame( animate: PIXI.IBasicCallback );
|
||||
|
||||
|
||||
declare module PIXI.PolyK
|
||||
{
|
||||
export function Triangulate( p:number[]):number[];
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
|
||||
Vendored
+2
-1
@@ -43,7 +43,7 @@ declare module Snap {
|
||||
export function ajax(url:string,callback:Function,scope?:Object):XMLHttpRequest;
|
||||
export function format(token:string,json:Object):string;
|
||||
export function fragment(varargs:any):Fragment;
|
||||
export function getElementByPoint(x:number,y:number):Object;
|
||||
export function getElementByPoint(x:number,y:number):Snap.Element;
|
||||
export function is(o:any,type:string):boolean;
|
||||
export function load(url:string,callback:Function,scope?:Object):void;
|
||||
export function plugin(f:Function):void;
|
||||
@@ -131,6 +131,7 @@ declare module Snap {
|
||||
getSubpath(from:number,to:number):string;
|
||||
getTotalLength():number;
|
||||
hasClass(value:string):boolean;
|
||||
id:string;
|
||||
inAnim():Object;
|
||||
innerSVG():string;
|
||||
insertAfter(el:Snap.Element):Snap.Element;
|
||||
|
||||
@@ -56,6 +56,11 @@ request
|
||||
.delete('/user/1')
|
||||
.end(callback);
|
||||
|
||||
request
|
||||
.delete('/user/1')
|
||||
.send()
|
||||
.end(callback);
|
||||
|
||||
request('/search')
|
||||
.end(callback);
|
||||
|
||||
|
||||
Vendored
+1
@@ -97,6 +97,7 @@ declare module "superagent" {
|
||||
redirects(n: number): Req;
|
||||
send(data: string): Req;
|
||||
send(data: Object): Req;
|
||||
send(): Req;
|
||||
set(field: string, val: string): Req;
|
||||
set(field: Object): Req;
|
||||
timeout(ms: number): Req;
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
/// <reference path="tea-merge.d.ts" />
|
||||
|
||||
import merge = require('tea-merge');
|
||||
|
||||
merge({ a: 1 }, { b: 2 }, { c: 'hello' });
|
||||
merge({ a1: true, a2: { b: 'hello' } }, { bca: [], a2: { c: 'world' } });
|
||||
Vendored
+9
@@ -0,0 +1,9 @@
|
||||
// Type definitions for tea-merge
|
||||
// Project: https://github.com/qualiancy/tea-merge
|
||||
// Definitions by: Mihhail Lapushkin <https://github.com/mihhail-lapushkin/>
|
||||
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
||||
|
||||
declare module "tea-merge" {
|
||||
function e(destination: Object, ...sources: Object[]): Object;
|
||||
export = e;
|
||||
}
|
||||
Vendored
+1
-1
@@ -192,7 +192,7 @@ declare module uiGrid {
|
||||
export interface IGridOptions {
|
||||
aggregationCalcThrottle?: number;
|
||||
appScopeProvider?: ng.IScope | Object;
|
||||
columnDefs?: IColumnDef;
|
||||
columnDefs?: Array<IColumnDef>;
|
||||
columnFooterHeight?: number;
|
||||
columnVirtualizationThreshold?: number;
|
||||
data?: Array<any> | string;
|
||||
|
||||
Vendored
+1739
File diff suppressed because it is too large
Load Diff
Vendored
+2394
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,93 @@
|
||||
/// <reference path="umbraco.d.ts" />
|
||||
/// <reference path="../jquery/jquery.d.ts" />
|
||||
/// <reference path="../underscore/underscore.d.ts" />
|
||||
|
||||
var navigationService: umb.services.INavigationService;
|
||||
var notificationsService: umb.services.INotificationsService;
|
||||
var dialogService: umb.services.IDialogService;
|
||||
var editorState: umb.services.IEditorState;
|
||||
var appState: umb.services.IAppState;
|
||||
|
||||
/**
|
||||
* Sync tree for specific path
|
||||
*/
|
||||
navigationService.syncTree({ tree: "content", path: "", forceReload: true, activate: false })
|
||||
.then(() => {
|
||||
//do something
|
||||
});
|
||||
|
||||
/**
|
||||
* Open Modal
|
||||
*/
|
||||
dialogService.open({
|
||||
|
||||
// set the location of the view
|
||||
template: "",
|
||||
iframe: true,
|
||||
|
||||
// function called when dialog is closed
|
||||
callback: () => {
|
||||
// close all
|
||||
dialogService.closeAll();
|
||||
}
|
||||
});
|
||||
|
||||
/**
|
||||
* Hide/show navigation in custom sections so we have full screen for complex dashboards
|
||||
*/
|
||||
var toggleNavigation = () => {
|
||||
|
||||
var isNavigationShown = appState.getGlobalState("showNavigation");
|
||||
if (isNavigationShown) {
|
||||
appState.setGlobalState("showNavigation", false);
|
||||
$("#contentwrapper").css("left", "80px");
|
||||
} else {
|
||||
appState.setGlobalState("showNavigation", true);
|
||||
$("#contentwrapper").css("left", "440px");
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Get current node
|
||||
*/
|
||||
var getCurrentNode = () => {
|
||||
return appState.getMenuState("currentNode");
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a node is published
|
||||
*/
|
||||
var isPublishedNode = () => {
|
||||
|
||||
// check that we have an active node
|
||||
if (_.isUndefined(editorState.current)) {
|
||||
return false;
|
||||
}
|
||||
return editorState.current.published;
|
||||
};
|
||||
|
||||
/**
|
||||
* Gets the "active" node id to use for any api request
|
||||
* Note that this retrieves the parent node id if the current node is in an unpublished state
|
||||
* Note also that in Umbraco 7 the right click custom menu may be brought up without changing the editorState to the node that we right clicked on.
|
||||
* So the editorState still gives the active node id not the right clicked node is
|
||||
*/
|
||||
var getActiveNodeId = () => {
|
||||
|
||||
// check that we have an active node
|
||||
if (_.isUndefined(editorState.current)) {
|
||||
return 0;
|
||||
}
|
||||
// get the parent id of the current node - we get parent because if we create a new module then the current node will be unpublished and this "id" will be 0
|
||||
return editorState.current.id > 0 ? editorState.current.id : editorState.current.parentId;
|
||||
}
|
||||
|
||||
/**
|
||||
* Display error notification
|
||||
*/
|
||||
notificationsService.error("Error", "An unknown error has occured.");
|
||||
|
||||
/**
|
||||
* Display success notification
|
||||
*/
|
||||
notificationsService.success("Success", "Operation completed.");
|
||||
Vendored
+20
@@ -0,0 +1,20 @@
|
||||
// Type definitions for Umbraco v7.2.8
|
||||
// Project: https://github.com/umbraco
|
||||
// Definitions by: DeCareSystemsIreland <https://github.com/DeCareSystemsIreland>
|
||||
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
||||
|
||||
/// <reference path="umbraco-services.d.ts" />
|
||||
/// <reference path="umbraco-resources.d.ts" />
|
||||
|
||||
// Collapse umbraco into umb
|
||||
import umb = umbraco;
|
||||
|
||||
// Support AMD require
|
||||
declare module 'umbraco' {
|
||||
export = umbraco;
|
||||
}
|
||||
|
||||
declare module umbraco {
|
||||
|
||||
}
|
||||
|
||||
+3
@@ -58,5 +58,8 @@ declare module jquery.velocity {
|
||||
delay?: any;
|
||||
mobileHA?: boolean;
|
||||
_cacheValues?: boolean;
|
||||
container?: JQuery;
|
||||
axis?: string;
|
||||
offset?: number;
|
||||
}
|
||||
}
|
||||
|
||||
Vendored
+32
@@ -171,3 +171,35 @@ declare enum OscillatorType {
|
||||
triangle,
|
||||
custom
|
||||
}
|
||||
|
||||
interface AudioContextConstructor {
|
||||
new(): AudioContext;
|
||||
}
|
||||
|
||||
interface Window {
|
||||
AudioContext: AudioContextConstructor;
|
||||
}
|
||||
|
||||
interface AudioContext {
|
||||
createMediaStreamSource(stream: MediaStream): MediaStreamAudioSourceNode;
|
||||
}
|
||||
|
||||
interface MediaStreamAudioSourceNode extends AudioNode {
|
||||
|
||||
}
|
||||
|
||||
interface AudioBuffer {
|
||||
copyFromChannel(destination: Float32Array, channelNumber: number, startInChannel?: number): void;
|
||||
|
||||
copyToChannel(source: Float32Array, channelNumber: number, startInChannel?: number): void;
|
||||
}
|
||||
|
||||
interface AudioNode {
|
||||
disconnect(destination: AudioNode): void;
|
||||
}
|
||||
|
||||
interface AudioContext {
|
||||
suspend(): Promise<void>;
|
||||
resume(): Promise<void>;
|
||||
close(): Promise<void>;
|
||||
}
|
||||
|
||||
+15
-16
@@ -2,16 +2,17 @@
|
||||
var mediaStreamConstraints: MediaStreamConstraints = { audio: true, video: true };
|
||||
|
||||
var mediaTrackConstraintSet: MediaTrackConstraintSet = {};
|
||||
var mediaTrackConstraintArray: MediaTrackConstraint[] = [];
|
||||
var mediaTrackConstraints: MediaTrackConstraints = { mandatory: mediaTrackConstraintSet, optional: mediaTrackConstraintArray }
|
||||
var mediaTrackConstraintArray: MediaTrackConstraintSet[] = [];
|
||||
var mediaTrackConstraints: MediaTrackConstraints = mediaTrackConstraintSet;
|
||||
var mediaTrackConstraints2: MediaTrackConstraints = { advanced: mediaTrackConstraintArray };
|
||||
|
||||
navigator.getUserMedia(mediaStreamConstraints,
|
||||
stream => {
|
||||
console.log('label:' + stream.label);
|
||||
console.log('ended:' + stream.ended);
|
||||
stream.onended = (event:Event) => console.log('Stream ended');
|
||||
var track: MediaStreamTrack = stream.getTracks()[0];
|
||||
console.log('label:' + track.label);
|
||||
console.log('ended:' + track.readyState);
|
||||
track.onended = (event:Event) => console.log('Track ended');
|
||||
var objectUrl = URL.createObjectURL(stream);
|
||||
var wkObjectUrl = webkitURL.createObjectURL(stream);
|
||||
},
|
||||
error => {
|
||||
console.log('Error message: ' + error.message);
|
||||
@@ -20,12 +21,11 @@ navigator.getUserMedia(mediaStreamConstraints,
|
||||
|
||||
navigator.webkitGetUserMedia(mediaStreamConstraints,
|
||||
stream => {
|
||||
console.log('label:' + stream.label);
|
||||
console.log('ended:' + stream.ended);
|
||||
stream.onended = (event:Event) => console.log('Stream ended');
|
||||
stream.addEventListener("ended", (event:Event) => console.log('Stream ended'));
|
||||
var track: MediaStreamTrack = stream.getTracks()[0];
|
||||
console.log('label:' + track.label);
|
||||
console.log('ended:' + track.readyState);
|
||||
track.onended = (event:Event) => console.log('Track ended');
|
||||
var objectUrl = URL.createObjectURL(stream);
|
||||
var wkObjectUrl = webkitURL.createObjectURL(stream);
|
||||
},
|
||||
error => {
|
||||
console.log('Error message: ' + error.message);
|
||||
@@ -35,12 +35,11 @@ navigator.webkitGetUserMedia(mediaStreamConstraints,
|
||||
|
||||
navigator.mozGetUserMedia(mediaStreamConstraints,
|
||||
stream => {
|
||||
console.log('label:' + stream.label);
|
||||
console.log('ended:' + stream.ended);
|
||||
stream.onended = (event:Event) => console.log('Stream ended');
|
||||
stream.addEventListener("ended", (event:Event) => console.log('Stream ended'));
|
||||
var track: MediaStreamTrack = stream.getTracks()[0];
|
||||
console.log('label:' + track.label);
|
||||
console.log('ended:' + track.readyState);
|
||||
track.onended = (event:Event) => console.log('Track ended');
|
||||
var objectUrl = URL.createObjectURL(stream);
|
||||
var wkObjectUrl = webkitURL.createObjectURL(stream);
|
||||
},
|
||||
error => {
|
||||
console.log('Error message: ' + error.message);
|
||||
|
||||
Vendored
+172
-144
@@ -4,162 +4,190 @@
|
||||
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
||||
|
||||
// Taken from http://dev.w3.org/2011/webrtc/editor/getusermedia.html
|
||||
// version: W3C Editor's Draft 29 June 2015
|
||||
|
||||
/// <reference path="../es6-promise/es6-promise.d.ts" />
|
||||
|
||||
interface ConstrainBooleanParameters {
|
||||
exact: boolean;
|
||||
ideal: boolean;
|
||||
}
|
||||
|
||||
interface NumberRange {
|
||||
max: number;
|
||||
min: number;
|
||||
}
|
||||
|
||||
interface ConstrainNumberRange extends NumberRange {
|
||||
exact: number;
|
||||
ideal: number;
|
||||
}
|
||||
|
||||
interface ConstrainStringParameters {
|
||||
exact: string | string[];
|
||||
ideal: string | string[];
|
||||
}
|
||||
|
||||
interface MediaStreamConstraints {
|
||||
audio: any;
|
||||
video: any;
|
||||
video?: boolean | MediaTrackConstraints;
|
||||
audio?: boolean | MediaTrackConstraints;
|
||||
}
|
||||
declare var MediaStreamConstraints: {
|
||||
prototype: MediaStreamConstraints;
|
||||
new (): MediaStreamConstraints;
|
||||
};
|
||||
|
||||
interface MediaTrackConstraints {
|
||||
mandatory: MediaTrackConstraintSet;
|
||||
optional: MediaTrackConstraint[];
|
||||
declare module W3C {
|
||||
type LongRange = NumberRange;
|
||||
type DoubleRange = NumberRange;
|
||||
type ConstrainBoolean = boolean | ConstrainBooleanParameters;
|
||||
type ConstrainNumber = number | ConstrainNumberRange;
|
||||
type ConstrainLong = ConstrainNumber;
|
||||
type ConstrainDouble = ConstrainNumber;
|
||||
type ConstrainString = string | string[] | ConstrainStringParameters;
|
||||
}
|
||||
|
||||
interface MediaTrackConstraints extends MediaTrackConstraintSet {
|
||||
advanced?: MediaTrackConstraintSet[];
|
||||
}
|
||||
declare var MediaTrackConstraints: {
|
||||
prototype: MediaTrackConstraints;
|
||||
new (): MediaTrackConstraints;
|
||||
};
|
||||
|
||||
// ks - Not defined in the source doc.
|
||||
interface MediaTrackConstraintSet {
|
||||
width?: W3C.ConstrainLong;
|
||||
height?: W3C.ConstrainLong;
|
||||
aspectRatio?: W3C.ConstrainDouble;
|
||||
frameRate?: W3C.ConstrainDouble;
|
||||
facingMode?: W3C.ConstrainString;
|
||||
volume?: W3C.ConstrainDouble;
|
||||
sampleRate?: W3C.ConstrainLong;
|
||||
sampleSize?: W3C.ConstrainLong;
|
||||
echoCancellation?: W3C.ConstrainBoolean;
|
||||
latency?: W3C.ConstrainDouble;
|
||||
deviceId?: W3C.ConstrainString;
|
||||
groupId?: W3C.ConstrainString;
|
||||
}
|
||||
declare var MediaTrackConstraintSet: {
|
||||
prototype: MediaTrackConstraintSet;
|
||||
new (): MediaTrackConstraintSet;
|
||||
};
|
||||
|
||||
// ks - Not defined in the source doc.
|
||||
interface MediaTrackConstraint {
|
||||
interface MediaTrackSupportedConstraints {
|
||||
width: boolean;
|
||||
height: boolean;
|
||||
aspectRatio: boolean;
|
||||
frameRate: boolean;
|
||||
facingMode: boolean;
|
||||
volume: boolean;
|
||||
sampleRate: boolean;
|
||||
sampleSize: boolean;
|
||||
echoCancellation: boolean;
|
||||
latency: boolean;
|
||||
deviceId: boolean;
|
||||
groupId: boolean;
|
||||
}
|
||||
|
||||
interface MediaStream extends EventTarget {
|
||||
id: string;
|
||||
active: boolean;
|
||||
|
||||
onactive: EventListener;
|
||||
oninactive: EventListener;
|
||||
onaddtrack: (event: MediaStreamTrackEvent) => any;
|
||||
onremovetrack: (event: MediaStreamTrackEvent) => any;
|
||||
|
||||
clone(): MediaStream;
|
||||
stop(): void;
|
||||
|
||||
getAudioTracks(): MediaStreamTrack[];
|
||||
getVideoTracks(): MediaStreamTrack[];
|
||||
getTracks(): MediaStreamTrack[];
|
||||
|
||||
getTrackById(trackId: string): MediaStreamTrack;
|
||||
|
||||
addTrack(track: MediaStreamTrack): void;
|
||||
removeTrack(track: MediaStreamTrack): void;
|
||||
}
|
||||
|
||||
interface MediaStreamTrackEvent extends Event {
|
||||
track: MediaStreamTrack;
|
||||
}
|
||||
|
||||
declare enum MediaStreamTrackState {
|
||||
"live",
|
||||
"ended"
|
||||
}
|
||||
|
||||
interface MediaStreamTrack extends EventTarget {
|
||||
id: string;
|
||||
kind: string;
|
||||
label: string;
|
||||
enabled: boolean;
|
||||
muted: boolean;
|
||||
remote: boolean;
|
||||
readyState: MediaStreamTrackState;
|
||||
|
||||
onmute: EventListener;
|
||||
onunmute: EventListener;
|
||||
onended: EventListener;
|
||||
onoverconstrained: EventListener;
|
||||
|
||||
clone(): MediaStreamTrack;
|
||||
|
||||
stop(): void;
|
||||
|
||||
getCapabilities(): MediaTrackCapabilities;
|
||||
getConstraints(): MediaTrackConstraints;
|
||||
getSettings(): MediaTrackSettings;
|
||||
applyConstraints(constraints: MediaTrackConstraints): Promise<void>;
|
||||
}
|
||||
|
||||
interface MediaTrackCapabilities {
|
||||
width: number | W3C.LongRange;
|
||||
height: number | W3C.LongRange;
|
||||
aspectRatio: number | W3C.DoubleRange;
|
||||
frameRate: number | W3C.DoubleRange;
|
||||
facingMode: string;
|
||||
volume: number | W3C.DoubleRange;
|
||||
sampleRate: number | W3C.LongRange;
|
||||
sampleSize: number | W3C.LongRange;
|
||||
echoCancellation: boolean[];
|
||||
latency: number | W3C.DoubleRange;
|
||||
deviceId: string;
|
||||
groupId: string;
|
||||
}
|
||||
|
||||
interface MediaTrackSettings {
|
||||
width: number;
|
||||
height: number;
|
||||
aspectRatio: number;
|
||||
frameRate: number;
|
||||
facingMode: string;
|
||||
volume: number;
|
||||
sampleRate: number;
|
||||
sampleSize: number;
|
||||
echoCancellation: boolean;
|
||||
latency: number;
|
||||
deviceId: string;
|
||||
groupId: string;
|
||||
}
|
||||
|
||||
interface MediaStreamError {
|
||||
name: string;
|
||||
message: string;
|
||||
constraintName: string;
|
||||
}
|
||||
|
||||
interface NavigatorGetUserMedia {
|
||||
(constraints: MediaStreamConstraints,
|
||||
successCallback: (stream: MediaStream) => void,
|
||||
errorCallback: (error: MediaStreamError) => void): void;
|
||||
}
|
||||
declare var MediaTrackConstraint: {
|
||||
prototype: MediaTrackConstraint;
|
||||
new (): MediaTrackConstraints;
|
||||
};
|
||||
|
||||
interface Navigator {
|
||||
getUserMedia(constraints: MediaStreamConstraints,
|
||||
successCallback: (stream: any) => void,
|
||||
errorCallback: (error: Error) => void) : void;
|
||||
webkitGetUserMedia(constraints: MediaStreamConstraints,
|
||||
successCallback: (stream: any) => void,
|
||||
errorCallback: (error: Error) => void): void;
|
||||
mozGetUserMedia(constraints: MediaStreamConstraints,
|
||||
successCallback: (stream: any) => void,
|
||||
errorCallback: (error: Error) => void): void;
|
||||
getUserMedia: NavigatorGetUserMedia;
|
||||
|
||||
webkitGetUserMedia: NavigatorGetUserMedia;
|
||||
|
||||
mozGetUserMedia: NavigatorGetUserMedia;
|
||||
|
||||
msGetUserMedia: NavigatorGetUserMedia;
|
||||
|
||||
mediaDevices: MediaDevices;
|
||||
}
|
||||
|
||||
interface EventHandler { (event: Event): void; }
|
||||
|
||||
interface NavigatorUserMediaSuccessCallback {
|
||||
(stream: LocalMediaStream): void;
|
||||
interface MediaDevices {
|
||||
getSupportedConstraints(): MediaTrackSupportedConstraints;
|
||||
|
||||
getUserMedia(constraints: MediaStreamConstraints): Promise<MediaStream>;
|
||||
}
|
||||
|
||||
interface NavigatorUserMediaError {
|
||||
PERMISSION_DENIED: number; // = 1;
|
||||
code: number;
|
||||
}
|
||||
declare var NavigatorUserMediaError: {
|
||||
prototype: NavigatorUserMediaError;
|
||||
new (): NavigatorUserMediaError;
|
||||
PERMISSION_DENIED: number; // = 1;
|
||||
};
|
||||
|
||||
interface NavigatorUserMediaErrorCallback {
|
||||
(error: NavigatorUserMediaError): void;
|
||||
}
|
||||
|
||||
interface MediaStreamTrackList {
|
||||
length: number;
|
||||
item: MediaStreamTrack;
|
||||
add(track: MediaStreamTrack): void;
|
||||
remove(track: MediaStreamTrack): void;
|
||||
onaddtrack: (event: Event) => void;
|
||||
onremovetrack: (event: Event) => void;
|
||||
}
|
||||
declare var MediaStreamTrackList: {
|
||||
prototype: MediaStreamTrackList;
|
||||
new (): MediaStreamTrackList;
|
||||
};
|
||||
declare var webkitMediaStreamTrackList: {
|
||||
prototype: MediaStreamTrackList;
|
||||
new (): MediaStreamTrackList;
|
||||
};
|
||||
|
||||
interface MediaStream extends EventTarget{
|
||||
label: string;
|
||||
id: string;
|
||||
getAudioTracks(): MediaStreamTrackList;
|
||||
getVideoTracks(): MediaStreamTrackList;
|
||||
ended: boolean;
|
||||
onended: (event: Event) => void;
|
||||
}
|
||||
declare var MediaStream: {
|
||||
prototype: MediaStream;
|
||||
new (): MediaStream;
|
||||
new (trackContainers: MediaStream[]): MediaStream;
|
||||
new (trackContainers: MediaStreamTrackList[]): MediaStream;
|
||||
new (trackContainers: MediaStreamTrack[]): MediaStream;
|
||||
};
|
||||
declare var webkitMediaStream: {
|
||||
prototype: MediaStream;
|
||||
new (): MediaStream;
|
||||
new (trackContainers: MediaStream[]): MediaStream;
|
||||
new (trackContainers: MediaStreamTrackList[]): MediaStream;
|
||||
new (trackContainers: MediaStreamTrack[]): MediaStream;
|
||||
};
|
||||
|
||||
// an - not defined in source doc.
|
||||
interface SourceInfo {
|
||||
label: string;
|
||||
id: string;
|
||||
kind: string;
|
||||
facing: string;
|
||||
}
|
||||
declare var SourceInfo: {
|
||||
prototype: SourceInfo;
|
||||
};
|
||||
|
||||
interface LocalMediaStream extends MediaStream {
|
||||
stop(): void;
|
||||
}
|
||||
|
||||
interface MediaStreamTrack extends EventTarget{
|
||||
kind: string;
|
||||
label: string;
|
||||
enabled: boolean;
|
||||
LIVE: number; // = 0;
|
||||
MUTED: number; // = 1;
|
||||
ENDED: number; // = 2;
|
||||
readyState: number;
|
||||
onmute: (event: Event) => void;
|
||||
onunmute: (event: Event) => void;
|
||||
onended: (event: Event) => void;
|
||||
}
|
||||
declare var MediaStreamTrack: {
|
||||
prototype: MediaStreamTrack;
|
||||
new (): MediaStreamTrack;
|
||||
LIVE: number; // = 0;
|
||||
MUTED: number; // = 1;
|
||||
ENDED: number; // = 2;
|
||||
getSources: (callback: (sources: SourceInfo[]) => void) => void;
|
||||
};
|
||||
|
||||
interface streamURL extends URL {
|
||||
createObjectURL(stream: MediaStream): string;
|
||||
}
|
||||
//declare var URL: {
|
||||
// prototype: MediaStreamTrack;
|
||||
// new (): URL;
|
||||
// createObjectURL(stream: MediaStream): string;
|
||||
//}
|
||||
|
||||
interface WebkitURL extends streamURL {
|
||||
}
|
||||
declare var webkitURL: {
|
||||
prototype: WebkitURL;
|
||||
new (): streamURL;
|
||||
createObjectURL(stream: MediaStream): string;
|
||||
};
|
||||
|
||||
@@ -6,8 +6,8 @@ yamljs.load('yaml-testfile.yml');
|
||||
|
||||
yamljs.parse('this_is_no_ymlstring');
|
||||
|
||||
yamljs.stringify({ a : 'val', b : { ba : 123, bb : 'nothing' }});
|
||||
yamljs.stringify({ a: 'val', b: { ba: 123, bb: 'nothing' } });
|
||||
|
||||
yamljs.stringify({ a : 'val', b : { ba : 123, bb : 'nothing' }}, 1);
|
||||
yamljs.stringify({ a: 'val', b: { ba: 123, bb: 'nothing' } }, 1);
|
||||
|
||||
yamljs.stringify({ a : 'val', b : { ba : 123, bb : 'nothing' }}, 1, 2);
|
||||
yamljs.stringify({ a: 'val', b: { ba: 123, bb: 'nothing' } }, 1, 2);
|
||||
|
||||
Vendored
+11
-9
@@ -1,14 +1,16 @@
|
||||
// Type definitions for yamljs 0.2.1
|
||||
// Type definitions for yamljs 0.2.3
|
||||
// Project: https://github.com/jeremyfa/yaml.js
|
||||
// Definitions by: Tim Jonischkat <http://www.tim-jonischkat.de>
|
||||
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
||||
|
||||
declare namespace YAML {
|
||||
function load(path: string): any;
|
||||
|
||||
function stringify(nativeObject: any, inline?: number, spaces?: number): string;
|
||||
|
||||
function parse(yamlString: string): any;
|
||||
}
|
||||
|
||||
declare module "yamljs" {
|
||||
|
||||
export function load(path : string) : any;
|
||||
|
||||
export function stringify(nativeObject : any, inline? : number, spaces? : number) : string;
|
||||
|
||||
export function parse(yamlString : string) : any;
|
||||
|
||||
}
|
||||
export = YAML;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user