nodeskini 1.0.1 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/blocklySkini/archive/blocklyControleur.js +87 -0
- package/blocklySkini/archive/blocklySkini.js +84 -0
- package/blocklySkini/archive/blocklyhop.js +75 -0
- package/blocklySkini/archive/clientControleurBlocly.js +170 -0
- package/blocklySkini/archive/index.html +76 -0
- package/blocklySkini/archive/testHHsuspend.txt +89 -0
- package/blocklySkini/archive/testHHtrap.txt +262 -0
- package/blocklySkini/archive/testOrchestration.txt +177 -0
- package/blocklySkini/archive/testOrchestration.xml +447 -0
- package/blocklySkini/archive/testOrchestration2.xml +456 -0
- package/blocklySkini/blockly/README.md +77 -0
- package/blocklySkini/blockly/blockly.d.ts +21480 -0
- package/blocklySkini/blockly/blockly.js +25 -0
- package/blocklySkini/blockly/blockly.min.js +2188 -0
- package/blocklySkini/blockly/blockly_compressed.js +1455 -0
- package/blocklySkini/blockly/blockly_compressed.js.map +1 -0
- package/blocklySkini/blockly/blocks/colour.js +122 -0
- package/blocklySkini/blockly/blocks/lists.js +862 -0
- package/blocklySkini/blockly/blocks/logic.js +635 -0
- package/blocklySkini/blockly/blocks/loops.js +357 -0
- package/blocklySkini/blockly/blocks/math.js +566 -0
- package/blocklySkini/blockly/blocks/procedures.js +1072 -0
- package/blocklySkini/blockly/blocks/text.js +923 -0
- package/blocklySkini/blockly/blocks/variables.js +163 -0
- package/blocklySkini/blockly/blocks/variables_dynamic.js +180 -0
- package/blocklySkini/blockly/blocks.d.ts +15 -0
- package/blocklySkini/blockly/blocks.js +27 -0
- package/blocklySkini/blockly/blocks_compressed.js +182 -0
- package/blocklySkini/blockly/blocks_compressed.js.map +1 -0
- package/blocklySkini/blockly/browser.js +36 -0
- package/blocklySkini/blockly/core/block.js +2010 -0
- package/blocklySkini/blockly/core/block_animations.js +203 -0
- package/blocklySkini/blockly/core/block_drag_surface.js +212 -0
- package/blocklySkini/blockly/core/block_dragger.js +378 -0
- package/blocklySkini/blockly/core/block_events.js +548 -0
- package/blocklySkini/blockly/core/block_svg.js +1763 -0
- package/blocklySkini/blockly/core/blockly.js +674 -0
- package/blocklySkini/blockly/core/blocks.js +23 -0
- package/blocklySkini/blockly/core/bubble.js +880 -0
- package/blocklySkini/blockly/core/bubble_dragger.js +274 -0
- package/blocklySkini/blockly/core/comment.js +439 -0
- package/blocklySkini/blockly/core/components/component.js +554 -0
- package/blocklySkini/blockly/core/components/tree/basenode.js +895 -0
- package/blocklySkini/blockly/core/components/tree/treecontrol.js +332 -0
- package/blocklySkini/blockly/core/components/tree/treenode.js +172 -0
- package/blocklySkini/blockly/core/connection.js +682 -0
- package/blocklySkini/blockly/core/connection_checker.js +285 -0
- package/blocklySkini/blockly/core/connection_db.js +295 -0
- package/blocklySkini/blockly/core/constants.js +277 -0
- package/blocklySkini/blockly/core/contextmenu.js +307 -0
- package/blocklySkini/blockly/core/contextmenu_items.js +534 -0
- package/blocklySkini/blockly/core/contextmenu_registry.js +165 -0
- package/blocklySkini/blockly/core/css.js +549 -0
- package/blocklySkini/blockly/core/dropdowndiv.js +776 -0
- package/blocklySkini/blockly/core/events.js +387 -0
- package/blocklySkini/blockly/core/events_abstract.js +106 -0
- package/blocklySkini/blockly/core/extensions.js +450 -0
- package/blocklySkini/blockly/core/field.js +1162 -0
- package/blocklySkini/blockly/core/field_angle.js +562 -0
- package/blocklySkini/blockly/core/field_checkbox.js +220 -0
- package/blocklySkini/blockly/core/field_colour.js +664 -0
- package/blocklySkini/blockly/core/field_dropdown.js +760 -0
- package/blocklySkini/blockly/core/field_image.js +286 -0
- package/blocklySkini/blockly/core/field_label.js +130 -0
- package/blocklySkini/blockly/core/field_label_serializable.js +69 -0
- package/blocklySkini/blockly/core/field_multilineinput.js +299 -0
- package/blocklySkini/blockly/core/field_number.js +317 -0
- package/blocklySkini/blockly/core/field_registry.js +66 -0
- package/blocklySkini/blockly/core/field_textinput.js +616 -0
- package/blocklySkini/blockly/core/field_variable.js +463 -0
- package/blocklySkini/blockly/core/flyout_base.js +1071 -0
- package/blocklySkini/blockly/core/flyout_button.js +325 -0
- package/blocklySkini/blockly/core/flyout_dragger.js +76 -0
- package/blocklySkini/blockly/core/flyout_horizontal.js +388 -0
- package/blocklySkini/blockly/core/flyout_vertical.js +397 -0
- package/blocklySkini/blockly/core/generator.js +482 -0
- package/blocklySkini/blockly/core/gesture.js +993 -0
- package/blocklySkini/blockly/core/grid.js +222 -0
- package/blocklySkini/blockly/core/icon.js +206 -0
- package/blocklySkini/blockly/core/inject.js +487 -0
- package/blocklySkini/blockly/core/input.js +296 -0
- package/blocklySkini/blockly/core/insertion_marker_manager.js +700 -0
- package/blocklySkini/blockly/core/interfaces/i_accessibility.js +72 -0
- package/blocklySkini/blockly/core/interfaces/i_bounded_element.js +31 -0
- package/blocklySkini/blockly/core/interfaces/i_bubble.js +83 -0
- package/blocklySkini/blockly/core/interfaces/i_connection_checker.js +94 -0
- package/blocklySkini/blockly/core/interfaces/i_contextmenu.js +26 -0
- package/blocklySkini/blockly/core/interfaces/i_copyable.js +40 -0
- package/blocklySkini/blockly/core/interfaces/i_deletable.js +27 -0
- package/blocklySkini/blockly/core/interfaces/i_deletearea.js +28 -0
- package/blocklySkini/blockly/core/interfaces/i_flyout.js +178 -0
- package/blocklySkini/blockly/core/interfaces/i_movable.js +27 -0
- package/blocklySkini/blockly/core/interfaces/i_registrable.js +22 -0
- package/blocklySkini/blockly/core/interfaces/i_registrable_field.js +31 -0
- package/blocklySkini/blockly/core/interfaces/i_selectable.js +43 -0
- package/blocklySkini/blockly/core/interfaces/i_styleable.js +33 -0
- package/blocklySkini/blockly/core/interfaces/i_toolbox.js +131 -0
- package/blocklySkini/blockly/core/interfaces/i_toolbox_item.js +148 -0
- package/blocklySkini/blockly/core/keyboard_nav/action.js +26 -0
- package/blocklySkini/blockly/core/keyboard_nav/ast_node.js +684 -0
- package/blocklySkini/blockly/core/keyboard_nav/basic_cursor.js +208 -0
- package/blocklySkini/blockly/core/keyboard_nav/cursor.js +170 -0
- package/blocklySkini/blockly/core/keyboard_nav/flyout_cursor.js +106 -0
- package/blocklySkini/blockly/core/keyboard_nav/key_map.js +190 -0
- package/blocklySkini/blockly/core/keyboard_nav/marker.js +120 -0
- package/blocklySkini/blockly/core/keyboard_nav/navigation.js +1084 -0
- package/blocklySkini/blockly/core/keyboard_nav/tab_navigate_cursor.js +48 -0
- package/blocklySkini/blockly/core/marker_manager.js +183 -0
- package/blocklySkini/blockly/core/menu.js +465 -0
- package/blocklySkini/blockly/core/menuitem.js +280 -0
- package/blocklySkini/blockly/core/msg.js +31 -0
- package/blocklySkini/blockly/core/mutator.js +555 -0
- package/blocklySkini/blockly/core/names.js +186 -0
- package/blocklySkini/blockly/core/options.js +365 -0
- package/blocklySkini/blockly/core/procedures.js +404 -0
- package/blocklySkini/blockly/core/registry.js +265 -0
- package/blocklySkini/blockly/core/rendered_connection.js +565 -0
- package/blocklySkini/blockly/core/renderers/common/block_rendering.js +81 -0
- package/blocklySkini/blockly/core/renderers/common/constants.js +1256 -0
- package/blocklySkini/blockly/core/renderers/common/debugger.js +431 -0
- package/blocklySkini/blockly/core/renderers/common/drawer.js +468 -0
- package/blocklySkini/blockly/core/renderers/common/i_path_object.js +151 -0
- package/blocklySkini/blockly/core/renderers/common/info.js +775 -0
- package/blocklySkini/blockly/core/renderers/common/marker_svg.js +687 -0
- package/blocklySkini/blockly/core/renderers/common/path_object.js +279 -0
- package/blocklySkini/blockly/core/renderers/common/renderer.js +301 -0
- package/blocklySkini/blockly/core/renderers/geras/constants.js +64 -0
- package/blocklySkini/blockly/core/renderers/geras/drawer.js +205 -0
- package/blocklySkini/blockly/core/renderers/geras/highlight_constants.js +311 -0
- package/blocklySkini/blockly/core/renderers/geras/highlighter.js +256 -0
- package/blocklySkini/blockly/core/renderers/geras/info.js +483 -0
- package/blocklySkini/blockly/core/renderers/geras/measurables/inputs.js +67 -0
- package/blocklySkini/blockly/core/renderers/geras/path_object.js +177 -0
- package/blocklySkini/blockly/core/renderers/geras/renderer.js +138 -0
- package/blocklySkini/blockly/core/renderers/measurables/base.js +44 -0
- package/blocklySkini/blockly/core/renderers/measurables/connections.js +114 -0
- package/blocklySkini/blockly/core/renderers/measurables/inputs.js +160 -0
- package/blocklySkini/blockly/core/renderers/measurables/row_elements.js +185 -0
- package/blocklySkini/blockly/core/renderers/measurables/rows.js +532 -0
- package/blocklySkini/blockly/core/renderers/measurables/types.js +349 -0
- package/blocklySkini/blockly/core/renderers/minimalist/constants.js +29 -0
- package/blocklySkini/blockly/core/renderers/minimalist/drawer.js +32 -0
- package/blocklySkini/blockly/core/renderers/minimalist/info.js +45 -0
- package/blocklySkini/blockly/core/renderers/minimalist/renderer.js +70 -0
- package/blocklySkini/blockly/core/renderers/thrasos/info.js +338 -0
- package/blocklySkini/blockly/core/renderers/thrasos/renderer.js +45 -0
- package/blocklySkini/blockly/core/renderers/zelos/constants.js +1002 -0
- package/blocklySkini/blockly/core/renderers/zelos/drawer.js +233 -0
- package/blocklySkini/blockly/core/renderers/zelos/info.js +587 -0
- package/blocklySkini/blockly/core/renderers/zelos/marker_svg.js +148 -0
- package/blocklySkini/blockly/core/renderers/zelos/measurables/inputs.js +47 -0
- package/blocklySkini/blockly/core/renderers/zelos/measurables/row_elements.js +37 -0
- package/blocklySkini/blockly/core/renderers/zelos/measurables/rows.js +108 -0
- package/blocklySkini/blockly/core/renderers/zelos/path_object.js +244 -0
- package/blocklySkini/blockly/core/renderers/zelos/renderer.js +130 -0
- package/blocklySkini/blockly/core/requires.js +84 -0
- package/blocklySkini/blockly/core/scrollbar.js +880 -0
- package/blocklySkini/blockly/core/theme/classic.js +87 -0
- package/blocklySkini/blockly/core/theme/dark.js +33 -0
- package/blocklySkini/blockly/core/theme/deuteranopia.js +104 -0
- package/blocklySkini/blockly/core/theme/highcontrast.js +119 -0
- package/blocklySkini/blockly/core/theme/modern.js +108 -0
- package/blocklySkini/blockly/core/theme/tritanopia.js +103 -0
- package/blocklySkini/blockly/core/theme/zelos.js +106 -0
- package/blocklySkini/blockly/core/theme.js +236 -0
- package/blocklySkini/blockly/core/theme_manager.js +197 -0
- package/blocklySkini/blockly/core/toolbox/category.js +690 -0
- package/blocklySkini/blockly/core/toolbox/collapsible_category.js +294 -0
- package/blocklySkini/blockly/core/toolbox/separator.js +123 -0
- package/blocklySkini/blockly/core/toolbox/toolbox.js +984 -0
- package/blocklySkini/blockly/core/toolbox/toolbox_item.js +145 -0
- package/blocklySkini/blockly/core/toolbox.js +943 -0
- package/blocklySkini/blockly/core/tooltip.js +387 -0
- package/blocklySkini/blockly/core/touch.js +255 -0
- package/blocklySkini/blockly/core/touch_gesture.js +325 -0
- package/blocklySkini/blockly/core/trashcan.js +661 -0
- package/blocklySkini/blockly/core/ui_events.js +85 -0
- package/blocklySkini/blockly/core/utils/aria.js +167 -0
- package/blocklySkini/blockly/core/utils/colour.js +208 -0
- package/blocklySkini/blockly/core/utils/coordinate.js +125 -0
- package/blocklySkini/blockly/core/utils/deprecation.js +34 -0
- package/blocklySkini/blockly/core/utils/dom.js +391 -0
- package/blocklySkini/blockly/core/utils/global.js +37 -0
- package/blocklySkini/blockly/core/utils/idgenerator.js +33 -0
- package/blocklySkini/blockly/core/utils/keycodes.js +164 -0
- package/blocklySkini/blockly/core/utils/math.js +56 -0
- package/blocklySkini/blockly/core/utils/metrics.js +124 -0
- package/blocklySkini/blockly/core/utils/object.js +73 -0
- package/blocklySkini/blockly/core/utils/rect.js +54 -0
- package/blocklySkini/blockly/core/utils/size.js +58 -0
- package/blocklySkini/blockly/core/utils/string.js +284 -0
- package/blocklySkini/blockly/core/utils/style.js +281 -0
- package/blocklySkini/blockly/core/utils/svg.js +181 -0
- package/blocklySkini/blockly/core/utils/svg_paths.js +142 -0
- package/blocklySkini/blockly/core/utils/toolbox.js +401 -0
- package/blocklySkini/blockly/core/utils/useragent.js +110 -0
- package/blocklySkini/blockly/core/utils/xml.js +79 -0
- package/blocklySkini/blockly/core/utils.js +652 -0
- package/blocklySkini/blockly/core/variable_events.js +248 -0
- package/blocklySkini/blockly/core/variable_map.js +414 -0
- package/blocklySkini/blockly/core/variable_model.js +95 -0
- package/blocklySkini/blockly/core/variables.js +571 -0
- package/blocklySkini/blockly/core/variables_dynamic.js +100 -0
- package/blocklySkini/blockly/core/warning.js +200 -0
- package/blocklySkini/blockly/core/widgetdiv.js +241 -0
- package/blocklySkini/blockly/core/workspace.js +786 -0
- package/blocklySkini/blockly/core/workspace_audio.js +153 -0
- package/blocklySkini/blockly/core/workspace_comment.js +373 -0
- package/blocklySkini/blockly/core/workspace_comment_render_svg.js +461 -0
- package/blocklySkini/blockly/core/workspace_comment_svg.js +701 -0
- package/blocklySkini/blockly/core/workspace_drag_surface_svg.js +176 -0
- package/blocklySkini/blockly/core/workspace_dragger.js +85 -0
- package/blocklySkini/blockly/core/workspace_events.js +93 -0
- package/blocklySkini/blockly/core/workspace_svg.js +2661 -0
- package/blocklySkini/blockly/core/ws_comment_events.js +417 -0
- package/blocklySkini/blockly/core/xml.js +827 -0
- package/blocklySkini/blockly/core/zoom_controls.js +449 -0
- package/blocklySkini/blockly/core-browser.js +34 -0
- package/blocklySkini/blockly/core.d.ts +15 -0
- package/blocklySkini/blockly/core.js +38 -0
- package/blocklySkini/blockly/dart.d.ts +15 -0
- package/blocklySkini/blockly/dart.js +27 -0
- package/blocklySkini/blockly/dart_compressed.js +114 -0
- package/blocklySkini/blockly/dart_compressed.js.map +1 -0
- package/blocklySkini/blockly/generators/dart/colour.js +114 -0
- package/blocklySkini/blockly/generators/dart/lists.js +447 -0
- package/blocklySkini/blockly/generators/dart/logic.js +127 -0
- package/blocklySkini/blockly/generators/dart/loops.js +169 -0
- package/blocklySkini/blockly/generators/dart/math.js +485 -0
- package/blocklySkini/blockly/generators/dart/procedures.js +111 -0
- package/blocklySkini/blockly/generators/dart/text.js +339 -0
- package/blocklySkini/blockly/generators/dart/variables.js +32 -0
- package/blocklySkini/blockly/generators/dart/variables_dynamic.js +21 -0
- package/blocklySkini/blockly/generators/dart.js +290 -0
- package/blocklySkini/blockly/generators/javascript/colour.js +89 -0
- package/blocklySkini/blockly/generators/javascript/lists.js +388 -0
- package/blocklySkini/blockly/generators/javascript/logic.js +129 -0
- package/blocklySkini/blockly/generators/javascript/loops.js +184 -0
- package/blocklySkini/blockly/generators/javascript/math.js +409 -0
- package/blocklySkini/blockly/generators/javascript/procedures.js +113 -0
- package/blocklySkini/blockly/generators/javascript/text.js +367 -0
- package/blocklySkini/blockly/generators/javascript/variables.js +32 -0
- package/blocklySkini/blockly/generators/javascript/variables_dynamic.js +23 -0
- package/blocklySkini/blockly/generators/javascript.js +317 -0
- package/blocklySkini/blockly/generators/lua/colour.js +76 -0
- package/blocklySkini/blockly/generators/lua/lists.js +368 -0
- package/blocklySkini/blockly/generators/lua/logic.js +127 -0
- package/blocklySkini/blockly/generators/lua/loops.js +173 -0
- package/blocklySkini/blockly/generators/lua/math.js +423 -0
- package/blocklySkini/blockly/generators/lua/procedures.js +113 -0
- package/blocklySkini/blockly/generators/lua/text.js +353 -0
- package/blocklySkini/blockly/generators/lua/variables.js +32 -0
- package/blocklySkini/blockly/generators/lua/variables_dynamic.js +21 -0
- package/blocklySkini/blockly/generators/lua.js +198 -0
- package/blocklySkini/blockly/generators/php/colour.js +91 -0
- package/blocklySkini/blockly/generators/php/lists.js +498 -0
- package/blocklySkini/blockly/generators/php/logic.js +128 -0
- package/blocklySkini/blockly/generators/php/loops.js +170 -0
- package/blocklySkini/blockly/generators/php/math.js +370 -0
- package/blocklySkini/blockly/generators/php/procedures.js +132 -0
- package/blocklySkini/blockly/generators/php/text.js +271 -0
- package/blocklySkini/blockly/generators/php/variables.js +32 -0
- package/blocklySkini/blockly/generators/php/variables_dynamic.js +21 -0
- package/blocklySkini/blockly/generators/php.js +318 -0
- package/blocklySkini/blockly/generators/python/colour.js +72 -0
- package/blocklySkini/blockly/generators/python/lists.js +349 -0
- package/blocklySkini/blockly/generators/python/logic.js +127 -0
- package/blocklySkini/blockly/generators/python/loops.js +214 -0
- package/blocklySkini/blockly/generators/python/math.js +385 -0
- package/blocklySkini/blockly/generators/python/procedures.js +134 -0
- package/blocklySkini/blockly/generators/python/text.js +293 -0
- package/blocklySkini/blockly/generators/python/variables.js +32 -0
- package/blocklySkini/blockly/generators/python/variables_dynamic.js +21 -0
- package/blocklySkini/blockly/generators/python.js +322 -0
- package/blocklySkini/blockly/index.d.ts +22 -0
- package/blocklySkini/blockly/index.js +24 -0
- package/blocklySkini/blockly/javascript.d.ts +15 -0
- package/blocklySkini/blockly/javascript.js +27 -0
- package/blocklySkini/blockly/javascript_compressed.js +115 -0
- package/blocklySkini/blockly/javascript_compressed.js.map +1 -0
- package/blocklySkini/blockly/lua.d.ts +15 -0
- package/blocklySkini/blockly/lua.js +27 -0
- package/blocklySkini/blockly/lua_compressed.js +94 -0
- package/blocklySkini/blockly/lua_compressed.js.map +1 -0
- package/blocklySkini/blockly/media/1x1.gif +0 -0
- package/blocklySkini/blockly/media/click.mp3 +0 -0
- package/blocklySkini/blockly/media/click.ogg +0 -0
- package/blocklySkini/blockly/media/click.wav +0 -0
- package/blocklySkini/blockly/media/delete.mp3 +0 -0
- package/blocklySkini/blockly/media/delete.ogg +0 -0
- package/blocklySkini/blockly/media/delete.wav +0 -0
- package/blocklySkini/blockly/media/disconnect.mp3 +0 -0
- package/blocklySkini/blockly/media/disconnect.ogg +0 -0
- package/blocklySkini/blockly/media/disconnect.wav +0 -0
- package/blocklySkini/blockly/media/dropdown-arrow.svg +1 -0
- package/blocklySkini/blockly/media/handclosed.cur +0 -0
- package/blocklySkini/blockly/media/handdelete.cur +0 -0
- package/blocklySkini/blockly/media/handopen.cur +0 -0
- package/blocklySkini/blockly/media/pilcrow.png +0 -0
- package/blocklySkini/blockly/media/quote0.png +0 -0
- package/blocklySkini/blockly/media/quote1.png +0 -0
- package/blocklySkini/blockly/media/sprites.png +0 -0
- package/blocklySkini/blockly/media/sprites.svg +74 -0
- package/blocklySkini/blockly/msg/ab.d.ts +16 -0
- package/blocklySkini/blockly/msg/ab.js +447 -0
- package/blocklySkini/blockly/msg/ar.d.ts +16 -0
- package/blocklySkini/blockly/msg/ar.js +447 -0
- package/blocklySkini/blockly/msg/az.d.ts +16 -0
- package/blocklySkini/blockly/msg/az.js +447 -0
- package/blocklySkini/blockly/msg/ba.d.ts +16 -0
- package/blocklySkini/blockly/msg/ba.js +447 -0
- package/blocklySkini/blockly/msg/bcc.d.ts +16 -0
- package/blocklySkini/blockly/msg/bcc.js +447 -0
- package/blocklySkini/blockly/msg/be-tarask.d.ts +16 -0
- package/blocklySkini/blockly/msg/be-tarask.js +447 -0
- package/blocklySkini/blockly/msg/be.d.ts +16 -0
- package/blocklySkini/blockly/msg/be.js +447 -0
- package/blocklySkini/blockly/msg/bg.d.ts +16 -0
- package/blocklySkini/blockly/msg/bg.js +447 -0
- package/blocklySkini/blockly/msg/bn.d.ts +16 -0
- package/blocklySkini/blockly/msg/bn.js +447 -0
- package/blocklySkini/blockly/msg/br.d.ts +16 -0
- package/blocklySkini/blockly/msg/br.js +447 -0
- package/blocklySkini/blockly/msg/ca.d.ts +16 -0
- package/blocklySkini/blockly/msg/ca.js +447 -0
- package/blocklySkini/blockly/msg/constants.d.ts +16 -0
- package/blocklySkini/blockly/msg/cs.d.ts +16 -0
- package/blocklySkini/blockly/msg/cs.js +447 -0
- package/blocklySkini/blockly/msg/da.d.ts +16 -0
- package/blocklySkini/blockly/msg/da.js +447 -0
- package/blocklySkini/blockly/msg/de.d.ts +16 -0
- package/blocklySkini/blockly/msg/de.js +447 -0
- package/blocklySkini/blockly/msg/diq.d.ts +16 -0
- package/blocklySkini/blockly/msg/diq.js +447 -0
- package/blocklySkini/blockly/msg/dty.d.ts +16 -0
- package/blocklySkini/blockly/msg/dty.js +447 -0
- package/blocklySkini/blockly/msg/ee.d.ts +16 -0
- package/blocklySkini/blockly/msg/ee.js +447 -0
- package/blocklySkini/blockly/msg/el.d.ts +16 -0
- package/blocklySkini/blockly/msg/el.js +447 -0
- package/blocklySkini/blockly/msg/en-gb.d.ts +16 -0
- package/blocklySkini/blockly/msg/en-gb.js +447 -0
- package/blocklySkini/blockly/msg/en.d.ts +16 -0
- package/blocklySkini/blockly/msg/en.js +447 -0
- package/blocklySkini/blockly/msg/eo.d.ts +16 -0
- package/blocklySkini/blockly/msg/eo.js +447 -0
- package/blocklySkini/blockly/msg/es.d.ts +16 -0
- package/blocklySkini/blockly/msg/es.js +447 -0
- package/blocklySkini/blockly/msg/et.d.ts +16 -0
- package/blocklySkini/blockly/msg/et.js +447 -0
- package/blocklySkini/blockly/msg/eu.d.ts +16 -0
- package/blocklySkini/blockly/msg/eu.js +447 -0
- package/blocklySkini/blockly/msg/fa.d.ts +16 -0
- package/blocklySkini/blockly/msg/fa.js +447 -0
- package/blocklySkini/blockly/msg/fi.d.ts +16 -0
- package/blocklySkini/blockly/msg/fi.js +447 -0
- package/blocklySkini/blockly/msg/fr.d.ts +16 -0
- package/blocklySkini/blockly/msg/fr.js +447 -0
- package/blocklySkini/blockly/msg/gl.d.ts +16 -0
- package/blocklySkini/blockly/msg/gl.js +447 -0
- package/blocklySkini/blockly/msg/gor.d.ts +16 -0
- package/blocklySkini/blockly/msg/gor.js +447 -0
- package/blocklySkini/blockly/msg/ha.d.ts +16 -0
- package/blocklySkini/blockly/msg/ha.js +447 -0
- package/blocklySkini/blockly/msg/he.d.ts +16 -0
- package/blocklySkini/blockly/msg/he.js +447 -0
- package/blocklySkini/blockly/msg/hi.d.ts +16 -0
- package/blocklySkini/blockly/msg/hi.js +447 -0
- package/blocklySkini/blockly/msg/hrx.d.ts +16 -0
- package/blocklySkini/blockly/msg/hrx.js +447 -0
- package/blocklySkini/blockly/msg/hu.d.ts +16 -0
- package/blocklySkini/blockly/msg/hu.js +447 -0
- package/blocklySkini/blockly/msg/hy.d.ts +16 -0
- package/blocklySkini/blockly/msg/hy.js +447 -0
- package/blocklySkini/blockly/msg/ia.d.ts +16 -0
- package/blocklySkini/blockly/msg/ia.js +447 -0
- package/blocklySkini/blockly/msg/id.d.ts +16 -0
- package/blocklySkini/blockly/msg/id.js +447 -0
- package/blocklySkini/blockly/msg/ig.d.ts +16 -0
- package/blocklySkini/blockly/msg/ig.js +447 -0
- package/blocklySkini/blockly/msg/is.d.ts +16 -0
- package/blocklySkini/blockly/msg/is.js +447 -0
- package/blocklySkini/blockly/msg/it.d.ts +16 -0
- package/blocklySkini/blockly/msg/it.js +447 -0
- package/blocklySkini/blockly/msg/ja.d.ts +16 -0
- package/blocklySkini/blockly/msg/ja.js +447 -0
- package/blocklySkini/blockly/msg/kab.d.ts +16 -0
- package/blocklySkini/blockly/msg/kab.js +447 -0
- package/blocklySkini/blockly/msg/kn.d.ts +16 -0
- package/blocklySkini/blockly/msg/kn.js +447 -0
- package/blocklySkini/blockly/msg/ko.d.ts +16 -0
- package/blocklySkini/blockly/msg/ko.js +447 -0
- package/blocklySkini/blockly/msg/lb.d.ts +16 -0
- package/blocklySkini/blockly/msg/lb.js +447 -0
- package/blocklySkini/blockly/msg/lki.d.ts +16 -0
- package/blocklySkini/blockly/msg/lki.js +447 -0
- package/blocklySkini/blockly/msg/lo.d.ts +16 -0
- package/blocklySkini/blockly/msg/lo.js +447 -0
- package/blocklySkini/blockly/msg/lrc.d.ts +16 -0
- package/blocklySkini/blockly/msg/lrc.js +447 -0
- package/blocklySkini/blockly/msg/lt.d.ts +16 -0
- package/blocklySkini/blockly/msg/lt.js +447 -0
- package/blocklySkini/blockly/msg/lv.d.ts +16 -0
- package/blocklySkini/blockly/msg/lv.js +447 -0
- package/blocklySkini/blockly/msg/mk.d.ts +16 -0
- package/blocklySkini/blockly/msg/mk.js +447 -0
- package/blocklySkini/blockly/msg/mnw.d.ts +16 -0
- package/blocklySkini/blockly/msg/mnw.js +447 -0
- package/blocklySkini/blockly/msg/ms.d.ts +16 -0
- package/blocklySkini/blockly/msg/ms.js +447 -0
- package/blocklySkini/blockly/msg/msg.d.ts +444 -0
- package/blocklySkini/blockly/msg/nb.d.ts +16 -0
- package/blocklySkini/blockly/msg/nb.js +447 -0
- package/blocklySkini/blockly/msg/nl.d.ts +16 -0
- package/blocklySkini/blockly/msg/nl.js +447 -0
- package/blocklySkini/blockly/msg/oc.d.ts +16 -0
- package/blocklySkini/blockly/msg/oc.js +447 -0
- package/blocklySkini/blockly/msg/pl.d.ts +16 -0
- package/blocklySkini/blockly/msg/pl.js +447 -0
- package/blocklySkini/blockly/msg/pms.d.ts +16 -0
- package/blocklySkini/blockly/msg/pms.js +447 -0
- package/blocklySkini/blockly/msg/pt-br.d.ts +16 -0
- package/blocklySkini/blockly/msg/pt-br.js +447 -0
- package/blocklySkini/blockly/msg/pt.d.ts +16 -0
- package/blocklySkini/blockly/msg/pt.js +447 -0
- package/blocklySkini/blockly/msg/qqq.d.ts +16 -0
- package/blocklySkini/blockly/msg/ro.d.ts +16 -0
- package/blocklySkini/blockly/msg/ro.js +447 -0
- package/blocklySkini/blockly/msg/ru.d.ts +16 -0
- package/blocklySkini/blockly/msg/ru.js +447 -0
- package/blocklySkini/blockly/msg/sc.d.ts +16 -0
- package/blocklySkini/blockly/msg/sc.js +447 -0
- package/blocklySkini/blockly/msg/sd.d.ts +16 -0
- package/blocklySkini/blockly/msg/sd.js +447 -0
- package/blocklySkini/blockly/msg/shn.d.ts +16 -0
- package/blocklySkini/blockly/msg/shn.js +447 -0
- package/blocklySkini/blockly/msg/sk.d.ts +16 -0
- package/blocklySkini/blockly/msg/sk.js +447 -0
- package/blocklySkini/blockly/msg/skr-arab.d.ts +16 -0
- package/blocklySkini/blockly/msg/skr-arab.js +447 -0
- package/blocklySkini/blockly/msg/sl.d.ts +16 -0
- package/blocklySkini/blockly/msg/sl.js +447 -0
- package/blocklySkini/blockly/msg/sq.d.ts +16 -0
- package/blocklySkini/blockly/msg/sq.js +447 -0
- package/blocklySkini/blockly/msg/sr-latn.d.ts +16 -0
- package/blocklySkini/blockly/msg/sr-latn.js +447 -0
- package/blocklySkini/blockly/msg/sr.d.ts +16 -0
- package/blocklySkini/blockly/msg/sr.js +447 -0
- package/blocklySkini/blockly/msg/sv.d.ts +16 -0
- package/blocklySkini/blockly/msg/sv.js +447 -0
- package/blocklySkini/blockly/msg/synonyms.d.ts +16 -0
- package/blocklySkini/blockly/msg/ta.d.ts +16 -0
- package/blocklySkini/blockly/msg/ta.js +447 -0
- package/blocklySkini/blockly/msg/tcy.d.ts +16 -0
- package/blocklySkini/blockly/msg/tcy.js +447 -0
- package/blocklySkini/blockly/msg/te.d.ts +16 -0
- package/blocklySkini/blockly/msg/te.js +447 -0
- package/blocklySkini/blockly/msg/th.d.ts +16 -0
- package/blocklySkini/blockly/msg/th.js +447 -0
- package/blocklySkini/blockly/msg/tl.d.ts +16 -0
- package/blocklySkini/blockly/msg/tl.js +447 -0
- package/blocklySkini/blockly/msg/tlh.d.ts +16 -0
- package/blocklySkini/blockly/msg/tlh.js +447 -0
- package/blocklySkini/blockly/msg/tr.d.ts +16 -0
- package/blocklySkini/blockly/msg/tr.js +447 -0
- package/blocklySkini/blockly/msg/ug-arab.d.ts +16 -0
- package/blocklySkini/blockly/msg/ug-arab.js +447 -0
- package/blocklySkini/blockly/msg/uk.d.ts +16 -0
- package/blocklySkini/blockly/msg/uk.js +447 -0
- package/blocklySkini/blockly/msg/ur.d.ts +16 -0
- package/blocklySkini/blockly/msg/ur.js +447 -0
- package/blocklySkini/blockly/msg/vi.d.ts +16 -0
- package/blocklySkini/blockly/msg/vi.js +447 -0
- package/blocklySkini/blockly/msg/xmf.d.ts +16 -0
- package/blocklySkini/blockly/msg/xmf.js +447 -0
- package/blocklySkini/blockly/msg/yo.d.ts +16 -0
- package/blocklySkini/blockly/msg/yo.js +447 -0
- package/blocklySkini/blockly/msg/zh-hans.d.ts +16 -0
- package/blocklySkini/blockly/msg/zh-hans.js +447 -0
- package/blocklySkini/blockly/msg/zh-hant.d.ts +16 -0
- package/blocklySkini/blockly/msg/zh-hant.js +447 -0
- package/blocklySkini/blockly/node.js +35 -0
- package/blocklySkini/blockly/package.json +84 -0
- package/blocklySkini/blockly/php.d.ts +15 -0
- package/blocklySkini/blockly/php.js +27 -0
- package/blocklySkini/blockly/php_compressed.js +103 -0
- package/blocklySkini/blockly/php_compressed.js.map +1 -0
- package/blocklySkini/blockly/python.d.ts +15 -0
- package/blocklySkini/blockly/python.js +27 -0
- package/blocklySkini/blockly/python_compressed.js +98 -0
- package/blocklySkini/blockly/python_compressed.js.map +1 -0
- package/blocklySkini/blocklySkini.html +81 -0
- package/blocklySkini/orchestrations/.xml +1 -0
- package/blocklySkini/orchestrations/BluesSkini-1.xml +231 -0
- package/blocklySkini/orchestrations/BluesSkini-2.xml +741 -0
- package/blocklySkini/orchestrations/BluesSkini-3.xml +731 -0
- package/blocklySkini/orchestrations/BluesSkini-4.xml +695 -0
- package/blocklySkini/orchestrations/BluesSkini-5.xml +731 -0
- package/blocklySkini/orchestrations/BluesSkini.xml +704 -0
- package/blocklySkini/orchestrations/FunkBitwig-1.xml +778 -0
- package/blocklySkini/orchestrations/FunkBitwig-2.xml +471 -0
- package/blocklySkini/orchestrations/JouerLeBonInstrument1-1.xml +784 -0
- package/blocklySkini/orchestrations/MajeurMineur-1.xml +638 -0
- package/blocklySkini/orchestrations/Opus5-3 - Copie.xml +1041 -0
- package/blocklySkini/orchestrations/Opus5-3.xml +1128 -0
- package/blocklySkini/orchestrations/Quatuor1-1.xml +357 -0
- package/blocklySkini/orchestrations/TechnoBitwig-1.xml +221 -0
- package/blocklySkini/orchestrations/TestBlockly.xml +497 -0
- package/blocklySkini/orchestrations/TestBlockly1.xml +500 -0
- package/blocklySkini/orchestrations/TestBlockly2.xml +792 -0
- package/blocklySkini/orchestrations/TestBlockly3-1.xml +1182 -0
- package/blocklySkini/orchestrations/TestBlockly3.xml +1251 -0
- package/blocklySkini/orchestrations/TestFunction.xml +143 -0
- package/blocklySkini/orchestrations/TestIf.xml +80 -0
- package/blocklySkini/orchestrations/TestLoop.xml +127 -0
- package/blocklySkini/orchestrations/TestOrchestration2.xml +460 -0
- package/blocklySkini/orchestrations/TestPrint.xml +70 -0
- package/blocklySkini/orchestrations/TestSubMod.xml +81 -0
- package/blocklySkini/orchestrations/Testlogic.xml +113 -0
- package/blocklySkini/orchestrations/TrouveLaPercu-1.xml +813 -0
- package/blocklySkini/orchestrations/TrouveLaPercu-2.xml +813 -0
- package/blocklySkini/orchestrations/bar.xml +496 -0
- package/blocklySkini/orchestrations/bar2.xml +496 -0
- package/blocklySkini/orchestrations/foo.xml +500 -0
- package/blocklySkini/orchestrations/opus5Blockly - Copie.xml +496 -0
- package/blocklySkini/orchestrations/opus5Blockly-3.xml +868 -0
- package/blocklySkini/orchestrations/opus5Blockly.xml +496 -0
- package/blocklySkini/orchestrations/testOrchestration3.xml +483 -0
- package/blocklySkini/orchestrations/testOrchestration4.xml +487 -0
- package/blocklySkini/scripts/hiphop_blocks.js +6104 -0
- package/blocklySkini/scripts/main2.js +801 -0
- package/blocklySkini/styles/index.css +320 -0
- package/blocklySkini/styles/material.css +11552 -0
- package/package.json +3 -3
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2020 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* @fileoverview AST Node and keyboard navigation interfaces.
|
|
9
|
+
* @author samelh@google.com (Sam El-Husseini)
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
'use strict';
|
|
13
|
+
|
|
14
|
+
goog.provide('Blockly.IASTNodeLocation');
|
|
15
|
+
goog.provide('Blockly.IASTNodeLocationSvg');
|
|
16
|
+
goog.provide('Blockly.IASTNodeLocationWithBlock');
|
|
17
|
+
goog.provide('Blockly.IBlocklyActionable');
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* An AST node location interface.
|
|
21
|
+
* @interface
|
|
22
|
+
*/
|
|
23
|
+
Blockly.IASTNodeLocation = function() {};
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* An AST node location SVG interface.
|
|
27
|
+
* @interface
|
|
28
|
+
* @extends {Blockly.IASTNodeLocation}
|
|
29
|
+
*/
|
|
30
|
+
Blockly.IASTNodeLocationSvg = function() {};
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Add the marker svg to this node's svg group.
|
|
34
|
+
* @param {SVGElement} markerSvg The svg root of the marker to be added to the
|
|
35
|
+
* svg group.
|
|
36
|
+
*/
|
|
37
|
+
Blockly.IASTNodeLocationSvg.prototype.setMarkerSvg;
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Add the cursor svg to this node's svg group.
|
|
41
|
+
* @param {SVGElement} cursorSvg The svg root of the cursor to be added to the
|
|
42
|
+
* svg group.
|
|
43
|
+
*/
|
|
44
|
+
Blockly.IASTNodeLocationSvg.prototype.setCursorSvg;
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* An AST node location that has an associated block.
|
|
48
|
+
* @interface
|
|
49
|
+
* @extends {Blockly.IASTNodeLocation}
|
|
50
|
+
*/
|
|
51
|
+
Blockly.IASTNodeLocationWithBlock = function() {};
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Get the source block associated with this node.
|
|
55
|
+
* @return {Blockly.Block} The source block.
|
|
56
|
+
*/
|
|
57
|
+
Blockly.IASTNodeLocationWithBlock.prototype.getSourceBlock;
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* An interface for an object that handles Blockly actions when keyboard
|
|
62
|
+
* navigation is enabled.
|
|
63
|
+
* @interface
|
|
64
|
+
*/
|
|
65
|
+
Blockly.IBlocklyActionable = function() {};
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* Handles the given action.
|
|
69
|
+
* @param {!Blockly.Action} action The action to be handled.
|
|
70
|
+
* @return {boolean} True if the action has been handled, false otherwise.
|
|
71
|
+
*/
|
|
72
|
+
Blockly.IBlocklyActionable.prototype.onBlocklyAction;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2020 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* @fileoverview The interface for a bounded element.
|
|
9
|
+
* @author samelh@google.com (Sam El-Husseini)
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
'use strict';
|
|
13
|
+
|
|
14
|
+
goog.provide('Blockly.IBoundedElement');
|
|
15
|
+
|
|
16
|
+
goog.requireType('Blockly.utils.Rect');
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* A bounded element interface.
|
|
21
|
+
* @interface
|
|
22
|
+
*/
|
|
23
|
+
Blockly.IBoundedElement = function() {};
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Returns the coordinates of a bounded element describing the dimensions of the
|
|
27
|
+
* element.
|
|
28
|
+
* Coordinate system: workspace coordinates.
|
|
29
|
+
* @return {!Blockly.utils.Rect} Object with coordinates of the bounded element.
|
|
30
|
+
*/
|
|
31
|
+
Blockly.IBoundedElement.prototype.getBoundingRectangle;
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2020 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* @fileoverview The interface for a bubble.
|
|
9
|
+
* @author samelh@google.com (Sam El-Husseini)
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
'use strict';
|
|
13
|
+
|
|
14
|
+
goog.provide('Blockly.IBubble');
|
|
15
|
+
|
|
16
|
+
goog.requireType('Blockly.IContextMenu');
|
|
17
|
+
goog.requireType('Blockly.IDeletable');
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* A bubble interface.
|
|
22
|
+
* @interface
|
|
23
|
+
* @extends {Blockly.IDeletable}
|
|
24
|
+
* @extends {Blockly.IContextMenu}
|
|
25
|
+
*/
|
|
26
|
+
Blockly.IBubble = function() {};
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Return the coordinates of the top-left corner of this bubble's body relative
|
|
30
|
+
* to the drawing surface's origin (0,0), in workspace units.
|
|
31
|
+
* @return {!Blockly.utils.Coordinate} Object with .x and .y properties.
|
|
32
|
+
*/
|
|
33
|
+
Blockly.IBubble.prototype.getRelativeToSurfaceXY;
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Return the root node of the bubble's SVG group.
|
|
37
|
+
* @return {!SVGElement} The root SVG node of the bubble's group.
|
|
38
|
+
*/
|
|
39
|
+
Blockly.IBubble.prototype.getSvgRoot;
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Set whether auto-layout of this bubble is enabled. The first time a bubble
|
|
43
|
+
* is shown it positions itself to not cover any blocks. Once a user has
|
|
44
|
+
* dragged it to reposition, it renders where the user put it.
|
|
45
|
+
* @param {boolean} enable True if auto-layout should be enabled, false
|
|
46
|
+
* otherwise.
|
|
47
|
+
*/
|
|
48
|
+
Blockly.IBubble.prototype.setAutoLayout;
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Triggers a move callback if one exists at the end of a drag.
|
|
52
|
+
* @param {boolean} adding True if adding, false if removing.
|
|
53
|
+
*/
|
|
54
|
+
Blockly.IBubble.prototype.setDragging;
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Move this bubble during a drag, taking into account whether or not there is
|
|
58
|
+
* a drag surface.
|
|
59
|
+
* @param {Blockly.BlockDragSurfaceSvg} dragSurface The surface that carries
|
|
60
|
+
* rendered items during a drag, or null if no drag surface is in use.
|
|
61
|
+
* @param {!Blockly.utils.Coordinate} newLoc The location to translate to, in
|
|
62
|
+
* workspace coordinates.
|
|
63
|
+
*/
|
|
64
|
+
Blockly.IBubble.prototype.moveDuringDrag;
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Move the bubble to the specified location in workspace coordinates.
|
|
68
|
+
* @param {number} x The x position to move to.
|
|
69
|
+
* @param {number} y The y position to move to.
|
|
70
|
+
*/
|
|
71
|
+
Blockly.IBubble.prototype.moveTo;
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* Update the style of this bubble when it is dragged over a delete area.
|
|
75
|
+
* @param {boolean} enable True if the bubble is about to be deleted, false
|
|
76
|
+
* otherwise.
|
|
77
|
+
*/
|
|
78
|
+
Blockly.IBubble.prototype.setDeleteStyle;
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* Dispose of this bubble.
|
|
82
|
+
*/
|
|
83
|
+
Blockly.IBubble.prototype.dispose;
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2020 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* @fileoverview The interface for an object that encapsulates logic for
|
|
9
|
+
* checking whether a potential connection is safe and valid.
|
|
10
|
+
* @author fenichel@google.com (Rachel Fenichel)
|
|
11
|
+
*/
|
|
12
|
+
'use strict';
|
|
13
|
+
|
|
14
|
+
goog.provide('Blockly.IConnectionChecker');
|
|
15
|
+
|
|
16
|
+
goog.requireType('Blockly.Connection');
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Class for connection type checking logic.
|
|
21
|
+
* @interface
|
|
22
|
+
*/
|
|
23
|
+
Blockly.IConnectionChecker = function() {};
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Check whether the current connection can connect with the target
|
|
27
|
+
* connection.
|
|
28
|
+
* @param {Blockly.Connection} a Connection to check compatibility with.
|
|
29
|
+
* @param {Blockly.Connection} b Connection to check compatibility with.
|
|
30
|
+
* @param {boolean} isDragging True if the connection is being made by dragging
|
|
31
|
+
* a block.
|
|
32
|
+
* @param {number=} opt_distance The max allowable distance between the
|
|
33
|
+
* connections for drag checks.
|
|
34
|
+
* @return {boolean} Whether the connection is legal.
|
|
35
|
+
* @public
|
|
36
|
+
*/
|
|
37
|
+
Blockly.IConnectionChecker.prototype.canConnect;
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Checks whether the current connection can connect with the target
|
|
41
|
+
* connection, and return an error code if there are problems.
|
|
42
|
+
* @param {Blockly.Connection} a Connection to check compatibility with.
|
|
43
|
+
* @param {Blockly.Connection} b Connection to check compatibility with.
|
|
44
|
+
* @param {boolean} isDragging True if the connection is being made by dragging
|
|
45
|
+
* a block.
|
|
46
|
+
* @param {number=} opt_distance The max allowable distance between the
|
|
47
|
+
* connections for drag checks.
|
|
48
|
+
* @return {number} Blockly.Connection.CAN_CONNECT if the connection is legal,
|
|
49
|
+
* an error code otherwise.
|
|
50
|
+
* @public
|
|
51
|
+
*/
|
|
52
|
+
Blockly.IConnectionChecker.prototype.canConnectWithReason;
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Helper method that translates a connection error code into a string.
|
|
56
|
+
* @param {number} errorCode The error code.
|
|
57
|
+
* @param {Blockly.Connection} a One of the two connections being checked.
|
|
58
|
+
* @param {Blockly.Connection} b The second of the two connections being
|
|
59
|
+
* checked.
|
|
60
|
+
* @return {string} A developer-readable error string.
|
|
61
|
+
* @public
|
|
62
|
+
*/
|
|
63
|
+
Blockly.IConnectionChecker.prototype.getErrorMessage;
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* Check that connecting the given connections is safe, meaning that it would
|
|
67
|
+
* not break any of Blockly's basic assumptions (e.g. no self connections).
|
|
68
|
+
* @param {Blockly.Connection} a The first of the connections to check.
|
|
69
|
+
* @param {Blockly.Connection} b The second of the connections to check.
|
|
70
|
+
* @return {number} An enum with the reason this connection is safe or unsafe.
|
|
71
|
+
* @public
|
|
72
|
+
*/
|
|
73
|
+
Blockly.IConnectionChecker.prototype.doSafetyChecks;
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* Check whether this connection is compatible with another connection with
|
|
77
|
+
* respect to the value type system. E.g. square_root("Hello") is not
|
|
78
|
+
* compatible.
|
|
79
|
+
* @param {!Blockly.Connection} a Connection to compare.
|
|
80
|
+
* @param {!Blockly.Connection} b Connection to compare against.
|
|
81
|
+
* @return {boolean} True if the connections share a type.
|
|
82
|
+
* @public
|
|
83
|
+
*/
|
|
84
|
+
Blockly.IConnectionChecker.prototype.doTypeChecks;
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* Check whether this connection can be made by dragging.
|
|
88
|
+
* @param {!Blockly.RenderedConnection} a Connection to compare.
|
|
89
|
+
* @param {!Blockly.RenderedConnection} b Connection to compare against.
|
|
90
|
+
* @param {number} distance The maximum allowable distance between connections.
|
|
91
|
+
* @return {boolean} True if the connection is allowed during a drag.
|
|
92
|
+
* @public
|
|
93
|
+
*/
|
|
94
|
+
Blockly.IConnectionChecker.prototype.doDragChecks;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2020 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* @fileoverview The interface for an object that supports a right-click.
|
|
9
|
+
* @author samelh@google.com (Sam El-Husseini)
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
'use strict';
|
|
13
|
+
|
|
14
|
+
goog.provide('Blockly.IContextMenu');
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* @interface
|
|
19
|
+
*/
|
|
20
|
+
Blockly.IContextMenu = function() {};
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Show the context menu for this object.
|
|
24
|
+
* @param {!Event} e Mouse event.
|
|
25
|
+
*/
|
|
26
|
+
Blockly.IContextMenu.prototype.showContextMenu;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2019 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* @fileoverview The interface for an object that is copyable.
|
|
9
|
+
* @author samelh@google.com (Sam El-Husseini)
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
'use strict';
|
|
13
|
+
|
|
14
|
+
goog.provide('Blockly.ICopyable');
|
|
15
|
+
|
|
16
|
+
goog.requireType('Blockly.ISelectable');
|
|
17
|
+
goog.requireType('Blockly.WorkspaceSvg');
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* @extends {Blockly.ISelectable}
|
|
22
|
+
* @interface
|
|
23
|
+
*/
|
|
24
|
+
Blockly.ICopyable = function() {};
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Encode for copying.
|
|
28
|
+
* @return {?Blockly.ICopyable.CopyData} Copy metadata.
|
|
29
|
+
*/
|
|
30
|
+
Blockly.ICopyable.prototype.toCopyData;
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Copy Metadata.
|
|
34
|
+
* @typedef {{
|
|
35
|
+
* xml:!Element,
|
|
36
|
+
* source:Blockly.WorkspaceSvg,
|
|
37
|
+
* typeCounts:?Object
|
|
38
|
+
* }}
|
|
39
|
+
*/
|
|
40
|
+
Blockly.ICopyable.CopyData;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2019 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* @fileoverview The interface for an object that is deletable.
|
|
9
|
+
* @author samelh@google.com (Sam El-Husseini)
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
'use strict';
|
|
13
|
+
|
|
14
|
+
goog.provide('Blockly.IDeletable');
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* The interface for an object that can be deleted.
|
|
19
|
+
* @interface
|
|
20
|
+
*/
|
|
21
|
+
Blockly.IDeletable = function() {};
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Get whether this object is deletable or not.
|
|
25
|
+
* @return {boolean} True if deletable.
|
|
26
|
+
*/
|
|
27
|
+
Blockly.IDeletable.prototype.isDeletable;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2020 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* @fileoverview The interface for a component that can delete a block that is
|
|
9
|
+
* dropped on top of it.
|
|
10
|
+
* @author aschmiedt@google.com (Abby Schmiedt)
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
'use strict';
|
|
14
|
+
|
|
15
|
+
goog.provide('Blockly.IDeleteArea');
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Interface for a component that can delete a block that is dropped on top of it.
|
|
20
|
+
* @interface
|
|
21
|
+
*/
|
|
22
|
+
Blockly.IDeleteArea = function() {};
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Return the deletion rectangle.
|
|
26
|
+
* @return {Blockly.utils.Rect} Rectangle in which to delete.
|
|
27
|
+
*/
|
|
28
|
+
Blockly.IDeleteArea.prototype.getClientRect;
|
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2020 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* @fileoverview The interface for a flyout.
|
|
9
|
+
* @author aschmiedt@google.com (Abby Schmiedt)
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
'use strict';
|
|
13
|
+
|
|
14
|
+
goog.provide('Blockly.IFlyout');
|
|
15
|
+
|
|
16
|
+
goog.requireType('Blockly.BlockSvg');
|
|
17
|
+
goog.requireType('Blockly.IRegistrable');
|
|
18
|
+
goog.requireType('Blockly.utils.dom');
|
|
19
|
+
goog.requireType('Blockly.utils.Coordinate');
|
|
20
|
+
goog.requireType('Blockly.utils.Svg');
|
|
21
|
+
goog.requireType('Blockly.utils.toolbox');
|
|
22
|
+
goog.requireType('Blockly.WorkspaceSvg');
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Interface for a flyout.
|
|
27
|
+
* @extends {Blockly.IRegistrable}
|
|
28
|
+
* @interface
|
|
29
|
+
*/
|
|
30
|
+
Blockly.IFlyout = function() {};
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Whether the flyout is laid out horizontally or not.
|
|
34
|
+
* @type {boolean}
|
|
35
|
+
*/
|
|
36
|
+
Blockly.IFlyout.prototype.horizontalLayout;
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Is RTL vs LTR.
|
|
40
|
+
* @type {boolean}
|
|
41
|
+
*/
|
|
42
|
+
Blockly.IFlyout.prototype.RTL;
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* The target workspace
|
|
46
|
+
* @type {?Blockly.WorkspaceSvg}
|
|
47
|
+
*/
|
|
48
|
+
Blockly.IFlyout.prototype.targetWorkspace;
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Margin around the edges of the blocks in the flyout.
|
|
52
|
+
* @type {number}
|
|
53
|
+
* @const
|
|
54
|
+
*/
|
|
55
|
+
Blockly.IFlyout.prototype.MARGIN;
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Does the flyout automatically close when a block is created?
|
|
59
|
+
* @type {boolean}
|
|
60
|
+
*/
|
|
61
|
+
Blockly.IFlyout.prototype.autoClose;
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* Corner radius of the flyout background.
|
|
65
|
+
* @type {number}
|
|
66
|
+
* @const
|
|
67
|
+
*/
|
|
68
|
+
Blockly.IFlyout.prototype.CORNER_RADIUS;
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* Creates the flyout's DOM. Only needs to be called once. The flyout can
|
|
72
|
+
* either exist as its own svg element or be a g element nested inside a
|
|
73
|
+
* separate svg element.
|
|
74
|
+
* @param {string|
|
|
75
|
+
* !Blockly.utils.Svg<!SVGSVGElement>|
|
|
76
|
+
* !Blockly.utils.Svg<!SVGGElement>} tagName The type of tag to
|
|
77
|
+
* put the flyout in. This should be <svg> or <g>.
|
|
78
|
+
* @return {!SVGElement} The flyout's SVG group.
|
|
79
|
+
*/
|
|
80
|
+
Blockly.IFlyout.prototype.createDom;
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* Initializes the flyout.
|
|
84
|
+
* @param {!Blockly.WorkspaceSvg} targetWorkspace The workspace in which to
|
|
85
|
+
* create new blocks.
|
|
86
|
+
*/
|
|
87
|
+
Blockly.IFlyout.prototype.init;
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* Dispose of this flyout.
|
|
91
|
+
* Unlink from all DOM elements to prevent memory leaks.
|
|
92
|
+
*/
|
|
93
|
+
Blockly.IFlyout.prototype.dispose;
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* Get the width of the flyout.
|
|
97
|
+
* @return {number} The width of the flyout.
|
|
98
|
+
*/
|
|
99
|
+
Blockly.IFlyout.prototype.getWidth;
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* Get the height of the flyout.
|
|
103
|
+
* @return {number} The width of the flyout.
|
|
104
|
+
*/
|
|
105
|
+
Blockly.IFlyout.prototype.getHeight;
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* Get the workspace inside the flyout.
|
|
109
|
+
* @return {!Blockly.WorkspaceSvg} The workspace inside the flyout.
|
|
110
|
+
*/
|
|
111
|
+
Blockly.IFlyout.prototype.getWorkspace;
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* Is the flyout visible?
|
|
115
|
+
* @return {boolean} True if visible.
|
|
116
|
+
*/
|
|
117
|
+
Blockly.IFlyout.prototype.isVisible;
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* Set whether the flyout is visible. A value of true does not necessarily mean
|
|
121
|
+
* that the flyout is shown. It could be hidden because its container is hidden.
|
|
122
|
+
* @param {boolean} visible True if visible.
|
|
123
|
+
*/
|
|
124
|
+
Blockly.IFlyout.prototype.setVisible;
|
|
125
|
+
|
|
126
|
+
/**
|
|
127
|
+
* Set whether this flyout's container is visible.
|
|
128
|
+
* @param {boolean} visible Whether the container is visible.
|
|
129
|
+
*/
|
|
130
|
+
Blockly.IFlyout.prototype.setContainerVisible;
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* Hide and empty the flyout.
|
|
134
|
+
*/
|
|
135
|
+
Blockly.IFlyout.prototype.hide;
|
|
136
|
+
|
|
137
|
+
/**
|
|
138
|
+
* Show and populate the flyout.
|
|
139
|
+
* @param {!Blockly.utils.toolbox.FlyoutDefinition|string} flyoutDef Contents to
|
|
140
|
+
* display in the flyout. This is either an array of Nodes, a NodeList, a
|
|
141
|
+
* toolbox definition, or a string with the name of the dynamic category.
|
|
142
|
+
*/
|
|
143
|
+
Blockly.IFlyout.prototype.show;
|
|
144
|
+
|
|
145
|
+
/**
|
|
146
|
+
* Create a copy of this block on the workspace.
|
|
147
|
+
* @param {!Blockly.BlockSvg} originalBlock The block to copy from the flyout.
|
|
148
|
+
* @return {!Blockly.BlockSvg} The newly created block.
|
|
149
|
+
* @throws {Error} if something went wrong with deserialization.
|
|
150
|
+
*/
|
|
151
|
+
Blockly.IFlyout.prototype.createBlock;
|
|
152
|
+
|
|
153
|
+
/**
|
|
154
|
+
* Reflow blocks and their mats.
|
|
155
|
+
*/
|
|
156
|
+
Blockly.IFlyout.prototype.reflow;
|
|
157
|
+
|
|
158
|
+
/**
|
|
159
|
+
* @return {boolean} True if this flyout may be scrolled with a scrollbar or by
|
|
160
|
+
* dragging.
|
|
161
|
+
*/
|
|
162
|
+
Blockly.IFlyout.prototype.isScrollable;
|
|
163
|
+
|
|
164
|
+
/**
|
|
165
|
+
* Position the flyout.
|
|
166
|
+
* @return {void}
|
|
167
|
+
*/
|
|
168
|
+
Blockly.IFlyout.prototype.position;
|
|
169
|
+
|
|
170
|
+
/**
|
|
171
|
+
* Determine if a drag delta is toward the workspace, based on the position
|
|
172
|
+
* and orientation of the flyout. This is used in determineDragIntention_ to
|
|
173
|
+
* determine if a new block should be created or if the flyout should scroll.
|
|
174
|
+
* @param {!Blockly.utils.Coordinate} currentDragDeltaXY How far the pointer has
|
|
175
|
+
* moved from the position at mouse down, in pixel units.
|
|
176
|
+
* @return {boolean} True if the drag is toward the workspace.
|
|
177
|
+
*/
|
|
178
|
+
Blockly.IFlyout.prototype.isDragTowardWorkspace;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2019 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* @fileoverview The interface for an object that is movable.
|
|
9
|
+
* @author samelh@google.com (Sam El-Husseini)
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
'use strict';
|
|
13
|
+
|
|
14
|
+
goog.provide('Blockly.IMovable');
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* The interface for an object that is movable.
|
|
19
|
+
* @interface
|
|
20
|
+
*/
|
|
21
|
+
Blockly.IMovable = function() {};
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Get whether this is movable or not.
|
|
25
|
+
* @return {boolean} True if movable.
|
|
26
|
+
*/
|
|
27
|
+
Blockly.IMovable.prototype.isMovable;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2020 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* @fileoverview The interface for a Blockly component that can be registered.
|
|
9
|
+
* (Ex. Toolbox, Fields, Renderers)
|
|
10
|
+
* @author aschmiedt@google.com (Abby Schmiedt)
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
'use strict';
|
|
14
|
+
|
|
15
|
+
goog.provide('Blockly.IRegistrable');
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* The interface for a Blockly component that can be registered.
|
|
20
|
+
* @interface
|
|
21
|
+
*/
|
|
22
|
+
Blockly.IRegistrable = function() {};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2020 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* @fileoverview The interface for a Blockly field that can be registered.
|
|
9
|
+
* @author samelh@google.com (Sam El-Husseini)
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
'use strict';
|
|
13
|
+
|
|
14
|
+
goog.provide('Blockly.IRegistrableField');
|
|
15
|
+
|
|
16
|
+
goog.requireType('Blockly.Field');
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* A registrable field.
|
|
20
|
+
* Note: We are not using an interface here as we are interested in defining the
|
|
21
|
+
* static methods of a field rather than the instance methods.
|
|
22
|
+
* @typedef {{
|
|
23
|
+
* fromJson:Blockly.IRegistrableField.fromJson
|
|
24
|
+
* }}
|
|
25
|
+
*/
|
|
26
|
+
Blockly.IRegistrableField;
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* @typedef {function(!Object): Blockly.Field}
|
|
30
|
+
*/
|
|
31
|
+
Blockly.IRegistrableField.fromJson;
|