MCPcopy Index your code
hub / github.com/plotly/plotly.js / applyAutorangeMinOptions

Function applyAutorangeMinOptions

src/plots/cartesian/autorange.js:636–654  ·  view source on GitHub ↗
(v, ax)

Source from the content-addressed store, hash-verified

634function greaterOrEqual(v0, v1) { return v0 >= v1; }
635
636function applyAutorangeMinOptions(v, ax) {
637 var autorangeoptions = ax.autorangeoptions;
638 if(
639 autorangeoptions &&
640 autorangeoptions.minallowed !== undefined &&
641 hasValidMinAndMax(ax, autorangeoptions.minallowed, autorangeoptions.maxallowed)
642 ) {
643 return autorangeoptions.minallowed;
644 }
645
646 if(
647 autorangeoptions &&
648 autorangeoptions.clipmin !== undefined &&
649 hasValidMinAndMax(ax, autorangeoptions.clipmin, autorangeoptions.clipmax)
650 ) {
651 return Math.max(v, ax.d2l(autorangeoptions.clipmin));
652 }
653 return v;
654}
655
656function applyAutorangeMaxOptions(v, ax) {
657 var autorangeoptions = ax.autorangeoptions;

Callers 1

applyAutorangeOptionsFunction · 0.85

Calls 1

hasValidMinAndMaxFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…