MCPcopy Index your code
hub / github.com/apache/echarts / createRectForDisplayable

Function createRectForDisplayable

test/lib/testHelper.js:1771–1786  ·  view source on GitHub ↗
(el, visualRectGroup, useInnerTransformable)

Source from the content-addressed store, hash-verified

1769 }
1770
1771 function createRectForDisplayable(el, visualRectGroup, useInnerTransformable) {
1772 var elRawRect = el.getBoundingRect();
1773 var visualRect = new echarts.graphic.Rect({
1774 shape: {x: elRawRect.x, y: elRawRect.y, width: elRawRect.width, height: elRawRect.height},
1775 style: {fill: null, stroke: strokeColor, lineWidth: 1, strokeNoScale: true},
1776 silent: silent,
1777 z: Number.MAX_SAFE_INTEGER
1778 });
1779 visualRect.__testHelperBoundingRectTarget = el;
1780 var transAttrSource = el;
1781 if (useInnerTransformable && el.innerTransformable) {
1782 transAttrSource = el.innerTransformable;
1783 }
1784 copyTransformAttrs(visualRect, transAttrSource);
1785 visualRectGroup.add(visualRect);
1786 }
1787 }
1788
1789 function copyTransformAttrs(target, source) {

Callers 1

createVisualRectForElFunction · 0.85

Calls 3

copyTransformAttrsFunction · 0.85
getBoundingRectMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…