download
raw
560 Bytes
function WebGLProperties() {
let properties = new WeakMap();
function get( object ) {
let map = properties.get( object );
if ( map === undefined ) {
map = {};
properties.set( object, map );
}
return map;
}
function remove( object ) {
properties.delete( object );
}
function update( object, key, value ) {
properties.get( object )[ key ] = value;
}
function dispose() {
properties = new WeakMap();
}
return {
get: get,
remove: remove,
update: update,
dispose: dispose
};
}
export { WebGLProperties };

Xet Storage Details

Size:
560 Bytes
·
Xet hash:
90ad5e93ebd89b18328a0166661d6affa6263c819a93d8841f73e938d0c37d42

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.