Browse Source

Up name ComponentDragGuideMatched

carlos/adjust-component-drag-types
Artur Arseniev 10 months ago
parent
commit
4bcb2f71c7
  1. 10
      packages/core/src/commands/view/ComponentDrag.ts

10
packages/core/src/commands/view/ComponentDrag.ts

@ -545,7 +545,7 @@ export default {
return null; return null;
} }
}) })
.filter(Boolean) as ComponentGuideMatched[]; .filter(Boolean) as ComponentDragGuideMatched[];
}, },
toggleDrag(enable) { toggleDrag(enable) {
@ -603,8 +603,8 @@ interface ComponentDragProps {
onEnd: DraggerOptions['onEnd']; onEnd: DraggerOptions['onEnd'];
hideGuidesInfo: () => void; hideGuidesInfo: () => void;
renderGuideInfo: (guides?: ComponentDragGuide[]) => void; renderGuideInfo: (guides?: ComponentDragGuide[]) => void;
renderSingleGuideInfo: (guideMatched: ComponentGuideMatched) => void; renderSingleGuideInfo: (guideMatched: ComponentDragGuideMatched) => void;
getGuidesMatched: (guides?: ComponentDragGuide[]) => ComponentGuideMatched[]; getGuidesMatched: (guides?: ComponentDragGuide[]) => ComponentDragGuideMatched[];
toggleDrag: (enable?: boolean) => void; toggleDrag: (enable?: boolean) => void;
} }
@ -653,7 +653,7 @@ export interface ComponentDragEventProps {
/** /**
* The guides that are being matched. * The guides that are being matched.
*/ */
guidesMatched: ComponentGuideMatched[]; guidesMatched: ComponentDragGuideMatched[];
} }
/** /**
@ -717,7 +717,7 @@ interface ComponentDragGuide {
/** /**
* Represents a matched guide during component dragging. * Represents a matched guide during component dragging.
*/ */
interface ComponentGuideMatched { interface ComponentDragGuideMatched {
/** /**
* The static guides used for matching. * The static guides used for matching.
*/ */

Loading…
Cancel
Save