File tree Expand file tree Collapse file tree 3 files changed +1
-27
lines changed Expand file tree Collapse file tree 3 files changed +1
-27
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ Notable changes to this project are documented in this file. The format is based
5
5
## [ Unreleased]
6
6
7
7
Breaking changes:
8
+ - Move ` getBoundingClientRect ` to ` purescript-web-dom ` (#73 by @JordanMartinez )
8
9
9
10
New features:
10
11
Original file line number Diff line number Diff line change @@ -185,20 +185,6 @@ export function blur(elt) {
185
185
186
186
// - CSSOM ---------------------------------------------------------------------
187
187
188
- export function getBoundingClientRect ( el ) {
189
- return function ( ) {
190
- var rect = el . getBoundingClientRect ( ) ;
191
- return {
192
- top : rect . top ,
193
- right : rect . right ,
194
- bottom : rect . bottom ,
195
- left : rect . left ,
196
- width : rect . width ,
197
- height : rect . height
198
- } ;
199
- } ;
200
- }
201
-
202
188
export function _offsetParent ( el ) {
203
189
return function ( ) {
204
190
return el . offsetParent ;
Original file line number Diff line number Diff line change @@ -35,8 +35,6 @@ module Web.HTML.HTMLElement
35
35
, click
36
36
, focus
37
37
, blur
38
- , getBoundingClientRect
39
- , DOMRect
40
38
, offsetParent
41
39
, offsetTop
42
40
, offsetLeft
@@ -133,17 +131,6 @@ foreign import click :: HTMLElement -> Effect Unit
133
131
foreign import focus :: HTMLElement -> Effect Unit
134
132
foreign import blur :: HTMLElement -> Effect Unit
135
133
136
- type DOMRect =
137
- { top :: Number
138
- , right :: Number
139
- , bottom :: Number
140
- , left :: Number
141
- , width :: Number
142
- , height :: Number
143
- }
144
-
145
- foreign import getBoundingClientRect :: HTMLElement -> Effect DOMRect
146
-
147
134
foreign import _offsetParent :: HTMLElement -> Effect (Nullable Element )
148
135
149
136
offsetParent :: HTMLElement -> Effect (Maybe Element )
You can’t perform that action at this time.
0 commit comments