Constructors
constructor
- new DndQuery(__namedParameters): DndQuery
Parameters
- __namedParameters: DndQueryOptions
Accessors
container
- get container(): EleLoose
Returns EleLoose
context
- get context(): EleLoose
Returns EleLoose
isSeparated
- get isSeparated(): boolean
Returns boolean
scrollTop
- get scrollTop(): number
Returns number
window
- get window(): Window & typeof globalThis
Returns Window & typeof globalThis
Methods
get
- get(selector): Cash
Returns Cash
getDraggableDescendants
- getDraggableDescendants(selector, descendantSelector?): EleLoose[]
Parameters
- selector: Selector
- descendantSelector: string = DRAGGABLE_SELECTOR
Returns EleLoose[]
getDraggableElementsDataByArea
getDraggableParents
- getDraggableParents(selector): EleLoose[]
Returns EleLoose[]
getDraggableParentsData
- getDraggableParentsData(selector, hasParents): ISelectedItemData
Parameters
- selector: Selector
- hasParents: boolean
getElement
- getElement(selector): EleLoose
Returns EleLoose
getElementBounding
- getElementBounding(element): {
height: number;
left: number;
top: number;
width: number;
} Returns {
height: number;
left: number;
top: number;
width: number;
}
height: number
left: number
top: number
width: number
getElementBySlotId
- getElementBySlotId(slotId): EleLoose
Returns EleLoose
isChildOfElement
- isChildOfElement(parentElementSlotId, childElementSlotId): boolean
Parameters
- parentElementSlotId: string
- childElementSlotId: string
Returns boolean
reload
- reload(): void
Returns void
scrollTo
- scrollTo(leftOffset, topOffset): void
Parameters
- leftOffset: number
- topOffset: number
Returns void
是否是隔离的沙箱环境,目前仅 iframe 环境为隔离沙箱