Skip to content

Commit

Permalink
feat: merge fillfillcolor strokestrokecolor into fillstroke (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rui-Sun committed Jun 14, 2023
1 parent 12ed159 commit f8e45c2
Show file tree
Hide file tree
Showing 42 changed files with 715 additions and 312 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@visactor/vtable",
"comment": "update vrender version",
"type": "none"
}
],
"packageName": "@visactor/vtable"
}
2 changes: 1 addition & 1 deletion common/config/rush/pnpm-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
* PNPM documentation: https://pnpm.io/package_json#pnpmoverrides
*/
"globalOverrides": {
"@visactor/vrender": "0.9.0-alpha.1"
"@visactor/vrender": "0.9.2-fill-stroke.10"
},
/**
* The `globalPeerDependencyRules` setting provides various settings for suppressing validation errors
Expand Down
44 changes: 27 additions & 17 deletions common/config/rush/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions packages/vtable/examples/custom/default.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ export function createTable() {
text: record.bloggerName,
fontSize: 13,
fontFamily: 'sans-serif',
fillColor: 'black',
fill: 'black',
marginLeft: 10
});
bloggerName.getSize(table);
Expand All @@ -141,7 +141,7 @@ export function createTable() {
text: record.city,
fontSize: 11,
fontFamily: 'sans-serif',
fillColor: '#6f7070'
fill: '#6f7070'
});
bloggerName.getSize(table);
containerRightTop.add(locationName);
Expand All @@ -151,9 +151,9 @@ export function createTable() {
text: record.tags[i],
fontSize: 10,
fontFamily: 'sans-serif',
fillColor: 'rgb(51, 101, 238)',
fill: 'rgb(51, 101, 238)',
background: {
fillColor: '#f4f4f2',
fill: '#f4f4f2',
borderRadius: 5,
expandX: 5,
expandY: 5
Expand Down
7 changes: 4 additions & 3 deletions packages/vtable/examples/icon/icon-shape.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/* eslint-disable max-len */
import * as VTable from '../../src';
import { bindDebugTool } from '../../src/scenegraph/debug-tool';
const ListTable = VTable.ListTable;
const Table_CONTAINER_DOM_ID = 'vTable';

Expand Down Expand Up @@ -195,9 +196,9 @@ export function createTable() {
hoverIconKey = '';
}
});
// VTable.bindDebugTool(instance.scenegraph.stage as any, {
// customGrapicKeys: ['role', '_updateTag'],
// });
bindDebugTool(instance.scenegraph.stage as any, {
customGrapicKeys: ['role', '_updateTag']
});

// 只为了方便控制太调试用,不要拷贝
(window as any).tableInstance = instance;
Expand Down
4 changes: 4 additions & 0 deletions packages/vtable/examples/menu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,10 @@ export const menus = [
{
path: 'style',
name: 'auto-wrap-text'
},
{
path: 'style',
name: 'border'
}
]
},
Expand Down
4 changes: 3 additions & 1 deletion packages/vtable/examples/pivot/pivot-basic.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import * as VTable from '../../src';
import { bindDebugTool } from '../../src/scenegraph/debug-tool';
const PivotTable = VTable.PivotTable;
const Table_CONTAINER_DOM_ID = 'vTable';

Expand Down Expand Up @@ -483,14 +484,15 @@ export function createTable() {
};

const instance = new PivotTable(option);
window.tableInstance = instance;

const { PIVOT_SORT_CLICK } = VTable.PivotTable.EVENT_TYPE;
instance.listen(PIVOT_SORT_CLICK, e => {
const order = e.order === 'asc' ? 'desc' : e.order === 'desc' ? 'normal' : 'asc';
instance.updatePivotSortState([{ dimensions: e.dimensionInfo, order }]);
});

VTable.bindDebugTool(instance.scenegraph.stage as any, {
bindDebugTool(instance.scenegraph.stage as any, {
customGrapicKeys: ['role', '_updateTag']
});

Expand Down
3 changes: 2 additions & 1 deletion packages/vtable/examples/pivot/pivot-no-indicator.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import * as VTable from '../../src';
import { bindDebugTool } from '../../src/scenegraph/debug-tool';
const PivotTable = VTable.PivotTable;
const Table_CONTAINER_DOM_ID = 'vTable';

Expand Down Expand Up @@ -247,7 +248,7 @@ export function createTable() {
instance.updatePivotSortState([{ dimensions: e.dimensionInfo, order }]);
});

VTable.bindDebugTool(instance.scenegraph.stage as any, {
bindDebugTool(instance.scenegraph.stage as any, {
customGrapicKeys: ['role', '_updateTag']
});

Expand Down
Loading

0 comments on commit f8e45c2

Please sign in to comment.