Skip to content

Commit

Permalink
fix: deleted duplicate props
Browse files Browse the repository at this point in the history
  • Loading branch information
Quacken8 committed Dec 1, 2024
1 parent c018eb7 commit 116093d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 13 deletions.
3 changes: 0 additions & 3 deletions src/lib/components/Chart.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,6 @@
export let hideXBubble: boolean = false;
/** Hides the coordinate bubble by the odge of the graph */
export let hideYBubble: boolean = false;
/** Shrinks Y bubble if it is too wide and would overflow */
export let scaleYBubble: boolean = false;
/** Hides the tooltips shown next to cursor */
export let hideTooltip: boolean = false;
Expand Down Expand Up @@ -424,7 +422,6 @@
maxWidth$={yAxisWidth}
value={$commonYRuler$}
displayUnit={$yDisplayUnit$}
scaleIfTooLarge={scaleYBubble}
/>
</div>
{/if}
Expand Down
20 changes: 10 additions & 10 deletions src/lib/components/RulerBubble.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
export let displayUnit: DisplayUnit;
export let autoDecimalPlaces = 2;
export let chartStylesheet: Partial<ChartStyleSheet> = {};
export let scaleIfTooLarge = false;
const decimalPlaces =
chartStylesheet?.[`bubbles.${axis}`]?.decimalPlaces ??
Expand All @@ -32,15 +31,16 @@
decimalPlaces,
});
let bubbleMeasure: HTMLDivElement;
$: scaling = chartStylesheet?.[`bubbles.y`]?.scaleToFitAxis
? scaleIfTooLarge || $maxWidth$ === undefined || bubbleMeasure === undefined
? undefined
: clamp(
$maxWidth$ / (measureText(bubbleText, bubbleMeasure).width + 20),
0.65,
1,
)
: 1;
$: scaling =
chartStylesheet?.[`bubbles.y`]?.scaleToFitAxis && axis == "y"
? $maxWidth$ === undefined || bubbleMeasure === undefined
? undefined
: clamp(
$maxWidth$ / (measureText(bubbleText, bubbleMeasure).width + 20),
0.65,
1,
)
: 1;
$: positionedStyle =
axis === "x"
Expand Down

0 comments on commit 116093d

Please sign in to comment.