lib/es6_global/src/core/utils/engine/job/init/initTransformGizmosJob/bindTransformGizmoEventUtils.js
Function _bindDragStartEvent
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Confirmed
Confirmed
function _bindDragStartEvent(engineState) {
return ManageEventEngineService$WonderEditor.onCustomGlobalEvent(SceneViewEventEditorService$WonderEditor.getPointDragStartEventName(/* () */0), (function ($$event, engineState) {
var match = MouseEventService$WonderEditor.isLeftMouseButton($$event);
if (match) {
var editorState = StateEditorService$WonderEditor.getState(/* () */0);
Function _bindDragOverEvent
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Confirmed
Confirmed
function _bindDragOverEvent(engineState) {
return ManageEventEngineService$WonderEditor.onCustomGlobalEvent(SceneViewEventEditorService$WonderEditor.getPointDragOverEventName(/* () */0), (function ($$event, engineState) {
var match = MouseEventService$WonderEditor.isLeftMouseButton($$event);
if (match) {
var editorState = StateEditorService$WonderEditor.getState(/* () */0);
Function _bindDragGizmoDropEvent
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Confirmed
Confirmed
function _bindDragGizmoDropEvent(engineState) {
return ManageEventEngineService$WonderEditor.onCustomGlobalEvent(SceneViewEventEditorService$WonderEditor.getPointDragDropEventName(/* () */0), (function ($$event, engineState) {
var match = MouseEventService$WonderEditor.isLeftMouseButton($$event);
if (match) {
var editorState = StateEditorService$WonderEditor.getState(/* () */0);
Avoid too many return
statements within this function. Confirmed
Confirmed
return /* tuple */[
engineState,
$$event
];