Skip to content

Commit

Permalink
tweak notation so that the start becomes less jumpy in {} stage
Browse files Browse the repository at this point in the history
always round layer in getLayerNameHTML
  • Loading branch information
veprogames committed Jun 27, 2024
1 parent f136cb3 commit 6daf730
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/lib/layers/layers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ export function getLayerNameHTML(layer: D): string {
return "<|∞|>:◯";
}

layer = layer.round();

const idx = layer.toNumber();

const len = LETTERS.length * 5;
Expand Down Expand Up @@ -89,7 +91,7 @@ export function getLayerNameHTML(layer: D): string {
if(subTowerHeightTowerHeightApprox < 5) {
const endOfTowerLayer = D.floor(layer.div(D.pow(allLen, subTowerHeight.sub(1))));
const uncertain = layer.gte("1ee15.55");
return `${uncertain ? "◯" : getLayerNameHTML(endOfTowerLayer)}<sub>{${getLayerNameHTML(new D(subTowerHeight))}}</sub>`
return `<sub>{${getLayerNameHTML(new D(subTowerHeight))}}</sub>${uncertain ? "◯" : getLayerNameHTML(endOfTowerLayer)}`
};

const mag = Math.floor(layer.mag);
Expand Down

0 comments on commit 6daf730

Please sign in to comment.