Skip to content

Commit

Permalink
feat: add bar width edit control with transMatrix
Browse files Browse the repository at this point in the history
  • Loading branch information
xuefei1313 committed Oct 9, 2024
1 parent b81c5c0 commit dd42f37
Showing 1 changed file with 12 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -241,11 +241,17 @@ export class BarMarkControl extends BaseMarkControl {
}

private _hideHandleGraphic() {
if (this._editState === 'dragging') {
return;
}
this._startHandle.setAttributes({ visible: false });
this._endHandle.setAttributes({ visible: false });
}

private _hideBorderGraphic() {
if (this._editState === 'dragging') {
return;
}
this._barBorder.setAttributes({ visible: false });
}

Expand Down Expand Up @@ -452,23 +458,13 @@ export class BarMarkControl extends BaseMarkControl {
]
}
});

// 更新属性
// this._dragInfo.series = null;
// this._dragInfo.axis = null;
// this._dragInfo.rawScale = [];
// this.chart.reRenderWithUpdateSpec();
// // upgrade 更新当前的一些图表数据
// this._upgradeVChartLink();
// // 柱宽编辑事件
// CONTEXT.TeaEvent('edit_element', {
// element_type: 'chart',
// part: 'series',
// chart_type: this._chart.vchartType,
// data_source_type: this._chart.dataSourceType,
// action_type: 'update',
// edit_property: 'barWidth',
// trigger_by: 'chart_interaction'
// });
this._dragInfo.series = null;
this._dragInfo.axis = null;
this._dragInfo.rawScale = [];
this._dragInfo.tempScale = [];
this._dragInfo.hasChange = false;
}
};

Expand Down

0 comments on commit dd42f37

Please sign in to comment.