charting refactor into shapes, not debugged

This commit is contained in:
Tim
2024-02-05 20:02:49 -04:00
parent 5587915728
commit 042f96b37c
13 changed files with 614 additions and 114 deletions

View File

@@ -1,7 +1,7 @@
import {routeInverted, timestamp} from "@/misc.js";
import {MAX_FRACTION, newTranche} from "@/blockchain/orderlib.js";
import {useOrderStore} from "@/store/store.js";
import {encodeIEE754} from "@/blockchain/common.js";
import {encodeIEE754} from "@/common.js";
import {defineStore} from "pinia";
import {computed, ref} from "vue";
@@ -10,7 +10,7 @@ function unimplemented() { throw Error('Unimplemented') }
// Builders are data objects which store a configuration state
function TrancheBuilder( component, options = {}) {
const id = 'builder-'+Date.now();
const id = crypto.randomUUID()
return {id, component, options, points: {}, shapes: {}, props: {}, build: unimplemented}
}