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

Function compatLayoutProperties

src/preprocessor/backwardCompat.ts:58–64  ·  view source on GitHub ↗
(option: Dictionary<any>)

Source from the content-addressed store, hash-verified

56}
57
58function compatLayoutProperties(option: Dictionary<any>) {
59 option && each(LAYOUT_PROPERTIES, function (prop) {
60 if (prop[0] in option && !(prop[1] in option)) {
61 option[prop[1]] = option[prop[0]];
62 }
63 });
64}
65
66const LAYOUT_PROPERTIES = [
67 ['x', 'left'], ['y', 'top'], ['x2', 'right'], ['y2', 'bottom']

Callers 1

globalBackwardCompatFunction · 0.85

Calls 1

eachFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…