blockly 9.0.0-beta.4 → 9.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.
Files changed (103) hide show
  1. package/README.md +3 -3
  2. package/blockly.min.js +295 -304
  3. package/blockly_compressed.js +295 -304
  4. package/blockly_compressed.js.map +1 -1
  5. package/core/block_drag_surface.d.ts +5 -1
  6. package/core/blockly.d.ts +9 -19
  7. package/core/css.d.ts +1 -1
  8. package/core/renderers/common/block_rendering.d.ts +2 -18
  9. package/core/utils/object.d.ts +3 -0
  10. package/core/utils/string.d.ts +1 -1
  11. package/core/utils/style.d.ts +1 -0
  12. package/core/utils/svg_math.d.ts +1 -10
  13. package/core/utils.d.ts +13 -71
  14. package/core/workspace_svg.d.ts +0 -6
  15. package/msg/ar.js +25 -25
  16. package/msg/az.js +17 -17
  17. package/msg/bcc.js +4 -4
  18. package/msg/be-tarask.js +16 -16
  19. package/msg/be.js +6 -6
  20. package/msg/bg.js +10 -10
  21. package/msg/bn.js +1 -1
  22. package/msg/br.js +18 -18
  23. package/msg/ca.js +1 -1
  24. package/msg/cs.js +12 -12
  25. package/msg/da.js +15 -15
  26. package/msg/de.js +40 -40
  27. package/msg/diq.js +17 -17
  28. package/msg/dty.js +2 -2
  29. package/msg/ee.js +1 -1
  30. package/msg/el.js +43 -43
  31. package/msg/en-gb.js +13 -13
  32. package/msg/eo.js +3 -3
  33. package/msg/es.js +9 -9
  34. package/msg/et.js +12 -12
  35. package/msg/eu.js +2 -2
  36. package/msg/fa.js +2 -2
  37. package/msg/fi.js +11 -11
  38. package/msg/fr.js +28 -28
  39. package/msg/gor.js +7 -7
  40. package/msg/ha.js +18 -18
  41. package/msg/he.js +7 -7
  42. package/msg/hi.js +18 -18
  43. package/msg/hr.js +13 -13
  44. package/msg/hrx.js +2 -2
  45. package/msg/hu.js +3 -3
  46. package/msg/hy.js +1 -1
  47. package/msg/ia.js +8 -8
  48. package/msg/id.js +29 -29
  49. package/msg/ig.js +26 -26
  50. package/msg/is.js +64 -64
  51. package/msg/it.js +4 -4
  52. package/msg/ja.js +53 -53
  53. package/msg/ka.js +2 -2
  54. package/msg/kab.js +16 -16
  55. package/msg/kbd-cyrl.js +3 -3
  56. package/msg/km.js +1 -1
  57. package/msg/kn.js +18 -18
  58. package/msg/ko.js +47 -47
  59. package/msg/ksh.js +1 -1
  60. package/msg/ky.js +2 -2
  61. package/msg/lb.js +3 -3
  62. package/msg/lki.js +14 -14
  63. package/msg/lo.js +1 -1
  64. package/msg/lrc.js +15 -15
  65. package/msg/lt.js +16 -16
  66. package/msg/lv.js +15 -15
  67. package/msg/mk.js +1 -1
  68. package/msg/mnw.js +5 -5
  69. package/msg/ms.js +14 -14
  70. package/msg/nb.js +37 -37
  71. package/msg/ne.js +1 -1
  72. package/msg/nl.js +39 -39
  73. package/msg/oc.js +8 -8
  74. package/msg/pa.js +2 -2
  75. package/msg/pl.js +30 -30
  76. package/msg/pms.js +32 -32
  77. package/msg/pt-br.js +21 -21
  78. package/msg/pt.js +16 -16
  79. package/msg/ro.js +25 -25
  80. package/msg/ru.js +25 -25
  81. package/msg/sc.js +16 -16
  82. package/msg/sd.js +4 -4
  83. package/msg/sk.js +16 -16
  84. package/msg/skr-arab.js +4 -4
  85. package/msg/sl.js +49 -49
  86. package/msg/sq.js +14 -14
  87. package/msg/sr-latn.js +22 -22
  88. package/msg/sr.js +26 -26
  89. package/msg/sv.js +29 -29
  90. package/msg/ta.js +10 -10
  91. package/msg/tcy.js +5 -5
  92. package/msg/tdd.js +440 -0
  93. package/msg/th.js +8 -8
  94. package/msg/tr.js +16 -16
  95. package/msg/uk.js +17 -17
  96. package/msg/ur.js +5 -5
  97. package/msg/uz.js +1 -1
  98. package/msg/vi.js +17 -17
  99. package/msg/yo.js +15 -15
  100. package/msg/zgh.js +11 -11
  101. package/msg/zh-hans.js +16 -16
  102. package/msg/zh-hant.js +12 -12
  103. package/package.json +1 -1
@@ -33,7 +33,11 @@ export declare class BlockDragSurfaceSvg {
33
33
  private readonly childSurfaceXY_;
34
34
  /** @param container Containing element. */
35
35
  constructor(container: Element);
36
- /** Create the drag surface and inject it into the container. */
36
+ /**
37
+ * Create the drag surface and inject it into the container.
38
+ *
39
+ * @deprecated The DOM is automatically created by the constructor.
40
+ */
37
41
  createDom(): void;
38
42
  /**
39
43
  * Set the SVG blocks on the drag surface's group and show the surface.
package/core/blockly.d.ts CHANGED
@@ -282,22 +282,12 @@ export declare const defineBlocksWithJsonArray: typeof common.defineBlocksWithJs
282
282
  * @alias Blockly.setParentContainer
283
283
  */
284
284
  export declare const setParentContainer: typeof common.setParentContainer;
285
- /**
286
- * Returns the dimensions of the specified SVG image.
287
- *
288
- * @param svg SVG image.
289
- * @returns Contains width and height properties.
290
- * @deprecated Use workspace.setCachedParentSvgSize. (2021 March 5)
291
- * @see Blockly.WorkspaceSvg.setCachedParentSvgSize
292
- * @alias Blockly.svgSize
293
- */
294
- export declare const svgSize: typeof utils.svgMath.svgSize;
295
285
  /**
296
286
  * Size the workspace when the contents change. This also updates
297
287
  * scrollbars accordingly.
298
288
  *
299
289
  * @param workspace The workspace to resize.
300
- * @deprecated Use workspace.resizeContents. (2021 December)
290
+ * @deprecated Use **workspace.resizeContents** instead.
301
291
  * @see Blockly.WorkspaceSvg.resizeContents
302
292
  * @alias Blockly.resizeSvgContents
303
293
  */
@@ -307,7 +297,7 @@ export declare const resizeSvgContents: typeof resizeSvgContentsLocal;
307
297
  * Copy a block or workspace comment onto the local clipboard.
308
298
  *
309
299
  * @param toCopy Block or Workspace Comment to be copied.
310
- * @deprecated Use Blockly.clipboard.copy(). (2021 December)
300
+ * @deprecated Use **Blockly.clipboard.copy** instead.
311
301
  * @see Blockly.clipboard.copy
312
302
  * @alias Blockly.copy
313
303
  */
@@ -316,7 +306,7 @@ export declare function copy(toCopy: ICopyable): void;
316
306
  * Paste a block or workspace comment on to the main workspace.
317
307
  *
318
308
  * @returns True if the paste was successful, false otherwise.
319
- * @deprecated Use Blockly.clipboard.paste(). (2021 December)
309
+ * @deprecated Use **Blockly.clipboard.paste** instead.
320
310
  * @see Blockly.clipboard.paste
321
311
  * @alias Blockly.paste
322
312
  */
@@ -325,7 +315,7 @@ export declare function paste(): boolean;
325
315
  * Duplicate this block and its children, or a workspace comment.
326
316
  *
327
317
  * @param toDuplicate Block or Workspace Comment to be copied.
328
- * @deprecated Use Blockly.clipboard.duplicate(). (2021 December)
318
+ * @deprecated Use **Blockly.clipboard.duplicate** instead.
329
319
  * @see Blockly.clipboard.duplicate
330
320
  * @alias Blockly.duplicate
331
321
  */
@@ -335,7 +325,7 @@ export declare function duplicate(toDuplicate: ICopyable): void;
335
325
  *
336
326
  * @param str Input string.
337
327
  * @returns True if number, false otherwise.
338
- * @deprecated Use Blockly.utils.string.isNumber(str). (2021 December)
328
+ * @deprecated Use **Blockly.utils.string.isNumber** instead.
339
329
  * @see Blockly.utils.string.isNumber
340
330
  * @alias Blockly.isNumber
341
331
  */
@@ -345,7 +335,7 @@ export declare function isNumber(str: string): boolean;
345
335
  *
346
336
  * @param hue Hue on a colour wheel (0-360).
347
337
  * @returns RGB code, e.g. '#5ba65b'.
348
- * @deprecated Use Blockly.utils.colour.hueToHex(). (2021 December)
338
+ * @deprecated Use **Blockly.utils.colour.hueToHex** instead.
349
339
  * @see Blockly.utils.colour.hueToHex
350
340
  * @alias Blockly.hueToHex
351
341
  */
@@ -361,7 +351,7 @@ export declare function hueToHex(hue: number): string;
361
351
  * @param thisObject The value of 'this' in the function.
362
352
  * @param func Function to call when event is triggered.
363
353
  * @returns Opaque data that can be passed to unbindEvent_.
364
- * @deprecated Use Blockly.browserEvents.bind(). (December 2021)
354
+ * @deprecated Use **Blockly.browserEvents.bind** instead.
365
355
  * @see Blockly.browserEvents.bind
366
356
  * @alias Blockly.bindEvent_
367
357
  */
@@ -372,7 +362,7 @@ export declare function bindEvent_(node: EventTarget, name: string, thisObject:
372
362
  * @param bindData Opaque data from bindEvent_.
373
363
  * This list is emptied during the course of calling this function.
374
364
  * @returns The function call.
375
- * @deprecated Use Blockly.browserEvents.unbind(). (December 2021)
365
+ * @deprecated Use **Blockly.browserEvents.unbind** instead.
376
366
  * @see browserEvents.unbind
377
367
  * @alias Blockly.unbindEvent_
378
368
  */
@@ -394,7 +384,7 @@ export declare function unbindEvent_(bindData: browserEvents.Data): Function;
394
384
  * the default handler. False by default. If opt_noPreventDefault is
395
385
  * provided, opt_noCaptureIdentifier must also be provided.
396
386
  * @returns Opaque data that can be passed to unbindEvent_.
397
- * @deprecated Use Blockly.browserEvents.conditionalBind(). (December 2021)
387
+ * @deprecated Use **Blockly.browserEvents.conditionalBind** instead.
398
388
  * @see browserEvents.conditionalBind
399
389
  * @alias Blockly.bindEventWithChecks_
400
390
  */
package/core/css.d.ts CHANGED
@@ -10,7 +10,7 @@
10
10
  * @param cssContent Multiline CSS string or an array of single lines of CSS.
11
11
  * @alias Blockly.Css.register
12
12
  */
13
- export declare function register(cssContent: string | string[]): void;
13
+ export declare function register(cssContent: string): void;
14
14
  /**
15
15
  * Inject the CSS into the DOM. This is preferable over using a regular CSS
16
16
  * file since:
@@ -34,15 +34,6 @@ import { RenderInfo } from './info.js';
34
34
  import { MarkerSvg } from './marker_svg.js';
35
35
  import { PathObject } from './path_object.js';
36
36
  import { Renderer } from './renderer.js';
37
- /**
38
- * Returns whether the debugger is turned on.
39
- *
40
- * @returns Whether the debugger is turned on.
41
- * @alias Blockly.blockRendering.isDebuggerEnabled
42
- * @deprecated
43
- * @internal
44
- */
45
- export declare function isDebuggerEnabled(): boolean;
46
37
  /**
47
38
  * Registers a new renderer.
48
39
  *
@@ -58,19 +49,12 @@ export declare function register(name: string, rendererClass: Function): void;
58
49
  * @alias Blockly.blockRendering.unregister
59
50
  */
60
51
  export declare function unregister(name: string): void;
61
- /**
62
- * Turn on the blocks debugger.
63
- *
64
- * @alias Blockly.blockRendering.startDebugger
65
- * @deprecated
66
- * @internal
67
- */
68
- export declare function startDebugger(): void;
69
52
  /**
70
53
  * Turn off the blocks debugger.
71
54
  *
72
55
  * @alias Blockly.blockRendering.stopDebugger
73
- * @deprecated
56
+ * @deprecated Use the debug renderer in **\@blockly/dev-tools** (See {@link
57
+ * https://www.npmjs.com/package/@blockly/dev-tools}.)
74
58
  * @internal
75
59
  */
76
60
  export declare function stopDebugger(): void;
@@ -9,6 +9,7 @@
9
9
  * @param childCtor Child class.
10
10
  * @param parentCtor Parent class.
11
11
  * @suppress {strictMissingProperties} superClass_ is not defined on Function.
12
+ * @deprecated No longer provided by Blockly.
12
13
  * @alias Blockly.utils.object.inherits
13
14
  */
14
15
  export declare function inherits(childCtor: Function, parentCtor: Function): void;
@@ -17,6 +18,7 @@ export declare function inherits(childCtor: Function, parentCtor: Function): voi
17
18
  *
18
19
  * @param target Target.
19
20
  * @param source Source.
21
+ * @deprecated Use the built-in **Object.assign** instead.
20
22
  * @alias Blockly.utils.object.mixin
21
23
  */
22
24
  export declare function mixin(target: any, source: any): void;
@@ -34,6 +36,7 @@ export declare function deepMerge(target: any, source: any): any;
34
36
  *
35
37
  * @param obj Object containing values.
36
38
  * @returns Array of values.
39
+ * @deprecated Use the built-in **Object.values** instead.
37
40
  * @alias Blockly.utils.object.values
38
41
  */
39
42
  export declare function values(obj: any): any[];
@@ -11,7 +11,7 @@
11
11
  * @param prefix A string to look for at the start of `str`.
12
12
  * @returns True if `str` begins with `prefix`.
13
13
  * @alias Blockly.utils.string.startsWith
14
- * @deprecated April 2022. Use built-in string.startsWith.
14
+ * @deprecated Use built-in **string.startsWith** instead.
15
15
  */
16
16
  export declare function startsWith(str: string, prefix: string): boolean;
17
17
  /**
@@ -41,6 +41,7 @@ export declare function getComputedStyle(element: Element, property: string): st
41
41
  * @param element Element to get style of.
42
42
  * @param style Property to get (camel-case).
43
43
  * @returns Style value.
44
+ * @deprecated No longer provided by Blockly.
44
45
  * @alias Blockly.utils.style.getCascadedStyle
45
46
  */
46
47
  export declare function getCascadedStyle(element: Element, style: string): string;
@@ -6,7 +6,6 @@
6
6
  import type { WorkspaceSvg } from '../workspace_svg.js';
7
7
  import { Coordinate } from './coordinate.js';
8
8
  import { Rect } from './rect.js';
9
- import { Size } from './size.js';
10
9
  /**
11
10
  * Return the coordinates of the top-left corner of this element relative to
12
11
  * its parent. Only for SVG elements and children (e.g. rect, g, path).
@@ -31,6 +30,7 @@ export declare function getInjectionDivXY(element: Element): Coordinate;
31
30
  * and attempting to set the property.
32
31
  *
33
32
  * @returns True if 3D transforms are supported.
33
+ * @deprecated No longer provided by Blockly.
34
34
  * @alias Blockly.utils.svgMath.is3dSupported
35
35
  */
36
36
  export declare function is3dSupported(): boolean;
@@ -62,15 +62,6 @@ export declare function getDocumentScroll(): Coordinate;
62
62
  * @alias Blockly.utils.svgMath.screenToWsCoordinates
63
63
  */
64
64
  export declare function screenToWsCoordinates(ws: WorkspaceSvg, screenCoordinates: Coordinate): Coordinate;
65
- /**
66
- * Returns the dimensions of the specified SVG image.
67
- *
68
- * @param svg SVG image.
69
- * @returns Contains width and height properties.
70
- * @deprecated Use workspace.getCachedParentSvgSize. (2021 March 5)
71
- * @alias Blockly.utils.svgMath.svgSize
72
- */
73
- export declare function svgSize(svg: SVGElement): Size;
74
65
  export declare const TEST_ONLY: {
75
66
  XY_REGEX: RegExp;
76
67
  XY_STYLE_REGEX: RegExp;
package/core/utils.d.ts CHANGED
@@ -30,30 +30,13 @@ import * as userAgent from './utils/useragent.js';
30
30
  import * as xml from './utils/xml.js';
31
31
  import type { WorkspaceSvg } from './workspace_svg.js';
32
32
  export { aria, arrayUtils as array, browserEvents, colour, Coordinate, deprecation, dom, extensions, idGenerator, KeyCodes, math, Metrics, object, parsing, Rect, Size, stringUtils as string, style, Svg, svgMath, svgPaths, toolbox, userAgent, xml, };
33
- /**
34
- * Halts the propagation of the event without doing anything else.
35
- *
36
- * @param e An event.
37
- * @deprecated
38
- * @alias Blockly.utils.noEvent
39
- */
40
- export declare function noEvent(e: Event): void;
41
- /**
42
- * Returns true if this event is targeting a text input widget?
43
- *
44
- * @param e An event.
45
- * @returns True if text input.
46
- * @deprecated Use Blockly.browserEvents.isTargetInput instead.
47
- * @alias Blockly.utils.isTargetInput
48
- */
49
- export declare function isTargetInput(e: Event): boolean;
50
33
  /**
51
34
  * Return the coordinates of the top-left corner of this element relative to
52
35
  * its parent. Only for SVG elements and children (e.g. rect, g, path).
53
36
  *
54
37
  * @param element SVG element to find the coordinates of.
55
38
  * @returns Object with .x and .y properties.
56
- * @deprecated
39
+ * @deprecated Use **Blockly.utils.svgMath.getRelativeXY** instead.
57
40
  * @alias Blockly.utils.getRelativeXY
58
41
  */
59
42
  export declare function getRelativeXY(element: Element): Coordinate;
@@ -64,44 +47,11 @@ export declare function getRelativeXY(element: Element): Coordinate;
64
47
  * @param element SVG element to find the coordinates of. If this is not a child
65
48
  * of the div Blockly was injected into, the behaviour is undefined.
66
49
  * @returns Object with .x and .y properties.
67
- * @deprecated
50
+ * @deprecated Use **Blockly.utils.svgMath.getInjectionDivXY** instead.
68
51
  * @alias Blockly.utils.getInjectionDivXY_
69
52
  */
70
53
  declare function getInjectionDivXY(element: Element): Coordinate;
71
54
  export declare const getInjectionDivXY_: typeof getInjectionDivXY;
72
- /**
73
- * Returns true this event is a right-click.
74
- *
75
- * @param e Mouse event.
76
- * @returns True if right-click.
77
- * @deprecated Use Blockly.browserEvents.isRightButton instead.
78
- * @alias Blockly.utils.isRightButton
79
- */
80
- export declare function isRightButton(e: Event): boolean;
81
- /**
82
- * Returns the converted coordinates of the given mouse event.
83
- * The origin (0,0) is the top-left corner of the Blockly SVG.
84
- *
85
- * @param e Mouse event.
86
- * @param svg SVG element.
87
- * @param matrix Inverted screen CTM to use.
88
- * @returns Object with .x and .y properties.
89
- * @deprecated Use Blockly.browserEvents.mouseToSvg instead;
90
- * @alias Blockly.utils.mouseToSvg
91
- */
92
- export declare function mouseToSvg(e: Event, svg: SVGSVGElement, matrix: SVGMatrix | null): SVGPoint;
93
- /**
94
- * Returns the scroll delta of a mouse event in pixel units.
95
- *
96
- * @param e Mouse event.
97
- * @returns Scroll delta object with .x and .y properties.
98
- * @deprecated Use Blockly.browserEvents.getScrollDeltaPixels instead.
99
- * @alias Blockly.utils.getScrollDeltaPixels
100
- */
101
- export declare function getScrollDeltaPixels(e: WheelEvent): {
102
- x: number;
103
- y: number;
104
- };
105
55
  /**
106
56
  * Parse a string with any number of interpolation tokens (%1, %2, ...).
107
57
  * It will also replace string table references (e.g., %{bky_my_msg} and
@@ -112,7 +62,7 @@ export declare function getScrollDeltaPixels(e: WheelEvent): {
112
62
  * @param message Text which might contain string table references and
113
63
  * interpolation tokens.
114
64
  * @returns Array of strings and numbers.
115
- * @deprecated
65
+ * @deprecated Use **Blockly.utils.parsing.tokenizeInterpolation** instead.
116
66
  * @alias Blockly.utils.tokenizeInterpolation
117
67
  */
118
68
  export declare function tokenizeInterpolation(message: string): Array<string | number>;
@@ -124,7 +74,7 @@ export declare function tokenizeInterpolation(message: string): Array<string | n
124
74
  * @param message Message, which may be a string that contains string table
125
75
  * references.
126
76
  * @returns String with message references replaced.
127
- * @deprecated
77
+ * @deprecated Use **Blockly.utils.parsing.replaceMessageReferences** instead.
128
78
  * @alias Blockly.utils.replaceMessageReferences
129
79
  */
130
80
  export declare function replaceMessageReferences(message: string | any): string;
@@ -135,24 +85,16 @@ export declare function replaceMessageReferences(message: string | any): string;
135
85
  * @param message Text which might contain string table references.
136
86
  * @returns True if all message references have matching values.
137
87
  * Otherwise, false.
138
- * @deprecated
88
+ * @deprecated Use **Blockly.utils.parsing.checkMessageReferences** instead.
139
89
  * @alias Blockly.utils.checkMessageReferences
140
90
  */
141
91
  export declare function checkMessageReferences(message: string): boolean;
142
- /**
143
- * Generate a unique ID.
144
- *
145
- * @returns A globally unique ID string.
146
- * @deprecated Use Blockly.utils.idGenerator.genUid instead.
147
- * @alias Blockly.utils.genUid
148
- */
149
- export declare function genUid(): string;
150
92
  /**
151
93
  * Check if 3D transforms are supported by adding an element
152
94
  * and attempting to set the property.
153
95
  *
154
96
  * @returns True if 3D transforms are supported.
155
- * @deprecated
97
+ * @deprecated Use **Blockly.utils.svgMath.is3dSupported** instead.
156
98
  * @alias Blockly.utils.is3dSupported
157
99
  */
158
100
  export declare function is3dSupported(): boolean;
@@ -163,7 +105,7 @@ export declare function is3dSupported(): boolean;
163
105
  * @returns An object containing window width, height, and scroll position in
164
106
  * window coordinates.
165
107
  * @alias Blockly.utils.getViewportBBox
166
- * @deprecated
108
+ * @deprecated Use **Blockly.utils.svgMath.getViewportBBox** instead.
167
109
  * @internal
168
110
  */
169
111
  export declare function getViewportBBox(): Rect;
@@ -174,7 +116,7 @@ export declare function getViewportBBox(): Rect;
174
116
  * @param value Value to remove.
175
117
  * @returns True if an element was removed.
176
118
  * @alias Blockly.utils.arrayRemove
177
- * @deprecated
119
+ * @deprecated Use **Blockly.array.removeElem** instead.
178
120
  * @internal
179
121
  */
180
122
  export declare function arrayRemove<T>(arr: Array<T>, value: T): boolean;
@@ -183,7 +125,7 @@ export declare function arrayRemove<T>(arr: Array<T>, value: T): boolean;
183
125
  * Copied from Closure's goog.dom.getDocumentScroll.
184
126
  *
185
127
  * @returns Object with values 'x' and 'y'.
186
- * @deprecated
128
+ * @deprecated Use **Blockly.utils.svgMath.getDocumentScroll** instead.
187
129
  * @alias Blockly.utils.getDocumentScroll
188
130
  */
189
131
  export declare function getDocumentScroll(): Coordinate;
@@ -195,7 +137,7 @@ export declare function getDocumentScroll(): Coordinate;
195
137
  * @param opt_stripFollowing Optionally ignore all following statements (blocks
196
138
  * that are not inside a value or statement input of the block).
197
139
  * @returns Map of types to type counts for descendants of the bock.
198
- * @deprecated
140
+ * @deprecated Use **Blockly.common.getBlockTypeCounts** instead.
199
141
  * @alias Blockly.utils.getBlockTypeCounts
200
142
  */
201
143
  export declare function getBlockTypeCounts(block: Block, opt_stripFollowing?: boolean): {
@@ -207,7 +149,7 @@ export declare function getBlockTypeCounts(block: Block, opt_stripFollowing?: bo
207
149
  * @param ws The workspace to find the coordinates on.
208
150
  * @param screenCoordinates The screen coordinates to be converted to workspace
209
151
  * coordinates
210
- * @deprecated
152
+ * @deprecated Use **Blockly.utils.svgMath.screenToWsCoordinates** instead.
211
153
  * @returns The workspace coordinates.
212
154
  */
213
155
  export declare function screenToWsCoordinates(ws: WorkspaceSvg, screenCoordinates: Coordinate): Coordinate;
@@ -220,7 +162,7 @@ export declare function screenToWsCoordinates(ws: WorkspaceSvg, screenCoordinate
220
162
  * @returns An object containing the colour as a #RRGGBB string, and the hue if
221
163
  * the input was an HSV hue value.
222
164
  * @throws {Error} If the colour cannot be parsed.
223
- * @deprecated
165
+ * @deprecated Use **Blockly.utils.parsing.parseBlockColour** instead.
224
166
  * @alias Blockly.utils.parseBlockColour
225
167
  */
226
168
  export declare function parseBlockColour(colour: number | string): {
@@ -232,7 +174,7 @@ export declare function parseBlockColour(colour: number | string): {
232
174
  *
233
175
  * @param fn Function to run.
234
176
  * @throws Error Will throw if no global document can be found (e.g., Node.js).
235
- * @deprecated
177
+ * @deprecated No longer provided by Blockly.
236
178
  * @alias Blockly.utils.runAfterPageLoad
237
179
  */
238
180
  export declare function runAfterPageLoad(fn: () => void): void;
@@ -658,12 +658,6 @@ export declare class WorkspaceSvg extends Workspace implements IASTNodeLocationS
658
658
  * @returns The newly created variable.
659
659
  */
660
660
  createVariable(name: string, opt_type?: string | null, opt_id?: string | null): VariableModel;
661
- /**
662
- * Make a list of all the delete areas for this workspace.
663
- *
664
- * @deprecated Use workspace.recordDragTargets. (2021 June)
665
- */
666
- recordDeleteAreas(): void;
667
661
  /** Make a list of all the delete areas for this workspace. */
668
662
  recordDragTargets(): void;
669
663
  /**
package/msg/ar.js CHANGED
@@ -20,24 +20,24 @@ var Blockly = Blockly || { Msg: Object.create(null) };
20
20
  Blockly.Msg["ADD_COMMENT"] = "أضف تعليقًا";
21
21
  Blockly.Msg["CANNOT_DELETE_VARIABLE_PROCEDURE"] = "لايمكن حذف متغير \"%1\" بسبب انه جزء من الدالة \"%2\"";
22
22
  Blockly.Msg["CHANGE_VALUE_TITLE"] = "تغيير قيمة:";
23
- Blockly.Msg["CLEAN_UP"] = "ترتيب القطع";
23
+ Blockly.Msg["CLEAN_UP"] = "تنظيف الكتل";
24
24
  Blockly.Msg["COLLAPSED_WARNINGS_WARNING"] = "الكتل المطوية تحتوي على تحذيرات.";
25
- Blockly.Msg["COLLAPSE_ALL"] = "إخفاء القطع";
26
- Blockly.Msg["COLLAPSE_BLOCK"] = "إخفاء القطعة";
25
+ Blockly.Msg["COLLAPSE_ALL"] = "انهيار الكتل";
26
+ Blockly.Msg["COLLAPSE_BLOCK"] = "انهيار الكتلة";
27
27
  Blockly.Msg["COLOUR_BLEND_COLOUR1"] = "اللون 1";
28
28
  Blockly.Msg["COLOUR_BLEND_COLOUR2"] = "اللون 2";
29
- Blockly.Msg["COLOUR_BLEND_HELPURL"] = "https://meyerweb.com/eric/tools/color-blend/#:::rgbp";
29
+ Blockly.Msg["COLOUR_BLEND_HELPURL"] = "https://meyerweb.com/eric/tools/color-blend/#:::rgbp"; // untranslated
30
30
  Blockly.Msg["COLOUR_BLEND_RATIO"] = "نسبة";
31
31
  Blockly.Msg["COLOUR_BLEND_TITLE"] = "دمج";
32
32
  Blockly.Msg["COLOUR_BLEND_TOOLTIP"] = "دمج لونين ببعضهما البعض بنسبة (0.0 - 1.0).";
33
- Blockly.Msg["COLOUR_PICKER_HELPURL"] = "https://ar.wikipedia.org/wiki/Color";
33
+ Blockly.Msg["COLOUR_PICKER_HELPURL"] = "https://ar.wikipedia.org/wiki/لون";
34
34
  Blockly.Msg["COLOUR_PICKER_TOOLTIP"] = "اختر لون من اللوحة.";
35
35
  Blockly.Msg["COLOUR_RANDOM_HELPURL"] = "http://randomcolour.com"; // untranslated
36
36
  Blockly.Msg["COLOUR_RANDOM_TITLE"] = "لون عشوائي";
37
37
  Blockly.Msg["COLOUR_RANDOM_TOOLTIP"] = "اختر لون بشكل عشوائي.";
38
38
  Blockly.Msg["COLOUR_RGB_BLUE"] = "أزرق";
39
39
  Blockly.Msg["COLOUR_RGB_GREEN"] = "أخضر";
40
- Blockly.Msg["COLOUR_RGB_HELPURL"] = "https://www.december.com/html/spec/colorpercompact.html";
40
+ Blockly.Msg["COLOUR_RGB_HELPURL"] = "https://www.december.com/html/spec/colorpercompact.html"; // untranslated
41
41
  Blockly.Msg["COLOUR_RGB_RED"] = "أحمر";
42
42
  Blockly.Msg["COLOUR_RGB_TITLE"] = "لون مع";
43
43
  Blockly.Msg["COLOUR_RGB_TOOLTIP"] = "إنشئ لون بالكمية المحددة من الأحمر, الأخضر والأزرق. بحيث يجب تكون كافة القيم بين 0 و 100.";
@@ -73,23 +73,23 @@ Blockly.Msg["CONTROLS_WHILEUNTIL_OPERATOR_UNTIL"] = "اكرّر حتى";
73
73
  Blockly.Msg["CONTROLS_WHILEUNTIL_OPERATOR_WHILE"] = "اكرّر طالما";
74
74
  Blockly.Msg["CONTROLS_WHILEUNTIL_TOOLTIP_UNTIL"] = "بما ان القيمة خاطئة, نفّذ بعض الأوامر.";
75
75
  Blockly.Msg["CONTROLS_WHILEUNTIL_TOOLTIP_WHILE"] = "بما ان القيمة صحيحة, نفّذ بعض الأوامر.";
76
- Blockly.Msg["DELETE_ALL_BLOCKS"] = "حذف %1 قطعة؟";
77
- Blockly.Msg["DELETE_BLOCK"] = "احذف القطعة";
76
+ Blockly.Msg["DELETE_ALL_BLOCKS"] = "حذف %1 كتلة؟";
77
+ Blockly.Msg["DELETE_BLOCK"] = "حذف كتلة";
78
78
  Blockly.Msg["DELETE_VARIABLE"] = "حذف المتغير %1";
79
79
  Blockly.Msg["DELETE_VARIABLE_CONFIRMATION"] = "حذف%1 1 استخدامات المتغير '%2'؟";
80
- Blockly.Msg["DELETE_X_BLOCKS"] = "احذف %1 قطع";
80
+ Blockly.Msg["DELETE_X_BLOCKS"] = "احذف %1 كتلة";
81
81
  Blockly.Msg["DIALOG_CANCEL"] = "إلغاء";
82
82
  Blockly.Msg["DIALOG_OK"] = "موافق";
83
- Blockly.Msg["DISABLE_BLOCK"] = "عطّل القطعة";
83
+ Blockly.Msg["DISABLE_BLOCK"] = "عطّل كتلة";
84
84
  Blockly.Msg["DUPLICATE_BLOCK"] = "مكرر";
85
85
  Blockly.Msg["DUPLICATE_COMMENT"] = "تعليق مكرر";
86
- Blockly.Msg["ENABLE_BLOCK"] = "أعد تفعيل القطعة";
87
- Blockly.Msg["EXPAND_ALL"] = "وسٌّع القطع";
88
- Blockly.Msg["EXPAND_BLOCK"] = "وسٌّع القطعة";
89
- Blockly.Msg["EXTERNAL_INPUTS"] = "ادخال خارجي";
86
+ Blockly.Msg["ENABLE_BLOCK"] = "تمكين كتلة";
87
+ Blockly.Msg["EXPAND_ALL"] = "وسٌّع الكتل";
88
+ Blockly.Msg["EXPAND_BLOCK"] = "وسٌّع الكتلة";
89
+ Blockly.Msg["EXTERNAL_INPUTS"] = "مدخلات خارجية";
90
90
  Blockly.Msg["HELP"] = "مساعدة";
91
- Blockly.Msg["INLINE_INPUTS"] = "ادخال خطي";
92
- Blockly.Msg["LISTS_CREATE_EMPTY_HELPURL"] = "https://github.com/google/blockly/wiki/Lists#create-empty-list";
91
+ Blockly.Msg["INLINE_INPUTS"] = "مدخلات مضمنة";
92
+ Blockly.Msg["LISTS_CREATE_EMPTY_HELPURL"] = "https://github.com/google/blockly/wiki/Lists#create-empty-list"; // untranslated
93
93
  Blockly.Msg["LISTS_CREATE_EMPTY_TITLE"] = "إنشئ قائمة فارغة";
94
94
  Blockly.Msg["LISTS_CREATE_EMPTY_TOOLTIP"] = "تقوم بإرجاع قائمة، طولها 0, لا تحتوي على أية سجلات البيانات";
95
95
  Blockly.Msg["LISTS_CREATE_WITH_CONTAINER_TITLE_ADD"] = "قائمة";
@@ -159,7 +159,7 @@ Blockly.Msg["LISTS_SET_INDEX_TOOLTIP_SET_FIRST"] = "يحدد العنصر الأ
159
159
  Blockly.Msg["LISTS_SET_INDEX_TOOLTIP_SET_FROM"] = "يحدد العنصر في الموضع المحدد في قائمة ما.";
160
160
  Blockly.Msg["LISTS_SET_INDEX_TOOLTIP_SET_LAST"] = "يحدد العنصر الأخير في قائمة.";
161
161
  Blockly.Msg["LISTS_SET_INDEX_TOOLTIP_SET_RANDOM"] = "يحدد عنصرا عشوائيا في قائمة.";
162
- Blockly.Msg["LISTS_SORT_HELPURL"] = "https://github.com/google/blockly/wiki/Lists#sorting-a-list";
162
+ Blockly.Msg["LISTS_SORT_HELPURL"] = "https://github.com/google/blockly/wiki/Lists#sorting-a-list"; // untranslated
163
163
  Blockly.Msg["LISTS_SORT_ORDER_ASCENDING"] = "تصاعديا";
164
164
  Blockly.Msg["LISTS_SORT_ORDER_DESCENDING"] = "تنازليا";
165
165
  Blockly.Msg["LISTS_SORT_TITLE"] = "رتب %1 %2 %3";
@@ -188,7 +188,7 @@ Blockly.Msg["LOGIC_NEGATE_HELPURL"] = "https://github.com/google/blockly/wiki/Lo
188
188
  Blockly.Msg["LOGIC_NEGATE_TITLE"] = "ليس %1";
189
189
  Blockly.Msg["LOGIC_NEGATE_TOOLTIP"] = "يرجع صحيح إذا كان الإدخال خاطئ . يرجع خاطئ إذا كان الإدخال صحيح.";
190
190
  Blockly.Msg["LOGIC_NULL"] = "فارغ";
191
- Blockly.Msg["LOGIC_NULL_HELPURL"] = "https://en.wikipedia.org/wiki/Nullable_type";
191
+ Blockly.Msg["LOGIC_NULL_HELPURL"] = "https://en.wikipedia.org/wiki/Nullable_type"; // untranslated
192
192
  Blockly.Msg["LOGIC_NULL_TOOLTIP"] = "ترجع ملغى.";
193
193
  Blockly.Msg["LOGIC_OPERATION_AND"] = "و";
194
194
  Blockly.Msg["LOGIC_OPERATION_HELPURL"] = "https://github.com/google/blockly/wiki/Logic#logical-operations"; // untranslated
@@ -200,17 +200,17 @@ Blockly.Msg["LOGIC_TERNARY_HELPURL"] = ":https://ar.wikipedia.org/wiki/%3F";
200
200
  Blockly.Msg["LOGIC_TERNARY_IF_FALSE"] = "إذا كانت العبارة خاطئة";
201
201
  Blockly.Msg["LOGIC_TERNARY_IF_TRUE"] = "إذا كانت العبارة صحيحة";
202
202
  Blockly.Msg["LOGIC_TERNARY_TOOLTIP"] = "تحقق الشرط في 'الاختبار'. إذا كان الشرط صحيح، يقوم بإرجاع قيمة 'اذا كانت العبارة صحيحة'؛ خلاف ذلك يرجع قيمة 'اذا كانت العبارة خاطئة'.";
203
- Blockly.Msg["MATH_ADDITION_SYMBOL"] = "+";
203
+ Blockly.Msg["MATH_ADDITION_SYMBOL"] = "+"; // untranslated
204
204
  Blockly.Msg["MATH_ARITHMETIC_HELPURL"] = "https://ar.wikipedia.org/wiki/حسابيات";
205
205
  Blockly.Msg["MATH_ARITHMETIC_TOOLTIP_ADD"] = "يرجع مجموع الرقمين.";
206
206
  Blockly.Msg["MATH_ARITHMETIC_TOOLTIP_DIVIDE"] = "يرجع حاصل قسمة الرقمين.";
207
207
  Blockly.Msg["MATH_ARITHMETIC_TOOLTIP_MINUS"] = "يرجع الفرق بين الرقمين.";
208
208
  Blockly.Msg["MATH_ARITHMETIC_TOOLTIP_MULTIPLY"] = "يرجع حاصل ضرب الرقمين.";
209
209
  Blockly.Msg["MATH_ARITHMETIC_TOOLTIP_POWER"] = "يرجع الرقم الأول مرفوع إلى تربيع الرقم الثاني.";
210
- Blockly.Msg["MATH_ATAN2_HELPURL"] = "https://en.wikipedia.org/wiki/Atan2";
210
+ Blockly.Msg["MATH_ATAN2_HELPURL"] = "https://en.wikipedia.org/wiki/Atan2"; // untranslated
211
211
  Blockly.Msg["MATH_ATAN2_TITLE"] = "atan2 من X:%1 Y:%2";
212
212
  Blockly.Msg["MATH_ATAN2_TOOLTIP"] = "عودة قوس ظل النقطة (س، ص) بالدرجات من -180 إلى 180.";
213
- Blockly.Msg["MATH_CHANGE_HELPURL"] = "https://en.wikipedia.org/wiki/Programming_idiom#Incrementing_a_counter";
213
+ Blockly.Msg["MATH_CHANGE_HELPURL"] = "https://en.wikipedia.org/wiki/Programming_idiom#Incrementing_a_counter"; // untranslated
214
214
  Blockly.Msg["MATH_CHANGE_TITLE"] = "غير %1 بـ %2";
215
215
  Blockly.Msg["MATH_CHANGE_TOOLTIP"] = "إضف رقم إلى متغير '%1'.";
216
216
  Blockly.Msg["MATH_CONSTANT_HELPURL"] = "https://ar.wikipedia.org/wiki/ثابت رياضي";
@@ -218,7 +218,7 @@ Blockly.Msg["MATH_CONSTANT_TOOLTIP"] = "ير جع واحد من الثوابت
218
218
  Blockly.Msg["MATH_CONSTRAIN_HELPURL"] = "https://en.wikipedia.org/wiki/Clamping_(graphics)"; // untranslated
219
219
  Blockly.Msg["MATH_CONSTRAIN_TITLE"] = "تقيد %1 منخفض %2 مرتفع %3";
220
220
  Blockly.Msg["MATH_CONSTRAIN_TOOLTIP"] = "تقييد العددليكون بين الحدود المحددة (ضمناً).";
221
- Blockly.Msg["MATH_DIVISION_SYMBOL"] = "÷";
221
+ Blockly.Msg["MATH_DIVISION_SYMBOL"] = "÷"; // untranslated
222
222
  Blockly.Msg["MATH_IS_DIVISIBLE_BY"] = "قابل للقسمة";
223
223
  Blockly.Msg["MATH_IS_EVEN"] = "هو زوجي";
224
224
  Blockly.Msg["MATH_IS_NEGATIVE"] = "هو سالب";
@@ -230,7 +230,7 @@ Blockly.Msg["MATH_IS_WHOLE"] = "هو صحيح";
230
230
  Blockly.Msg["MATH_MODULO_HELPURL"] = "https://tr.wikipedia.org/wiki/عامل_قسمة_مع_باقي";
231
231
  Blockly.Msg["MATH_MODULO_TITLE"] = "باقي %1 ÷ %2";
232
232
  Blockly.Msg["MATH_MODULO_TOOLTIP"] = "يرجع الباقي من قسمة الرقمين.";
233
- Blockly.Msg["MATH_MULTIPLICATION_SYMBOL"] = "×";
233
+ Blockly.Msg["MATH_MULTIPLICATION_SYMBOL"] = "×"; // untranslated
234
234
  Blockly.Msg["MATH_NUMBER_HELPURL"] = "https://ar.wikipedia.org/wiki/%D8%B9%D8%AF%D8%AF";
235
235
  Blockly.Msg["MATH_NUMBER_TOOLTIP"] = "عدد ما.";
236
236
  Blockly.Msg["MATH_ONLIST_HELPURL"] = ""; // untranslated
@@ -250,7 +250,7 @@ Blockly.Msg["MATH_ONLIST_TOOLTIP_MODE"] = "يرجع قائمة من العنصر
250
250
  Blockly.Msg["MATH_ONLIST_TOOLTIP_RANDOM"] = "يرجع عنصر عشوائي من القائمة.";
251
251
  Blockly.Msg["MATH_ONLIST_TOOLTIP_STD_DEV"] = "يرجع الانحراف المعياري للقائمة.";
252
252
  Blockly.Msg["MATH_ONLIST_TOOLTIP_SUM"] = "يرجع مجموع كافة الأرقام الموجودة في القائمة.";
253
- Blockly.Msg["MATH_POWER_SYMBOL"] = "^";
253
+ Blockly.Msg["MATH_POWER_SYMBOL"] = "^"; // untranslated
254
254
  Blockly.Msg["MATH_RANDOM_FLOAT_HELPURL"] = "https://ar.wikipedia.org/wiki/توليد_الأعداد_العشوائية";
255
255
  Blockly.Msg["MATH_RANDOM_FLOAT_TITLE_RANDOM"] = "كسر عشوائي";
256
256
  Blockly.Msg["MATH_RANDOM_FLOAT_TOOLTIP"] = "يرجع جزء عشوائي بين 0.0 (ضمنياً) و 1.0 (خارجيا).";
@@ -272,7 +272,7 @@ Blockly.Msg["MATH_SINGLE_TOOLTIP_LOG10"] = "يرجع لوغاريتم عدد م
272
272
  Blockly.Msg["MATH_SINGLE_TOOLTIP_NEG"] = "يرجع عدد سالب.";
273
273
  Blockly.Msg["MATH_SINGLE_TOOLTIP_POW10"] = "يرجع مضروب الرقم 10 في نفسه .";
274
274
  Blockly.Msg["MATH_SINGLE_TOOLTIP_ROOT"] = "يرجع الجذر التربيعي للرقم.";
275
- Blockly.Msg["MATH_SUBTRACTION_SYMBOL"] = "-";
275
+ Blockly.Msg["MATH_SUBTRACTION_SYMBOL"] = "-"; // untranslated
276
276
  Blockly.Msg["MATH_TRIG_ACOS"] = "acos";
277
277
  Blockly.Msg["MATH_TRIG_ASIN"] = "asin";
278
278
  Blockly.Msg["MATH_TRIG_ATAN"] = "atan";