mirror of
https://github.com/konvajs/konva.git
synced 2025-06-28 15:23:44 +08:00
13 lines
263 B
JavaScript
13 lines
263 B
JavaScript
function equal(val1, val2, message) {
|
|
if (val1 !== val2) {
|
|
throw new Error('Not passed: ' + message);
|
|
}
|
|
}
|
|
|
|
// try to import only core
|
|
const Konva = require('../cmj').default;
|
|
|
|
// just do a simple action
|
|
const stage = new Konva.Stage();
|
|
stage.toDataURL();
|