diff --git a/s2-site/.dumirc.ts b/s2-site/.dumirc.ts index 8e5164b0c0..f5f9a6e5cd 100644 --- a/s2-site/.dumirc.ts +++ b/s2-site/.dumirc.ts @@ -454,8 +454,8 @@ export default defineConfig({ styles: ['/site.css'], links: [], scripts: [], - monorepoRedirect: { - peerDeps: true, - srcDir: ['src', 'esm', 'lib'], - }, + // monorepoRedirect: { + // peerDeps: true, + // srcDir: ['src', 'esm', 'lib'], + // }, }); diff --git a/s2-site/docs/api/basic-class/base-cell.en.md b/s2-site/docs/api/basic-class/base-cell.en.md index 87438f11db..4710f45336 100644 --- a/s2-site/docs/api/basic-class/base-cell.en.md +++ b/s2-site/docs/api/basic-class/base-cell.en.md @@ -6,19 +6,19 @@ Function description: cell base class. [details](https://github.com/antvis/S2/bl | parameter | illustrate | type | | ---------------------- | -------------------------------------- | ----------------------------------------------------------------------- | -| getMeta | Get cell metadata | () => [ViewMeta](#viewmeta) | -| setMeta | Set cell metadata | (vieMeta: [Partial](#viewmeta) ) => void | -| getIconStyle | Get cell icon style | () => [IconTheme](/docs/api/general/S2Theme#icontheme) | -| getStyle | get cell style | () => [DefaultCellTheme](/docs/api/general/S2Theme#defaultcelltheme) | -| getTextAndIconPosition | Get the position of cell text and icon | (iconCount: `number` ) => [TextAndIconPosition](#textandiconposition) | +| getMeta | Get cell metadata | () => [`ViewMeta`](#viewmeta) | +| setMeta | Set cell metadata | (vieMeta: [`Partial`](#viewmeta) ) => void | +| getIconStyle | Get cell icon style | () => [`IconTheme`](/docs/api/general/S2Theme#icontheme) | +| getStyle | get cell style | () => [`DefaultCellTheme`](/docs/api/general/S2Theme#defaultcelltheme) | +| getTextAndIconPosition | Get the position of cell text and icon | (iconCount: `number` ) => [`TextAndIconPosition`](#textandiconposition) | | getActualText | get the drawn text | `() => string` | -| cellType | cell type | [CellTypes](#celltypes) | +| cellType | cell type | [`CellTypes`](#celltypes) | | initCell | Initialize cells | `() => void` | | update | update cell | `() => void` | | getTextStyle | get text style | `() => void` | | getFormattedFieldValue | Get the formatted field value | `() => { formattedValue: string, value: string }` | | getMaxTextWidth | Get the maximum width of the text | `() => number` | -| getTextPosition | get text coordinates | [point](#point) | +| getTextPosition | get text coordinates | [`Point`](#point) | | getContentArea | get content area | `() => { x: number, y: number, width: number, height: number }` | | updateByState | Update cell styles based on state | `(stateName: InteractionStateName, cell: S2CellType) => void` | | hideInteractionShape | Interactive layers for hidden cells | `() => void` | diff --git a/s2-site/docs/api/basic-class/base-cell.zh.md b/s2-site/docs/api/basic-class/base-cell.zh.md index 5830627fd7..1cd2cfe995 100644 --- a/s2-site/docs/api/basic-class/base-cell.zh.md +++ b/s2-site/docs/api/basic-class/base-cell.zh.md @@ -11,19 +11,19 @@ cell.getActualText() | 参数 | 说明 | 类型 | | --- | --- | --- | -| getMeta | 获取单元格元数据 | () => [ViewMeta](#viewmeta) | -| setMeta | 设置单元格元数据 | (vieMeta: [Partial](#viewmeta)) => void | -| getIconStyle | 获取单元格图标样式 | () => [IconTheme](/docs/api/general/S2Theme#icontheme) | -| getStyle | 获取单元格样式 | () => [DefaultCellTheme](/docs/api/general/S2Theme#defaultcelltheme) | -| getTextAndIconPosition | 获取单元格文本和图标的位置 | (iconCount: `number`) => [TextAndIconPosition](#textandiconposition) | +| getMeta | 获取单元格元数据 | () => [`ViewMeta`](#viewmeta) | +| setMeta | 设置单元格元数据 | (vieMeta: [`Partial`](#viewmeta)) => void | +| getIconStyle | 获取单元格图标样式 | () => [`IconTheme`](/docs/api/general/S2Theme#icontheme) | +| getStyle | 获取单元格样式 | () => [`DefaultCellTheme`](/docs/api/general/S2Theme#defaultcelltheme) | +| getTextAndIconPosition | 获取单元格文本和图标的位置 | (iconCount: `number`) => [`TextAndIconPosition`](#textandiconposition) | | getActualText | 获取绘制的文本 | `() => string` | -| cellType | 单元格类型 | [CellTypes](#celltypes) | +| cellType | 单元格类型 | [`CellTypes`](#celltypes) | | initCell | 初始化单元格 | `() => void` | | update | 更新单元格 | `() => void` | | getTextStyle | 获取文本样式 | `() => void` | | getFormattedFieldValue | 获取格式化后的字段值 | `() => { formattedValue: string, value: string }` | | getMaxTextWidth | 获取文本最大宽度 | `() => number` | -| getTextPosition | 获取文本坐标 | [Point](#point) | +| getTextPosition | 获取文本坐标 | [`Point`](#point) | | getContentArea | 获取内容区域 | `() => { x: number, y: number, width: number, height: number }` | | updateByState | 根据状态更新单元格样式 | `(stateName: InteractionStateName, cell: S2CellType) => void` | | hideInteractionShape | 隐藏单元格的交互图层 | `() => void` | diff --git a/s2-site/docs/api/basic-class/base-data-set.en.md b/s2-site/docs/api/basic-class/base-data-set.en.md index ca4d74436e..5667f7845e 100644 --- a/s2-site/docs/api/basic-class/base-data-set.en.md +++ b/s2-site/docs/api/basic-class/base-data-set.en.md @@ -27,7 +27,7 @@ s2.dataSet.xx() | getCellData | Get a single cell data | (params: [CellDataParams](#celldataparams) ) => [DataType\[\]](#datatype) | | | getMultiData | Get bulk cell data | (query: [DataType](#datatype),params?: [MultiDataParams](#multidataparams)) => [DataType[]](#datatype) | | | getMultiData(deprecated) | Get bulk cell data | (query: [DataType](#datatype) , isTotals?: boolean, isRow?: boolean, drillDownFields?: string\[], includeTotalData:boolean) => [DataType\[\]](#datatype) | | -| moreThanOneValue | Is there more than 1 value | () => [ViewMeta](#viewmeta) | | +| moreThanOneValue | Is there more than 1 value | () => [`ViewMeta`](#viewmeta) | | ### DataType diff --git a/s2-site/docs/api/basic-class/base-data-set.zh.md b/s2-site/docs/api/basic-class/base-data-set.zh.md index 90511ff21b..5f6093cdd6 100644 --- a/s2-site/docs/api/basic-class/base-data-set.zh.md +++ b/s2-site/docs/api/basic-class/base-data-set.zh.md @@ -28,7 +28,7 @@ s2.dataSet.getFieldName('type') | getCellData | 获取单个的单元格数据 | (params: [CellDataParams](#celldataparams)) => [DataType[]](#datatype) | | | getMultiData | 获取批量的单元格数据 | (query: [DataType](#datatype),params?: [MultiDataParams](#multidataparams)) => [DataType[]](#datatype) | | | getMultiData (已废弃) | 获取批量的单元格数据 | (query: [DataType](#datatype), isTotals?: boolean, isRow?: boolean, drillDownFields?: string[], includeTotalData:boolean) => [DataType[]](#datatype) | | -| moreThanOneValue | 是否超过 1 个数值 | () => [ViewMeta](#viewmeta) | | +| moreThanOneValue | 是否超过 1 个数值 | () => [`ViewMeta`](#viewmeta) | | | isEmpty | 是否为空数据集 | () => `boolean` | `@antv/s2-v1.51.1` | | displayFormattedValueMap | 单元格所对应格式化后的值(用于编辑表) | `Map` | `@antv/s2-v1.54.5` |