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

Method getShallow

src/model/Model.ts:120–134  ·  view source on GitHub ↗
(
        key: R, ignoreParent?: boolean
    )

Source from the content-addressed store, hash-verified

118 }
119
120 getShallow<R extends keyof Opt>(
121 key: R, ignoreParent?: boolean
122 ): Opt[R] {
123 const option = this.option;
124
125 let val = option == null ? option : option[key];
126 if (val == null && !ignoreParent) {
127 const parentModel = this.parentModel;
128 if (parentModel) {
129 // FIXME:TS do not know how to make it works
130 val = parentModel.getShallow(key);
131 }
132 }
133 return val as Opt[R];
134 }
135
136 // TODO At most 3 depth?
137 getModel<R extends keyof Opt>(

Callers 15

dataEachFunction · 0.80
updateDataMethod · 0.80
styleFunction · 0.80
styleEmphasisFunction · 0.80
updateDataMethod · 0.80
_updateCommonMethod · 0.80
updateStyleFunction · 0.80
getSymbolMetaFunction · 0.80
isAnimationEnabledFunction · 0.80
updateCommonFunction · 0.80
setBoxCommonFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected