(
axisModel: ParallelAxisModel,
ecModel: GlobalModel,
api: ExtensionAPI,
payload: Payload
)
| 54 | } |
| 55 | |
| 56 | render( |
| 57 | axisModel: ParallelAxisModel, |
| 58 | ecModel: GlobalModel, |
| 59 | api: ExtensionAPI, |
| 60 | payload: Payload |
| 61 | ): void { |
| 62 | if (fromAxisAreaSelect(axisModel, ecModel, payload)) { |
| 63 | return; |
| 64 | } |
| 65 | |
| 66 | this.axisModel = axisModel; |
| 67 | this.api = api; |
| 68 | |
| 69 | this.group.removeAll(); |
| 70 | |
| 71 | const oldAxisGroup = this._axisGroup; |
| 72 | this._axisGroup = new graphic.Group(); |
| 73 | this.group.add(this._axisGroup); |
| 74 | |
| 75 | if (!axisModel.get('show')) { |
| 76 | return; |
| 77 | } |
| 78 | |
| 79 | const coordSysModel = getCoordSysModel(axisModel, ecModel); |
| 80 | const coordSys = coordSysModel.coordinateSystem; |
| 81 | |
| 82 | const areaSelectStyle = axisModel.getAreaSelectStyle(); |
| 83 | const areaWidth = areaSelectStyle.width; |
| 84 | |
| 85 | const dim = axisModel.axis.dim; |
| 86 | const axisLayout = coordSys.getAxisLayout(dim); |
| 87 | |
| 88 | const builderOpt = zrUtil.extend( |
| 89 | {strokeContainThreshold: areaWidth}, |
| 90 | axisLayout |
| 91 | ); |
| 92 | |
| 93 | const axisBuilder = new AxisBuilder(axisModel, api, builderOpt); |
| 94 | |
| 95 | axisBuilder.build(); |
| 96 | |
| 97 | this._axisGroup.add(axisBuilder.group); |
| 98 | |
| 99 | this._refreshBrushController( |
| 100 | builderOpt, areaSelectStyle, axisModel, coordSysModel, areaWidth, api |
| 101 | ); |
| 102 | |
| 103 | graphic.groupTransition(oldAxisGroup, this._axisGroup, axisModel); |
| 104 | } |
| 105 | |
| 106 | // /** |
| 107 | // * @override |
nothing calls this directly
no test coverage detected