MCPcopy
hub / github.com/apache/echarts / _createBarGroup

Method _createBarGroup

src/component/visualMap/ContinuousView.ts:580–593  ·  view source on GitHub ↗
(itemAlign: helper.ItemAlign)

Source from the content-addressed store, hash-verified

578 }
579
580 private _createBarGroup(itemAlign: helper.ItemAlign) {
581 const orient = this._orient;
582 const inverse = this.visualMapModel.get('inverse');
583
584 return new graphic.Group(
585 (orient === 'horizontal' && !inverse)
586 ? {scaleX: itemAlign === 'bottom' ? 1 : -1, rotation: Math.PI / 2}
587 : (orient === 'horizontal' && inverse)
588 ? {scaleX: itemAlign === 'bottom' ? -1 : 1, rotation: -Math.PI / 2}
589 : (orient === 'vertical' && !inverse)
590 ? {scaleX: itemAlign === 'left' ? 1 : -1, scaleY: -1}
591 : {scaleX: itemAlign === 'left' ? 1 : -1}
592 );
593 }
594
595 private _updateHandle(handleEnds: number[], visualInRange: BarVisual) {
596 if (!this._useHandle) {

Callers 1

_renderBarMethod · 0.95

Calls 1

getMethod · 0.45

Tested by

no test coverage detected