main
Last change
on this file was 79a0317, checked in by stefan toskovski <stefantoska84@…>, 4 days ago |
F4 Finalna Verzija
|
-
Property mode
set to
100644
|
File size:
706 bytes
|
Line | |
---|
1 | import computeOffsets from "../utils/computeOffsets.js";
|
---|
2 |
|
---|
3 | function popperOffsets(_ref) {
|
---|
4 | var state = _ref.state,
|
---|
5 | name = _ref.name;
|
---|
6 | // Offsets are the actual position the popper needs to have to be
|
---|
7 | // properly positioned near its reference element
|
---|
8 | // This is the most basic placement, and will be adjusted by
|
---|
9 | // the modifiers in the next step
|
---|
10 | state.modifiersData[name] = computeOffsets({
|
---|
11 | reference: state.rects.reference,
|
---|
12 | element: state.rects.popper,
|
---|
13 | strategy: 'absolute',
|
---|
14 | placement: state.placement
|
---|
15 | });
|
---|
16 | } // eslint-disable-next-line import/no-unused-modules
|
---|
17 |
|
---|
18 |
|
---|
19 | export default {
|
---|
20 | name: 'popperOffsets',
|
---|
21 | enabled: true,
|
---|
22 | phase: 'read',
|
---|
23 | fn: popperOffsets,
|
---|
24 | data: {}
|
---|
25 | }; |
---|
Note:
See
TracBrowser
for help on using the repository browser.