@visactor/vseed 0.0.32 → 0.0.33

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.
@@ -3240,8 +3240,8 @@ export declare class Builder implements VSeedBuilder {
3240
3240
  backgroundVisible?: boolean | undefined;
3241
3241
  backgroundColor?: string | undefined;
3242
3242
  backgroundBorderColor?: string | undefined;
3243
- backgroundBorderWidth?: number | undefined;
3244
3243
  backgroundBorderRadius?: number | undefined;
3244
+ backgroundBorderWidth?: number | undefined;
3245
3245
  backgroundPadding?: number | undefined;
3246
3246
  } | {
3247
3247
  offsetX: number;
@@ -3282,8 +3282,8 @@ export declare class Builder implements VSeedBuilder {
3282
3282
  backgroundVisible?: boolean | undefined;
3283
3283
  backgroundColor?: string | undefined;
3284
3284
  backgroundBorderColor?: string | undefined;
3285
- backgroundBorderWidth?: number | undefined;
3286
3285
  backgroundBorderRadius?: number | undefined;
3286
+ backgroundBorderWidth?: number | undefined;
3287
3287
  backgroundPadding?: number | undefined;
3288
3288
  }[] | undefined;
3289
3289
  annotationHorizontalLine?: {
@@ -3325,8 +3325,8 @@ export declare class Builder implements VSeedBuilder {
3325
3325
  backgroundVisible?: boolean | undefined;
3326
3326
  backgroundColor?: string | undefined;
3327
3327
  backgroundBorderColor?: string | undefined;
3328
- backgroundBorderWidth?: number | undefined;
3329
3328
  backgroundBorderRadius?: number | undefined;
3329
+ backgroundBorderWidth?: number | undefined;
3330
3330
  backgroundPadding?: number | undefined;
3331
3331
  } | {
3332
3332
  offsetX: number;
@@ -3367,8 +3367,8 @@ export declare class Builder implements VSeedBuilder {
3367
3367
  backgroundVisible?: boolean | undefined;
3368
3368
  backgroundColor?: string | undefined;
3369
3369
  backgroundBorderColor?: string | undefined;
3370
- backgroundBorderWidth?: number | undefined;
3371
3370
  backgroundBorderRadius?: number | undefined;
3371
+ backgroundBorderWidth?: number | undefined;
3372
3372
  backgroundPadding?: number | undefined;
3373
3373
  }[] | undefined;
3374
3374
  annotationArea?: {
@@ -3408,7 +3408,7 @@ export declare class Builder implements VSeedBuilder {
3408
3408
  backgroundPadding?: number | undefined;
3409
3409
  areaColor?: string | undefined;
3410
3410
  areaColorOpacity?: number | undefined;
3411
- areaBorderColor?: number | undefined;
3411
+ areaBorderColor?: string | undefined;
3412
3412
  areaBorderWidth?: number | undefined;
3413
3413
  areaBorderRadius?: number | undefined;
3414
3414
  outerPadding?: number | undefined;
@@ -3451,7 +3451,7 @@ export declare class Builder implements VSeedBuilder {
3451
3451
  backgroundPadding?: number | undefined;
3452
3452
  areaColor?: string | undefined;
3453
3453
  areaColorOpacity?: number | undefined;
3454
- areaBorderColor?: number | undefined;
3454
+ areaBorderColor?: string | undefined;
3455
3455
  areaBorderWidth?: number | undefined;
3456
3456
  areaBorderRadius?: number | undefined;
3457
3457
  outerPadding?: number | undefined;
@@ -9548,8 +9548,8 @@ export declare class Builder implements VSeedBuilder {
9548
9548
  backgroundVisible?: boolean | undefined;
9549
9549
  backgroundColor?: string | undefined;
9550
9550
  backgroundBorderColor?: string | undefined;
9551
- backgroundBorderWidth?: number | undefined;
9552
9551
  backgroundBorderRadius?: number | undefined;
9552
+ backgroundBorderWidth?: number | undefined;
9553
9553
  backgroundPadding?: number | undefined;
9554
9554
  } | {
9555
9555
  offsetX: number;
@@ -9590,8 +9590,8 @@ export declare class Builder implements VSeedBuilder {
9590
9590
  backgroundVisible?: boolean | undefined;
9591
9591
  backgroundColor?: string | undefined;
9592
9592
  backgroundBorderColor?: string | undefined;
9593
- backgroundBorderWidth?: number | undefined;
9594
9593
  backgroundBorderRadius?: number | undefined;
9594
+ backgroundBorderWidth?: number | undefined;
9595
9595
  backgroundPadding?: number | undefined;
9596
9596
  }[] | undefined;
9597
9597
  annotationHorizontalLine?: {
@@ -9633,8 +9633,8 @@ export declare class Builder implements VSeedBuilder {
9633
9633
  backgroundVisible?: boolean | undefined;
9634
9634
  backgroundColor?: string | undefined;
9635
9635
  backgroundBorderColor?: string | undefined;
9636
- backgroundBorderWidth?: number | undefined;
9637
9636
  backgroundBorderRadius?: number | undefined;
9637
+ backgroundBorderWidth?: number | undefined;
9638
9638
  backgroundPadding?: number | undefined;
9639
9639
  } | {
9640
9640
  offsetX: number;
@@ -9675,8 +9675,8 @@ export declare class Builder implements VSeedBuilder {
9675
9675
  backgroundVisible?: boolean | undefined;
9676
9676
  backgroundColor?: string | undefined;
9677
9677
  backgroundBorderColor?: string | undefined;
9678
- backgroundBorderWidth?: number | undefined;
9679
9678
  backgroundBorderRadius?: number | undefined;
9679
+ backgroundBorderWidth?: number | undefined;
9680
9680
  backgroundPadding?: number | undefined;
9681
9681
  }[] | undefined;
9682
9682
  annotationArea?: {
@@ -9716,7 +9716,7 @@ export declare class Builder implements VSeedBuilder {
9716
9716
  backgroundPadding?: number | undefined;
9717
9717
  areaColor?: string | undefined;
9718
9718
  areaColorOpacity?: number | undefined;
9719
- areaBorderColor?: number | undefined;
9719
+ areaBorderColor?: string | undefined;
9720
9720
  areaBorderWidth?: number | undefined;
9721
9721
  areaBorderRadius?: number | undefined;
9722
9722
  outerPadding?: number | undefined;
@@ -9759,7 +9759,7 @@ export declare class Builder implements VSeedBuilder {
9759
9759
  backgroundPadding?: number | undefined;
9760
9760
  areaColor?: string | undefined;
9761
9761
  areaColorOpacity?: number | undefined;
9762
- areaBorderColor?: number | undefined;
9762
+ areaBorderColor?: string | undefined;
9763
9763
  areaBorderWidth?: number | undefined;
9764
9764
  areaBorderRadius?: number | undefined;
9765
9765
  outerPadding?: number | undefined;
@@ -13002,8 +13002,8 @@ export declare class Builder implements VSeedBuilder {
13002
13002
  backgroundVisible?: boolean | undefined;
13003
13003
  backgroundColor?: string | undefined;
13004
13004
  backgroundBorderColor?: string | undefined;
13005
- backgroundBorderWidth?: number | undefined;
13006
13005
  backgroundBorderRadius?: number | undefined;
13006
+ backgroundBorderWidth?: number | undefined;
13007
13007
  backgroundPadding?: number | undefined;
13008
13008
  } | {
13009
13009
  offsetX: number;
@@ -13044,8 +13044,8 @@ export declare class Builder implements VSeedBuilder {
13044
13044
  backgroundVisible?: boolean | undefined;
13045
13045
  backgroundColor?: string | undefined;
13046
13046
  backgroundBorderColor?: string | undefined;
13047
- backgroundBorderWidth?: number | undefined;
13048
13047
  backgroundBorderRadius?: number | undefined;
13048
+ backgroundBorderWidth?: number | undefined;
13049
13049
  backgroundPadding?: number | undefined;
13050
13050
  }[] | undefined;
13051
13051
  annotationHorizontalLine?: {
@@ -13087,8 +13087,8 @@ export declare class Builder implements VSeedBuilder {
13087
13087
  backgroundVisible?: boolean | undefined;
13088
13088
  backgroundColor?: string | undefined;
13089
13089
  backgroundBorderColor?: string | undefined;
13090
- backgroundBorderWidth?: number | undefined;
13091
13090
  backgroundBorderRadius?: number | undefined;
13091
+ backgroundBorderWidth?: number | undefined;
13092
13092
  backgroundPadding?: number | undefined;
13093
13093
  } | {
13094
13094
  offsetX: number;
@@ -13129,8 +13129,8 @@ export declare class Builder implements VSeedBuilder {
13129
13129
  backgroundVisible?: boolean | undefined;
13130
13130
  backgroundColor?: string | undefined;
13131
13131
  backgroundBorderColor?: string | undefined;
13132
- backgroundBorderWidth?: number | undefined;
13133
13132
  backgroundBorderRadius?: number | undefined;
13133
+ backgroundBorderWidth?: number | undefined;
13134
13134
  backgroundPadding?: number | undefined;
13135
13135
  }[] | undefined;
13136
13136
  annotationArea?: {
@@ -13170,7 +13170,7 @@ export declare class Builder implements VSeedBuilder {
13170
13170
  backgroundPadding?: number | undefined;
13171
13171
  areaColor?: string | undefined;
13172
13172
  areaColorOpacity?: number | undefined;
13173
- areaBorderColor?: number | undefined;
13173
+ areaBorderColor?: string | undefined;
13174
13174
  areaBorderWidth?: number | undefined;
13175
13175
  areaBorderRadius?: number | undefined;
13176
13176
  outerPadding?: number | undefined;
@@ -13213,7 +13213,7 @@ export declare class Builder implements VSeedBuilder {
13213
13213
  backgroundPadding?: number | undefined;
13214
13214
  areaColor?: string | undefined;
13215
13215
  areaColorOpacity?: number | undefined;
13216
- areaBorderColor?: number | undefined;
13216
+ areaBorderColor?: string | undefined;
13217
13217
  areaBorderWidth?: number | undefined;
13218
13218
  areaBorderRadius?: number | undefined;
13219
13219
  outerPadding?: number | undefined;
package/dist/index.cjs CHANGED
@@ -400,7 +400,7 @@ const autoMeasures = (advancedVSeed, context)=>{
400
400
  const { measures, dataset } = vseed;
401
401
  if (!dataset) throw new Error('dataset is required');
402
402
  if (0 === dataset.length) return result;
403
- if (measures && measures.length > 0) {
403
+ if (measures) {
404
404
  result.measures = measures;
405
405
  return result;
406
406
  }
@@ -480,7 +480,7 @@ const autoDimensions = (advancedVSeed, context)=>{
480
480
  const measures = findAllMeasures(advancedVSeed.measures);
481
481
  if (!dataset) throw new Error('dataset is required');
482
482
  if (0 === dataset.length) return result;
483
- if (dimensions && dimensions.length > 0) {
483
+ if (dimensions) {
484
484
  result.dimensions = dimensions;
485
485
  return result;
486
486
  }
@@ -777,7 +777,7 @@ const autoPivotMeasures = (advancedVSeed, context)=>{
777
777
  const measures = findAllMeasures(vseed.measures);
778
778
  if (!dataset) throw new Error('dataset is required');
779
779
  if (0 === dataset.length) return result;
780
- if (measures && measures.length > 0) {
780
+ if (measures) {
781
781
  result.measures = findAllMeasures(measures);
782
782
  return result;
783
783
  }
@@ -840,7 +840,7 @@ const autoPivotDimensions = (advancedVSeed, context)=>{
840
840
  const measures = findAllMeasures(advancedVSeed.measures);
841
841
  if (!dataset) throw new Error('dataset is required');
842
842
  if (0 === dataset.length) return result;
843
- if (dimensions && dimensions.length > 0) {
843
+ if (dimensions) {
844
844
  const newDimensions = findAllDimensions(dimensions);
845
845
  result.dimensions = newDimensions.map((item, index)=>{
846
846
  if ('rowDimension' === item.location || 'columnDimension' === item.location) return item;
@@ -2528,7 +2528,7 @@ const annotationPoint_annotationPoint = (spec, context)=>{
2528
2528
  annotationPoint
2529
2529
  ];
2530
2530
  const markPoint = annotationPointList.flatMap((annotationPoint)=>{
2531
- const { selector: selectorPoint, text = '', textColor = '#ffffff', textFontSize = 12, textFontWeight = 400, textAlign = 'center', textBaseline = 'middle', backgroundBorderColor, backgroundBorderRadius = 4, backgroundBorderWidth = 1, backgroundColor = '#212121', backgroundPadding = 2, backgroundVisible = true, offsetX = 0, offsetY = 0 } = annotationPoint;
2531
+ const { selector: selectorPoint, text = '', textColor = '#ffffff', textFontSize = 12, textFontWeight = 400, textAlign = 'center', textBaseline = 'top', backgroundBorderColor, backgroundBorderRadius = 4, backgroundBorderWidth = 1, backgroundColor = '#212121', backgroundPadding = 2, backgroundVisible = true, offsetX = 0, offsetY = 0 } = annotationPoint;
2532
2532
  const dataset = advancedVSeed.dataset.flat();
2533
2533
  const selectedData = selectorPoint ? dataset.filter((datum)=>selector_selector(datum, selectorPoint)) : [];
2534
2534
  return selectedData.map((datum)=>({
@@ -2560,7 +2560,8 @@ const annotationPoint_annotationPoint = (spec, context)=>{
2560
2560
  stroke: backgroundColor,
2561
2561
  lineWidth: 1,
2562
2562
  fontSize: textFontSize,
2563
- fontWeight: textFontWeight
2563
+ fontWeight: textFontWeight,
2564
+ dy: textFontSize
2564
2565
  },
2565
2566
  labelBackground: {
2566
2567
  visible: backgroundVisible,
@@ -2569,7 +2570,8 @@ const annotationPoint_annotationPoint = (spec, context)=>{
2569
2570
  cornerRadius: backgroundBorderRadius ?? 4,
2570
2571
  fill: backgroundColor,
2571
2572
  stroke: backgroundBorderColor,
2572
- lineWidth: backgroundBorderWidth
2573
+ lineWidth: backgroundBorderWidth,
2574
+ dy: textFontSize
2573
2575
  }
2574
2576
  }
2575
2577
  }
@@ -2598,7 +2600,7 @@ const annotationVerticalLine_annotationVerticalLine = (spec, context)=>{
2598
2600
  insideEnd: 'insideEndTop'
2599
2601
  };
2600
2602
  const markLine = annotationVerticalLineList.flatMap((annotationVerticalLine)=>{
2601
- const { selector: selectorPoint, xValue, text = '', textPosition = 'insideEnd', textColor = '#ffffff', textFontSize = 12, textFontWeight = 400, textAlign = 'right', textBaseline = 'top', backgroundBorderColor, backgroundBorderRadius = 4, backgroundBorderWidth = 1, backgroundColor = '#212121', backgroundPadding = 2, backgroundVisible = true, lineColor = '#212121', lineStyle = 'dashed', lineVisible = true, lineWidth = 1, offsetX = 0, offsetY = 0 } = annotationVerticalLine;
2603
+ const { selector: selectorPoint, xValue, text = '', textPosition = 'insideEnd', textColor = '#ffffff', textFontSize = 12, textFontWeight = 400, textAlign = 'right', textBaseline = 'top', backgroundVisible = true, backgroundBorderColor = '#212121', backgroundColor = '#212121', backgroundBorderRadius = 4, backgroundBorderWidth = 1, backgroundPadding = 2, lineVisible = true, lineColor = '#212121', lineWidth = 1, lineStyle = 'dashed', offsetX = 0, offsetY = 0 } = annotationVerticalLine;
2602
2604
  const dataset = advancedVSeed.dataset.flat();
2603
2605
  const generateOneMarkLine = (x)=>({
2604
2606
  x: x,
@@ -2697,7 +2699,7 @@ const annotationHorizontalLine_annotationHorizontalLine = (spec, context)=>{
2697
2699
  insideEnd: 'insideEndTop'
2698
2700
  };
2699
2701
  const markLine = annotationVerticalLineList.flatMap((annotationVerticalLine)=>{
2700
- const { selector: selectorPoint, yValue, text = '', textPosition = 'insideEnd', textColor = '#ffffff', textFontSize = 12, textFontWeight = 400, textAlign = 'right', textBaseline = 'top', backgroundBorderColor, backgroundBorderRadius = 4, backgroundBorderWidth = 1, backgroundColor = '#212121', backgroundPadding = 2, backgroundVisible = true, lineColor = '#212121', lineStyle = 'dashed', lineVisible = true, lineWidth = 1, offsetX = 0, offsetY = 0 } = annotationVerticalLine;
2702
+ const { selector: selectorPoint, yValue, text = '', textPosition = 'insideEnd', textColor = '#ffffff', textFontSize = 12, textFontWeight = 400, textAlign = 'right', textBaseline = 'top', lineColor = '#212121', lineStyle = 'dashed', lineVisible = true, lineWidth = 1, backgroundVisible = true, backgroundColor = '#212121', backgroundBorderColor = '#212121', backgroundBorderRadius = 4, backgroundBorderWidth = 1, backgroundPadding = 2, offsetX = 0, offsetY = 0 } = annotationVerticalLine;
2701
2703
  const dataset = advancedVSeed.dataset.flat();
2702
2704
  const generateOneMarkLine = (y)=>({
2703
2705
  y,
@@ -2798,7 +2800,7 @@ const annotationArea_annotationArea = (spec, context)=>{
2798
2800
  right: 'insideRight'
2799
2801
  };
2800
2802
  const markArea = annotationAreaList.flatMap((annotationArea)=>{
2801
- const { selector: selectorPoint, text = '', textPosition = 'top', textColor = '#ffffff', textFontSize = 12, textFontWeight = 400, textAlign = 'center', textBaseline = 'top', backgroundBorderColor, backgroundBorderRadius = 4, backgroundBorderWidth = 1, backgroundColor = '#191d24', backgroundPadding = 10, backgroundVisible = true, outerPadding = 4, areaColor = '#888888', areaColorOpacity = 0.15, areaBorderColor, areaBorderRadius, areaBorderWidth, offsetX = 0, offsetY = 0 } = annotationArea;
2803
+ const { selector: selectorPoint, text = '', textPosition = 'top', textColor = '#ffffff', textFontSize = 12, textFontWeight = 400, textAlign = 'center', textBaseline = 'top', backgroundVisible = true, backgroundColor = '#191d24', backgroundBorderColor = '#191d24', backgroundBorderWidth = 1, backgroundBorderRadius = 4, backgroundPadding = 4, areaColor = '#888888', areaColorOpacity = 0.15, areaBorderColor = '#888888', areaBorderRadius = 4, areaBorderWidth = 1, outerPadding = 4, offsetX = 0, offsetY = 0 } = annotationArea;
2802
2804
  const dataset = advancedVSeed.dataset.flat();
2803
2805
  const selectedData = selectorPoint ? dataset.filter((datum)=>selector_selector(datum, selectorPoint)) : [];
2804
2806
  return {
@@ -2868,6 +2870,7 @@ const annotationArea_annotationArea = (spec, context)=>{
2868
2870
  visible: true,
2869
2871
  text: text,
2870
2872
  style: {
2873
+ dy: textFontSize,
2871
2874
  textAlign: textAlign,
2872
2875
  textBaseline: textBaseline,
2873
2876
  fill: textColor,
@@ -2880,6 +2883,7 @@ const annotationArea_annotationArea = (spec, context)=>{
2880
2883
  visible: backgroundVisible,
2881
2884
  padding: backgroundPadding,
2882
2885
  style: {
2886
+ dy: textFontSize,
2883
2887
  cornerRadius: backgroundBorderRadius ?? 4,
2884
2888
  fill: backgroundColor,
2885
2889
  stroke: backgroundBorderColor,
@@ -3635,7 +3639,7 @@ const annotationAreaBand = (spec, context)=>{
3635
3639
  right: 'insideRight'
3636
3640
  };
3637
3641
  const markArea = annotationAreaList.flatMap((annotationArea)=>{
3638
- const { selector: selectorPoint, text = '', textPosition = 'top', textColor = '#ffffff', textFontSize = 12, textFontWeight = 400, textAlign = 'center', textBaseline = 'top', backgroundBorderColor, backgroundBorderRadius = 4, backgroundBorderWidth = 1, backgroundColor = '#191d24', backgroundPadding = 4, backgroundVisible = true, outerPadding = 8, areaColor = '#888888', areaColorOpacity = 0.15, areaBorderColor, areaBorderRadius, areaBorderWidth, offsetX, offsetY } = annotationArea;
3642
+ const { selector: selectorPoint, text = '', textPosition = 'top', textColor = '#ffffff', textFontSize = 12, textFontWeight = 400, textAlign = 'center', textBaseline = 'top', backgroundVisible = true, backgroundColor = '#191d24', backgroundBorderColor = '#191d24', backgroundBorderWidth = 1, backgroundBorderRadius = 4, backgroundPadding = 4, areaColor = '#888888', areaColorOpacity = 0.15, areaBorderColor = '#888888', areaBorderRadius = 4, areaBorderWidth = 1, outerPadding = 4, offsetX = 0, offsetY = 0 } = annotationArea;
3639
3643
  const dataset = advancedVSeed.dataset.flat();
3640
3644
  const selectedData = selectorPoint ? dataset.filter((datum)=>selector_selector(datum, selectorPoint)) : [];
3641
3645
  return {
@@ -3709,6 +3713,7 @@ const annotationAreaBand = (spec, context)=>{
3709
3713
  visible: true,
3710
3714
  text: text,
3711
3715
  style: {
3716
+ dy: textFontSize,
3712
3717
  textAlign: textAlign,
3713
3718
  textBaseline: textBaseline,
3714
3719
  stroke: backgroundColor,
@@ -3721,6 +3726,7 @@ const annotationAreaBand = (spec, context)=>{
3721
3726
  visible: backgroundVisible,
3722
3727
  padding: backgroundPadding,
3723
3728
  style: {
3729
+ dy: textFontSize,
3724
3730
  cornerRadius: backgroundBorderRadius ?? 4,
3725
3731
  fill: backgroundColor,
3726
3732
  stroke: backgroundBorderColor,
@@ -8056,20 +8062,20 @@ const zAnnotationVerticalLine = external_zod_namespaceObject.z.object({
8056
8062
  'middle',
8057
8063
  'bottom'
8058
8064
  ]).default('top').optional(),
8059
- lineVisible: external_zod_namespaceObject.z.boolean().optional(),
8060
- lineColor: external_zod_namespaceObject.z.string().optional(),
8061
- lineWidth: external_zod_namespaceObject.z.number().optional(),
8065
+ lineVisible: external_zod_namespaceObject.z.boolean().default(true).optional(),
8066
+ lineColor: external_zod_namespaceObject.z.string().default('#212121').optional(),
8067
+ lineWidth: external_zod_namespaceObject.z.number().default(1).optional(),
8062
8068
  lineStyle: external_zod_namespaceObject.z.union([
8063
8069
  external_zod_namespaceObject.z.literal('solid'),
8064
8070
  external_zod_namespaceObject.z.literal('dashed'),
8065
8071
  external_zod_namespaceObject.z.literal('dotted')
8066
- ]).optional(),
8072
+ ]).default('dashed').optional(),
8067
8073
  backgroundVisible: external_zod_namespaceObject.z.boolean().default(true).optional(),
8068
8074
  backgroundColor: external_zod_namespaceObject.z.string().default('#212121').optional(),
8069
- backgroundBorderColor: external_zod_namespaceObject.z.string().optional(),
8070
- backgroundBorderWidth: external_zod_namespaceObject.z.number().default(1).optional(),
8075
+ backgroundBorderColor: external_zod_namespaceObject.z.string().default('#212121').optional(),
8071
8076
  backgroundBorderRadius: external_zod_namespaceObject.z.number().default(4).optional(),
8072
- backgroundPadding: external_zod_namespaceObject.z.number().optional(),
8077
+ backgroundBorderWidth: external_zod_namespaceObject.z.number().default(1).optional(),
8078
+ backgroundPadding: external_zod_namespaceObject.z.number().default(2).optional(),
8073
8079
  offsetX: external_zod_namespaceObject.z.number().default(0),
8074
8080
  offsetY: external_zod_namespaceObject.z.number().default(0)
8075
8081
  });
@@ -8094,7 +8100,7 @@ const zAnnotationHorizontalLine = external_zod_namespaceObject.z.object({
8094
8100
  'insideStart',
8095
8101
  'insideMiddle',
8096
8102
  'insideEnd'
8097
- ]).default('insideMiddle').optional(),
8103
+ ]).default('insideEnd').optional(),
8098
8104
  textColor: external_zod_namespaceObject.z.string().default('#ffffff').optional(),
8099
8105
  textFontSize: external_zod_namespaceObject.z.number().default(12).optional(),
8100
8106
  textFontWeight: external_zod_namespaceObject.z.number().default(400).optional(),
@@ -8102,26 +8108,26 @@ const zAnnotationHorizontalLine = external_zod_namespaceObject.z.object({
8102
8108
  'left',
8103
8109
  'right',
8104
8110
  'center'
8105
- ]).default('center').optional(),
8111
+ ]).default('right').optional(),
8106
8112
  textBaseline: external_zod_namespaceObject.z["enum"]([
8107
8113
  'top',
8108
8114
  'middle',
8109
8115
  'bottom'
8110
- ]).default('bottom').optional(),
8111
- lineVisible: external_zod_namespaceObject.z.boolean().optional(),
8112
- lineColor: external_zod_namespaceObject.z.string().optional(),
8113
- lineWidth: external_zod_namespaceObject.z.number().optional(),
8116
+ ]).default('top').optional(),
8117
+ lineVisible: external_zod_namespaceObject.z.boolean().default(true).optional(),
8118
+ lineColor: external_zod_namespaceObject.z.string().default('#212121').optional(),
8119
+ lineWidth: external_zod_namespaceObject.z.number().default(1).optional(),
8114
8120
  lineStyle: external_zod_namespaceObject.z.union([
8115
8121
  external_zod_namespaceObject.z.literal('solid'),
8116
8122
  external_zod_namespaceObject.z.literal('dashed'),
8117
8123
  external_zod_namespaceObject.z.literal('dotted')
8118
- ]).optional(),
8124
+ ]).default('dashed').optional(),
8119
8125
  backgroundVisible: external_zod_namespaceObject.z.boolean().default(true).optional(),
8120
8126
  backgroundColor: external_zod_namespaceObject.z.string().default('#212121').optional(),
8121
- backgroundBorderColor: external_zod_namespaceObject.z.string().optional(),
8122
- backgroundBorderWidth: external_zod_namespaceObject.z.number().default(1).optional(),
8127
+ backgroundBorderColor: external_zod_namespaceObject.z.string().default('#212121').optional(),
8123
8128
  backgroundBorderRadius: external_zod_namespaceObject.z.number().default(4).optional(),
8124
- backgroundPadding: external_zod_namespaceObject.z.number().optional(),
8129
+ backgroundBorderWidth: external_zod_namespaceObject.z.number().default(1).optional(),
8130
+ backgroundPadding: external_zod_namespaceObject.z.number().default(2).optional(),
8125
8131
  offsetX: external_zod_namespaceObject.z.number().default(0),
8126
8132
  offsetY: external_zod_namespaceObject.z.number().default(0)
8127
8133
  });
@@ -8153,21 +8159,21 @@ const zAnnotationArea = external_zod_namespaceObject.z.object({
8153
8159
  'top',
8154
8160
  'middle',
8155
8161
  'bottom'
8156
- ]).default('middle').optional(),
8162
+ ]).default('top').optional(),
8157
8163
  backgroundVisible: external_zod_namespaceObject.z.boolean().default(true).optional(),
8158
- backgroundColor: external_zod_namespaceObject.z.string().default('#212121').optional(),
8159
- backgroundBorderColor: external_zod_namespaceObject.z.string().optional(),
8164
+ backgroundColor: external_zod_namespaceObject.z.string().default('#191d24').optional(),
8165
+ backgroundBorderColor: external_zod_namespaceObject.z.string().default('#191d24').optional(),
8160
8166
  backgroundBorderWidth: external_zod_namespaceObject.z.number().default(1).optional(),
8161
8167
  backgroundBorderRadius: external_zod_namespaceObject.z.number().default(4).optional(),
8162
- backgroundPadding: external_zod_namespaceObject.z.number().optional(),
8163
- areaColor: external_zod_namespaceObject.z.string().default('red').optional(),
8164
- areaColorOpacity: external_zod_namespaceObject.z.number().default(0.5).optional(),
8165
- areaBorderColor: external_zod_namespaceObject.z.number().optional(),
8166
- areaBorderWidth: external_zod_namespaceObject.z.number().default(2).optional(),
8168
+ backgroundPadding: external_zod_namespaceObject.z.number().default(4).optional(),
8169
+ areaColor: external_zod_namespaceObject.z.string().default('#888888').optional(),
8170
+ areaColorOpacity: external_zod_namespaceObject.z.number().default(0.15).optional(),
8171
+ areaBorderColor: external_zod_namespaceObject.z.string().default('#888888').optional(),
8172
+ areaBorderWidth: external_zod_namespaceObject.z.number().default(1).optional(),
8167
8173
  areaBorderRadius: external_zod_namespaceObject.z.number().default(4).optional(),
8168
- outerPadding: external_zod_namespaceObject.z.number().optional(),
8169
- offsetX: external_zod_namespaceObject.z.number().optional(),
8170
- offsetY: external_zod_namespaceObject.z.number().optional()
8174
+ outerPadding: external_zod_namespaceObject.z.number().default(4).optional(),
8175
+ offsetX: external_zod_namespaceObject.z.number().default(0).optional(),
8176
+ offsetY: external_zod_namespaceObject.z.number().default(0).optional()
8171
8177
  });
8172
8178
  const zAnnotation = external_zod_namespaceObject.z.object({
8173
8179
  annotationPoint: zAnnotationPoint.or(external_zod_namespaceObject.z.array(zAnnotationPoint)).optional(),