Skip to content

Commit 4c5ffed

Browse files
committed
Config - Update VueUiXy default config
1 parent e09ed71 commit 4c5ffed

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

src/useConfig.js

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -342,14 +342,16 @@ export function useConfig() {
342342
height: 600,
343343
width: 1000,
344344
zoom: ZOOM,
345-
padding: PADDING([36, 24, 24, 48]),
345+
padding: PADDING([36, 24, 64, 48]),
346346
highlighter: {
347347
color: COLOR_BLACK,
348348
opacity: 5,
349349
useLine: false,
350350
lineDasharray: 2,
351351
lineWidth: 1
352352
},
353+
// Highlight area was initially a single object of type VueUiXyHighlightArea.
354+
// It now also works with a type VueUiXyHighlightArea[]
353355
highlightArea: {
354356
show: false,
355357
from: 0,
@@ -381,6 +383,15 @@ export function useConfig() {
381383
stroke: COLOR_GREY_LIGHT,
382384
showVerticalLines: false,
383385
showHorizontalLines: false,
386+
position: 'middle', // or 'start'
387+
frame: {
388+
show: false,
389+
stroke: COLOR_GREY_LIGHT,
390+
strokeWidth: 2,
391+
strokeLinecap: 'round',
392+
strokeLinejoin: 'round',
393+
strokeDasharray: 0
394+
},
384395
labels: {
385396
show: true,
386397
color: COLOR_BLACK,
@@ -396,7 +407,7 @@ export function useConfig() {
396407
show: true
397408
},
398409
xAxis: {
399-
showBaseline: false
410+
showBaseline: false,
400411
},
401412
yAxis: {
402413
showBaseline: true,
@@ -415,7 +426,7 @@ export function useConfig() {
415426
showOnlyFirstAndLast: false,
416427
showOnlyAtModulo: false,
417428
modulo: 12,
418-
yOffset: 0,
429+
yOffset: 24,
419430
rotation: 0
420431
}
421432
}

0 commit comments

Comments
 (0)