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

Function propsEqual

src/component/axisPointer/BaseAxisPointer.ts:538–549  ·  view source on GitHub ↗
(lastProps: any, newProps: any)

Source from the content-addressed store, hash-verified

536}
537
538function propsEqual(lastProps: any, newProps: any) {
539 if (zrUtil.isObject(lastProps) && zrUtil.isObject(newProps)) {
540 let equals = true;
541 zrUtil.each(newProps, function (item, key) {
542 equals = equals && propsEqual(lastProps[key], item);
543 });
544 return !!equals;
545 }
546 else {
547 return lastProps === newProps;
548 }
549}
550
551function updateLabelShowHide(labelEl: Element, axisPointerModel: AxisPointerModel) {
552 labelEl[axisPointerModel.get(['label', 'show']) ? 'show' : 'hide']();

Callers 1

updatePropsFunction · 0.85

Calls 1

eachMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…