MCPcopy Index your code
hub / github.com/shipshapecode/tether / attachmentToOffset

Function attachmentToOffset

src/js/utils/offset.js:42–54  ·  view source on GitHub ↗
(attachment)

Source from the content-addressed store, hash-verified

40}
41
42export 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
56export function autoToFixedAttachment(attachment, relativeToAttachment) {
57 let { left, top } = attachment;

Callers 2

offset.spec.jsFile · 0.90
positionMethod · 0.90

Calls 1

isUndefinedFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…