mirror of
https://github.com/google/blockly.git
synced 2026-01-08 09:30:06 +01:00
chore: Move functions from utils (#5706)
* chore: move functions from utils to more specific files * chore: use new names for utils functions * chore: run clang-format * chore: add deprecation warnings back to utils.js
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
goog.module('Blockly.BubbleDragger');
|
||||
|
||||
const eventUtils = goog.require('Blockly.Events.utils');
|
||||
const utils = goog.require('Blockly.utils');
|
||||
const svgMath = goog.require('Blockly.utils.svgMath');
|
||||
/* eslint-disable-next-line no-unused-vars */
|
||||
const {BlockDragSurfaceSvg} = goog.requireType('Blockly.BlockDragSurfaceSvg');
|
||||
const {ComponentManager} = goog.require('Blockly.ComponentManager');
|
||||
@@ -92,7 +92,7 @@ const BubbleDragger = function(bubble, workspace) {
|
||||
* @private
|
||||
*/
|
||||
this.dragSurface_ =
|
||||
utils.is3dSupported() && !!workspace.getBlockDragSurface() ?
|
||||
svgMath.is3dSupported() && !!workspace.getBlockDragSurface() ?
|
||||
workspace.getBlockDragSurface() :
|
||||
null;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user