@operato/scene-random
Advanced tools
Comparing version 0.0.5 to 0.0.6
@@ -6,2 +6,11 @@ # Change Log | ||
### [0.0.6](https://github.com/things-scene/operato-scene/compare/v0.0.5...v0.0.6) (2021-12-03) | ||
### :bug: Bug Fix | ||
* tsconfig ([a5ce449](https://github.com/things-scene/operato-scene/commit/a5ce449078e0b5371323984b78f1fb32526489bd)) | ||
### [0.0.5](https://github.com/things-scene/operato-scene/compare/v0.0.4...v0.0.5) (2021-12-03) | ||
@@ -8,0 +17,0 @@ |
@@ -1,5 +0,2 @@ | ||
/* | ||
* Copyright © HatioLab Inc. All rights reserved. | ||
*/ | ||
export { default as Random } from './random'; | ||
//# sourceMappingURL=index.js.map |
@@ -1,5 +0,2 @@ | ||
/* | ||
* Copyright © HatioLab Inc. All rights reserved. | ||
*/ | ||
import { Component, error, RectPath, ScriptLoader, Shape } from '@hatiolab/things-scene'; | ||
import { Component, RectPath, ScriptLoader, Shape, error } from '@hatiolab/things-scene'; | ||
const formats = [ | ||
@@ -6,0 +3,0 @@ 'bool,character,floating,integer,letter,natural,string', |
@@ -6,3 +6,3 @@ { | ||
"author": "heartyoh", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"main": "dist/index.js", | ||
@@ -63,3 +63,3 @@ "module": "dist/index.js", | ||
}, | ||
"gitHead": "d3717e3284d88dc2831fbcf4ddbce827e2cc2940" | ||
"gitHead": "398a0768e99717865e7be4d0717629bfad733eb8" | ||
} |
@@ -1,5 +0,1 @@ | ||
/* | ||
* Copyright © HatioLab Inc. All rights reserved. | ||
*/ | ||
export { default as Random } from './random' |
@@ -1,7 +0,3 @@ | ||
/* | ||
* Copyright © HatioLab Inc. All rights reserved. | ||
*/ | ||
import { Component, RectPath, ScriptLoader, Shape, error } from '@hatiolab/things-scene' | ||
import { Component, error, RectPath, ScriptLoader, Shape } from '@hatiolab/things-scene' | ||
const formats = [ | ||
@@ -8,0 +4,0 @@ 'bool,character,floating,integer,letter,natural,string', |
@@ -1,33 +0,28 @@ | ||
/* | ||
* Copyright © HatioLab Inc. All rights reserved. | ||
*/ | ||
import './util' | ||
import '../../bower_components/things-scene-core/things-scene-min' | ||
import { Random } from '../../src/index' | ||
import { expect } from 'chai' | ||
import '../../bower_components/things-scene-core/things-scene-min' | ||
import { Random } from '../../src/index' | ||
describe('Random', function () { | ||
var board | ||
var board; | ||
beforeEach(function () { | ||
board = scene.create({ | ||
model: { | ||
components: [{ | ||
id: 'random', | ||
type: 'random' | ||
}] | ||
components: [ | ||
{ | ||
id: 'random', | ||
type: 'random' | ||
} | ||
] | ||
} | ||
}) | ||
}); | ||
}) | ||
it('component should be found by its id.', function () { | ||
var component = board.findById('random') | ||
expect(!!component).not.to.equal(false); | ||
}); | ||
}); | ||
expect(!!component).not.to.equal(false) | ||
}) | ||
}) |
@@ -1,22 +0,18 @@ | ||
/* | ||
* Copyright © HatioLab Inc. All rights reserved. | ||
*/ | ||
var noop = () => {} | ||
global.Canvas = require('canvas'); | ||
global.Canvas = require('canvas') | ||
Canvas.prototype.setAttribute = noop; | ||
Canvas.prototype.style = {}; | ||
Canvas.prototype.setAttribute = noop | ||
Canvas.prototype.style = {} | ||
global.Image = Canvas.Image; | ||
global.Image = Canvas.Image | ||
global.screen = { | ||
width: 1280, | ||
height: 800 | ||
}; | ||
} | ||
global.window = global; | ||
global.window = global | ||
global.addEventListener = noop; | ||
global.location = {}; | ||
global.getComputedStyle = noop; | ||
global.addEventListener = noop | ||
global.location = {} | ||
global.getComputedStyle = noop |
@@ -16,3 +16,3 @@ { | ||
"inlineSources": true, | ||
"rootDir": "./src", | ||
"rootDir": "src", | ||
"declaration": true, | ||
@@ -19,0 +19,0 @@ "incremental": true, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
56705
420