77// Former goog.module ID: Blockly.utils.style
88
99import { Coordinate } from './coordinate.js' ;
10- import * as deprecation from './deprecation.js' ;
1110import { Rect } from './rect.js' ;
1211import { Size } from './size.js' ;
1312
@@ -59,7 +58,6 @@ function getSizeInternal(element: Element): Size {
5958 * @returns Object with width/height properties.
6059 */
6160function getSizeWithDisplay ( element : Element ) : Size {
62- deprecation . warn ( `Blockly.utils.style.getSizeWithDisplay()` , 'v11.2' , 'v13' ) ;
6361 const offsetWidth = ( element as HTMLElement ) . offsetWidth ;
6462 const offsetHeight = ( element as HTMLElement ) . offsetHeight ;
6563 return new Size ( offsetWidth , offsetHeight ) ;
@@ -132,7 +130,6 @@ export function getViewportPageOffset(): Coordinate {
132130 * @returns The computed border widths.
133131 */
134132export function getBorderBox ( element : Element ) : Rect {
135- deprecation . warn ( `Blockly.utils.style.getBorderBox()` , 'v11.2' , 'v13' ) ;
136133 const left = parseFloat ( getComputedStyle ( element , 'borderLeftWidth' ) ) ;
137134 const right = parseFloat ( getComputedStyle ( element , 'borderRightWidth' ) ) ;
138135 const top = parseFloat ( getComputedStyle ( element , 'borderTopWidth' ) ) ;
@@ -159,12 +156,6 @@ export function scrollIntoContainerView(
159156 container : Element ,
160157 opt_center ?: boolean ,
161158) {
162- deprecation . warn (
163- `Blockly.utils.style.scrollIntoContainerView()` ,
164- 'v11.2' ,
165- 'v13' ,
166- 'the native Element.scrollIntoView()' ,
167- ) ;
168159 const offset = getContainerOffsetToScrollInto ( element , container , opt_center ) ;
169160 container . scrollLeft = offset . x ;
170161 container . scrollTop = offset . y ;
@@ -189,11 +180,6 @@ export function getContainerOffsetToScrollInto(
189180 container : Element ,
190181 opt_center ?: boolean ,
191182) : Coordinate {
192- deprecation . warn (
193- `Blockly.utils.style.getContainerOffsetToScrollInto()` ,
194- 'v11.2' ,
195- 'v13' ,
196- ) ;
197183 // Absolute position of the element's border's top left corner.
198184 const elementPos = getPageOffset ( element ) ;
199185 // Absolute position of the container's border's top left corner.
0 commit comments