Justin-ZS commented on code in PR #21410:
URL: https://github.com/apache/echarts/pull/21410#discussion_r2605955954
##########
src/component/matrix/MatrixView.ts:
##########
@@ -289,12 +290,33 @@ function createMatrixCell(
let cellText: Text | NullUndefined;
if (textValue != null) {
- const text = textValue + '';
+ let text = textValue + '';
_tmpCellLabelModel.option = cellOption ? cellOption.label : null;
_tmpCellLabelModel.parentModel = parentLabelModel;
// This is to accept `option.textStyle` as the default.
_tmpCellLabelModel.ecModel = ecModel;
+ const formatter = _tmpCellLabelModel.getShallow('formatter');
+ if (formatter) {
+ const params = {
+ componentType: 'matrix' as const,
+ componentIndex: matrixModel.componentIndex,
+ name: text,
+ value: textValue as unknown,
+ xyLocator: xyLocator.slice() as MatrixXYLocator[],
+ $vars: ['name', 'value', 'xyLocator'] as const
Review Comment:
done
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]