Wonder-Technology/Wonder-Editor

View on GitHub
lib/es6_global/src/core/utils/engine/job/init/initTransformGizmosJob/bindTransformGizmoEventUtils.js

Summary

Maintainability
B
4 hrs
Test Coverage

Function _bindDragStartEvent has 39 lines of code (exceeds 25 allowed). Consider refactoring.
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

    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

      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

                          return /* tuple */[
                                  engineState,
                                  $$event
                                ];

          There are no issues that match your filters.

          Category
          Status