|
@@ -1,12 +1,16 @@
|
|
import { ImageUtils } from '../extras/ImageUtils.js';
|
|
import { ImageUtils } from '../extras/ImageUtils.js';
|
|
import * as MathUtils from '../math/MathUtils.js';
|
|
import * as MathUtils from '../math/MathUtils.js';
|
|
|
|
|
|
|
|
+let sourceId = 0;
|
|
|
|
+
|
|
class Source {
|
|
class Source {
|
|
|
|
|
|
constructor( data = null ) {
|
|
constructor( data = null ) {
|
|
|
|
|
|
this.isSource = true;
|
|
this.isSource = true;
|
|
|
|
|
|
|
|
+ Object.defineProperty( this, 'id', { value: sourceId ++ } );
|
|
|
|
+
|
|
this.uuid = MathUtils.generateUUID();
|
|
this.uuid = MathUtils.generateUUID();
|
|
|
|
|
|
this.data = data;
|
|
this.data = data;
|