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

Function strTransform

src/traces/treemap/plot_one.js:490–507  ·  view source on GitHub ↗
(d)

Source from the content-addressed store, hash-verified

488 };
489
490 var strTransform = function(d) {
491 var transform = d.transform;
492
493 if(d.x0 !== d.x1 && d.y0 !== d.y1) {
494 recordMinTextSize(trace.type, transform, fullLayout);
495 }
496
497 return Lib.getTextTransform({
498 textX: transform.textX,
499 textY: transform.textY,
500 anchorX: transform.anchorX,
501 anchorY: transform.anchorY,
502 targetX: transform.targetX,
503 targetY: transform.targetY,
504 scale: transform.scale,
505 rotate: transform.rotate
506 });
507 };
508
509 if(hasTransition) {
510 // Important: do this before binding new sliceData!

Callers 2

draw_ancestors.jsFile · 0.70

Calls 1

recordMinTextSizeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…