Skip to content

Commit 84a1ea6

Browse files
committed
main - 69eedd7 fix(cdk/drag-drop): incorrect type DragConstrainPosition (#30510)
1 parent d9236ed commit 84a1ea6

File tree

2 files changed

+24
-24
lines changed

2 files changed

+24
-24
lines changed

docs-content/api-docs/cdk-drag-drop.html

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -634,7 +634,7 @@ <h4 id="CdkDrag" class="docs-header-link docs-api-h4 docs-api-class-name">
634634
<tr class="docs-api-properties-row">
635635
<td class="docs-api-properties-name-cell"><div class="docs-api-input-marker">@Input(<span class="docs-api-input-alias">&#39;cdkDragConstrainPosition&#39;</span>)
636636
</div><p class="docs-api-property-name">
637-
<code>constrainPosition: (userPointerPosition: Point, dragRef: DragRef, dimensions: DOMRect, pickupPositionInElement: Point) =&gt; Point</code>
637+
<code>constrainPosition: DragConstrainPosition</code>
638638
</p>
639639
</td>
640640
<td class="docs-api-property-description"><p>Function that can be used to customize the logic of how the position of the drag item
@@ -1278,7 +1278,7 @@ <h4 id="DragRef" class="docs-header-link docs-api-h4 docs-api-class-name">
12781278

12791279
<tr class="docs-api-properties-row">
12801280
<td class="docs-api-properties-name-cell"><p class="docs-api-property-name">
1281-
<code>constrainPosition: (userPointerPosition: Point, dragRef: DragRef, dimensions: DOMRect, pickupPositionInElement: Point) =&gt; Point</code>
1281+
<code>constrainPosition: DragConstrainPosition</code>
12821282
</p>
12831283
</td>
12841284
<td class="docs-api-property-description"><p>Function that can be used to customize the logic of how the position of the drag item
@@ -4348,6 +4348,20 @@ <h4 id="PreviewContainer" class="docs-header-link docs-api-h4 docs-api-type-alia
43484348

43494349

43504350

4351+
<h4 id="DragConstrainPosition" class="docs-header-link docs-api-h4 docs-api-type-alias-name">
4352+
<span header-link="DragConstrainPosition"></span>
4353+
<code>DragConstrainPosition</code>
4354+
</h4><p class="docs-api-type-alias-description"><p>Function that can be used to constrain the position of a dragged element.</p>
4355+
</p><div class="docs-markdown">
4356+
<pre class="docs-markdown-pre">
4357+
<code class="docs-markdown-code"><span class="hljs-keyword">type</span> DragConstrainPosition = <span class="hljs-function">(<span class="hljs-params">userPointerPosition: Point, dragRef: DragRef, dimensions: DOMRect, pickupPositionInElement: Point</span>) =&gt;</span> Point;</code>
4358+
</pre>
4359+
</div>
4360+
4361+
4362+
4363+
4364+
43514365
<h4 id="DragStartDelay" class="docs-header-link docs-api-h4 docs-api-type-alias-name">
43524366
<span header-link="DragStartDelay"></span>
43534367
<code>DragStartDelay</code>
@@ -4379,20 +4393,6 @@ <h4 id="DragAxis" class="docs-header-link docs-api-h4 docs-api-type-alias-name">
43794393

43804394

43814395

4382-
<h4 id="DragConstrainPosition" class="docs-header-link docs-api-h4 docs-api-type-alias-name">
4383-
<span header-link="DragConstrainPosition"></span>
4384-
<code>DragConstrainPosition</code>
4385-
</h4><p class="docs-api-type-alias-description"><p>Function that can be used to constrain the position of a dragged element.</p>
4386-
</p><div class="docs-markdown">
4387-
<pre class="docs-markdown-pre">
4388-
<code class="docs-markdown-code"><span class="hljs-keyword">type</span> DragConstrainPosition = <span class="hljs-function">(<span class="hljs-params">point: Point, dragRef: DragRef</span>) =&gt;</span> Point;</code>
4389-
</pre>
4390-
</div>
4391-
4392-
4393-
4394-
4395-
43964396
<h4 id="DropListOrientation" class="docs-header-link docs-api-h4 docs-api-type-alias-name">
43974397
<span header-link="DropListOrientation"></span>
43984398
<code>DropListOrientation</code>

package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@angular/components-examples",
3-
"version": "20.0.0-next.0+sha-c0a8060",
3+
"version": "20.0.0-next.0+sha-69eedd7",
44
"description": "Angular Components Examples",
55
"private": true,
66
"repository": {
@@ -259,15 +259,15 @@
259259
},
260260
"homepage": "https://github.com/angular/components#readme",
261261
"peerDependencies": {
262-
"@angular/cdk": "20.0.0-next.0+sha-c0a8060",
263-
"@angular/cdk-experimental": "20.0.0-next.0+sha-c0a8060",
262+
"@angular/cdk": "20.0.0-next.0+sha-69eedd7",
263+
"@angular/cdk-experimental": "20.0.0-next.0+sha-69eedd7",
264264
"@angular/core": "^20.0.0-0 || ^20.1.0-0 || ^20.2.0-0 || ^20.3.0-0 || ^21.0.0-0",
265265
"@angular/common": "^20.0.0-0 || ^20.1.0-0 || ^20.2.0-0 || ^20.3.0-0 || ^21.0.0-0",
266-
"@angular/material": "20.0.0-next.0+sha-c0a8060",
267-
"@angular/material-experimental": "20.0.0-next.0+sha-c0a8060",
268-
"@angular/material-moment-adapter": "20.0.0-next.0+sha-c0a8060",
269-
"@angular/material-luxon-adapter": "20.0.0-next.0+sha-c0a8060",
270-
"@angular/material-date-fns-adapter": "20.0.0-next.0+sha-c0a8060"
266+
"@angular/material": "20.0.0-next.0+sha-69eedd7",
267+
"@angular/material-experimental": "20.0.0-next.0+sha-69eedd7",
268+
"@angular/material-moment-adapter": "20.0.0-next.0+sha-69eedd7",
269+
"@angular/material-luxon-adapter": "20.0.0-next.0+sha-69eedd7",
270+
"@angular/material-date-fns-adapter": "20.0.0-next.0+sha-69eedd7"
271271
},
272272
"dependencies": {
273273
"tslib": "^2.3.0"

0 commit comments

Comments
 (0)