blockly 11.0.0-beta.8 → 11.0.0
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/blockly.min.js +456 -475
- package/blockly.mjs +143 -0
- package/blockly_compressed.js +426 -445
- package/blockly_compressed.js.map +1 -1
- package/blocks.js +4 -0
- package/blocks.mjs +12 -0
- package/blocks_compressed.js +22 -23
- package/blocks_compressed.js.map +1 -1
- package/core/block.d.ts +52 -4
- package/core/block_svg.d.ts +22 -2
- package/core/blockly.d.ts +0 -4
- package/core/clipboard/block_paster.d.ts +3 -1
- package/core/clipboard/workspace_comment_paster.d.ts +5 -4
- package/core/comments/comment_view.d.ts +6 -1
- package/core/comments/rendered_workspace_comment.d.ts +22 -4
- package/core/constants.d.ts +5 -0
- package/core/contextmenu.d.ts +1 -34
- package/core/contextmenu_items.d.ts +8 -0
- package/core/contextmenu_registry.d.ts +18 -3
- package/core/dragging/block_drag_strategy.d.ts +1 -8
- package/core/dragging/comment_drag_strategy.d.ts +1 -0
- package/core/events/events_block_change.d.ts +15 -0
- package/core/events/utils.d.ts +1 -3
- package/core/field.d.ts +20 -4
- package/core/field_input.d.ts +4 -3
- package/core/field_registry.d.ts +35 -3
- package/core/flyout_base.d.ts +8 -0
- package/core/grid.d.ts +9 -0
- package/core/interfaces/i_flyout.d.ts +10 -0
- package/core/keyboard_nav/ast_node.d.ts +10 -1
- package/core/layer_manager.d.ts +11 -0
- package/core/serialization/blocks.d.ts +1 -0
- package/core/serialization/workspace_comments.d.ts +1 -1
- package/core/utils/toolbox.d.ts +1 -0
- package/core/workspace.d.ts +9 -1
- package/core/workspace_svg.d.ts +10 -2
- package/core.js +4 -0
- package/dart.js +4 -0
- package/dart.mjs +6 -0
- package/index.mjs +143 -0
- package/javascript.js +4 -0
- package/javascript.mjs +6 -0
- package/lua.js +4 -0
- package/lua.mjs +6 -0
- package/media/resize-handle.svg +1 -1
- package/msg/ab.js +8 -7
- package/msg/ab.mjs +423 -0
- package/msg/ace.js +8 -7
- package/msg/ace.mjs +423 -0
- package/msg/af.js +8 -7
- package/msg/af.mjs +423 -0
- package/msg/am.js +8 -7
- package/msg/am.mjs +423 -0
- package/msg/ar.js +8 -7
- package/msg/ar.mjs +423 -0
- package/msg/ast.js +8 -7
- package/msg/ast.mjs +423 -0
- package/msg/az.js +8 -7
- package/msg/az.mjs +423 -0
- package/msg/ba.js +8 -7
- package/msg/ba.mjs +423 -0
- package/msg/bcc.js +8 -7
- package/msg/bcc.mjs +423 -0
- package/msg/be-tarask.js +8 -7
- package/msg/be-tarask.mjs +423 -0
- package/msg/be.js +8 -7
- package/msg/be.mjs +423 -0
- package/msg/bg.js +8 -7
- package/msg/bg.mjs +423 -0
- package/msg/bn.js +8 -7
- package/msg/bn.mjs +423 -0
- package/msg/br.js +8 -7
- package/msg/br.mjs +423 -0
- package/msg/bs.js +8 -7
- package/msg/bs.mjs +423 -0
- package/msg/ca.js +8 -7
- package/msg/ca.mjs +423 -0
- package/msg/cdo.js +8 -7
- package/msg/cdo.mjs +423 -0
- package/msg/ce.js +8 -7
- package/msg/ce.mjs +423 -0
- package/msg/cs.js +8 -7
- package/msg/cs.mjs +423 -0
- package/msg/da.js +8 -7
- package/msg/da.mjs +423 -0
- package/msg/de.js +27 -26
- package/msg/de.mjs +423 -0
- package/msg/diq.js +8 -7
- package/msg/diq.mjs +423 -0
- package/msg/dtp.js +8 -7
- package/msg/dtp.mjs +423 -0
- package/msg/dty.js +8 -7
- package/msg/dty.mjs +423 -0
- package/msg/ee.js +8 -7
- package/msg/ee.mjs +423 -0
- package/msg/el.js +123 -122
- package/msg/el.mjs +423 -0
- package/msg/en-gb.js +8 -7
- package/msg/en-gb.mjs +423 -0
- package/msg/en.js +8 -7
- package/msg/en.mjs +423 -0
- package/msg/eo.js +8 -7
- package/msg/eo.mjs +423 -0
- package/msg/es.js +8 -7
- package/msg/es.mjs +423 -0
- package/msg/et.js +8 -7
- package/msg/et.mjs +423 -0
- package/msg/eu.js +8 -7
- package/msg/eu.mjs +423 -0
- package/msg/fa.js +10 -9
- package/msg/fa.mjs +423 -0
- package/msg/fi.js +8 -7
- package/msg/fi.mjs +423 -0
- package/msg/fo.js +8 -7
- package/msg/fo.mjs +423 -0
- package/msg/fr.js +11 -10
- package/msg/fr.mjs +423 -0
- package/msg/frr.js +8 -7
- package/msg/frr.mjs +423 -0
- package/msg/gl.js +8 -7
- package/msg/gl.mjs +423 -0
- package/msg/gn.js +8 -7
- package/msg/gn.mjs +423 -0
- package/msg/gor.js +8 -7
- package/msg/gor.mjs +423 -0
- package/msg/ha.js +8 -7
- package/msg/ha.mjs +423 -0
- package/msg/hak.js +8 -7
- package/msg/hak.mjs +423 -0
- package/msg/he.js +8 -7
- package/msg/he.mjs +423 -0
- package/msg/hi.js +8 -7
- package/msg/hi.mjs +423 -0
- package/msg/hr.js +8 -7
- package/msg/hr.mjs +423 -0
- package/msg/hrx.js +8 -7
- package/msg/hrx.mjs +423 -0
- package/msg/hsb.js +8 -7
- package/msg/hsb.mjs +423 -0
- package/msg/hu.js +8 -7
- package/msg/hu.mjs +423 -0
- package/msg/hy.js +8 -7
- package/msg/hy.mjs +423 -0
- package/msg/ia.js +8 -7
- package/msg/ia.mjs +423 -0
- package/msg/id.js +8 -7
- package/msg/id.mjs +423 -0
- package/msg/ig.js +8 -7
- package/msg/ig.mjs +423 -0
- package/msg/inh.js +8 -7
- package/msg/inh.mjs +423 -0
- package/msg/is.js +8 -7
- package/msg/is.mjs +423 -0
- package/msg/it.js +8 -7
- package/msg/it.mjs +423 -0
- package/msg/ja.js +8 -7
- package/msg/ja.mjs +423 -0
- package/msg/ka.js +8 -7
- package/msg/ka.mjs +423 -0
- package/msg/kab.js +8 -7
- package/msg/kab.mjs +423 -0
- package/msg/kbd-cyrl.js +8 -7
- package/msg/kbd-cyrl.mjs +423 -0
- package/msg/km.js +8 -7
- package/msg/km.mjs +423 -0
- package/msg/kn.js +8 -7
- package/msg/kn.mjs +423 -0
- package/msg/ko.js +9 -8
- package/msg/ko.mjs +423 -0
- package/msg/ksh.js +8 -7
- package/msg/ksh.mjs +423 -0
- package/msg/ku-latn.js +8 -7
- package/msg/ku-latn.mjs +423 -0
- package/msg/ky.js +8 -7
- package/msg/ky.mjs +423 -0
- package/msg/la.js +8 -7
- package/msg/la.mjs +423 -0
- package/msg/lb.js +8 -7
- package/msg/lb.mjs +423 -0
- package/msg/lki.js +8 -7
- package/msg/lki.mjs +423 -0
- package/msg/lo.js +8 -7
- package/msg/lo.mjs +423 -0
- package/msg/lrc.js +8 -7
- package/msg/lrc.mjs +423 -0
- package/msg/lt.js +8 -7
- package/msg/lt.mjs +423 -0
- package/msg/lv.js +8 -7
- package/msg/lv.mjs +423 -0
- package/msg/mg.js +8 -7
- package/msg/mg.mjs +423 -0
- package/msg/mk.js +8 -7
- package/msg/mk.mjs +423 -0
- package/msg/ml.js +8 -7
- package/msg/ml.mjs +423 -0
- package/msg/mnw.js +8 -7
- package/msg/mnw.mjs +423 -0
- package/msg/ms.js +9 -8
- package/msg/ms.mjs +423 -0
- package/msg/my.js +8 -7
- package/msg/my.mjs +423 -0
- package/msg/mzn.js +8 -7
- package/msg/mzn.mjs +423 -0
- package/msg/nb.js +8 -7
- package/msg/nb.mjs +423 -0
- package/msg/ne.js +225 -224
- package/msg/ne.mjs +423 -0
- package/msg/nl.js +15 -14
- package/msg/nl.mjs +423 -0
- package/msg/oc.js +8 -7
- package/msg/oc.mjs +423 -0
- package/msg/olo.js +8 -7
- package/msg/olo.mjs +423 -0
- package/msg/pa.js +8 -7
- package/msg/pa.mjs +423 -0
- package/msg/pl.js +8 -7
- package/msg/pl.mjs +423 -0
- package/msg/pms.js +8 -7
- package/msg/pms.mjs +423 -0
- package/msg/ps.js +8 -7
- package/msg/ps.mjs +423 -0
- package/msg/pt-br.js +10 -9
- package/msg/pt-br.mjs +423 -0
- package/msg/pt.js +8 -7
- package/msg/pt.mjs +423 -0
- package/msg/ro.js +8 -7
- package/msg/ro.mjs +423 -0
- package/msg/ru.js +9 -8
- package/msg/ru.mjs +423 -0
- package/msg/sc.js +8 -7
- package/msg/sc.mjs +423 -0
- package/msg/sco.js +8 -7
- package/msg/sco.mjs +423 -0
- package/msg/sd.js +8 -7
- package/msg/sd.mjs +423 -0
- package/msg/shn.js +8 -7
- package/msg/shn.mjs +423 -0
- package/msg/si.js +8 -7
- package/msg/si.mjs +423 -0
- package/msg/sk.js +8 -7
- package/msg/sk.mjs +423 -0
- package/msg/skr-arab.js +8 -7
- package/msg/skr-arab.mjs +423 -0
- package/msg/sl.js +8 -7
- package/msg/sl.mjs +423 -0
- package/msg/smn.js +8 -7
- package/msg/smn.mjs +423 -0
- package/msg/sq.js +8 -7
- package/msg/sq.mjs +423 -0
- package/msg/sr-latn.js +8 -7
- package/msg/sr-latn.mjs +423 -0
- package/msg/sr.js +8 -7
- package/msg/sr.mjs +423 -0
- package/msg/sv.js +8 -7
- package/msg/sv.mjs +423 -0
- package/msg/sw.js +8 -7
- package/msg/sw.mjs +423 -0
- package/msg/ta.js +14 -13
- package/msg/ta.mjs +423 -0
- package/msg/tcy.js +8 -7
- package/msg/tcy.mjs +423 -0
- package/msg/tdd.js +11 -10
- package/msg/tdd.mjs +423 -0
- package/msg/te.js +8 -7
- package/msg/te.mjs +423 -0
- package/msg/th.js +8 -7
- package/msg/th.mjs +423 -0
- package/msg/ti.js +8 -7
- package/msg/ti.mjs +423 -0
- package/msg/tl.js +8 -7
- package/msg/tl.mjs +423 -0
- package/msg/tlh.js +8 -7
- package/msg/tlh.mjs +423 -0
- package/msg/tr.js +10 -9
- package/msg/tr.mjs +423 -0
- package/msg/ug-arab.js +8 -7
- package/msg/ug-arab.mjs +423 -0
- package/msg/uk.js +8 -7
- package/msg/uk.mjs +423 -0
- package/msg/ur.js +8 -7
- package/msg/ur.mjs +423 -0
- package/msg/uz.js +8 -7
- package/msg/uz.mjs +423 -0
- package/msg/vi.js +11 -10
- package/msg/vi.mjs +423 -0
- package/msg/xmf.js +8 -7
- package/msg/xmf.mjs +423 -0
- package/msg/yo.js +8 -7
- package/msg/yo.mjs +423 -0
- package/msg/zgh.js +8 -7
- package/msg/zgh.mjs +423 -0
- package/msg/zh-hans.js +9 -8
- package/msg/zh-hans.mjs +423 -0
- package/msg/zh-hant.js +18 -17
- package/msg/zh-hant.mjs +423 -0
- package/package.json +12 -2
- package/php.js +4 -0
- package/php.mjs +6 -0
- package/python.js +4 -0
- package/python.mjs +6 -0
- package/core/workspace_comment.d.ts +0 -190
- package/core/workspace_comment_svg.d.ts +0 -360
- package/msg/yue.d.ts +0 -8
|
@@ -9,6 +9,7 @@ import type { Coordinate } from '../utils/coordinate.js';
|
|
|
9
9
|
import type { FlyoutDefinition } from '../utils/toolbox.js';
|
|
10
10
|
import type { Svg } from '../utils/svg.js';
|
|
11
11
|
import type { IRegistrable } from './i_registrable.js';
|
|
12
|
+
import { FlyoutItem } from '../flyout_base.js';
|
|
12
13
|
/**
|
|
13
14
|
* Interface for a flyout.
|
|
14
15
|
*/
|
|
@@ -94,6 +95,15 @@ export interface IFlyout extends IRegistrable {
|
|
|
94
95
|
* of the dynamic category.
|
|
95
96
|
*/
|
|
96
97
|
show(flyoutDef: FlyoutDefinition | string): void;
|
|
98
|
+
/**
|
|
99
|
+
* Returns the list of flyout items currently present in the flyout.
|
|
100
|
+
* The `show` method parses the flyout definition into a list of actual
|
|
101
|
+
* flyout items. This method should return those concrete items, which
|
|
102
|
+
* may be used for e.g. keyboard navigation.
|
|
103
|
+
*
|
|
104
|
+
* @returns List of flyout items.
|
|
105
|
+
*/
|
|
106
|
+
getContents(): FlyoutItem[];
|
|
97
107
|
/**
|
|
98
108
|
* Create a copy of this block on the workspace.
|
|
99
109
|
*
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
*
|
|
10
10
|
* @class
|
|
11
11
|
*/
|
|
12
|
-
import
|
|
12
|
+
import { Block } from '../block.js';
|
|
13
13
|
import type { Connection } from '../connection.js';
|
|
14
14
|
import type { Field } from '../field.js';
|
|
15
15
|
import type { Input } from '../inputs/input.js';
|
|
@@ -127,6 +127,15 @@ export declare class ASTNode {
|
|
|
127
127
|
* @returns The next button, or next stack's first block, or null
|
|
128
128
|
*/
|
|
129
129
|
private navigateFlyoutContents;
|
|
130
|
+
/**
|
|
131
|
+
* Finds the next (or previous if navigating backward) item in the flyout that should be navigated to.
|
|
132
|
+
*
|
|
133
|
+
* @param flyoutContents Contents of the current flyout.
|
|
134
|
+
* @param currentLocation Current ASTNode location.
|
|
135
|
+
* @param forward True if we're navigating forward, else false.
|
|
136
|
+
* @returns The next (or previous) FlyoutItem, or null if there is none.
|
|
137
|
+
*/
|
|
138
|
+
private findNextLocationInFlyout;
|
|
130
139
|
/**
|
|
131
140
|
* Finds the top most AST node for a given block.
|
|
132
141
|
* This is either the previous connection, output connection or block
|
package/core/layer_manager.d.ts
CHANGED
|
@@ -11,11 +11,22 @@ export declare class LayerManager {
|
|
|
11
11
|
private workspace;
|
|
12
12
|
/** The layer elements being dragged are appended to. */
|
|
13
13
|
private dragLayer;
|
|
14
|
+
/** The layer elements being animated are appended to. */
|
|
15
|
+
private animationLayer;
|
|
14
16
|
/** The layers elements not being dragged are appended to. */
|
|
15
17
|
private layers;
|
|
16
18
|
/** @internal */
|
|
17
19
|
constructor(workspace: WorkspaceSvg);
|
|
18
20
|
private createDragLayer;
|
|
21
|
+
private createAnimationLayer;
|
|
22
|
+
/**
|
|
23
|
+
* Appends the element to the animation layer. The animation layer doesn't
|
|
24
|
+
* move when the workspace moves, so e.g. delete animations don't move
|
|
25
|
+
* when a block delete triggers a workspace resize.
|
|
26
|
+
*
|
|
27
|
+
* @internal
|
|
28
|
+
*/
|
|
29
|
+
appendToAnimationLayer(elem: IRenderedElement): void;
|
|
19
30
|
/**
|
|
20
31
|
* Translates layers when the workspace is dragged or zoomed.
|
|
21
32
|
*
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import { ISerializer } from '../interfaces/i_serializer.js';
|
|
7
7
|
import { Workspace } from '../workspace.js';
|
|
8
|
-
import { WorkspaceComment } from '../comments/workspace_comment.js';
|
|
8
|
+
import type { WorkspaceComment } from '../comments/workspace_comment.js';
|
|
9
9
|
export interface State {
|
|
10
10
|
id?: string;
|
|
11
11
|
text?: string;
|
package/core/utils/toolbox.d.ts
CHANGED
package/core/workspace.d.ts
CHANGED
|
@@ -18,7 +18,7 @@ import { Options } from './options.js';
|
|
|
18
18
|
import type * as toolbox from './utils/toolbox.js';
|
|
19
19
|
import { VariableMap } from './variable_map.js';
|
|
20
20
|
import type { VariableModel } from './variable_model.js';
|
|
21
|
-
import
|
|
21
|
+
import { WorkspaceComment } from './comments/workspace_comment.js';
|
|
22
22
|
import { IProcedureMap } from './interfaces/i_procedure_map.js';
|
|
23
23
|
/**
|
|
24
24
|
* Class for a workspace. This is a data structure that contains blocks.
|
|
@@ -279,6 +279,14 @@ export declare class Workspace implements IASTNodeLocation {
|
|
|
279
279
|
* @returns The created block.
|
|
280
280
|
*/
|
|
281
281
|
newBlock(prototypeName: string, opt_id?: string): Block;
|
|
282
|
+
/**
|
|
283
|
+
* Obtain a newly created comment.
|
|
284
|
+
*
|
|
285
|
+
* @param id Optional ID. Use this ID if provided, otherwise create a new
|
|
286
|
+
* ID.
|
|
287
|
+
* @returns The created comment.
|
|
288
|
+
*/
|
|
289
|
+
newComment(id?: string): WorkspaceComment;
|
|
282
290
|
/**
|
|
283
291
|
* The number of blocks that may be added to the workspace before reaching
|
|
284
292
|
* the maxBlocks.
|
package/core/workspace_svg.d.ts
CHANGED
|
@@ -42,7 +42,7 @@ import * as toolbox from './utils/toolbox.js';
|
|
|
42
42
|
import type { VariableModel } from './variable_model.js';
|
|
43
43
|
import { Workspace } from './workspace.js';
|
|
44
44
|
import { WorkspaceAudio } from './workspace_audio.js';
|
|
45
|
-
import { WorkspaceComment } from './workspace_comment.js';
|
|
45
|
+
import { WorkspaceComment } from './comments/workspace_comment.js';
|
|
46
46
|
import { ZoomControls } from './zoom_controls.js';
|
|
47
47
|
import { ContextMenuOption } from './contextmenu_registry.js';
|
|
48
48
|
import { LayerManager } from './layer_manager.js';
|
|
@@ -618,6 +618,14 @@ export declare class WorkspaceSvg extends Workspace implements IASTNodeLocationS
|
|
|
618
618
|
* @returns The created block.
|
|
619
619
|
*/
|
|
620
620
|
newBlock(prototypeName: string, opt_id?: string): BlockSvg;
|
|
621
|
+
/**
|
|
622
|
+
* Obtain a newly created comment.
|
|
623
|
+
*
|
|
624
|
+
* @param id Optional ID. Use this ID if provided, otherwise create a new
|
|
625
|
+
* ID.
|
|
626
|
+
* @returns The created comment.
|
|
627
|
+
*/
|
|
628
|
+
newComment(id?: string): WorkspaceComment;
|
|
621
629
|
/**
|
|
622
630
|
* Returns the drag target the pointer event is over.
|
|
623
631
|
*
|
|
@@ -704,7 +712,7 @@ export declare class WorkspaceSvg extends Workspace implements IASTNodeLocationS
|
|
|
704
712
|
* @param e Mouse event.
|
|
705
713
|
* @internal
|
|
706
714
|
*/
|
|
707
|
-
showContextMenu(e:
|
|
715
|
+
showContextMenu(e: PointerEvent): void;
|
|
708
716
|
/**
|
|
709
717
|
* Modify the block tree on the existing toolbox.
|
|
710
718
|
*
|
package/core.js
ADDED
package/dart.js
ADDED
package/dart.mjs
ADDED
package/index.mjs
ADDED
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
import Blockly from './index.js';
|
|
2
|
+
export const {
|
|
3
|
+
ASTNode,
|
|
4
|
+
BasicCursor,
|
|
5
|
+
Block,
|
|
6
|
+
BlockSvg,
|
|
7
|
+
Blocks,
|
|
8
|
+
COLLAPSED_FIELD_NAME,
|
|
9
|
+
COLLAPSED_INPUT_NAME,
|
|
10
|
+
COLLAPSE_CHARS,
|
|
11
|
+
CodeGenerator,
|
|
12
|
+
CollapsibleToolboxCategory,
|
|
13
|
+
ComponentManager,
|
|
14
|
+
Connection,
|
|
15
|
+
ConnectionChecker,
|
|
16
|
+
ConnectionDB,
|
|
17
|
+
ConnectionType,
|
|
18
|
+
ContextMenu,
|
|
19
|
+
ContextMenuItems,
|
|
20
|
+
ContextMenuRegistry,
|
|
21
|
+
Css,
|
|
22
|
+
Cursor,
|
|
23
|
+
DELETE_VARIABLE_ID,
|
|
24
|
+
DeleteArea,
|
|
25
|
+
DragTarget,
|
|
26
|
+
DropDownDiv,
|
|
27
|
+
Events,
|
|
28
|
+
Extensions,
|
|
29
|
+
Field,
|
|
30
|
+
FieldCheckbox,
|
|
31
|
+
FieldDropdown,
|
|
32
|
+
FieldImage,
|
|
33
|
+
FieldLabel,
|
|
34
|
+
FieldLabelSerializable,
|
|
35
|
+
FieldNumber,
|
|
36
|
+
FieldTextInput,
|
|
37
|
+
FieldVariable,
|
|
38
|
+
Flyout,
|
|
39
|
+
FlyoutButton,
|
|
40
|
+
FlyoutMetricsManager,
|
|
41
|
+
Generator,
|
|
42
|
+
Gesture,
|
|
43
|
+
Grid,
|
|
44
|
+
HorizontalFlyout,
|
|
45
|
+
INPUT_VALUE,
|
|
46
|
+
Input,
|
|
47
|
+
InsertionMarkerManager,
|
|
48
|
+
InsertionMarkerPreviewer,
|
|
49
|
+
Marker,
|
|
50
|
+
MarkerManager,
|
|
51
|
+
Menu,
|
|
52
|
+
MenuItem,
|
|
53
|
+
MetricsManager,
|
|
54
|
+
Msg,
|
|
55
|
+
NEXT_STATEMENT,
|
|
56
|
+
Names,
|
|
57
|
+
OPPOSITE_TYPE,
|
|
58
|
+
OUTPUT_VALUE,
|
|
59
|
+
Options,
|
|
60
|
+
PREVIOUS_STATEMENT,
|
|
61
|
+
PROCEDURE_CATEGORY_NAME,
|
|
62
|
+
Procedures,
|
|
63
|
+
RENAME_VARIABLE_ID,
|
|
64
|
+
RenderedConnection,
|
|
65
|
+
Scrollbar,
|
|
66
|
+
ScrollbarPair,
|
|
67
|
+
ShortcutItems,
|
|
68
|
+
ShortcutRegistry,
|
|
69
|
+
TOOLBOX_AT_BOTTOM,
|
|
70
|
+
TOOLBOX_AT_LEFT,
|
|
71
|
+
TOOLBOX_AT_RIGHT,
|
|
72
|
+
TOOLBOX_AT_TOP,
|
|
73
|
+
TabNavigateCursor,
|
|
74
|
+
Theme,
|
|
75
|
+
ThemeManager,
|
|
76
|
+
Themes,
|
|
77
|
+
Toolbox,
|
|
78
|
+
ToolboxCategory,
|
|
79
|
+
ToolboxItem,
|
|
80
|
+
ToolboxSeparator,
|
|
81
|
+
Tooltip,
|
|
82
|
+
Touch,
|
|
83
|
+
Trashcan,
|
|
84
|
+
UnattachedFieldError,
|
|
85
|
+
VARIABLE_CATEGORY_NAME,
|
|
86
|
+
VARIABLE_DYNAMIC_CATEGORY_NAME,
|
|
87
|
+
VERSION,
|
|
88
|
+
VariableMap,
|
|
89
|
+
VariableModel,
|
|
90
|
+
Variables,
|
|
91
|
+
VariablesDynamic,
|
|
92
|
+
VerticalFlyout,
|
|
93
|
+
WidgetDiv,
|
|
94
|
+
Workspace,
|
|
95
|
+
WorkspaceAudio,
|
|
96
|
+
WorkspaceDragger,
|
|
97
|
+
WorkspaceSvg,
|
|
98
|
+
Xml,
|
|
99
|
+
ZoomControls,
|
|
100
|
+
blockAnimations,
|
|
101
|
+
blockRendering,
|
|
102
|
+
browserEvents,
|
|
103
|
+
bubbles,
|
|
104
|
+
bumpObjects,
|
|
105
|
+
clipboard,
|
|
106
|
+
comments,
|
|
107
|
+
common,
|
|
108
|
+
config,
|
|
109
|
+
constants,
|
|
110
|
+
defineBlocksWithJsonArray,
|
|
111
|
+
dialog,
|
|
112
|
+
dragging,
|
|
113
|
+
fieldRegistry,
|
|
114
|
+
geras,
|
|
115
|
+
getMainWorkspace,
|
|
116
|
+
getSelected,
|
|
117
|
+
hasBubble,
|
|
118
|
+
hideChaff,
|
|
119
|
+
icons,
|
|
120
|
+
inject,
|
|
121
|
+
inputs,
|
|
122
|
+
isCopyable,
|
|
123
|
+
isDeletable,
|
|
124
|
+
isDraggable,
|
|
125
|
+
isIcon,
|
|
126
|
+
isObservable,
|
|
127
|
+
isPaster,
|
|
128
|
+
isRenderedElement,
|
|
129
|
+
isSelectable,
|
|
130
|
+
isSerializable,
|
|
131
|
+
isVariableBackedParameterModel,
|
|
132
|
+
procedures,
|
|
133
|
+
registry,
|
|
134
|
+
renderManagement,
|
|
135
|
+
serialization,
|
|
136
|
+
setLocale,
|
|
137
|
+
setParentContainer,
|
|
138
|
+
svgResize,
|
|
139
|
+
thrasos,
|
|
140
|
+
uiPosition,
|
|
141
|
+
utils,
|
|
142
|
+
zelos,
|
|
143
|
+
} = Blockly;
|
package/javascript.js
ADDED
package/javascript.mjs
ADDED
package/lua.js
ADDED
package/lua.mjs
ADDED
package/media/resize-handle.svg
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
<svg xmlns="http://www.w3.org/2000/svg" height="8" viewBox="0 0 8 8" width="8" fill="#041E49" stroke="#000">
|
|
2
|
-
<g><line x1="2.
|
|
2
|
+
<g><line x1="2.67" y1="7" x2="7" y2="2.67"></line><line x1="5.33" y1="7" x2="7" y2="5.33"></line></g>
|
|
3
3
|
</svg>
|
package/msg/ab.js
CHANGED
|
@@ -103,6 +103,7 @@ Blockly.Msg["LISTS_GET_INDEX_FROM_END"] = "№ анҵәамнҭа аҟынтәи
|
|
|
103
103
|
Blockly.Msg["LISTS_GET_INDEX_FROM_START"] = "#"; // untranslated
|
|
104
104
|
Blockly.Msg["LISTS_GET_INDEX_GET"] = "игатәуп";
|
|
105
105
|
Blockly.Msg["LISTS_GET_INDEX_GET_REMOVE"] = "иалхны ианыхтәуп";
|
|
106
|
+
Blockly.Msg["LISTS_GET_INDEX_HELPURL"] = "https://github.com/google/blockly/wiki/Lists#getting-items-from-a-list"; // untranslated
|
|
106
107
|
Blockly.Msg["LISTS_GET_INDEX_LAST"] = "аҵыхәтәантәи";
|
|
107
108
|
Blockly.Msg["LISTS_GET_INDEX_RANDOM"] = "иарбанзаалакь";
|
|
108
109
|
Blockly.Msg["LISTS_GET_INDEX_REMOVE"] = "ианыхтәуп";
|
|
@@ -131,7 +132,7 @@ Blockly.Msg["LISTS_GET_SUBLIST_TOOLTIP"] = "Creates a copy of the specified port
|
|
|
131
132
|
Blockly.Msg["LISTS_INDEX_FROM_END_TOOLTIP"] = "%1 - аҵыхәтәантәи аелемент.";
|
|
132
133
|
Blockly.Msg["LISTS_INDEX_FROM_START_TOOLTIP"] = "%1 - актәи аелемент.";
|
|
133
134
|
Blockly.Msg["LISTS_INDEX_OF_FIRST"] = "find first occurrence of item"; // untranslated
|
|
134
|
-
Blockly.Msg["LISTS_INDEX_OF_HELPURL"] = "https://github.com/google/blockly/wiki/Lists#
|
|
135
|
+
Blockly.Msg["LISTS_INDEX_OF_HELPURL"] = "https://github.com/google/blockly/wiki/Lists#finding-items-in-a-list"; // untranslated
|
|
135
136
|
Blockly.Msg["LISTS_INDEX_OF_LAST"] = "find last occurrence of item"; // untranslated
|
|
136
137
|
Blockly.Msg["LISTS_INDEX_OF_TOOLTIP"] = "Returns the index of the first/last occurrence of the item in the list. Returns %1 if item is not found."; // untranslated
|
|
137
138
|
Blockly.Msg["LISTS_INLIST"] = "ахьӡынҵа аҟны";
|
|
@@ -300,6 +301,7 @@ Blockly.Msg["PROCEDURES_CALLNORETURN_TOOLTIP"] = "Run the user-defined function
|
|
|
300
301
|
Blockly.Msg["PROCEDURES_CALLRETURN_HELPURL"] = "https://ru.wikipedia.org/wiki/Ацхыраагӡатә программа";
|
|
301
302
|
Blockly.Msg["PROCEDURES_CALLRETURN_TOOLTIP"] = "Run the user-defined function '%1' and use its output."; // untranslated
|
|
302
303
|
Blockly.Msg["PROCEDURES_CALL_BEFORE_PARAMS"] = "аҟынтәи:";
|
|
304
|
+
Blockly.Msg["PROCEDURES_CALL_DISABLED_DEF_WARNING"] = "Can't run the user-defined function '%1' because the definition block is disabled."; // untranslated
|
|
303
305
|
Blockly.Msg["PROCEDURES_CREATE_DO"] = "Иаԥҵатәуп ааԥхьара '%1'";
|
|
304
306
|
Blockly.Msg["PROCEDURES_DEFNORETURN_COMMENT"] = "Абри афункциа ахҳәа азыҟашәҵа...";
|
|
305
307
|
Blockly.Msg["PROCEDURES_DEFNORETURN_DO"] = ""; // untranslated
|
|
@@ -415,7 +417,6 @@ Blockly.Msg["CONTROLS_IF_IF_TITLE_IF"] = Blockly.Msg["CONTROLS_IF_MSG_IF"];
|
|
|
415
417
|
Blockly.Msg["CONTROLS_IF_MSG_THEN"] = Blockly.Msg["CONTROLS_REPEAT_INPUT_DO"];
|
|
416
418
|
Blockly.Msg["CONTROLS_WHILEUNTIL_INPUT_DO"] = Blockly.Msg["CONTROLS_REPEAT_INPUT_DO"];
|
|
417
419
|
Blockly.Msg["LISTS_CREATE_WITH_ITEM_TITLE"] = Blockly.Msg["VARIABLES_DEFAULT_NAME"];
|
|
418
|
-
Blockly.Msg["LISTS_GET_INDEX_HELPURL"] = Blockly.Msg["LISTS_INDEX_OF_HELPURL"];
|
|
419
420
|
Blockly.Msg["LISTS_GET_INDEX_INPUT_IN_LIST"] = Blockly.Msg["LISTS_INLIST"];
|
|
420
421
|
Blockly.Msg["LISTS_GET_SUBLIST_INPUT_IN_LIST"] = Blockly.Msg["LISTS_INLIST"];
|
|
421
422
|
Blockly.Msg["LISTS_INDEX_OF_INPUT_IN_LIST"] = Blockly.Msg["LISTS_INLIST"];
|
|
@@ -428,14 +429,14 @@ Blockly.Msg["PROCEDURES_DEFRETURN_TITLE"] = Blockly.Msg["PROCEDURES_DEFNORETURN_
|
|
|
428
429
|
Blockly.Msg["TEXT_APPEND_VARIABLE"] = Blockly.Msg["VARIABLES_DEFAULT_NAME"];
|
|
429
430
|
Blockly.Msg["TEXT_CREATE_JOIN_ITEM_TITLE_ITEM"] = Blockly.Msg["VARIABLES_DEFAULT_NAME"];
|
|
430
431
|
|
|
431
|
-
Blockly.Msg["
|
|
432
|
-
Blockly.Msg["LOOPS_HUE"] = "120";
|
|
432
|
+
Blockly.Msg["COLOUR_HUE"] = "20";
|
|
433
433
|
Blockly.Msg["LISTS_HUE"] = "260";
|
|
434
434
|
Blockly.Msg["LOGIC_HUE"] = "210";
|
|
435
|
-
Blockly.Msg["
|
|
436
|
-
Blockly.Msg["
|
|
435
|
+
Blockly.Msg["LOOPS_HUE"] = "120";
|
|
436
|
+
Blockly.Msg["MATH_HUE"] = "230";
|
|
437
437
|
Blockly.Msg["PROCEDURES_HUE"] = "290";
|
|
438
|
-
Blockly.Msg["
|
|
438
|
+
Blockly.Msg["TEXTS_HUE"] = "160";
|
|
439
439
|
Blockly.Msg["VARIABLES_DYNAMIC_HUE"] = "310";
|
|
440
|
+
Blockly.Msg["VARIABLES_HUE"] = "330";
|
|
440
441
|
return Blockly.Msg;
|
|
441
442
|
}));
|