dragselect
Advanced tools
Comparing version 3.0.4 to 3.0.5
@@ -0,1 +1,5 @@ | ||
# 3.0.5 | ||
- Fix type issue during build bug [#212](https://github.com/ThibaultJanBeyer/DragSelect/issues/212) | ||
# 3.0.4 | ||
@@ -2,0 +6,0 @@ |
@@ -106,3 +106,2 @@ type DSDropZone<E extends DSInputElement> = { | ||
type DSPublicPublishEventNames<E extends DSInputElement> = keyof DSPublicPublish<E>; | ||
type DSPublicPublishAdditionalEventData<E extends DSInputElement> = { | ||
@@ -444,3 +443,2 @@ /** The dropZone element that the element was dropped into (or the mouse is currently hovering over) */ | ||
type DSInternalEventName = DSSettingsPublishEventNames | DSAreaPublishEventNames | DSKeyStorePublishEventNames | DSPointerStorePublishEventNames | DSInteractionPublishEventNames | DSSelectablePublishEventNames | DSSelectedPublishEventNames; | ||
type DSCallbackName<E extends DSInputElement> = DSPublicPublishEventNames<E> | DSInternalEventName; | ||
type DSBoundingRectBase = { | ||
@@ -512,3 +510,3 @@ top: number; | ||
*/ | ||
unsubscribe: <K extends DSSettingsPublishEventNames | DSKeyStorePublishEventNames | DSPointerStorePublishEventNames | DSSelectedPublishEventNames | keyof DSAreaPublish<E> | keyof DSInteractionPublish | keyof DSSelectablePublish<E> | keyof DSPublicPublish<E>>(eventName: K, callback?: DSCallback<DSPublishMappings<E>[K]> | undefined, id?: number) => void; | ||
unsubscribe: <K extends DSSettingsPublishEventNames | DSKeyStorePublishEventNames | DSPointerStorePublishEventNames | DSSelectedPublishEventNames | keyof DSAreaPublish<E> | keyof DSInteractionPublish | keyof DSSelectablePublish<E> | keyof DSPublicPublish<E>>(eventName: K, callback?: DSCallback<DSPublishMappings<E>[K]> | null | undefined, id?: number) => void; | ||
/** | ||
@@ -743,3 +741,3 @@ * Publishes an event to all subscribers | ||
declare class DragSelect<E extends DSInputElement> { | ||
declare class DragSelect<E extends DSInputElement = DSInputElement> { | ||
/** used to skip all current Selection and dragNdrop functionality */ | ||
@@ -771,3 +769,3 @@ continue: boolean; | ||
/** Publish events */ | ||
publish: <T extends DSCallbackName<E_1>>(eventName: T | T[], data: DSPublishMappings<E>[T]) => void; | ||
publish: <T extends keyof DSPublicPublish<E> | DSInternalEventName>(eventName: T | T[], data: DSPublishMappings<E>[T]) => void; | ||
/** Initializes the functionality. Automatically triggered when created. Also, reset the functionality after a teardown */ | ||
@@ -882,2 +880,2 @@ start: () => void; | ||
export { type DSArea, type DSBoundingRect, type DSBoundingRectBase, type DSCallbackName, type DSCallbackObject, type DSDragKeys, type DSEdges, type DSEdgesObj, type DSElementPos, type DSEvent, type DSInputDropZone, type DSInputElement, type DSInternalEventName, type DSMultiSelectKeys, type DSPubCallback, type DSSelectorArea, type Settings, type Vect2, DragSelect as default }; | ||
export { type DSArea, type DSBoundingRect, type DSBoundingRectBase, type DSCallbackObject, type DSDragKeys, type DSEdges, type DSEdgesObj, type DSElementPos, type DSEvent, type DSInputDropZone, type DSInputElement, type DSInternalEventName, type DSMultiSelectKeys, type DSPubCallback, type DSSelectorArea, type Settings, type Vect2, DragSelect as default }; |
{ | ||
"name": "dragselect", | ||
"version": "3.0.4", | ||
"version": "3.0.5", | ||
"description": "Easy JavaScript library for selecting and moving elements. With no dependencies. Drag-Select & Drag-And-Drop.", | ||
@@ -5,0 +5,0 @@ "main": "./dist/DragSelect.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
403964
5963