How to use the rc-tooltip/lib/placements.placements function in rc-tooltip

To help you get started, we’ve selected a few rc-tooltip examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github sikidamjanovic / cowrite / node_modules / antd / lib / tooltip / placements.js View on Github external
Object.keys(placementMap).forEach(function (key) {
    placementMap[key] = config.arrowPointAtCenter ? _extends(_extends({}, placementMap[key]), {
      overflow: getOverflowOptions(autoAdjustOverflow),
      targetOffset: targetOffset
    }) : _extends(_extends({}, _placements.placements[key]), {
      overflow: getOverflowOptions(autoAdjustOverflow)
    });
    placementMap[key].ignoreShake = true;
  });
  return placementMap;

rc-tooltip

React Tooltip

MIT
Latest version published 2 months ago

Package Health Score

86 / 100
Full package analysis