@visactor/vseed 0.4.26 → 0.4.28
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.
- package/dist/cjs/index.cjs +2 -2
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/annotation/annotationDifferenceLine.js +128 -12
- package/dist/esm/pipeline/spec/chart/pipes/annotation/annotationDifferenceLine.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/annotation/annotationDifferenceLineCommon.d.ts +2 -1
- package/dist/esm/pipeline/spec/chart/pipes/annotation/annotationDifferenceLineCommon.js +14 -7
- package/dist/esm/pipeline/spec/chart/pipes/annotation/annotationDifferenceLineCommon.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/annotation/annotationPointCommon.d.ts +1 -0
- package/dist/esm/pipeline/spec/chart/pipes/annotation/annotationPointCommon.js +8 -3
- package/dist/esm/pipeline/spec/chart/pipes/annotation/annotationPointCommon.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/annotation/annotationPointOfDualAxis.js +3 -3
- package/dist/esm/pipeline/spec/chart/pipes/annotation/annotationPointOfDualAxis.js.map +1 -1
- package/dist/esm/types/chartType/area/zArea.d.ts +2 -0
- package/dist/esm/types/chartType/areaPercent/zAreaPercent.d.ts +2 -0
- package/dist/esm/types/chartType/bar/zBar.d.ts +2 -0
- package/dist/esm/types/chartType/barParallel/zBarParallel.d.ts +2 -0
- package/dist/esm/types/chartType/barPercent/zBarPercent.d.ts +2 -0
- package/dist/esm/types/chartType/boxPlot/zBoxPlot.d.ts +2 -0
- package/dist/esm/types/chartType/column/zColumn.d.ts +2 -0
- package/dist/esm/types/chartType/columnParallel/zColumnParallel.d.ts +2 -0
- package/dist/esm/types/chartType/columnPercent/zColumnPercent.d.ts +2 -0
- package/dist/esm/types/chartType/dualAxis/zDualAxis.d.ts +2 -0
- package/dist/esm/types/chartType/histogram/zHistogram.d.ts +2 -0
- package/dist/esm/types/chartType/line/zLine.d.ts +2 -0
- package/dist/esm/types/chartType/raceBar/zRaceBar.d.ts +2 -0
- package/dist/esm/types/chartType/raceColumn/zRaceColumn.d.ts +2 -0
- package/dist/esm/types/chartType/raceLine/zRaceLine.d.ts +2 -0
- package/dist/esm/types/chartType/raceScatter/zRaceScatter.d.ts +2 -0
- package/dist/esm/types/chartType/scatter/zScatter.d.ts +2 -0
- package/dist/esm/types/properties/annotation/annotation.d.ts +2 -0
- package/dist/esm/types/properties/annotation/annotationPoint.d.ts +4 -0
- package/dist/esm/types/properties/annotation/zAnnotationPoint.d.ts +1 -0
- package/dist/esm/types/properties/annotation/zAnnotationPoint.js +1 -0
- package/dist/esm/types/properties/annotation/zAnnotationPoint.js.map +1 -1
- package/dist/esm/types/properties/config/annotation/zAnnotation.js +1 -0
- package/dist/esm/types/properties/config/annotation/zAnnotation.js.map +1 -1
- package/dist/umd/index.js +152 -35
- package/dist/umd/index.js.map +1 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pipeline/spec/chart/pipes/annotation/annotationPointOfDualAxis.js","sources":["../../../../../../../src/pipeline/spec/chart/pipes/annotation/annotationPointOfDualAxis.ts"],"sourcesContent":["import type { IMarkPointSpec, ISpec } from '@visactor/vchart'\nimport { selector, selectorWithDynamicFilter } from '../../../../../dataSelector'\nimport type { Datum, SpecPipelineContext, VChartSpecPipe } from 'src/types'\nimport { isSubset } from './utils'\nimport { flatReshapeMeasures } from 'src/pipeline/utils'\nimport {
|
|
1
|
+
{"version":3,"file":"pipeline/spec/chart/pipes/annotation/annotationPointOfDualAxis.js","sources":["../../../../../../../src/pipeline/spec/chart/pipes/annotation/annotationPointOfDualAxis.ts"],"sourcesContent":["import type { IMarkPointSpec, ISpec } from '@visactor/vchart'\nimport { selector, selectorWithDynamicFilter } from '../../../../../dataSelector'\nimport { MeasureId } from 'src/dataReshape/constant'\nimport type { Datum, SpecPipelineContext, VChartSpecPipe } from 'src/types'\nimport { isSubset } from './utils'\nimport { flatReshapeMeasures } from 'src/pipeline/utils'\nimport { pickWithout } from '@visactor/vutils'\nimport { generateAnnotationPointPipe } from './annotationPointCommon'\n\nexport const annotationPointOfDualAxis: VChartSpecPipe = generateAnnotationPointPipe({\n findSelectedDatas: (options) => {\n const { dataset, selector: s, measureId, dynamicFilter, context } = options\n return dataset.reduce((res: Datum[], d: Datum) => {\n const { advancedVSeed } = context\n const allMeasureIds = flatReshapeMeasures(advancedVSeed.reshapeMeasures ?? []).map((m) => m.id)\n const pickedDatum = pickWithout(\n d,\n allMeasureIds.filter((id) => id !== d[MeasureId]),\n )\n\n const shouldSelect = dynamicFilter\n ? selectorWithDynamicFilter(pickedDatum, dynamicFilter, s)\n : selector(pickedDatum, s)\n\n if (shouldSelect && (!measureId || pickedDatum[MeasureId] === measureId)) {\n res.push(pickedDatum)\n }\n\n return res\n }, [])\n },\n generateMarkPoint: (datum: Datum, spec: ISpec, context: SpecPipelineContext) => {\n const { advancedVSeed } = context\n const allMeasureIds = flatReshapeMeasures(advancedVSeed.reshapeMeasures ?? []).map((m) => m.id)\n return spec.series?.map((s: any, index: number) => {\n return {\n relativeSeriesIndex: index,\n coordinate: (data: Datum[]) => {\n return data.find((item) => {\n return isSubset(\n datum,\n item,\n allMeasureIds.filter((id) => id !== item[MeasureId]),\n )\n })\n },\n } as IMarkPointSpec\n })\n },\n})\n"],"names":["annotationPointOfDualAxis","generateAnnotationPointPipe","options","dataset","s","measureId","dynamicFilter","context","res","d","advancedVSeed","allMeasureIds","flatReshapeMeasures","m","pickedDatum","pickWithout","id","MeasureId","shouldSelect","selectorWithDynamicFilter","selector","datum","spec","index","data","item","isSubset"],"mappings":";;;;;;AASO,MAAMA,4BAA4CC,4BAA4B;IACnF,mBAAmB,CAACC;QAClB,MAAM,EAAEC,OAAO,EAAE,UAAUC,CAAC,EAAEC,SAAS,EAAEC,aAAa,EAAEC,OAAO,EAAE,GAAGL;QACpE,OAAOC,QAAQ,MAAM,CAAC,CAACK,KAAcC;YACnC,MAAM,EAAEC,aAAa,EAAE,GAAGH;YAC1B,MAAMI,gBAAgBC,oBAAoBF,cAAc,eAAe,IAAI,EAAE,EAAE,GAAG,CAAC,CAACG,IAAMA,EAAE,EAAE;YAC9F,MAAMC,cAAcC,YAClBN,GACAE,cAAc,MAAM,CAAC,CAACK,KAAOA,OAAOP,CAAC,CAACQ,UAAU;YAGlD,MAAMC,eAAeZ,gBACjBa,0BAA0BL,aAAaR,eAAeF,KACtDgB,SAASN,aAAaV;YAE1B,IAAIc,gBAAiB,EAACb,aAAaS,WAAW,CAACG,UAAU,KAAKZ,SAAQ,GACpEG,IAAI,IAAI,CAACM;YAGX,OAAON;QACT,GAAG,EAAE;IACP;IACA,mBAAmB,CAACa,OAAcC,MAAaf;QAC7C,MAAM,EAAEG,aAAa,EAAE,GAAGH;QAC1B,MAAMI,gBAAgBC,oBAAoBF,cAAc,eAAe,IAAI,EAAE,EAAE,GAAG,CAAC,CAACG,IAAMA,EAAE,EAAE;QAC9F,OAAOS,KAAK,MAAM,EAAE,IAAI,CAAClB,GAAQmB,QACxB;gBACL,qBAAqBA;gBACrB,YAAY,CAACC,OACJA,KAAK,IAAI,CAAC,CAACC,OACTC,SACLL,OACAI,MACAd,cAAc,MAAM,CAAC,CAACK,KAAOA,OAAOS,IAAI,CAACR,UAAU;YAI3D;IAEJ;AACF"}
|
|
@@ -1673,6 +1673,7 @@ export declare const zArea: z.ZodObject<{
|
|
|
1673
1673
|
}>>>;
|
|
1674
1674
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
|
|
1675
1675
|
}, z.core.$strip>, z.ZodRecord<z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodAny>]>>]>>>;
|
|
1676
|
+
measureId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1676
1677
|
dynamicFilter: z.ZodOptional<z.ZodObject<{
|
|
1677
1678
|
type: z.ZodLiteral<"row-with-field">;
|
|
1678
1679
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -1854,6 +1855,7 @@ export declare const zArea: z.ZodObject<{
|
|
|
1854
1855
|
}>>>;
|
|
1855
1856
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
|
|
1856
1857
|
}, z.core.$strip>, z.ZodRecord<z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodAny>]>>]>>>;
|
|
1858
|
+
measureId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1857
1859
|
dynamicFilter: z.ZodOptional<z.ZodObject<{
|
|
1858
1860
|
type: z.ZodLiteral<"row-with-field">;
|
|
1859
1861
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -1673,6 +1673,7 @@ export declare const zAreaPercent: z.ZodObject<{
|
|
|
1673
1673
|
}>>>;
|
|
1674
1674
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
|
|
1675
1675
|
}, z.core.$strip>, z.ZodRecord<z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodAny>]>>]>>>;
|
|
1676
|
+
measureId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1676
1677
|
dynamicFilter: z.ZodOptional<z.ZodObject<{
|
|
1677
1678
|
type: z.ZodLiteral<"row-with-field">;
|
|
1678
1679
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -1854,6 +1855,7 @@ export declare const zAreaPercent: z.ZodObject<{
|
|
|
1854
1855
|
}>>>;
|
|
1855
1856
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
|
|
1856
1857
|
}, z.core.$strip>, z.ZodRecord<z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodAny>]>>]>>>;
|
|
1858
|
+
measureId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1857
1859
|
dynamicFilter: z.ZodOptional<z.ZodObject<{
|
|
1858
1860
|
type: z.ZodLiteral<"row-with-field">;
|
|
1859
1861
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -1002,6 +1002,7 @@ export declare const zBar: z.ZodObject<{
|
|
|
1002
1002
|
}>>>;
|
|
1003
1003
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
|
|
1004
1004
|
}, z.core.$strip>, z.ZodRecord<z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodAny>]>>]>>>;
|
|
1005
|
+
measureId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1005
1006
|
dynamicFilter: z.ZodOptional<z.ZodObject<{
|
|
1006
1007
|
type: z.ZodLiteral<"row-with-field">;
|
|
1007
1008
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -1183,6 +1184,7 @@ export declare const zBar: z.ZodObject<{
|
|
|
1183
1184
|
}>>>;
|
|
1184
1185
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
|
|
1185
1186
|
}, z.core.$strip>, z.ZodRecord<z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodAny>]>>]>>>;
|
|
1187
|
+
measureId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1186
1188
|
dynamicFilter: z.ZodOptional<z.ZodObject<{
|
|
1187
1189
|
type: z.ZodLiteral<"row-with-field">;
|
|
1188
1190
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -999,6 +999,7 @@ export declare const zBarParallel: z.ZodObject<{
|
|
|
999
999
|
}>>>;
|
|
1000
1000
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
|
|
1001
1001
|
}, z.core.$strip>, z.ZodRecord<z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodAny>]>>]>>>;
|
|
1002
|
+
measureId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1002
1003
|
dynamicFilter: z.ZodOptional<z.ZodObject<{
|
|
1003
1004
|
type: z.ZodLiteral<"row-with-field">;
|
|
1004
1005
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -1180,6 +1181,7 @@ export declare const zBarParallel: z.ZodObject<{
|
|
|
1180
1181
|
}>>>;
|
|
1181
1182
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
|
|
1182
1183
|
}, z.core.$strip>, z.ZodRecord<z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodAny>]>>]>>>;
|
|
1184
|
+
measureId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1183
1185
|
dynamicFilter: z.ZodOptional<z.ZodObject<{
|
|
1184
1186
|
type: z.ZodLiteral<"row-with-field">;
|
|
1185
1187
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -1002,6 +1002,7 @@ export declare const zBarPercent: z.ZodObject<{
|
|
|
1002
1002
|
}>>>;
|
|
1003
1003
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
|
|
1004
1004
|
}, z.core.$strip>, z.ZodRecord<z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodAny>]>>]>>>;
|
|
1005
|
+
measureId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1005
1006
|
dynamicFilter: z.ZodOptional<z.ZodObject<{
|
|
1006
1007
|
type: z.ZodLiteral<"row-with-field">;
|
|
1007
1008
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -1183,6 +1184,7 @@ export declare const zBarPercent: z.ZodObject<{
|
|
|
1183
1184
|
}>>>;
|
|
1184
1185
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
|
|
1185
1186
|
}, z.core.$strip>, z.ZodRecord<z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodAny>]>>]>>>;
|
|
1187
|
+
measureId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1186
1188
|
dynamicFilter: z.ZodOptional<z.ZodObject<{
|
|
1187
1189
|
type: z.ZodLiteral<"row-with-field">;
|
|
1188
1190
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -1016,6 +1016,7 @@ export declare const zBoxPlot: z.ZodObject<{
|
|
|
1016
1016
|
}>>>;
|
|
1017
1017
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
|
|
1018
1018
|
}, z.core.$strip>, z.ZodRecord<z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodAny>]>>]>>>;
|
|
1019
|
+
measureId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1019
1020
|
dynamicFilter: z.ZodOptional<z.ZodObject<{
|
|
1020
1021
|
type: z.ZodLiteral<"row-with-field">;
|
|
1021
1022
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -1197,6 +1198,7 @@ export declare const zBoxPlot: z.ZodObject<{
|
|
|
1197
1198
|
}>>>;
|
|
1198
1199
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
|
|
1199
1200
|
}, z.core.$strip>, z.ZodRecord<z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodAny>]>>]>>>;
|
|
1201
|
+
measureId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1200
1202
|
dynamicFilter: z.ZodOptional<z.ZodObject<{
|
|
1201
1203
|
type: z.ZodLiteral<"row-with-field">;
|
|
1202
1204
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -1039,6 +1039,7 @@ export declare const zColumn: z.ZodObject<{
|
|
|
1039
1039
|
}>>>;
|
|
1040
1040
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
|
|
1041
1041
|
}, z.core.$strip>, z.ZodRecord<z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodAny>]>>]>>>;
|
|
1042
|
+
measureId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1042
1043
|
dynamicFilter: z.ZodOptional<z.ZodObject<{
|
|
1043
1044
|
type: z.ZodLiteral<"row-with-field">;
|
|
1044
1045
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -1220,6 +1221,7 @@ export declare const zColumn: z.ZodObject<{
|
|
|
1220
1221
|
}>>>;
|
|
1221
1222
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
|
|
1222
1223
|
}, z.core.$strip>, z.ZodRecord<z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodAny>]>>]>>>;
|
|
1224
|
+
measureId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1223
1225
|
dynamicFilter: z.ZodOptional<z.ZodObject<{
|
|
1224
1226
|
type: z.ZodLiteral<"row-with-field">;
|
|
1225
1227
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -1024,6 +1024,7 @@ export declare const zColumnParallel: z.ZodObject<{
|
|
|
1024
1024
|
}>>>;
|
|
1025
1025
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
|
|
1026
1026
|
}, z.core.$strip>, z.ZodRecord<z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodAny>]>>]>>>;
|
|
1027
|
+
measureId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1027
1028
|
dynamicFilter: z.ZodOptional<z.ZodObject<{
|
|
1028
1029
|
type: z.ZodLiteral<"row-with-field">;
|
|
1029
1030
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -1205,6 +1206,7 @@ export declare const zColumnParallel: z.ZodObject<{
|
|
|
1205
1206
|
}>>>;
|
|
1206
1207
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
|
|
1207
1208
|
}, z.core.$strip>, z.ZodRecord<z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodAny>]>>]>>>;
|
|
1209
|
+
measureId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1208
1210
|
dynamicFilter: z.ZodOptional<z.ZodObject<{
|
|
1209
1211
|
type: z.ZodLiteral<"row-with-field">;
|
|
1210
1212
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -1002,6 +1002,7 @@ export declare const zColumnPercent: z.ZodObject<{
|
|
|
1002
1002
|
}>>>;
|
|
1003
1003
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
|
|
1004
1004
|
}, z.core.$strip>, z.ZodRecord<z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodAny>]>>]>>>;
|
|
1005
|
+
measureId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1005
1006
|
dynamicFilter: z.ZodOptional<z.ZodObject<{
|
|
1006
1007
|
type: z.ZodLiteral<"row-with-field">;
|
|
1007
1008
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -1183,6 +1184,7 @@ export declare const zColumnPercent: z.ZodObject<{
|
|
|
1183
1184
|
}>>>;
|
|
1184
1185
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
|
|
1185
1186
|
}, z.core.$strip>, z.ZodRecord<z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodAny>]>>]>>>;
|
|
1187
|
+
measureId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1186
1188
|
dynamicFilter: z.ZodOptional<z.ZodObject<{
|
|
1187
1189
|
type: z.ZodLiteral<"row-with-field">;
|
|
1188
1190
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -2199,6 +2199,7 @@ export declare const zDualAxis: z.ZodObject<{
|
|
|
2199
2199
|
}>>>;
|
|
2200
2200
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
|
|
2201
2201
|
}, z.core.$strip>, z.ZodRecord<z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodAny>]>>]>>>;
|
|
2202
|
+
measureId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2202
2203
|
dynamicFilter: z.ZodOptional<z.ZodObject<{
|
|
2203
2204
|
type: z.ZodLiteral<"row-with-field">;
|
|
2204
2205
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -2380,6 +2381,7 @@ export declare const zDualAxis: z.ZodObject<{
|
|
|
2380
2381
|
}>>>;
|
|
2381
2382
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
|
|
2382
2383
|
}, z.core.$strip>, z.ZodRecord<z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodAny>]>>]>>>;
|
|
2384
|
+
measureId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2383
2385
|
dynamicFilter: z.ZodOptional<z.ZodObject<{
|
|
2384
2386
|
type: z.ZodLiteral<"row-with-field">;
|
|
2385
2387
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -1028,6 +1028,7 @@ export declare const zHistogram: z.ZodObject<{
|
|
|
1028
1028
|
}>>>;
|
|
1029
1029
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
|
|
1030
1030
|
}, z.core.$strip>, z.ZodRecord<z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodAny>]>>]>>>;
|
|
1031
|
+
measureId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1031
1032
|
dynamicFilter: z.ZodOptional<z.ZodObject<{
|
|
1032
1033
|
type: z.ZodLiteral<"row-with-field">;
|
|
1033
1034
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -1209,6 +1210,7 @@ export declare const zHistogram: z.ZodObject<{
|
|
|
1209
1210
|
}>>>;
|
|
1210
1211
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
|
|
1211
1212
|
}, z.core.$strip>, z.ZodRecord<z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodAny>]>>]>>>;
|
|
1213
|
+
measureId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1212
1214
|
dynamicFilter: z.ZodOptional<z.ZodObject<{
|
|
1213
1215
|
type: z.ZodLiteral<"row-with-field">;
|
|
1214
1216
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -1364,6 +1364,7 @@ export declare const zLine: z.ZodObject<{
|
|
|
1364
1364
|
}>>>;
|
|
1365
1365
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
|
|
1366
1366
|
}, z.core.$strip>, z.ZodRecord<z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodAny>]>>]>>>;
|
|
1367
|
+
measureId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1367
1368
|
dynamicFilter: z.ZodOptional<z.ZodObject<{
|
|
1368
1369
|
type: z.ZodLiteral<"row-with-field">;
|
|
1369
1370
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -1545,6 +1546,7 @@ export declare const zLine: z.ZodObject<{
|
|
|
1545
1546
|
}>>>;
|
|
1546
1547
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
|
|
1547
1548
|
}, z.core.$strip>, z.ZodRecord<z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodAny>]>>]>>>;
|
|
1549
|
+
measureId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1548
1550
|
dynamicFilter: z.ZodOptional<z.ZodObject<{
|
|
1549
1551
|
type: z.ZodLiteral<"row-with-field">;
|
|
1550
1552
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -1033,6 +1033,7 @@ export declare const zRaceBar: z.ZodObject<{
|
|
|
1033
1033
|
}>>>;
|
|
1034
1034
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
|
|
1035
1035
|
}, z.core.$strip>, z.ZodRecord<z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodAny>]>>]>>>;
|
|
1036
|
+
measureId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1036
1037
|
dynamicFilter: z.ZodOptional<z.ZodObject<{
|
|
1037
1038
|
type: z.ZodLiteral<"row-with-field">;
|
|
1038
1039
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -1214,6 +1215,7 @@ export declare const zRaceBar: z.ZodObject<{
|
|
|
1214
1215
|
}>>>;
|
|
1215
1216
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
|
|
1216
1217
|
}, z.core.$strip>, z.ZodRecord<z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodAny>]>>]>>>;
|
|
1218
|
+
measureId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1217
1219
|
dynamicFilter: z.ZodOptional<z.ZodObject<{
|
|
1218
1220
|
type: z.ZodLiteral<"row-with-field">;
|
|
1219
1221
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -1033,6 +1033,7 @@ export declare const zRaceColumn: z.ZodObject<{
|
|
|
1033
1033
|
}>>>;
|
|
1034
1034
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
|
|
1035
1035
|
}, z.core.$strip>, z.ZodRecord<z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodAny>]>>]>>>;
|
|
1036
|
+
measureId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1036
1037
|
dynamicFilter: z.ZodOptional<z.ZodObject<{
|
|
1037
1038
|
type: z.ZodLiteral<"row-with-field">;
|
|
1038
1039
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -1214,6 +1215,7 @@ export declare const zRaceColumn: z.ZodObject<{
|
|
|
1214
1215
|
}>>>;
|
|
1215
1216
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
|
|
1216
1217
|
}, z.core.$strip>, z.ZodRecord<z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodAny>]>>]>>>;
|
|
1218
|
+
measureId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1217
1219
|
dynamicFilter: z.ZodOptional<z.ZodObject<{
|
|
1218
1220
|
type: z.ZodLiteral<"row-with-field">;
|
|
1219
1221
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -1379,6 +1379,7 @@ export declare const zRaceLine: z.ZodObject<{
|
|
|
1379
1379
|
}>>>;
|
|
1380
1380
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
|
|
1381
1381
|
}, z.core.$strip>, z.ZodRecord<z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodAny>]>>]>>>;
|
|
1382
|
+
measureId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1382
1383
|
dynamicFilter: z.ZodOptional<z.ZodObject<{
|
|
1383
1384
|
type: z.ZodLiteral<"row-with-field">;
|
|
1384
1385
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -1560,6 +1561,7 @@ export declare const zRaceLine: z.ZodObject<{
|
|
|
1560
1561
|
}>>>;
|
|
1561
1562
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
|
|
1562
1563
|
}, z.core.$strip>, z.ZodRecord<z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodAny>]>>]>>>;
|
|
1564
|
+
measureId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1563
1565
|
dynamicFilter: z.ZodOptional<z.ZodObject<{
|
|
1564
1566
|
type: z.ZodLiteral<"row-with-field">;
|
|
1565
1567
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -1065,6 +1065,7 @@ export declare const zRaceScatter: z.ZodObject<{
|
|
|
1065
1065
|
}>>>;
|
|
1066
1066
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
|
|
1067
1067
|
}, z.core.$strip>, z.ZodRecord<z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodAny>]>>]>>>;
|
|
1068
|
+
measureId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1068
1069
|
dynamicFilter: z.ZodOptional<z.ZodObject<{
|
|
1069
1070
|
type: z.ZodLiteral<"row-with-field">;
|
|
1070
1071
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -1246,6 +1247,7 @@ export declare const zRaceScatter: z.ZodObject<{
|
|
|
1246
1247
|
}>>>;
|
|
1247
1248
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
|
|
1248
1249
|
}, z.core.$strip>, z.ZodRecord<z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodAny>]>>]>>>;
|
|
1250
|
+
measureId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1249
1251
|
dynamicFilter: z.ZodOptional<z.ZodObject<{
|
|
1250
1252
|
type: z.ZodLiteral<"row-with-field">;
|
|
1251
1253
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -1036,6 +1036,7 @@ export declare const zScatter: z.ZodObject<{
|
|
|
1036
1036
|
}>>>;
|
|
1037
1037
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
|
|
1038
1038
|
}, z.core.$strip>, z.ZodRecord<z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodAny>]>>]>>>;
|
|
1039
|
+
measureId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1039
1040
|
dynamicFilter: z.ZodOptional<z.ZodObject<{
|
|
1040
1041
|
type: z.ZodLiteral<"row-with-field">;
|
|
1041
1042
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -1217,6 +1218,7 @@ export declare const zScatter: z.ZodObject<{
|
|
|
1217
1218
|
}>>>;
|
|
1218
1219
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
|
|
1219
1220
|
}, z.core.$strip>, z.ZodRecord<z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodAny>]>>]>>>;
|
|
1221
|
+
measureId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1220
1222
|
dynamicFilter: z.ZodOptional<z.ZodObject<{
|
|
1221
1223
|
type: z.ZodLiteral<"row-with-field">;
|
|
1222
1224
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -74,6 +74,7 @@ export declare const zAnnotation: z.ZodObject<{
|
|
|
74
74
|
}>>>;
|
|
75
75
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
|
|
76
76
|
}, z.core.$strip>, z.ZodRecord<z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodAny>]>>]>>>;
|
|
77
|
+
measureId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
77
78
|
dynamicFilter: z.ZodOptional<z.ZodObject<{
|
|
78
79
|
type: z.ZodLiteral<"row-with-field">;
|
|
79
80
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -255,6 +256,7 @@ export declare const zAnnotation: z.ZodObject<{
|
|
|
255
256
|
}>>>;
|
|
256
257
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
|
|
257
258
|
}, z.core.$strip>, z.ZodRecord<z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodAny>]>>]>>>;
|
|
259
|
+
measureId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
258
260
|
dynamicFilter: z.ZodOptional<z.ZodObject<{
|
|
259
261
|
type: z.ZodLiteral<"row-with-field">;
|
|
260
262
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -8,6 +8,10 @@ export type AnnotationPoint = {
|
|
|
8
8
|
* @description 标注点的选择器, 用于选择数据点.
|
|
9
9
|
*/
|
|
10
10
|
selector?: Selector | Selectors;
|
|
11
|
+
/**
|
|
12
|
+
* @description 指定标注点所属的指标 id。在多 measure 场景下,可与 selector 组合以唯一定位目标指标对应的标注点。
|
|
13
|
+
*/
|
|
14
|
+
measureId?: string;
|
|
11
15
|
/**
|
|
12
16
|
* 动态筛选器(AI生成代码执行)
|
|
13
17
|
* @description
|
|
@@ -73,6 +73,7 @@ export declare const zAnnotationPoint: z.ZodObject<{
|
|
|
73
73
|
}>>>;
|
|
74
74
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
|
|
75
75
|
}, z.core.$strip>, z.ZodRecord<z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodAny>]>>]>>>;
|
|
76
|
+
measureId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
76
77
|
dynamicFilter: z.ZodOptional<z.ZodObject<{
|
|
77
78
|
type: z.ZodLiteral<"row-with-field">;
|
|
78
79
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -5,6 +5,7 @@ const zAnnotationPoint = z.object({
|
|
|
5
5
|
zSelector,
|
|
6
6
|
zSelectors
|
|
7
7
|
]).nullish(),
|
|
8
|
+
measureId: z.string().nullish(),
|
|
8
9
|
dynamicFilter: zChartDynamicFilter.optional(),
|
|
9
10
|
text: z.string().or(z.array(z.string())).nullish(),
|
|
10
11
|
textColor: z.string().default('#ffffff').nullish(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types/properties/annotation/zAnnotationPoint.js","sources":["../../../../../src/types/properties/annotation/zAnnotationPoint.ts"],"sourcesContent":["import { zChartDynamicFilter, zSelector, zSelectors } from '../../dataSelector'\nimport { z } from 'zod'\n\nexport const zAnnotationPoint = z.object({\n selector: z.union([zSelector, zSelectors]).nullish(),\n dynamicFilter: zChartDynamicFilter.optional(),\n text: z.string().or(z.array(z.string())).nullish(),\n textColor: z.string().default('#ffffff').nullish(),\n textFontSize: z.number().default(12).nullish(),\n textFontWeight: z.number().default(400).nullish(),\n textAlign: z.enum(['left', 'right', 'center']).default('center').nullish(),\n textBaseline: z.enum(['top', 'middle', 'bottom']).default('middle').nullish(),\n textBackgroundVisible: z.boolean().default(true).nullish(),\n textBackgroundColor: z.string().default('#212121').nullish(),\n textBackgroundBorderColor: z.string().nullish(),\n textBackgroundBorderWidth: z.number().default(1).nullish(),\n textBackgroundBorderRadius: z.number().default(4).nullish(),\n textBackgroundPadding: z.number().nullish(),\n\n offsetY: z.number().default(0).nullish(),\n offsetX: z.number().default(0).nullish(),\n})\n"],"names":["zAnnotationPoint","z","zSelector","zSelectors","zChartDynamicFilter"],"mappings":";;AAGO,MAAMA,mBAAmBC,EAAE,MAAM,CAAC;IACvC,UAAUA,EAAE,KAAK,CAAC;QAACC;QAAWC;KAAW,EAAE,OAAO;IAClD,
|
|
1
|
+
{"version":3,"file":"types/properties/annotation/zAnnotationPoint.js","sources":["../../../../../src/types/properties/annotation/zAnnotationPoint.ts"],"sourcesContent":["import { zChartDynamicFilter, zSelector, zSelectors } from '../../dataSelector'\nimport { z } from 'zod'\n\nexport const zAnnotationPoint = z.object({\n selector: z.union([zSelector, zSelectors]).nullish(),\n measureId: z.string().nullish(),\n dynamicFilter: zChartDynamicFilter.optional(),\n text: z.string().or(z.array(z.string())).nullish(),\n textColor: z.string().default('#ffffff').nullish(),\n textFontSize: z.number().default(12).nullish(),\n textFontWeight: z.number().default(400).nullish(),\n textAlign: z.enum(['left', 'right', 'center']).default('center').nullish(),\n textBaseline: z.enum(['top', 'middle', 'bottom']).default('middle').nullish(),\n textBackgroundVisible: z.boolean().default(true).nullish(),\n textBackgroundColor: z.string().default('#212121').nullish(),\n textBackgroundBorderColor: z.string().nullish(),\n textBackgroundBorderWidth: z.number().default(1).nullish(),\n textBackgroundBorderRadius: z.number().default(4).nullish(),\n textBackgroundPadding: z.number().nullish(),\n\n offsetY: z.number().default(0).nullish(),\n offsetX: z.number().default(0).nullish(),\n})\n"],"names":["zAnnotationPoint","z","zSelector","zSelectors","zChartDynamicFilter"],"mappings":";;AAGO,MAAMA,mBAAmBC,EAAE,MAAM,CAAC;IACvC,UAAUA,EAAE,KAAK,CAAC;QAACC;QAAWC;KAAW,EAAE,OAAO;IAClD,WAAWF,EAAE,MAAM,GAAG,OAAO;IAC7B,eAAeG,oBAAoB,QAAQ;IAC3C,MAAMH,EAAE,MAAM,GAAG,EAAE,CAACA,EAAE,KAAK,CAACA,EAAE,MAAM,KAAK,OAAO;IAChD,WAAWA,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,OAAO;IAChD,cAAcA,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,OAAO;IAC5C,gBAAgBA,EAAE,MAAM,GAAG,OAAO,CAAC,KAAK,OAAO;IAC/C,WAAWA,CAAC,CAADA,OAAM,CAAC;QAAC;QAAQ;QAAS;KAAS,EAAE,OAAO,CAAC,UAAU,OAAO;IACxE,cAAcA,CAAC,CAADA,OAAM,CAAC;QAAC;QAAO;QAAU;KAAS,EAAE,OAAO,CAAC,UAAU,OAAO;IAC3E,uBAAuBA,EAAE,OAAO,GAAG,OAAO,CAAC,MAAM,OAAO;IACxD,qBAAqBA,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,OAAO;IAC1D,2BAA2BA,EAAE,MAAM,GAAG,OAAO;IAC7C,2BAA2BA,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,OAAO;IACxD,4BAA4BA,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,OAAO;IACzD,uBAAuBA,EAAE,MAAM,GAAG,OAAO;IAEzC,SAASA,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,OAAO;IACtC,SAASA,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,OAAO;AACxC"}
|
|
@@ -5,6 +5,7 @@ import { zAnnotationHorizontalLine } from "../../annotation/zAnnotationHorizonta
|
|
|
5
5
|
import { zAnnotationArea } from "../../annotation/zAnnotationArea.js";
|
|
6
6
|
const zAnnotationPointConfig = zAnnotationPoint.omit({
|
|
7
7
|
selector: true,
|
|
8
|
+
measureId: true,
|
|
8
9
|
text: true
|
|
9
10
|
}).partial();
|
|
10
11
|
const zAnnotationHorizontalLineConfig = zAnnotationHorizontalLine.pick({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types/properties/config/annotation/zAnnotation.js","sources":["../../../../../../src/types/properties/config/annotation/zAnnotation.ts"],"sourcesContent":["import { z } from 'zod'\nimport { zAnnotationPoint } from '../../annotation/zAnnotationPoint'\nimport { zAnnotationDifferenceLine } from '../../annotation/zAnnotationDifferenceLine'\nimport { zAnnotationHorizontalLine } from '../../annotation/zAnnotationHorizontalLine'\nimport { zAnnotationArea } from '../../annotation/zAnnotationArea'\n\nexport const zAnnotationPointConfig = zAnnotationPoint.omit({ selector: true, text: true }).partial()\n\n// Use pick to explicitly list fields we want to expose in config variants.\nexport const zAnnotationHorizontalLineConfig = zAnnotationHorizontalLine\n .pick({\n // only pick fields that exist on the runtime schema\n lineColor: true,\n lineWidth: true,\n lineVisible: true,\n lineStyle: true,\n\n textBackgroundVisible: true,\n textColor: true,\n textFontSize: true,\n textFontWeight: true,\n textBackgroundColor: true,\n textBackgroundBorderColor: true,\n textBackgroundBorderWidth: true,\n textBackgroundBorderRadius: true,\n textBackgroundPadding: true,\n })\n // extend with additional config-only fields that runtime schema doesn't include\n .extend({\n endSymbolVisible: z.boolean().nullish(),\n endSymbolType: z.string().nullish(),\n endSymbolSize: z.number().nullish(),\n\n startSymbolVisible: z.boolean().nullish(),\n startSymbolType: z.string().nullish(),\n startSymbolSize: z.number().nullish(),\n })\n .partial()\n\nexport const zAnnotationVerticalLineConfig = zAnnotationHorizontalLineConfig.clone()\n\nexport const zAnnotationAreaConfig = zAnnotationArea\n .pick({\n textColor: true,\n textFontSize: true,\n textFontWeight: true,\n\n textBackgroundVisible: true,\n textBackgroundColor: true,\n textBackgroundBorderColor: true,\n textBackgroundBorderWidth: true,\n textBackgroundBorderRadius: true,\n textBackgroundPadding: true,\n\n areaColor: true,\n areaColorOpacity: true,\n areaBorderColor: true,\n areaBorderWidth: true,\n areaBorderRadius: true,\n areaLineDash: true,\n\n outerPadding: true,\n })\n .partial()\n\nexport const zAnnotationDifferenceLineConfig = zAnnotationDifferenceLine\n .pick({\n lineColor: true,\n textColor: true,\n textFontSize: true,\n textBackgroundColor: true,\n })\n .partial()\n\nexport const zAnnotationConfig = z.object({\n annotationPoint: zAnnotationPointConfig.nullish(),\n annotationHorizontalLine: zAnnotationHorizontalLineConfig.nullish(),\n annotationVerticalLine: zAnnotationVerticalLineConfig.nullish(),\n annotationArea: zAnnotationAreaConfig.nullish(),\n annotationDifferenceLine: zAnnotationDifferenceLineConfig.nullish(),\n})\n"],"names":["zAnnotationPointConfig","zAnnotationPoint","zAnnotationHorizontalLineConfig","zAnnotationHorizontalLine","z","zAnnotationVerticalLineConfig","zAnnotationAreaConfig","zAnnotationArea","zAnnotationDifferenceLineConfig","zAnnotationDifferenceLine","zAnnotationConfig"],"mappings":";;;;;AAMO,MAAMA,yBAAyBC,iBAAiB,IAAI,CAAC;IAAE,UAAU;IAAM,MAAM;AAAK,GAAG,OAAO;
|
|
1
|
+
{"version":3,"file":"types/properties/config/annotation/zAnnotation.js","sources":["../../../../../../src/types/properties/config/annotation/zAnnotation.ts"],"sourcesContent":["import { z } from 'zod'\nimport { zAnnotationPoint } from '../../annotation/zAnnotationPoint'\nimport { zAnnotationDifferenceLine } from '../../annotation/zAnnotationDifferenceLine'\nimport { zAnnotationHorizontalLine } from '../../annotation/zAnnotationHorizontalLine'\nimport { zAnnotationArea } from '../../annotation/zAnnotationArea'\n\nexport const zAnnotationPointConfig = zAnnotationPoint.omit({ selector: true, measureId: true, text: true }).partial()\n\n// Use pick to explicitly list fields we want to expose in config variants.\nexport const zAnnotationHorizontalLineConfig = zAnnotationHorizontalLine\n .pick({\n // only pick fields that exist on the runtime schema\n lineColor: true,\n lineWidth: true,\n lineVisible: true,\n lineStyle: true,\n\n textBackgroundVisible: true,\n textColor: true,\n textFontSize: true,\n textFontWeight: true,\n textBackgroundColor: true,\n textBackgroundBorderColor: true,\n textBackgroundBorderWidth: true,\n textBackgroundBorderRadius: true,\n textBackgroundPadding: true,\n })\n // extend with additional config-only fields that runtime schema doesn't include\n .extend({\n endSymbolVisible: z.boolean().nullish(),\n endSymbolType: z.string().nullish(),\n endSymbolSize: z.number().nullish(),\n\n startSymbolVisible: z.boolean().nullish(),\n startSymbolType: z.string().nullish(),\n startSymbolSize: z.number().nullish(),\n })\n .partial()\n\nexport const zAnnotationVerticalLineConfig = zAnnotationHorizontalLineConfig.clone()\n\nexport const zAnnotationAreaConfig = zAnnotationArea\n .pick({\n textColor: true,\n textFontSize: true,\n textFontWeight: true,\n\n textBackgroundVisible: true,\n textBackgroundColor: true,\n textBackgroundBorderColor: true,\n textBackgroundBorderWidth: true,\n textBackgroundBorderRadius: true,\n textBackgroundPadding: true,\n\n areaColor: true,\n areaColorOpacity: true,\n areaBorderColor: true,\n areaBorderWidth: true,\n areaBorderRadius: true,\n areaLineDash: true,\n\n outerPadding: true,\n })\n .partial()\n\nexport const zAnnotationDifferenceLineConfig = zAnnotationDifferenceLine\n .pick({\n lineColor: true,\n textColor: true,\n textFontSize: true,\n textBackgroundColor: true,\n })\n .partial()\n\nexport const zAnnotationConfig = z.object({\n annotationPoint: zAnnotationPointConfig.nullish(),\n annotationHorizontalLine: zAnnotationHorizontalLineConfig.nullish(),\n annotationVerticalLine: zAnnotationVerticalLineConfig.nullish(),\n annotationArea: zAnnotationAreaConfig.nullish(),\n annotationDifferenceLine: zAnnotationDifferenceLineConfig.nullish(),\n})\n"],"names":["zAnnotationPointConfig","zAnnotationPoint","zAnnotationHorizontalLineConfig","zAnnotationHorizontalLine","z","zAnnotationVerticalLineConfig","zAnnotationAreaConfig","zAnnotationArea","zAnnotationDifferenceLineConfig","zAnnotationDifferenceLine","zAnnotationConfig"],"mappings":";;;;;AAMO,MAAMA,yBAAyBC,iBAAiB,IAAI,CAAC;IAAE,UAAU;IAAM,WAAW;IAAM,MAAM;AAAK,GAAG,OAAO;AAG7G,MAAMC,kCAAkCC,0BAAAA,IACxC,CAAC;IAEJ,WAAW;IACX,WAAW;IACX,aAAa;IACb,WAAW;IAEX,uBAAuB;IACvB,WAAW;IACX,cAAc;IACd,gBAAgB;IAChB,qBAAqB;IACrB,2BAA2B;IAC3B,2BAA2B;IAC3B,4BAA4B;IAC5B,uBAAuB;AACzB,GAEC,MAAM,CAAC;IACN,kBAAkBC,EAAE,OAAO,GAAG,OAAO;IACrC,eAAeA,EAAE,MAAM,GAAG,OAAO;IACjC,eAAeA,EAAE,MAAM,GAAG,OAAO;IAEjC,oBAAoBA,EAAE,OAAO,GAAG,OAAO;IACvC,iBAAiBA,EAAE,MAAM,GAAG,OAAO;IACnC,iBAAiBA,EAAE,MAAM,GAAG,OAAO;AACrC,GACC,OAAO;AAEH,MAAMC,gCAAgCH,gCAAgC,KAAK;AAE3E,MAAMI,wBAAwBC,gBAAAA,IAC9B,CAAC;IACJ,WAAW;IACX,cAAc;IACd,gBAAgB;IAEhB,uBAAuB;IACvB,qBAAqB;IACrB,2BAA2B;IAC3B,2BAA2B;IAC3B,4BAA4B;IAC5B,uBAAuB;IAEvB,WAAW;IACX,kBAAkB;IAClB,iBAAiB;IACjB,iBAAiB;IACjB,kBAAkB;IAClB,cAAc;IAEd,cAAc;AAChB,GACC,OAAO;AAEH,MAAMC,kCAAkCC,0BAAAA,IACxC,CAAC;IACJ,WAAW;IACX,WAAW;IACX,cAAc;IACd,qBAAqB;AACvB,GACC,OAAO;AAEH,MAAMC,oBAAoBN,EAAE,MAAM,CAAC;IACxC,iBAAiBJ,uBAAuB,OAAO;IAC/C,0BAA0BE,gCAAgC,OAAO;IACjE,wBAAwBG,8BAA8B,OAAO;IAC7D,gBAAgBC,sBAAsB,OAAO;IAC7C,0BAA0BE,gCAAgC,OAAO;AACnE"}
|