reburn-ui 0.3.7 → 0.3.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -156,26 +156,19 @@
|
|
|
156
156
|
style:--chart-grid-color={gridColor ? getThemeColor(gridColor) : undefined}
|
|
157
157
|
style:--chart-text-color={textColor ? getThemeColor(textColor) : undefined}
|
|
158
158
|
>
|
|
159
|
-
<
|
|
160
|
-
class="chart"
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
<ChartXGrid />
|
|
173
|
-
{/if}
|
|
174
|
-
|
|
175
|
-
{#if yGrid}
|
|
176
|
-
<ChartYGrid />
|
|
177
|
-
{/if}
|
|
178
|
-
</svg>
|
|
159
|
+
<div class="chart-container" bind:clientWidth={context.chartWidth} bind:clientHeight={context.chartHeight}>
|
|
160
|
+
<svg class="chart" viewBox="0 0 {context.chartWidth} {context.chartHeight}" bind:this={context.chartRef}>
|
|
161
|
+
{@render children(context)}
|
|
162
|
+
|
|
163
|
+
{#if xGrid}
|
|
164
|
+
<ChartXGrid />
|
|
165
|
+
{/if}
|
|
166
|
+
|
|
167
|
+
{#if yGrid}
|
|
168
|
+
<ChartYGrid />
|
|
169
|
+
{/if}
|
|
170
|
+
</svg>
|
|
171
|
+
</div>
|
|
179
172
|
|
|
180
173
|
{#if isBrowser() && withTooltip && context.chartRef}
|
|
181
174
|
<NewChartTooltip {...tooltipProps} />
|
|
@@ -209,9 +202,9 @@
|
|
|
209
202
|
--chart-grid-color: rgba(105, 105, 105, 0.6);
|
|
210
203
|
}
|
|
211
204
|
|
|
212
|
-
.chart {
|
|
205
|
+
.chart-container {
|
|
213
206
|
grid-area: chart;
|
|
214
|
-
overflow:
|
|
207
|
+
overflow: hidden;
|
|
215
208
|
}
|
|
216
209
|
|
|
217
210
|
.y-axis-container {
|