blockly 13.0.0-beta.1 → 13.0.0-beta.3
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 +1290 -1233
- package/blockly_compressed.js +1131 -1103
- package/blockly_compressed.js.map +1 -1
- package/blocks_compressed.js +71 -71
- package/blocks_compressed.js.map +1 -1
- package/core/block.d.ts +18 -0
- package/core/block_aria_composer.d.ts +1 -1
- package/core/bubbles/bubble.d.ts +39 -0
- package/core/bubbles/textinput_bubble.d.ts +5 -0
- package/core/field_checkbox.d.ts +27 -0
- package/core/field_dropdown.d.ts +51 -1
- package/core/field_image.d.ts +24 -0
- package/core/field_input.d.ts +1 -1
- package/core/field_number.d.ts +10 -0
- package/core/field_textinput.d.ts +10 -0
- package/core/field_variable.d.ts +9 -0
- package/core/flyout_base.d.ts +10 -0
- package/core/icons/comment_icon.d.ts +8 -0
- package/core/icons/icon.d.ts +14 -0
- package/core/icons/mutator_icon.d.ts +8 -0
- package/core/icons/warning_icon.d.ts +8 -0
- package/core/inputs/input.d.ts +28 -0
- package/core/interfaces/i_flyout_inflater.d.ts +9 -0
- package/core/interfaces/i_json_block_definition.d.ts +1 -0
- package/core/menu.d.ts +3 -0
- package/core/menuitem.d.ts +8 -1
- package/core/shortcut_items.d.ts +6 -1
- package/core/tooltip.d.ts +10 -0
- package/core/trashcan.d.ts +23 -38
- package/core/utils/aria.d.ts +7 -1
- package/core/workspace.d.ts +5 -1
- package/core/workspace_svg.d.ts +8 -0
- package/core/zoom_controls.d.ts +43 -50
- package/dart_compressed.js +62 -62
- package/dart_compressed.js.map +1 -1
- package/javascript_compressed.js +55 -55
- package/javascript_compressed.js.map +1 -1
- package/lua_compressed.js +50 -50
- package/lua_compressed.js.map +1 -1
- package/media/drop.mp3 +0 -0
- package/msg/ab.js +32 -3
- package/msg/ab.mjs +30 -1
- package/msg/ace.js +33 -4
- package/msg/ace.mjs +30 -1
- package/msg/af.js +32 -3
- package/msg/af.mjs +30 -1
- package/msg/am.js +33 -4
- package/msg/am.mjs +30 -1
- package/msg/ar.js +55 -26
- package/msg/ar.mjs +30 -1
- package/msg/ast.js +33 -4
- package/msg/ast.mjs +30 -1
- package/msg/az.js +33 -4
- package/msg/az.mjs +30 -1
- package/msg/ba.js +32 -3
- package/msg/ba.mjs +30 -1
- package/msg/bcc.js +32 -3
- package/msg/bcc.mjs +30 -1
- package/msg/be-tarask.js +66 -37
- package/msg/be-tarask.mjs +30 -1
- package/msg/be.js +33 -4
- package/msg/be.mjs +30 -1
- package/msg/bg.js +32 -3
- package/msg/bg.mjs +30 -1
- package/msg/bn.js +33 -4
- package/msg/bn.mjs +30 -1
- package/msg/br.js +33 -4
- package/msg/br.mjs +30 -1
- package/msg/bs.js +32 -3
- package/msg/bs.mjs +30 -1
- package/msg/ca.js +32 -3
- package/msg/ca.mjs +30 -1
- package/msg/ce.js +32 -3
- package/msg/ce.mjs +30 -1
- package/msg/cs.js +40 -11
- package/msg/cs.mjs +30 -1
- package/msg/da.js +56 -27
- package/msg/da.mjs +30 -1
- package/msg/de.js +32 -3
- package/msg/de.mjs +30 -1
- package/msg/diq.js +34 -5
- package/msg/diq.mjs +30 -1
- package/msg/dtp.js +32 -3
- package/msg/dtp.mjs +30 -1
- package/msg/dty.js +32 -3
- package/msg/dty.mjs +30 -1
- package/msg/ee.js +32 -3
- package/msg/ee.mjs +30 -1
- package/msg/el.js +63 -34
- package/msg/el.mjs +30 -1
- package/msg/en-gb.js +32 -3
- package/msg/en-gb.mjs +30 -1
- package/msg/en.js +33 -4
- package/msg/en.mjs +30 -1
- package/msg/eo.js +32 -3
- package/msg/eo.mjs +30 -1
- package/msg/es.js +42 -13
- package/msg/es.mjs +30 -1
- package/msg/et.js +32 -3
- package/msg/et.mjs +30 -1
- package/msg/eu.js +32 -3
- package/msg/eu.mjs +30 -1
- package/msg/fa.js +33 -4
- package/msg/fa.mjs +30 -1
- package/msg/fi.js +51 -22
- package/msg/fi.mjs +30 -1
- package/msg/fo.js +32 -3
- package/msg/fo.mjs +30 -1
- package/msg/fr.js +55 -26
- package/msg/fr.mjs +30 -1
- package/msg/frr.js +33 -4
- package/msg/frr.mjs +30 -1
- package/msg/ga.js +559 -0
- package/msg/{cdo.mjs → ga.mjs} +32 -3
- package/msg/gl.js +55 -26
- package/msg/gl.mjs +30 -1
- package/msg/gn.js +33 -4
- package/msg/gn.mjs +30 -1
- package/msg/gor.js +32 -3
- package/msg/gor.mjs +30 -1
- package/msg/ha.js +32 -3
- package/msg/ha.mjs +30 -1
- package/msg/hak.js +33 -4
- package/msg/hak.mjs +30 -1
- package/msg/he.js +82 -53
- package/msg/he.mjs +30 -1
- package/msg/hi.js +32 -3
- package/msg/hi.mjs +30 -1
- package/msg/hr.js +32 -3
- package/msg/hr.mjs +30 -1
- package/msg/hrx.js +32 -3
- package/msg/hrx.mjs +30 -1
- package/msg/hsb.js +32 -3
- package/msg/hsb.mjs +30 -1
- package/msg/hu.js +34 -5
- package/msg/hu.mjs +30 -1
- package/msg/hy.js +32 -3
- package/msg/hy.mjs +30 -1
- package/msg/ia.js +55 -26
- package/msg/ia.mjs +30 -1
- package/msg/id.js +262 -233
- package/msg/id.mjs +30 -1
- package/msg/ig.js +40 -11
- package/msg/ig.mjs +30 -1
- package/msg/inh.js +32 -3
- package/msg/inh.mjs +30 -1
- package/msg/is.js +32 -3
- package/msg/is.mjs +30 -1
- package/msg/it.js +58 -29
- package/msg/it.mjs +30 -1
- package/msg/ja.js +55 -26
- package/msg/ja.mjs +30 -1
- package/msg/ka.js +34 -5
- package/msg/ka.mjs +30 -1
- package/msg/kab.js +41 -12
- package/msg/kab.mjs +30 -1
- package/msg/kbd-cyrl.js +33 -4
- package/msg/kbd-cyrl.mjs +30 -1
- package/msg/km.js +32 -3
- package/msg/km.mjs +30 -1
- package/msg/kn.js +32 -3
- package/msg/kn.mjs +30 -1
- package/msg/ko.js +57 -28
- package/msg/ko.mjs +30 -1
- package/msg/krc.js +559 -0
- package/msg/krc.mjs +540 -0
- package/msg/ksh.js +33 -4
- package/msg/ksh.mjs +30 -1
- package/msg/ku-latn.js +33 -4
- package/msg/ku-latn.mjs +30 -1
- package/msg/ky.js +34 -5
- package/msg/ky.mjs +30 -1
- package/msg/la.js +33 -4
- package/msg/la.mjs +30 -1
- package/msg/lb.js +43 -14
- package/msg/lb.mjs +30 -1
- package/msg/lki.js +32 -3
- package/msg/lki.mjs +30 -1
- package/msg/lo.js +32 -3
- package/msg/lo.mjs +30 -1
- package/msg/lrc.js +32 -3
- package/msg/lrc.mjs +30 -1
- package/msg/lt.js +33 -4
- package/msg/lt.mjs +30 -1
- package/msg/lv.js +43 -14
- package/msg/lv.mjs +30 -1
- package/msg/mg.js +32 -3
- package/msg/mg.mjs +30 -1
- package/msg/mk.js +32 -3
- package/msg/mk.mjs +30 -1
- package/msg/ml.js +32 -3
- package/msg/ml.mjs +30 -1
- package/msg/mnw.js +32 -3
- package/msg/mnw.mjs +30 -1
- package/msg/ms.js +41 -12
- package/msg/ms.mjs +30 -1
- package/msg/my.js +32 -3
- package/msg/my.mjs +30 -1
- package/msg/mzn.js +33 -4
- package/msg/mzn.mjs +30 -1
- package/msg/nb.js +32 -3
- package/msg/nb.mjs +30 -1
- package/msg/ne.js +41 -12
- package/msg/ne.mjs +30 -1
- package/msg/nl.js +55 -26
- package/msg/nl.mjs +30 -1
- package/msg/oc.js +32 -3
- package/msg/oc.mjs +30 -1
- package/msg/olo.js +33 -4
- package/msg/olo.mjs +30 -1
- package/msg/pa.js +41 -12
- package/msg/pa.mjs +30 -1
- package/msg/pl.js +55 -26
- package/msg/pl.mjs +30 -1
- package/msg/pms.js +55 -26
- package/msg/pms.mjs +30 -1
- package/msg/ps.js +50 -21
- package/msg/ps.mjs +30 -1
- package/msg/pt-br.js +55 -26
- package/msg/pt-br.mjs +30 -1
- package/msg/pt.js +55 -26
- package/msg/pt.mjs +30 -1
- package/msg/ro.js +64 -35
- package/msg/ro.mjs +30 -1
- package/msg/ru.js +55 -26
- package/msg/ru.mjs +30 -1
- package/msg/sc.js +32 -3
- package/msg/sc.mjs +30 -1
- package/msg/sco.js +33 -4
- package/msg/sco.mjs +30 -1
- package/msg/sd.js +32 -3
- package/msg/sd.mjs +30 -1
- package/msg/shn.js +32 -3
- package/msg/shn.mjs +30 -1
- package/msg/si.js +33 -4
- package/msg/si.mjs +30 -1
- package/msg/sk.js +33 -4
- package/msg/sk.mjs +30 -1
- package/msg/skr-arab.js +35 -6
- package/msg/skr-arab.mjs +30 -1
- package/msg/sl.js +56 -27
- package/msg/sl.mjs +30 -1
- package/msg/smn.js +34 -5
- package/msg/smn.mjs +30 -1
- package/msg/sq.js +41 -12
- package/msg/sq.mjs +30 -1
- package/msg/sr-latn.js +32 -3
- package/msg/sr-latn.mjs +30 -1
- package/msg/sr.js +32 -3
- package/msg/sr.mjs +30 -1
- package/msg/sv.js +55 -26
- package/msg/sv.mjs +30 -1
- package/msg/sw.js +33 -4
- package/msg/sw.mjs +30 -1
- package/msg/ta.js +51 -22
- package/msg/ta.mjs +30 -1
- package/msg/tcy.js +102 -73
- package/msg/tcy.mjs +30 -1
- package/msg/tdd.js +32 -3
- package/msg/tdd.mjs +30 -1
- package/msg/te.js +32 -3
- package/msg/te.mjs +30 -1
- package/msg/th.js +33 -4
- package/msg/th.mjs +30 -1
- package/msg/ti.js +32 -3
- package/msg/ti.mjs +30 -1
- package/msg/tl.js +32 -3
- package/msg/tl.mjs +30 -1
- package/msg/tlh.js +32 -3
- package/msg/tlh.mjs +30 -1
- package/msg/tr.js +55 -26
- package/msg/tr.mjs +30 -1
- package/msg/ug-arab.js +32 -3
- package/msg/ug-arab.mjs +30 -1
- package/msg/uk.js +32 -3
- package/msg/uk.mjs +30 -1
- package/msg/ur.js +32 -3
- package/msg/ur.mjs +30 -1
- package/msg/uz.js +47 -18
- package/msg/uz.mjs +30 -1
- package/msg/vi.js +56 -27
- package/msg/vi.mjs +30 -1
- package/msg/xmf.js +32 -3
- package/msg/xmf.mjs +30 -1
- package/msg/yo.js +32 -3
- package/msg/yo.mjs +30 -1
- package/msg/zgh.js +32 -3
- package/msg/zgh.mjs +30 -1
- package/msg/zh-hans.js +55 -26
- package/msg/zh-hans.mjs +30 -1
- package/msg/zh-hant.js +55 -26
- package/msg/zh-hant.mjs +30 -1
- package/package.json +4 -4
- package/php_compressed.js +54 -55
- package/php_compressed.js.map +1 -1
- package/python_compressed.js +57 -57
- package/python_compressed.js.map +1 -1
- package/msg/cdo.js +0 -530
package/core/trashcan.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ import './events/events_trashcan_open.js';
|
|
|
8
8
|
import type { IAutoHideable } from './interfaces/i_autohideable.js';
|
|
9
9
|
import type { IDraggable } from './interfaces/i_draggable.js';
|
|
10
10
|
import type { IFlyout } from './interfaces/i_flyout.js';
|
|
11
|
+
import type { IFocusableNode } from './interfaces/i_focusable_node.js';
|
|
11
12
|
import type { IPositionable } from './interfaces/i_positionable.js';
|
|
12
13
|
import type { UiMetrics } from './metrics_manager.js';
|
|
13
14
|
import { Rect } from './utils/rect.js';
|
|
@@ -15,13 +16,20 @@ import type { WorkspaceSvg } from './workspace_svg.js';
|
|
|
15
16
|
/**
|
|
16
17
|
* Class for a trash can.
|
|
17
18
|
*/
|
|
18
|
-
export declare class Trashcan extends DeleteArea implements IAutoHideable, IPositionable {
|
|
19
|
+
export declare class Trashcan extends DeleteArea implements IAutoHideable, IPositionable, IFocusableNode {
|
|
19
20
|
private workspace;
|
|
20
21
|
/**
|
|
21
|
-
* The
|
|
22
|
+
* The id for this component that is used to register with the
|
|
22
23
|
* ComponentManager.
|
|
23
24
|
*/
|
|
24
25
|
id: string;
|
|
26
|
+
/**
|
|
27
|
+
* A globally unique ID for this particular trashcan. Component Manager IDs
|
|
28
|
+
* (the ID above) are 1:1 with classes, but if there are multiple workspaces
|
|
29
|
+
* with trashcans on a page, each actual trashcan DOM element needs a unique
|
|
30
|
+
* ID to support focusable node resolution. This ID is for that purpose.
|
|
31
|
+
*/
|
|
32
|
+
private uniqueId;
|
|
25
33
|
/**
|
|
26
34
|
* A list of JSON (stored as strings) representing blocks in the trashcan.
|
|
27
35
|
*/
|
|
@@ -34,19 +42,8 @@ export declare class Trashcan extends DeleteArea implements IAutoHideable, IPosi
|
|
|
34
42
|
flyout: IFlyout | null;
|
|
35
43
|
/** Current open/close state of the lid. */
|
|
36
44
|
isLidOpen: boolean;
|
|
37
|
-
/**
|
|
38
|
-
* The minimum openness of the lid. Used to indicate if the trashcan
|
|
39
|
-
* contains blocks.
|
|
40
|
-
*/
|
|
41
|
-
private minOpenness;
|
|
42
45
|
/** The SVG group containing the trash can. */
|
|
43
46
|
private svgGroup;
|
|
44
|
-
/** The SVG image element of the trash can lid. */
|
|
45
|
-
private svgLid;
|
|
46
|
-
/** Task ID of opening/closing animation. */
|
|
47
|
-
private lidTask;
|
|
48
|
-
/** Current state of lid opening (0.0 = closed, 1.0 = open). */
|
|
49
|
-
private lidOpen;
|
|
50
47
|
/** Left coordinate of the trash can. */
|
|
51
48
|
private left;
|
|
52
49
|
/** Top coordinate of the trash can. */
|
|
@@ -148,22 +145,6 @@ export declare class Trashcan extends DeleteArea implements IAutoHideable, IPosi
|
|
|
148
145
|
* @internal
|
|
149
146
|
*/
|
|
150
147
|
setLidOpen(state: boolean): void;
|
|
151
|
-
/** Rotate the lid open or closed by one step. Then wait and recurse. */
|
|
152
|
-
private animateLid;
|
|
153
|
-
/**
|
|
154
|
-
* Set the angle of the trashcan's lid.
|
|
155
|
-
*
|
|
156
|
-
* @param lidAngle The angle at which to set the lid.
|
|
157
|
-
*/
|
|
158
|
-
private setLidAngle;
|
|
159
|
-
/**
|
|
160
|
-
* Sets the minimum openness of the trashcan lid. If the lid is currently
|
|
161
|
-
* closed, this will update lid's position.
|
|
162
|
-
*
|
|
163
|
-
* @param newMin The new minimum openness of the lid. Should be between 0
|
|
164
|
-
* and 1.
|
|
165
|
-
*/
|
|
166
|
-
private setMinOpenness;
|
|
167
148
|
/**
|
|
168
149
|
* Flip the lid shut.
|
|
169
150
|
* Called externally after a drag.
|
|
@@ -183,15 +164,6 @@ export declare class Trashcan extends DeleteArea implements IAutoHideable, IPosi
|
|
|
183
164
|
* @param e A mouse down event.
|
|
184
165
|
*/
|
|
185
166
|
private blockMouseDownWhenOpenable;
|
|
186
|
-
/**
|
|
187
|
-
* Indicate that the trashcan can be clicked (by opening it) if it has blocks.
|
|
188
|
-
*/
|
|
189
|
-
private mouseOver;
|
|
190
|
-
/**
|
|
191
|
-
* Close the lid of the trashcan if it was open (Vis. it was indicating it had
|
|
192
|
-
* blocks).
|
|
193
|
-
*/
|
|
194
|
-
private mouseOut;
|
|
195
167
|
/**
|
|
196
168
|
* Handle a BLOCK_DELETE event. Adds deleted blocks oldXml to the content
|
|
197
169
|
* array.
|
|
@@ -208,5 +180,18 @@ export declare class Trashcan extends DeleteArea implements IAutoHideable, IPosi
|
|
|
208
180
|
* unnecessary attributes.
|
|
209
181
|
*/
|
|
210
182
|
private cleanBlockJson;
|
|
183
|
+
getFocusableElement(): SVGElement;
|
|
184
|
+
getFocusableTree(): WorkspaceSvg;
|
|
185
|
+
onNodeFocus(): void;
|
|
186
|
+
onNodeBlur(): void;
|
|
187
|
+
canBeFocused(): boolean;
|
|
188
|
+
performAction(): void;
|
|
189
|
+
/**
|
|
190
|
+
* Retrieves the globally unique ID of this Trashcan instance. Used for focus
|
|
191
|
+
* management.
|
|
192
|
+
*
|
|
193
|
+
* @internal
|
|
194
|
+
*/
|
|
195
|
+
getGloballyUniqueId(): string;
|
|
211
196
|
}
|
|
212
197
|
//# sourceMappingURL=trashcan.d.ts.map
|
package/core/utils/aria.d.ts
CHANGED
|
@@ -187,7 +187,13 @@ export declare enum State {
|
|
|
187
187
|
*
|
|
188
188
|
* Value: a number representing the minimum allowed value for a range widget.
|
|
189
189
|
*/
|
|
190
|
-
VALUEMIN = "valuemin"
|
|
190
|
+
VALUEMIN = "valuemin",
|
|
191
|
+
/**
|
|
192
|
+
* See https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Reference/Attributes/aria-owns
|
|
193
|
+
*
|
|
194
|
+
* Value: a space-separated list of element IDs that are owned by the current element.
|
|
195
|
+
*/
|
|
196
|
+
OWNS = "owns"
|
|
191
197
|
}
|
|
192
198
|
/**
|
|
193
199
|
* Used to control how verbose generated a11y labels are.
|
package/core/workspace.d.ts
CHANGED
|
@@ -353,7 +353,11 @@ export declare class Workspace {
|
|
|
353
353
|
*
|
|
354
354
|
* @param redo False if undo, true if redo.
|
|
355
355
|
*/
|
|
356
|
-
undo(redo
|
|
356
|
+
undo(redo?: boolean): void;
|
|
357
|
+
/**
|
|
358
|
+
* Redoes the previous action.
|
|
359
|
+
*/
|
|
360
|
+
redo(): void;
|
|
357
361
|
/** Clear the undo/redo stacks. */
|
|
358
362
|
clearUndo(): void;
|
|
359
363
|
/**
|
package/core/workspace_svg.d.ts
CHANGED
|
@@ -377,6 +377,14 @@ export declare class WorkspaceSvg extends Workspace implements IContextMenu, IFo
|
|
|
377
377
|
* @param handler Data that can be passed to eventHandling.unbind.
|
|
378
378
|
*/
|
|
379
379
|
setResizeHandlerWrapper(handler: browserEvents.Data): void;
|
|
380
|
+
/**
|
|
381
|
+
* Sets Aria labels, roles, etc. for the workspace depending on the type of workspace it is.
|
|
382
|
+
*/
|
|
383
|
+
setInitialAriaContext(): void;
|
|
384
|
+
/**
|
|
385
|
+
* Updates the label on the workspace to reflect the number of top-level stacks in the workspace.
|
|
386
|
+
*/
|
|
387
|
+
private updateAriaLabel;
|
|
380
388
|
/**
|
|
381
389
|
* Create the workspace DOM elements.
|
|
382
390
|
*
|
package/core/zoom_controls.d.ts
CHANGED
|
@@ -9,10 +9,42 @@
|
|
|
9
9
|
* @class
|
|
10
10
|
*/
|
|
11
11
|
import './events/events_click.js';
|
|
12
|
+
import { IFocusableNode } from './blockly.js';
|
|
12
13
|
import type { IPositionable } from './interfaces/i_positionable.js';
|
|
13
14
|
import type { UiMetrics } from './metrics_manager.js';
|
|
14
15
|
import { Rect } from './utils/rect.js';
|
|
15
16
|
import type { WorkspaceSvg } from './workspace_svg.js';
|
|
17
|
+
/**
|
|
18
|
+
* Base class for an individual zoom control (in, out, reset).
|
|
19
|
+
*
|
|
20
|
+
* @internal
|
|
21
|
+
*/
|
|
22
|
+
declare abstract class ZoomControl implements IFocusableNode {
|
|
23
|
+
protected workspace: WorkspaceSvg;
|
|
24
|
+
protected group: SVGGElement;
|
|
25
|
+
private pointerDownHandler;
|
|
26
|
+
private id;
|
|
27
|
+
constructor(workspace: WorkspaceSvg, group: SVGGElement);
|
|
28
|
+
getId(): string;
|
|
29
|
+
/**
|
|
30
|
+
* Handles a mouse down event on the zoom in or zoom out buttons on the
|
|
31
|
+
* workspace.
|
|
32
|
+
*
|
|
33
|
+
* @param amount Amount of zooming. Negative amount values zoom out, and
|
|
34
|
+
* positive amount values zoom in.
|
|
35
|
+
* @param e A mouse down or keydown event.
|
|
36
|
+
*/
|
|
37
|
+
protected zoom(amount: number, e: Event): void;
|
|
38
|
+
/** Fires a zoom control UI event. */
|
|
39
|
+
protected fireZoomEvent(): void;
|
|
40
|
+
getFocusableElement(): SVGGElement;
|
|
41
|
+
getFocusableTree(): WorkspaceSvg;
|
|
42
|
+
onNodeFocus(): void;
|
|
43
|
+
onNodeBlur(): void;
|
|
44
|
+
canBeFocused(): boolean;
|
|
45
|
+
abstract performAction(_e: Event): void;
|
|
46
|
+
dispose(): void;
|
|
47
|
+
}
|
|
16
48
|
/**
|
|
17
49
|
* Class for a zoom controls.
|
|
18
50
|
*/
|
|
@@ -23,18 +55,12 @@ export declare class ZoomControls implements IPositionable {
|
|
|
23
55
|
* ComponentManager.
|
|
24
56
|
*/
|
|
25
57
|
id: string;
|
|
26
|
-
/**
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
private
|
|
32
|
-
/** The zoom in svg <g> element. */
|
|
33
|
-
private zoomInGroup;
|
|
34
|
-
/** The zoom out svg <g> element. */
|
|
35
|
-
private zoomOutGroup;
|
|
36
|
-
/** The zoom reset svg <g> element. */
|
|
37
|
-
private zoomResetGroup;
|
|
58
|
+
/** The zoom in control. */
|
|
59
|
+
private zoomInControl;
|
|
60
|
+
/** The zoom out control. */
|
|
61
|
+
private zoomOutControl;
|
|
62
|
+
/** The zoom reset control. */
|
|
63
|
+
private zoomResetControl;
|
|
38
64
|
/** Width of the zoom controls. */
|
|
39
65
|
private readonly WIDTH;
|
|
40
66
|
/** Height of each zoom control. */
|
|
@@ -90,45 +116,12 @@ export declare class ZoomControls implements IPositionable {
|
|
|
90
116
|
*/
|
|
91
117
|
position(metrics: UiMetrics, savedPositions: Rect[]): void;
|
|
92
118
|
/**
|
|
93
|
-
*
|
|
94
|
-
*
|
|
95
|
-
* @param rnd The random string to use as a suffix in the clip path's ID.
|
|
96
|
-
* These IDs must be unique in case there are multiple Blockly instances
|
|
97
|
-
* on the same page.
|
|
98
|
-
*/
|
|
99
|
-
private createZoomOutSvg;
|
|
100
|
-
/**
|
|
101
|
-
* Create the zoom out icon and its event handler.
|
|
102
|
-
*
|
|
103
|
-
* @param rnd The random string to use as a suffix in the clip path's ID.
|
|
104
|
-
* These IDs must be unique in case there are multiple Blockly instances
|
|
105
|
-
* on the same page.
|
|
106
|
-
*/
|
|
107
|
-
private createZoomInSvg;
|
|
108
|
-
/**
|
|
109
|
-
* Handles a mouse down event on the zoom in or zoom out buttons on the
|
|
110
|
-
* workspace.
|
|
111
|
-
*
|
|
112
|
-
* @param amount Amount of zooming. Negative amount values zoom out, and
|
|
113
|
-
* positive amount values zoom in.
|
|
114
|
-
* @param e A mouse down event.
|
|
115
|
-
*/
|
|
116
|
-
private zoom;
|
|
117
|
-
/**
|
|
118
|
-
* Create the zoom reset icon and its event handler.
|
|
119
|
+
* Returns the individual zoom control, if any, with the given ID. Used for
|
|
120
|
+
* focus management.
|
|
119
121
|
*
|
|
120
|
-
* @
|
|
121
|
-
* These IDs must be unique in case there are multiple Blockly instances
|
|
122
|
-
* on the same page.
|
|
122
|
+
* @internal
|
|
123
123
|
*/
|
|
124
|
-
|
|
125
|
-
/**
|
|
126
|
-
* Handles a mouse down event on the reset zoom button on the workspace.
|
|
127
|
-
*
|
|
128
|
-
* @param e A mouse down event.
|
|
129
|
-
*/
|
|
130
|
-
private resetZoom;
|
|
131
|
-
/** Fires a zoom control UI event. */
|
|
132
|
-
private fireZoomEvent;
|
|
124
|
+
getControlWithId(id: string): ZoomControl | undefined;
|
|
133
125
|
}
|
|
126
|
+
export {};
|
|
134
127
|
//# sourceMappingURL=zoom_controls.d.ts.map
|