Skip to content

Commit

Permalink
chore: v1.10.24
Browse files Browse the repository at this point in the history
# Conflicts:
#	packages/@interactjs/arrange/package.json
#	packages/@interactjs/clone/package.json
#	packages/@interactjs/feedback/package.json
#	packages/@interactjs/iframes/package.json
#	packages/@interactjs/multi-target/package.json
#	packages/@interactjs/react/package.json
#	packages/@interactjs/rebound/package.json
#	packages/@interactjs/symbol-tree/package.json
#	packages/@interactjs/vue/package.json
  • Loading branch information
taye authored and interactjs-ci committed Dec 4, 2023
1 parent 8e743a3 commit 5ca9fe7
Show file tree
Hide file tree
Showing 18 changed files with 121 additions and 114 deletions.
57 changes: 32 additions & 25 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## v1.10.24

- chore: generate api docs

## v1.10.23

- fix: transform nullish coalescing; fix symbol-tree build
Expand Down Expand Up @@ -522,7 +526,7 @@ Full list of [changes on Github](https://github.com/taye/interact.js/compare/v1.
### resize.preserveAspectRatio

```javascript
interact(target).resizable({ preserveAspectRatio: true });
interact(target).resizable({ preserveAspectRatio: true })
```

See [PR #260](https://github.com/taye/interact.js/pull/260).
Expand Down Expand Up @@ -665,10 +669,10 @@ Multiple interactions have been enabled by default. For example:

```javascript
interact('.drag-element').draggable({
enabled: true,
// max : Infinity, // default
// maxPerElement: 1, // default
});
enabled: true,
// max : Infinity, // default
// maxPerElement: 1, // default
})
```

will allow multiple `.drag-element` to be dragged simultaneously without having
Expand All @@ -693,17 +697,17 @@ dimensions of the given grid.
```javascript
interact(target).draggable({
snap: {
targets: [ {x: 300, y: 300} ],
targets: [{ x: 300, y: 300 }],
relativePoints: [
{ x: 0, y: 0 }, // snap relative to the top left of the element
{ x: 1, y: 1 }, // and also to the bottom right
{ x: 0, y: 0 }, // snap relative to the top left of the element
{ x: 1, y: 1 }, // and also to the bottom right
],

// offset the snap target coordinates
// can be an object with x/y or 'startCoords'
offset: { x: 50, y: 50 }
}
});
offset: { x: 50, y: 50 },
},
})
```

#### snap function interaction arg
Expand All @@ -713,11 +717,13 @@ The current `Interaction` is now passed as the third parameter to snap functions
```js
interact(target).draggable({
snap: {
targets: [function (x, y, interaction) {
if (!interaction.dropTarget) {
return { x: 0, y: 0 }
}
}],
targets: [
function (x, y, interaction) {
if (!interaction.dropTarget) {
return { x: 0, y: 0 }
}
},
],
},
})
```
Expand Down Expand Up @@ -753,18 +759,18 @@ Methods for these settings on the `interact` object (`interact.snap()`,
### Space-separated string and array event list and eventType:listener object

```javascript
function logEventType (event) {
console.log(event.type, event.target);
function logEventType(event) {
console.log(event.type, event.target)
}

interact(target).on('down tap dragstart gestureend', logEventType);
interact(target).on('down tap dragstart gestureend', logEventType)

interact(target).on(['move', 'resizestart'], logEventType);
interact(target).on(['move', 'resizestart'], logEventType)

interact(target).on({
dragmove: logEvent,
keydown : logEvent
});
keydown: logEvent,
})
```

### Interactable actionChecker
Expand All @@ -774,13 +780,14 @@ an object. The object should have a `name` and can also have an `axis`
property. For example, to resize horizontally:

```javascript
interact(target).resizeable(true)
interact(target)
.resizeable(true)
.actionChecker(function (pointer, defaultAction, interactable, element) {
return {
name: 'resize',
axis: 'x',
};
});
}
})
```

### Plain drop event objects
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@interactjs/_dev",
"version": "1.10.23",
"version": "1.10.24",
"private": true,
"directories": {
"bin": "./bin"
Expand Down
8 changes: 4 additions & 4 deletions packages/@interactjs/actions/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@interactjs/actions",
"version": "1.10.23",
"version": "1.10.24",
"main": "index",
"module": "index",
"type": "module",
Expand All @@ -10,11 +10,11 @@
"directory": "packages/@interactjs/actions"
},
"peerDependencies": {
"@interactjs/core": "1.10.23",
"@interactjs/utils": "1.10.23"
"@interactjs/core": "1.10.24",
"@interactjs/utils": "1.10.24"
},
"optionalDependencies": {
"@interactjs/interact": "1.10.23"
"@interactjs/interact": "1.10.24"
},
"publishConfig": {
"access": "public"
Expand Down
6 changes: 3 additions & 3 deletions packages/@interactjs/auto-scroll/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@interactjs/auto-scroll",
"version": "1.10.23",
"version": "1.10.24",
"main": "index",
"module": "index",
"type": "module",
Expand All @@ -10,10 +10,10 @@
"directory": "packages/@interactjs/auto-scroll"
},
"peerDependencies": {
"@interactjs/utils": "1.10.23"
"@interactjs/utils": "1.10.24"
},
"optionalDependencies": {
"@interactjs/interact": "1.10.23"
"@interactjs/interact": "1.10.24"
},
"publishConfig": {
"access": "public"
Expand Down
8 changes: 4 additions & 4 deletions packages/@interactjs/auto-start/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@interactjs/auto-start",
"version": "1.10.23",
"version": "1.10.24",
"main": "index",
"module": "index",
"type": "module",
Expand All @@ -10,11 +10,11 @@
"directory": "packages/@interactjs/auto-start"
},
"peerDependencies": {
"@interactjs/core": "1.10.23",
"@interactjs/utils": "1.10.23"
"@interactjs/core": "1.10.24",
"@interactjs/utils": "1.10.24"
},
"optionalDependencies": {
"@interactjs/interact": "1.10.23"
"@interactjs/interact": "1.10.24"
},
"publishConfig": {
"access": "public"
Expand Down
4 changes: 2 additions & 2 deletions packages/@interactjs/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@interactjs/core",
"version": "1.10.23",
"version": "1.10.24",
"main": "index",
"module": "index",
"type": "module",
Expand All @@ -10,7 +10,7 @@
"directory": "packages/@interactjs/core"
},
"peerDependencies": {
"@interactjs/utils": "1.10.23"
"@interactjs/utils": "1.10.24"
},
"publishConfig": {
"access": "public"
Expand Down
8 changes: 4 additions & 4 deletions packages/@interactjs/dev-tools/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@interactjs/dev-tools",
"version": "1.10.23",
"version": "1.10.24",
"main": "index",
"module": "index",
"type": "module",
Expand All @@ -10,11 +10,11 @@
"directory": "packages/@interactjs/dev-tools"
},
"peerDependencies": {
"@interactjs/modifiers": "1.10.23",
"@interactjs/utils": "1.10.23"
"@interactjs/modifiers": "1.10.24",
"@interactjs/utils": "1.10.24"
},
"optionalDependencies": {
"@interactjs/interact": "1.10.23"
"@interactjs/interact": "1.10.24"
},
"devDependencies": {
"vue": "next"
Expand Down
12 changes: 6 additions & 6 deletions packages/@interactjs/inertia/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@interactjs/inertia",
"version": "1.10.23",
"version": "1.10.24",
"main": "index",
"module": "index",
"type": "module",
Expand All @@ -10,15 +10,15 @@
"directory": "packages/@interactjs/inertia"
},
"dependencies": {
"@interactjs/offset": "1.10.23"
"@interactjs/offset": "1.10.24"
},
"peerDependencies": {
"@interactjs/core": "1.10.23",
"@interactjs/modifiers": "1.10.23",
"@interactjs/utils": "1.10.23"
"@interactjs/core": "1.10.24",
"@interactjs/modifiers": "1.10.24",
"@interactjs/utils": "1.10.24"
},
"optionalDependencies": {
"@interactjs/interact": "1.10.23"
"@interactjs/interact": "1.10.24"
},
"publishConfig": {
"access": "public"
Expand Down
6 changes: 3 additions & 3 deletions packages/@interactjs/interact/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@interactjs/interact",
"version": "1.10.23",
"version": "1.10.24",
"main": "index",
"module": "index",
"type": "module",
Expand All @@ -10,8 +10,8 @@
"directory": "packages/@interactjs/interact"
},
"dependencies": {
"@interactjs/core": "1.10.23",
"@interactjs/utils": "1.10.23"
"@interactjs/core": "1.10.24",
"@interactjs/utils": "1.10.24"
},
"publishConfig": {
"access": "public"
Expand Down
42 changes: 21 additions & 21 deletions packages/@interactjs/interactjs/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@interactjs/interactjs",
"version": "1.10.23",
"version": "1.10.24",
"main": "index",
"module": "index",
"type": "module",
Expand All @@ -9,26 +9,26 @@
"url": "https://github.com/taye/interact.js.git"
},
"dependencies": {
"@interactjs/actions": "1.10.23",
"@interactjs/arrange": "1.10.23",
"@interactjs/auto-scroll": "1.10.23",
"@interactjs/auto-start": "1.10.23",
"@interactjs/clone": "1.10.23",
"@interactjs/core": "1.10.23",
"@interactjs/dev-tools": "1.10.23",
"@interactjs/feedback": "1.10.23",
"@interactjs/inertia": "1.10.23",
"@interactjs/interact": "1.10.23",
"@interactjs/modifiers": "1.10.23",
"@interactjs/multi-target": "1.10.23",
"@interactjs/offset": "1.10.23",
"@interactjs/pointer-events": "1.10.23",
"@interactjs/react": "1.10.23",
"@interactjs/rebound": "1.10.23",
"@interactjs/symbol-tree": "1.10.23",
"@interactjs/reflow": "1.10.23",
"@interactjs/utils": "1.10.23",
"@interactjs/vue": "1.10.23"
"@interactjs/actions": "1.10.24",
"@interactjs/arrange": "1.10.24",
"@interactjs/auto-scroll": "1.10.24",
"@interactjs/auto-start": "1.10.24",
"@interactjs/clone": "1.10.24",
"@interactjs/core": "1.10.24",
"@interactjs/dev-tools": "1.10.24",
"@interactjs/feedback": "1.10.24",
"@interactjs/inertia": "1.10.24",
"@interactjs/interact": "1.10.24",
"@interactjs/modifiers": "1.10.24",
"@interactjs/multi-target": "1.10.24",
"@interactjs/offset": "1.10.24",
"@interactjs/pointer-events": "1.10.24",
"@interactjs/react": "1.10.24",
"@interactjs/rebound": "1.10.24",
"@interactjs/symbol-tree": "1.10.24",
"@interactjs/reflow": "1.10.24",
"@interactjs/utils": "1.10.24",
"@interactjs/vue": "1.10.24"
},
"publishConfig": {
"access": "public"
Expand Down
12 changes: 6 additions & 6 deletions packages/@interactjs/modifiers/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@interactjs/modifiers",
"version": "1.10.23",
"version": "1.10.24",
"main": "index",
"module": "index",
"type": "module",
Expand All @@ -10,15 +10,15 @@
"directory": "packages/@interactjs/modifiers"
},
"dependencies": {
"@interactjs/snappers": "1.10.23"
"@interactjs/snappers": "1.10.24"
},
"peerDependencies": {
"@interactjs/core": "1.10.23",
"@interactjs/rebound": "1.10.23",
"@interactjs/utils": "1.10.23"
"@interactjs/core": "1.10.24",
"@interactjs/rebound": "1.10.24",
"@interactjs/utils": "1.10.24"
},
"optionalDependencies": {
"@interactjs/interact": "1.10.23"
"@interactjs/interact": "1.10.24"
},
"publishConfig": {
"access": "public"
Expand Down
8 changes: 4 additions & 4 deletions packages/@interactjs/offset/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@interactjs/offset",
"version": "1.10.23",
"version": "1.10.24",
"main": "index",
"module": "index",
"type": "module",
Expand All @@ -10,11 +10,11 @@
"directory": "packages/@interactjs/offset"
},
"peerDependencies": {
"@interactjs/core": "1.10.23",
"@interactjs/utils": "1.10.23"
"@interactjs/core": "1.10.24",
"@interactjs/utils": "1.10.24"
},
"optionalDependencies": {
"@interactjs/interact": "1.10.23"
"@interactjs/interact": "1.10.24"
},
"publishConfig": {
"access": "public"
Expand Down
Loading

0 comments on commit 5ca9fe7

Please sign in to comment.