mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
[obelisk.js] obelisk.js now can be imported as module
This commit is contained in:
parent
ca809fa16f
commit
3182b6a95d
3
types/obelisk.js/index.d.ts
vendored
3
types/obelisk.js/index.d.ts
vendored
@ -1,8 +1,9 @@
|
||||
// Type definitions for obelisk.js v1.1.0
|
||||
// Type definitions for obelisk.js v1.2.1
|
||||
// Project: https://github.com/nosir/obelisk.js/
|
||||
// Definitions by: Brian Drupieski <https://github.com/bdrupieski>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
export = obelisk;
|
||||
declare namespace obelisk {
|
||||
|
||||
export var version: string;
|
||||
|
||||
@ -1,3 +1,5 @@
|
||||
import * as obelisk from 'obelisk.js';
|
||||
|
||||
function test_brick() {
|
||||
var canvas = <HTMLCanvasElement>document.getElementById('canvas-demo');
|
||||
|
||||
@ -143,4 +145,4 @@ function test_gif_rendering() {
|
||||
var floorDimension = new obelisk.CubeDimension((size - 2) * (WIDTH + 2), (size - 2) * 9, size);
|
||||
var floor = new obelisk.Cube(floorDimension, new obelisk.CubeColor(), false);
|
||||
pixelViewFloor.renderObject(floor, new obelisk.Point3D(-20, -30, 0));
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user