Skip to content

Commit

Permalink
feat: 增加绘制透视组合图的能力 (#2780)
Browse files Browse the repository at this point in the history
* refactor: 修复部分 circular deps

* chore: 更新 g2 依赖信息

* feat: 完成 extends 开发时工程化配置

* refactor: 类型重构

* feat: 增加主题拓展的能力

* refactor: 简化 Node 创建时赋值逻辑

* feat: 初步完成分离 leafNodes 逻辑

* refactor: rename row header layers

* feat: 初步搭建 rowAxisHeader 框架

* feat: 增加角头对竖轴单元格的支持

* feat: 增加 colAxis, 搭建基础框架

* refactor: 增加 fieldValue 类型提示

* feat: 完善维度拆分逻辑

* WIP

* fix: 修复布局和 resize 问题

* fix: 修复布局和 resize 问题

* feat: 完善 resize 逻辑

* feat: 完善行列头 resize 逻辑

* feat: 完善 axis header 冻结逻辑

* feat: 增加 axis corner header

* feat: 增加极坐标系布局能力

* fix: 修复维度拆分后,总计、小计分组 node 坐标缺失问题

* fix: 修复列头 resize 区域冻结滚动位置偏移问题

* refactor: 抽离各个 cell 生成 theme 方法, 便于复用

* feat: 增加 axis cell hover 交互

* feat: 增加 axis cell click 交互

* feat: 关闭透视组合图复制能力

* fix: 修复极坐标场景下, axis header  clip 问题

* feat: 增加对 axis 样式的映射

* style: 样式更新

* feat: 优化 chart options 配置

* feat: 增加 PivotChartSheet 组件封装

* test: 增加透视组合表单测

* test: 单测修复

* style: lint fix

* chore: lock 文件更新

* ci: 更新 vite dev 配置

* test: 增加 copy 单测

* feat: 导出可继承的产物

* docs: 分离绘制 g2 文档

* feat: 增加 exports 配置

* docs: 增加透视组合图文档

* ci: 更新 rollup 打包, 临时方案

* docs: 增加透视组合图文档

* test: 单测修复

* chore: 更新 lock 文件

* refactor: 底部 frame border 兼容

* test: 单测修复

* build: 修复打包问题

* fix: 类型修复

* refactor: icon 位置迁移

* test: 单测修复
  • Loading branch information
wjgogogo authored Nov 19, 2024
1 parent a515d27 commit e243e89
Show file tree
Hide file tree
Showing 150 changed files with 6,593 additions and 2,449 deletions.
22 changes: 20 additions & 2 deletions build.config.base.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@ import path from 'path';
import peerDepsExternal from 'rollup-plugin-peer-deps-external';
import { visualizer } from 'rollup-plugin-visualizer';

export const getBaseConfig = () => {
export const getBaseConfig = ({
aliasReact = false,
aliasReactComponents = false,
} = {}) => {
const entry = './src/index.ts';

const OUT_DIR_NAME_MAP = {
Expand Down Expand Up @@ -45,7 +48,22 @@ export const getBaseConfig = () => {
find: /^@antv\/s2$/,
replacement: path.join(__dirname, './packages/s2-core/src'),
},
],
{
find: /^@antv\/s2\/extends$/,
replacement: path.join(__dirname, './packages/s2-core/src/extends'),
},
aliasReact && {
find: /^@antv\/s2-react$/,
replacement: path.join(__dirname, './packages/s2-react/src'),
},
aliasReactComponents && {
find: /^@antv\/s2-react-components$/,
replacement: path.join(
__dirname,
'./packages/s2-react-components/src',
),
},
].filter(Boolean),
);
}

Expand Down
1 change: 1 addition & 0 deletions jest.config.base.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ module.exports = {
'^tests/(.*)': '<rootDir>/__tests__/$1',
'^@antv/s2$': path.join(__dirname, 'packages/s2-core/src'),
'^@antv/s2/esm/(.*)$': path.join(__dirname, 'packages/s2-core/src/$1'),
'^@antv/s2/extends$': path.join(__dirname, 'packages/s2-core/src/extends'),
'^@antv/s2-react$': path.join(__dirname, 'packages/s2-react/src'),
'^@antv/s2-react-components$': path.join(
__dirname,
Expand Down
Loading

0 comments on commit e243e89

Please sign in to comment.