Skip to main content

Module: processTargets/modifiers/surroundingPair/weaklyContains

Functions

weaklyContains

weaklyContains(offsets1, offsets2): boolean

Determines whether {@link offsets1} weakly contains {@link offsets2}, which defined as the boundaries of {@link offsets1} being inside or equal to the boundaries of {@link offsets2}.

Parameters

NameTypeDescription
offsets1OffsetsThe first set of offsets
offsets2OffsetsThe second set of offsets

Returns

boolean

true if {@link offsets1} weakly contains {@link offsets2}

Defined in

processTargets/modifiers/surroundingPair/weaklyContains.ts:11