MCPcopy Create free account
hub / github.com/apache/echarts / contain

Function contain

src/scale/scaleMapper.ts:446–451  ·  view source on GitHub ↗
(val)

Source from the content-addressed store, hash-verified

444 },
445
446 contain(val) {
447 // This method is typically used in axis trigger and markers.
448 // Users may be confused if the extent is restricted to `SCALE_EXTENT_KIND_EFFECTIVE`.
449 const extent = getScaleExtentForMappingUnsafe(this, null);
450 return val >= extent[0] && val <= extent[1];
451 },
452
453 getExtent() {
454 return this._extents[SCALE_EXTENT_KIND_EFFECTIVE].slice();

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected