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