source: imaps-frontend/node_modules/@popperjs/core/lib/enums.js

main
Last change on this file was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago

Update repo after prototype presentation

  • Property mode set to 100644
File size: 1.3 KB
Line 
1export var top = 'top';
2export var bottom = 'bottom';
3export var right = 'right';
4export var left = 'left';
5export var auto = 'auto';
6export var basePlacements = [top, bottom, right, left];
7export var start = 'start';
8export var end = 'end';
9export var clippingParents = 'clippingParents';
10export var viewport = 'viewport';
11export var popper = 'popper';
12export var reference = 'reference';
13export var variationPlacements = /*#__PURE__*/basePlacements.reduce(function (acc, placement) {
14 return acc.concat([placement + "-" + start, placement + "-" + end]);
15}, []);
16export var placements = /*#__PURE__*/[].concat(basePlacements, [auto]).reduce(function (acc, placement) {
17 return acc.concat([placement, placement + "-" + start, placement + "-" + end]);
18}, []); // modifiers that need to read the DOM
19
20export var beforeRead = 'beforeRead';
21export var read = 'read';
22export var afterRead = 'afterRead'; // pure-logic modifiers
23
24export var beforeMain = 'beforeMain';
25export var main = 'main';
26export var afterMain = 'afterMain'; // modifier with the purpose to write to the DOM (or write into a framework state)
27
28export var beforeWrite = 'beforeWrite';
29export var write = 'write';
30export var afterWrite = 'afterWrite';
31export var modifierPhases = [beforeRead, read, afterRead, beforeMain, main, afterMain, beforeWrite, write, afterWrite];
Note: See TracBrowser for help on using the repository browser.