Skip to content

bug(drag-drop): Point interface is not exported in the public API #19001

@Achilles1515

Description

@Achilles1515

Issue

The Point interface:

/** Point on the page or within an element. */
export interface Point {
  x: number;
  y: number;
}

is defined and exported inside drag-ref.ts. This interface is used in the public drag-drop API, e.g.

@Input('cdkDragConstrainPosition')
constrainPosition: (point: Point, dragRef: DragRef) => Point

But Point is missing from the public-api.ts exports.

export {DragRef, DragRefConfig} from './drag-ref';

...should include Point as well.

export {DragRef, DragRefConfig, Point} from './drag-ref';

Environment

  • Angular:
  • CDK/Material: 9.2
  • Browser(s):
  • Operating System (e.g. Windows, macOS, Ubuntu):

Metadata

Metadata

Assignees

Labels

P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgent

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions