(attachment)
| 40 | } |
| 41 | |
| 42 | export function attachmentToOffset(attachment) { |
| 43 | let { left, top } = attachment; |
| 44 | |
| 45 | if (!isUndefined(OFFSET_MAP[attachment.left])) { |
| 46 | left = OFFSET_MAP[attachment.left]; |
| 47 | } |
| 48 | |
| 49 | if (!isUndefined(OFFSET_MAP[attachment.top])) { |
| 50 | top = OFFSET_MAP[attachment.top]; |
| 51 | } |
| 52 | |
| 53 | return { left, top }; |
| 54 | } |
| 55 | |
| 56 | export function autoToFixedAttachment(attachment, relativeToAttachment) { |
| 57 | let { left, top } = attachment; |
no test coverage detected
searching dependent graphs…