Skip to content

Commit

Permalink
chore: update dragscroll module version
Browse files Browse the repository at this point in the history
  • Loading branch information
daybrush committed Jul 25, 2022
1 parent 24482a6 commit e9b5864
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 11 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@
"@storybook/addons": "^6.4.22",
"@egjs/agent": "^2.2.1",
"@egjs/children-differ": "^1.0.1",
"@scena/dragscroll": "^1.1.1",
"@scena/dragscroll": "^1.2.0",
"@scena/matrix": "^1.1.1",
"css-to-mat": "^1.0.3",
"framework-utils": "^1.1.0",
Expand All @@ -110,7 +110,7 @@
"@storybook/addons": "^6.4.22",
"@egjs/agent": "^2.2.1",
"@egjs/children-differ": "^1.0.1",
"@scena/dragscroll": "^1.1.1",
"@scena/dragscroll": "^1.2.0",
"@scena/matrix": "^1.1.1",
"css-to-mat": "^1.0.3",
"framework-utils": "^1.1.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/react-compat-moveable/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
"@daybrush/utils": "^1.7.1",
"@egjs/agent": "^2.2.1",
"@egjs/children-differ": "^1.0.1",
"@scena/dragscroll": "^1.1.1",
"@scena/dragscroll": "^1.2.0",
"@scena/matrix": "^1.1.1",
"css-to-mat": "^1.0.3",
"framework-utils": "^1.1.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/react-moveable/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@
"@daybrush/utils": "^1.7.1",
"@egjs/agent": "^2.2.1",
"@egjs/children-differ": "^1.0.1",
"@scena/dragscroll": "^1.1.1",
"@scena/dragscroll": "^1.2.0",
"@scena/event-emitter": "^1.0.5",
"@scena/matrix": "^1.1.1",
"@scena/react-guides": "^0.17.1",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,14 +134,17 @@ export function renderAroundControls(
export function renderLine(
React: Renderer,
direction: string,
pos1: number[], pos2: number[],
pos1: number[],
pos2: number[],
zoom: number,
key: number | string, ...classNames: string[],
key: number | string,
...classNames: string[]
): any {
const rad = getRad(pos1, pos2);
const rotation = direction ? (throttle(rad / Math.PI * 180, 15)) % 180 : -1;

return <div key={`line${key}`} className={prefix("line", "direction", direction ? "edge" : "", direction, ...classNames)}
return <div key={`line${key}`}
className={prefix("line", "direction", direction ? "edge" : "", direction, ...classNames)}
data-rotation={rotation}
data-line-index={key}
data-direction={direction} style={getLineStyle(pos1, pos2, zoom, rad)}></div>;
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3252,10 +3252,10 @@
estree-walker "^1.0.1"
picomatch "^2.2.2"

"@scena/dragscroll@^1.1.1":
version "1.1.1"
resolved "https://registry.yarnpkg.com/@scena/dragscroll/-/dragscroll-1.1.1.tgz#43e57bcc0133d51e9927ba5dc0c41bbbb78bbc21"
integrity sha512-RnoGpQC0aJ5Z+glLzQAAAf1jmRac1yRuil4zi4HQ8GhzoxTqlgplAOGkFF/IRnUMK1uc5S6R/MEEybfyDGlEcQ==
"@scena/dragscroll@^1.1.1", "@scena/dragscroll@^1.2.0":
version "1.2.0"
resolved "https://registry.yarnpkg.com/@scena/dragscroll/-/dragscroll-1.2.0.tgz#dd00cdc463423951e556de157610880e0ec936c5"
integrity sha512-npjR1nh5on74e6dh3mBviVAS3Kx9ZkUFkJdVVPfcrEGO1O9c3IB154d//cLXwiHwV7xMzsADmEMQZrrWwVlb8Q==
dependencies:
"@daybrush/utils" "1.6.0"
"@scena/event-emitter" "^1.0.2"
Expand Down

0 comments on commit e9b5864

Please sign in to comment.