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
55## [ Unreleased]
66
77Breaking changes:
8+ - Move ` getBoundingClientRect ` to ` purescript-web-dom ` (#73 by @JordanMartinez )
89
910New features:
1011
Original file line number Diff line number Diff line change @@ -185,20 +185,6 @@ export function blur(elt) {
185185
186186// - CSSOM ---------------------------------------------------------------------
187187
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-
202188export function _offsetParent ( el ) {
203189 return function ( ) {
204190 return el . offsetParent ;
Original file line number Diff line number Diff line change @@ -35,8 +35,6 @@ module Web.HTML.HTMLElement
3535 , click
3636 , focus
3737 , blur
38- , getBoundingClientRect
39- , DOMRect
4038 , offsetParent
4139 , offsetTop
4240 , offsetLeft
@@ -133,17 +131,6 @@ foreign import click :: HTMLElement -> Effect Unit
133131foreign import focus :: HTMLElement -> Effect Unit
134132foreign import blur :: HTMLElement -> Effect Unit
135133
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-
147134foreign import _offsetParent :: HTMLElement -> Effect (Nullable Element )
148135
149136offsetParent :: HTMLElement -> Effect (Maybe Element )
You can’t perform that action at this time.
0 commit comments