blockly 9.0.0-beta.1 → 9.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 +569 -542
- package/blockly_compressed.js +563 -536
- package/blockly_compressed.js.map +1 -1
- package/blocks_compressed.js +6 -6
- package/blocks_compressed.js.map +1 -1
- package/core/block.d.ts +11 -0
- package/core/block_svg.d.ts +3 -3
- package/core/blockly.d.ts +2 -2
- package/core/events/events.d.ts +50 -24
- package/core/events/events_abstract.d.ts +8 -4
- package/core/events/events_block_base.d.ts +8 -6
- package/core/events/events_block_change.d.ts +14 -8
- package/core/events/events_block_create.d.ts +12 -6
- package/core/events/events_block_delete.d.ts +14 -7
- package/core/events/events_block_drag.d.ts +9 -3
- package/core/events/events_block_move.d.ts +15 -9
- package/core/events/events_bubble_open.d.ts +16 -5
- package/core/events/events_click.d.ts +15 -5
- package/core/events/events_comment_base.d.ts +7 -5
- package/core/events/events_comment_change.d.ts +9 -5
- package/core/events/events_comment_create.d.ts +7 -4
- package/core/events/events_comment_delete.d.ts +1 -13
- package/core/events/events_comment_move.d.ts +10 -6
- package/core/events/events_marker_move.d.ts +11 -4
- package/core/events/events_selected.d.ts +9 -4
- package/core/events/events_theme_change.d.ts +6 -2
- package/core/events/events_toolbox_item_select.d.ts +9 -4
- package/core/events/events_trashcan_open.d.ts +6 -2
- package/core/events/events_var_base.d.ts +8 -6
- package/core/events/events_var_create.d.ts +9 -5
- package/core/events/events_var_delete.d.ts +9 -5
- package/core/events/events_var_rename.d.ts +9 -5
- package/core/events/events_viewport.d.ts +9 -2
- package/core/events/workspace_events.d.ts +6 -5
- package/core/field.d.ts +0 -2
- package/core/gesture.d.ts +8 -9
- package/core/grid.d.ts +1 -1
- package/core/icon.d.ts +6 -2
- package/core/interfaces/i_component.d.ts +1 -1
- package/core/menu.d.ts +2 -1
- package/core/msg.d.ts +14 -0
- package/core/mutator.d.ts +1 -1
- package/core/rendered_connection.d.ts +1 -0
- package/core/renderers/common/constants.d.ts +8 -1
- package/core/renderers/common/drawer.d.ts +4 -3
- package/core/renderers/common/i_path_object.d.ts +22 -16
- package/core/renderers/common/info.d.ts +3 -3
- package/core/renderers/common/marker_svg.d.ts +7 -5
- package/core/renderers/common/path_object.d.ts +3 -3
- package/core/renderers/geras/constants.d.ts +4 -2
- package/core/renderers/geras/drawer.d.ts +2 -1
- package/core/renderers/geras/path_object.d.ts +0 -1
- package/core/renderers/measurables/icon.d.ts +1 -0
- package/core/renderers/measurables/row.d.ts +3 -3
- package/core/renderers/measurables/top_row.d.ts +0 -1
- package/core/renderers/minimalist/info.d.ts +1 -0
- package/core/renderers/thrasos/info.d.ts +1 -3
- package/core/renderers/zelos/constants.d.ts +20 -41
- package/core/renderers/zelos/measurables/inputs.d.ts +0 -1
- package/core/renderers/zelos/path_object.d.ts +1 -1
- package/core/theme.d.ts +27 -27
- package/core/toolbox/category.d.ts +18 -17
- package/core/toolbox/toolbox.d.ts +1 -1
- package/core/touch_gesture.d.ts +3 -2
- package/core/utils/coordinate.d.ts +1 -1
- package/core/utils/dom.d.ts +11 -8
- package/core/utils/idgenerator.d.ts +1 -1
- package/core/zoom_controls.d.ts +1 -1
- package/core-browser.js +0 -6
- package/core.js +0 -6
- package/dart.d.ts +1 -2
- package/javascript.d.ts +1 -2
- package/lua.d.ts +1 -2
- package/msg/ab.d.ts +8 -0
- package/msg/ace.d.ts +8 -0
- package/msg/af.d.ts +8 -0
- package/msg/am.d.ts +8 -0
- package/msg/ar.d.ts +8 -0
- package/msg/ast.d.ts +8 -0
- package/msg/az.d.ts +8 -0
- package/msg/ba.d.ts +8 -0
- package/msg/bcc.d.ts +8 -0
- package/msg/be-tarask.d.ts +8 -0
- package/msg/be.d.ts +8 -0
- package/msg/bg.d.ts +8 -0
- package/msg/bn.d.ts +8 -0
- package/msg/br.d.ts +8 -0
- package/msg/bs.d.ts +8 -0
- package/msg/ca.d.ts +8 -0
- package/msg/cdo.d.ts +8 -0
- package/msg/constants.d.ts +16 -0
- package/msg/cs.d.ts +8 -0
- package/msg/da.d.ts +8 -0
- package/msg/de.d.ts +8 -0
- package/msg/diq.d.ts +8 -0
- package/msg/dty.d.ts +8 -0
- package/msg/ee.d.ts +8 -0
- package/msg/el.d.ts +8 -0
- package/msg/en-gb.d.ts +8 -0
- package/msg/en.d.ts +8 -0
- package/msg/eo.d.ts +8 -0
- package/msg/es.d.ts +8 -0
- package/msg/et.d.ts +8 -0
- package/msg/eu.d.ts +8 -0
- package/msg/fa.d.ts +8 -0
- package/msg/fi.d.ts +8 -0
- package/msg/fo.d.ts +8 -0
- package/msg/fr.d.ts +8 -0
- package/msg/frr.d.ts +8 -0
- package/msg/gl.d.ts +8 -0
- package/msg/gn.d.ts +8 -0
- package/msg/gor.d.ts +8 -0
- package/msg/ha.d.ts +8 -0
- package/msg/hak.d.ts +8 -0
- package/msg/he.d.ts +8 -0
- package/msg/hi.d.ts +8 -0
- package/msg/hr.d.ts +8 -0
- package/msg/hrx.d.ts +8 -0
- package/msg/hu.d.ts +8 -0
- package/msg/hy.d.ts +8 -0
- package/msg/ia.d.ts +8 -0
- package/msg/id.d.ts +8 -0
- package/msg/ig.d.ts +8 -0
- package/msg/inh.d.ts +8 -0
- package/msg/is.d.ts +8 -0
- package/msg/it.d.ts +8 -0
- package/msg/ja.d.ts +8 -0
- package/msg/ka.d.ts +8 -0
- package/msg/kab.d.ts +8 -0
- package/msg/kbd-cyrl.d.ts +8 -0
- package/msg/km.d.ts +8 -0
- package/msg/kn.d.ts +8 -0
- package/msg/ko.d.ts +8 -0
- package/msg/ksh.d.ts +8 -0
- package/msg/ku-latn.d.ts +8 -0
- package/msg/ky.d.ts +8 -0
- package/msg/la.d.ts +8 -0
- package/msg/lb.d.ts +8 -0
- package/msg/lki.d.ts +8 -0
- package/msg/lo.d.ts +8 -0
- package/msg/lrc.d.ts +8 -0
- package/msg/lt.d.ts +8 -0
- package/msg/lv.d.ts +8 -0
- package/msg/mg.d.ts +8 -0
- package/msg/mk.d.ts +8 -0
- package/msg/ml.d.ts +8 -0
- package/msg/mnw.d.ts +8 -0
- package/msg/ms.d.ts +8 -0
- package/msg/msg.d.ts +429 -432
- package/msg/my.d.ts +8 -0
- package/msg/mzn.d.ts +8 -0
- package/msg/nb.d.ts +8 -0
- package/msg/ne.d.ts +8 -0
- package/msg/nl.d.ts +8 -0
- package/msg/oc.d.ts +8 -0
- package/msg/olo.d.ts +8 -0
- package/msg/pa.d.ts +8 -0
- package/msg/pl.d.ts +8 -0
- package/msg/pms.d.ts +8 -0
- package/msg/ps.d.ts +8 -0
- package/msg/pt-br.d.ts +8 -0
- package/msg/pt.d.ts +8 -0
- package/msg/qqq.d.ts +16 -0
- package/msg/ro.d.ts +8 -0
- package/msg/ru.d.ts +8 -0
- package/msg/sc.d.ts +8 -0
- package/msg/sco.d.ts +8 -0
- package/msg/sd.d.ts +8 -0
- package/msg/shn.d.ts +8 -0
- package/msg/si.d.ts +8 -0
- package/msg/sk.d.ts +8 -0
- package/msg/skr-arab.d.ts +8 -0
- package/msg/sl.d.ts +8 -0
- package/msg/smn.d.ts +8 -0
- package/msg/sq.d.ts +8 -0
- package/msg/sr-latn.d.ts +8 -0
- package/msg/sr.d.ts +8 -0
- package/msg/sv.d.ts +8 -0
- package/msg/sw.d.ts +8 -0
- package/msg/synonyms.d.ts +16 -0
- package/msg/ta.d.ts +8 -0
- package/msg/tcy.d.ts +8 -0
- package/msg/te.d.ts +8 -0
- package/msg/th.d.ts +8 -0
- package/msg/ti.d.ts +8 -0
- package/msg/tl.d.ts +8 -0
- package/msg/tlh.d.ts +8 -0
- package/msg/tr.d.ts +8 -0
- package/msg/ug-arab.d.ts +8 -0
- package/msg/uk.d.ts +8 -0
- package/msg/ur.d.ts +8 -0
- package/msg/uz.d.ts +8 -0
- package/msg/vi.d.ts +8 -0
- package/msg/xmf.d.ts +8 -0
- package/msg/yo.d.ts +8 -0
- package/msg/yue.d.ts +8 -0
- package/msg/zgh.d.ts +8 -0
- package/msg/zh-hans.d.ts +8 -0
- package/msg/zh-hant.d.ts +8 -0
- package/package.json +3 -3
- package/php.d.ts +1 -2
- package/python.d.ts +1 -2
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
import type { ICollapsibleToolboxItem } from '../interfaces/i_collapsible_toolbox_item.js';
|
|
7
7
|
import type { ISelectableToolboxItem } from '../interfaces/i_selectable_toolbox_item.js';
|
|
8
8
|
import type { IToolbox } from '../interfaces/i_toolbox.js';
|
|
9
|
-
import
|
|
9
|
+
import type { CategoryInfo, FlyoutDefinition, FlyoutItemInfoArray } from '../utils/toolbox.js';
|
|
10
10
|
import { ToolboxItem } from './toolbox_item.js';
|
|
11
11
|
/**
|
|
12
12
|
* Class for a category in a toolbox.
|
|
@@ -25,7 +25,7 @@ export declare class ToolboxCategory extends ToolboxItem implements ISelectableT
|
|
|
25
25
|
* of the category when it is selected.
|
|
26
26
|
*/
|
|
27
27
|
static defaultBackgroundColour: string;
|
|
28
|
-
toolboxItemDef_:
|
|
28
|
+
toolboxItemDef_: CategoryInfo;
|
|
29
29
|
/** The name that will be displayed on the category. */
|
|
30
30
|
protected name_: string;
|
|
31
31
|
/** The colour of the category. */
|
|
@@ -46,7 +46,7 @@ export declare class ToolboxCategory extends ToolboxItem implements ISelectableT
|
|
|
46
46
|
/** True if this category is disabled, false otherwise. */
|
|
47
47
|
protected isDisabled_: boolean;
|
|
48
48
|
/** The flyout items for this category. */
|
|
49
|
-
protected flyoutItems_: string |
|
|
49
|
+
protected flyoutItems_: string | FlyoutItemInfoArray;
|
|
50
50
|
/**
|
|
51
51
|
* @param categoryDef The information needed to create a category in the
|
|
52
52
|
* toolbox.
|
|
@@ -54,7 +54,7 @@ export declare class ToolboxCategory extends ToolboxItem implements ISelectableT
|
|
|
54
54
|
* @param opt_parent The parent category or null if the category does not have
|
|
55
55
|
* a parent.
|
|
56
56
|
*/
|
|
57
|
-
constructor(categoryDef:
|
|
57
|
+
constructor(categoryDef: CategoryInfo, parentToolbox: IToolbox, opt_parent?: ICollapsibleToolboxItem);
|
|
58
58
|
/**
|
|
59
59
|
* Initializes the toolbox item.
|
|
60
60
|
* This includes creating the DOM and updating the state of any items based
|
|
@@ -76,13 +76,13 @@ export declare class ToolboxCategory extends ToolboxItem implements ISelectableT
|
|
|
76
76
|
*
|
|
77
77
|
* @param categoryDef The information needed to create a category.
|
|
78
78
|
*/
|
|
79
|
-
protected parseContents_(categoryDef:
|
|
79
|
+
protected parseContents_(categoryDef: CategoryInfo): void;
|
|
80
80
|
/**
|
|
81
81
|
* Parses the non-contents parts of the category def.
|
|
82
82
|
*
|
|
83
83
|
* @param categoryDef The information needed to create a category.
|
|
84
84
|
*/
|
|
85
|
-
protected parseCategoryDef_(categoryDef:
|
|
85
|
+
protected parseCategoryDef_(categoryDef: CategoryInfo): void;
|
|
86
86
|
/**
|
|
87
87
|
* Creates the DOM for the category.
|
|
88
88
|
*
|
|
@@ -137,7 +137,7 @@ export declare class ToolboxCategory extends ToolboxItem implements ISelectableT
|
|
|
137
137
|
* @param categoryDef The object holding information on the category.
|
|
138
138
|
* @returns The hex colour for the category.
|
|
139
139
|
*/
|
|
140
|
-
protected getColour_(categoryDef:
|
|
140
|
+
protected getColour_(categoryDef: CategoryInfo): string;
|
|
141
141
|
/**
|
|
142
142
|
* Sets the colour for the category using the style name and returns the new
|
|
143
143
|
* colour as a hex string.
|
|
@@ -237,7 +237,7 @@ export declare class ToolboxCategory extends ToolboxItem implements ISelectableT
|
|
|
237
237
|
*
|
|
238
238
|
* @returns The definition of items to be displayed in the flyout.
|
|
239
239
|
*/
|
|
240
|
-
getContents():
|
|
240
|
+
getContents(): FlyoutItemInfoArray | string;
|
|
241
241
|
/**
|
|
242
242
|
* Updates the contents to be displayed in the flyout.
|
|
243
243
|
* If the flyout is open when the contents are updated, refreshSelection on
|
|
@@ -246,20 +246,21 @@ export declare class ToolboxCategory extends ToolboxItem implements ISelectableT
|
|
|
246
246
|
* @param contents The contents to be displayed in the flyout. A string can be
|
|
247
247
|
* supplied to create a dynamic category.
|
|
248
248
|
*/
|
|
249
|
-
updateFlyoutContents(contents:
|
|
249
|
+
updateFlyoutContents(contents: FlyoutDefinition | string): void;
|
|
250
250
|
dispose(): void;
|
|
251
251
|
}
|
|
252
252
|
export declare namespace ToolboxCategory {
|
|
253
253
|
/** All the CSS class names that are used to create a category. */
|
|
254
254
|
interface CssConfig {
|
|
255
|
-
container
|
|
256
|
-
row
|
|
257
|
-
rowcontentcontainer
|
|
258
|
-
icon
|
|
259
|
-
label
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
255
|
+
container?: string;
|
|
256
|
+
row?: string;
|
|
257
|
+
rowcontentcontainer?: string;
|
|
258
|
+
icon?: string;
|
|
259
|
+
label?: string;
|
|
260
|
+
contents?: string;
|
|
261
|
+
selected?: string;
|
|
262
|
+
openicon?: string;
|
|
263
|
+
closedicon?: string;
|
|
263
264
|
}
|
|
264
265
|
}
|
|
265
266
|
export declare type CssConfig = ToolboxCategory.CssConfig;
|
|
@@ -26,7 +26,7 @@ import type { WorkspaceSvg } from '../workspace_svg.js';
|
|
|
26
26
|
*/
|
|
27
27
|
export declare class Toolbox extends DeleteArea implements IAutoHideable, IKeyboardAccessible, IStyleable, IToolbox {
|
|
28
28
|
/**
|
|
29
|
-
* The unique
|
|
29
|
+
* The unique ID for this component that is used to register with the
|
|
30
30
|
* ComponentManager.
|
|
31
31
|
*/
|
|
32
32
|
id: string;
|
package/core/touch_gesture.d.ts
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
* Copyright 2017 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
*/
|
|
6
|
+
import * as browserEvents from './browser_events.js';
|
|
6
7
|
import { Gesture } from './gesture.js';
|
|
7
8
|
import { Coordinate } from './utils/coordinate.js';
|
|
8
9
|
/**
|
|
@@ -32,8 +33,8 @@ export declare class TouchGesture extends Gesture {
|
|
|
32
33
|
private onStartWrapper_;
|
|
33
34
|
/** Boolean for whether or not the workspace supports pinch-zoom. */
|
|
34
35
|
private isPinchZoomEnabled_;
|
|
35
|
-
onMoveWrapper_:
|
|
36
|
-
onUpWrapper_:
|
|
36
|
+
onMoveWrapper_: browserEvents.Data | null;
|
|
37
|
+
onUpWrapper_: browserEvents.Data | null;
|
|
37
38
|
/**
|
|
38
39
|
* Start a gesture: update the workspace to indicate that a gesture is in
|
|
39
40
|
* progress and bind mousemove and mouseup handlers.
|
|
@@ -45,7 +45,7 @@ export declare class Coordinate {
|
|
|
45
45
|
* @param b A Coordinate.
|
|
46
46
|
* @returns True iff the coordinates are equal, or if both are null.
|
|
47
47
|
*/
|
|
48
|
-
static equals(a
|
|
48
|
+
static equals(a?: Coordinate | null, b?: Coordinate | null): boolean;
|
|
49
49
|
/**
|
|
50
50
|
* Returns the distance between two coordinates.
|
|
51
51
|
*
|
package/core/utils/dom.d.ts
CHANGED
|
@@ -43,10 +43,13 @@ export declare enum NodeType {
|
|
|
43
43
|
* @returns if name is a string or a more specific type if it a member of Svg.
|
|
44
44
|
* @alias Blockly.utils.dom.createSvgElement
|
|
45
45
|
*/
|
|
46
|
-
export declare function createSvgElement<T extends SVGElement>(name: string | Svg<T>, attrs:
|
|
46
|
+
export declare function createSvgElement<T extends SVGElement>(name: string | Svg<T>, attrs: {
|
|
47
|
+
[key: string]: string | number;
|
|
48
|
+
}, opt_parent?: Element | null): T;
|
|
47
49
|
/**
|
|
48
50
|
* Add a CSS class to a element.
|
|
49
|
-
*
|
|
51
|
+
*
|
|
52
|
+
* Handles multiple space-separated classes for legacy reasons.
|
|
50
53
|
*
|
|
51
54
|
* @param element DOM element to add class to.
|
|
52
55
|
* @param className Name of class to add.
|
|
@@ -55,7 +58,7 @@ export declare function createSvgElement<T extends SVGElement>(name: string | Sv
|
|
|
55
58
|
*/
|
|
56
59
|
export declare function addClass(element: Element, className: string): boolean;
|
|
57
60
|
/**
|
|
58
|
-
* Removes multiple
|
|
61
|
+
* Removes multiple classes from an element.
|
|
59
62
|
*
|
|
60
63
|
* @param element DOM element to remove classes from.
|
|
61
64
|
* @param classNames A string of one or multiple class names for an element.
|
|
@@ -64,7 +67,8 @@ export declare function addClass(element: Element, className: string): boolean;
|
|
|
64
67
|
export declare function removeClasses(element: Element, classNames: string): void;
|
|
65
68
|
/**
|
|
66
69
|
* Remove a CSS class from a element.
|
|
67
|
-
*
|
|
70
|
+
*
|
|
71
|
+
* Handles multiple space-separated classes for legacy reasons.
|
|
68
72
|
*
|
|
69
73
|
* @param element DOM element to remove class from.
|
|
70
74
|
* @param className Name of class to remove.
|
|
@@ -74,7 +78,6 @@ export declare function removeClasses(element: Element, classNames: string): voi
|
|
|
74
78
|
export declare function removeClass(element: Element, className: string): boolean;
|
|
75
79
|
/**
|
|
76
80
|
* Checks if an element has the specified CSS class.
|
|
77
|
-
* Similar to Closure's goog.dom.classes.has, except it handles SVG elements.
|
|
78
81
|
*
|
|
79
82
|
* @param element DOM element to check.
|
|
80
83
|
* @param className Name of class to check.
|
|
@@ -117,7 +120,7 @@ export declare function containsNode(parent: Node, descendant: Node): boolean;
|
|
|
117
120
|
* @param transform The value of the CSS `transform` property.
|
|
118
121
|
* @alias Blockly.utils.dom.setCssTransform
|
|
119
122
|
*/
|
|
120
|
-
export declare function setCssTransform(element:
|
|
123
|
+
export declare function setCssTransform(element: HTMLElement | SVGElement, transform: string): void;
|
|
121
124
|
/**
|
|
122
125
|
* Start caching text widths. Every call to this function MUST also call
|
|
123
126
|
* stopTextWidthCache. Caches must not survive between execution threads.
|
|
@@ -152,7 +155,7 @@ export declare function getTextWidth(textElement: SVGTextElement): number;
|
|
|
152
155
|
* @returns Width of element.
|
|
153
156
|
* @alias Blockly.utils.dom.getFastTextWidth
|
|
154
157
|
*/
|
|
155
|
-
export declare function getFastTextWidth(textElement:
|
|
158
|
+
export declare function getFastTextWidth(textElement: SVGTextElement, fontSize: number, fontWeight: string, fontFamily: string): number;
|
|
156
159
|
/**
|
|
157
160
|
* Gets the width of a text element using a faster method than `getTextWidth`.
|
|
158
161
|
* This method requires that we know the text element's font family and size in
|
|
@@ -167,7 +170,7 @@ export declare function getFastTextWidth(textElement: Element, fontSize: number,
|
|
|
167
170
|
* @returns Width of element.
|
|
168
171
|
* @alias Blockly.utils.dom.getFastTextWidthWithSizeString
|
|
169
172
|
*/
|
|
170
|
-
export declare function getFastTextWidthWithSizeString(textElement:
|
|
173
|
+
export declare function getFastTextWidthWithSizeString(textElement: SVGTextElement, fontSize: string, fontWeight: string, fontFamily: string): number;
|
|
171
174
|
/**
|
|
172
175
|
* Measure a font's metrics. The height and baseline values.
|
|
173
176
|
*
|
|
@@ -14,7 +14,7 @@ export declare const TEST_ONLY: {
|
|
|
14
14
|
};
|
|
15
15
|
/**
|
|
16
16
|
* Generate the next unique element IDs.
|
|
17
|
-
* IDs are compatible with the HTML4 id attribute restrictions:
|
|
17
|
+
* IDs are compatible with the HTML4 'id' attribute restrictions:
|
|
18
18
|
* Use only ASCII letters, digits, '_', '-' and '.'
|
|
19
19
|
*
|
|
20
20
|
* For UUIDs use genUid (below) instead; this ID generator should
|
package/core/zoom_controls.d.ts
CHANGED
|
@@ -16,7 +16,7 @@ import type { WorkspaceSvg } from './workspace_svg.js';
|
|
|
16
16
|
export declare class ZoomControls implements IPositionable {
|
|
17
17
|
private readonly workspace;
|
|
18
18
|
/**
|
|
19
|
-
* The unique
|
|
19
|
+
* The unique ID for this component that is used to register with the
|
|
20
20
|
* ComponentManager.
|
|
21
21
|
*/
|
|
22
22
|
id: string;
|
package/core-browser.js
CHANGED
|
@@ -22,12 +22,6 @@
|
|
|
22
22
|
/* eslint-disable */
|
|
23
23
|
'use strict';
|
|
24
24
|
|
|
25
|
-
// Add a helper method to set the Blockly locale.
|
|
26
|
-
Blockly.setLocale = function (locale) {
|
|
27
|
-
Object.keys(locale).forEach(function (k) {
|
|
28
|
-
Blockly.Msg[k] = locale[k];
|
|
29
|
-
});
|
|
30
|
-
};
|
|
31
25
|
|
|
32
26
|
return Blockly;
|
|
33
27
|
}));
|
package/core.js
CHANGED
|
@@ -14,12 +14,6 @@
|
|
|
14
14
|
/* eslint-disable */
|
|
15
15
|
'use strict';
|
|
16
16
|
|
|
17
|
-
// Add a helper method to set the Blockly locale.
|
|
18
|
-
Blockly.setLocale = function (locale) {
|
|
19
|
-
Object.keys(locale).forEach(function (k) {
|
|
20
|
-
Blockly.Msg[k] = locale[k];
|
|
21
|
-
});
|
|
22
|
-
};
|
|
23
17
|
|
|
24
18
|
// Override textToDomDocument and provide Node.js alternatives to DOMParser and
|
|
25
19
|
// XMLSerializer.
|
package/dart.d.ts
CHANGED
package/javascript.d.ts
CHANGED
package/lua.d.ts
CHANGED
package/msg/ab.d.ts
ADDED
package/msg/ace.d.ts
ADDED
package/msg/af.d.ts
ADDED
package/msg/am.d.ts
ADDED
package/msg/ar.d.ts
ADDED
package/msg/ast.d.ts
ADDED
package/msg/az.d.ts
ADDED
package/msg/ba.d.ts
ADDED
package/msg/bcc.d.ts
ADDED
package/msg/be.d.ts
ADDED
package/msg/bg.d.ts
ADDED
package/msg/bn.d.ts
ADDED
package/msg/br.d.ts
ADDED
package/msg/bs.d.ts
ADDED
package/msg/ca.d.ts
ADDED
package/msg/cdo.d.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2020 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* @fileoverview Type definitions for the Blockly constants locale.
|
|
9
|
+
* @author samelh@google.com (Sam El-Husseini)
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
/// <reference path="msg.d.ts" />
|
|
13
|
+
|
|
14
|
+
import BlocklyMsg = Blockly.Msg;
|
|
15
|
+
export = BlocklyMsg;
|
|
16
|
+
|
package/msg/cs.d.ts
ADDED
package/msg/da.d.ts
ADDED
package/msg/de.d.ts
ADDED
package/msg/diq.d.ts
ADDED
package/msg/dty.d.ts
ADDED
package/msg/ee.d.ts
ADDED
package/msg/el.d.ts
ADDED
package/msg/en-gb.d.ts
ADDED
package/msg/en.d.ts
ADDED
package/msg/eo.d.ts
ADDED
package/msg/es.d.ts
ADDED
package/msg/et.d.ts
ADDED
package/msg/eu.d.ts
ADDED
package/msg/fa.d.ts
ADDED
package/msg/fi.d.ts
ADDED
package/msg/fo.d.ts
ADDED
package/msg/fr.d.ts
ADDED
package/msg/frr.d.ts
ADDED