@types/mapbox__shelf-pack
Advanced tools
@@ -38,3 +38,3 @@ // Type definitions for @mapbox/shelf-pack 3.0 | ||
| interface Request { | ||
| id?: ID; | ||
| id?: ID | undefined; | ||
| } | ||
@@ -52,3 +52,3 @@ interface RequestShort extends Request { | ||
| /// If true , the supplied bin objects will be updated inplace with x and y properties | ||
| inPlace?: boolean; | ||
| inPlace?: boolean | undefined; | ||
| } | ||
@@ -58,5 +58,5 @@ | ||
| /// If true , the sprite will automatically grow | ||
| autoResize?: boolean; | ||
| autoResize?: boolean | undefined; | ||
| } | ||
| } | ||
| } |
| MIT License | ||
| Copyright (c) Microsoft Corporation. All rights reserved. | ||
| Copyright (c) Microsoft Corporation. | ||
@@ -5,0 +5,0 @@ Permission is hereby granted, free of charge, to any person obtaining a copy |
| { | ||
| "name": "@types/mapbox__shelf-pack", | ||
| "version": "3.0.0", | ||
| "version": "3.0.1", | ||
| "description": "TypeScript definitions for @mapbox/shelf-pack", | ||
| "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/mapbox__shelf-pack", | ||
| "license": "MIT", | ||
@@ -9,15 +10,17 @@ "contributors": [ | ||
| "name": "Gyusun Yeom", | ||
| "url": "https://github.com/Perlmint" | ||
| "url": "https://github.com/Perlmint", | ||
| "githubUsername": "Perlmint" | ||
| } | ||
| ], | ||
| "main": "", | ||
| "types": "index.d.ts", | ||
| "repository": { | ||
| "type": "git", | ||
| "url": "https://www.github.com/DefinitelyTyped/DefinitelyTyped.git" | ||
| "url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git", | ||
| "directory": "types/mapbox__shelf-pack" | ||
| }, | ||
| "scripts": {}, | ||
| "dependencies": {}, | ||
| "peerDependencies": {}, | ||
| "typesPublisherContentHash": "c3e1fc245bf739564cf8fb2863bb26309dff6dd0305204dda34c646310464633", | ||
| "typeScriptVersion": "2.0" | ||
| "typesPublisherContentHash": "184c6952ffa620318b44cd4ab183bb793c663c9c1ac7b5955982c19604356f3c", | ||
| "typeScriptVersion": "3.6" | ||
| } |
@@ -8,6 +8,69 @@ # Installation | ||
| # Details | ||
| Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/mapbox__shelf-pack | ||
| Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/mapbox__shelf-pack. | ||
| ## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/mapbox__shelf-pack/index.d.ts) | ||
| ````ts | ||
| // Type definitions for @mapbox/shelf-pack 3.0 | ||
| // Project: https://github.com/mapbox/shelf-pack | ||
| // Definitions by: Gyusun Yeom <https://github.com/Perlmint> | ||
| // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
| Additional Details | ||
| * Last updated: Wed, 28 Jun 2017 15:40:48 GMT | ||
| // tslint:disable-next-line no-single-declare-module | ||
| declare module "@mapbox/shelf-pack" { | ||
| export = ShelfPack; | ||
| class ShelfPack { | ||
| constructor(width?: number, height?: number, options?: ShelfPack.CreateOption); | ||
| pack(bins: Array<ShelfPack.RequestShort | ShelfPack.RequestLong>, options?: ShelfPack.PackOption): ShelfPack.Bin[]; | ||
| packOne(w: number, h: number, id?: ShelfPack.ID): ShelfPack.Bin; | ||
| getBin(id: ShelfPack.ID): ShelfPack.Bin; | ||
| ref(bin: ShelfPack.Bin): number; | ||
| unref(bin: ShelfPack.Bin): number; | ||
| clear(): void; | ||
| resize(w: number, h: number): boolean; | ||
| w: number; | ||
| h: number; | ||
| } | ||
| namespace ShelfPack { | ||
| class Bin { | ||
| constructor(id: ID, x: number, y: number, w: number, h: number, maxw?: number, maxh?: number); | ||
| id: ID; | ||
| x: number; | ||
| y: number; | ||
| w: number; | ||
| h: number; | ||
| } | ||
| type ID = number | string; | ||
| interface Request { | ||
| id?: ID | undefined; | ||
| } | ||
| interface RequestShort extends Request { | ||
| w: number; | ||
| h: number; | ||
| } | ||
| interface RequestLong extends Request { | ||
| width: number; | ||
| height: number; | ||
| } | ||
| interface PackOption { | ||
| /// If true , the supplied bin objects will be updated inplace with x and y properties | ||
| inPlace?: boolean | undefined; | ||
| } | ||
| interface CreateOption { | ||
| /// If true , the sprite will automatically grow | ||
| autoResize?: boolean | undefined; | ||
| } | ||
| } | ||
| } | ||
| ```` | ||
| ### Additional Details | ||
| * Last updated: Thu, 08 Jul 2021 16:23:57 GMT | ||
| * Dependencies: none | ||
@@ -17,2 +80,2 @@ * Global values: none | ||
| # Credits | ||
| These definitions were written by Gyusun Yeom <https://github.com/Perlmint>. | ||
| These definitions were written by [Gyusun Yeom](https://github.com/Perlmint). |
No website
QualityPackage does not have a website.
6310
50.06%0
-100%80
370.59%