blockly 9.0.0-beta.4 → 9.0.1

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 (113) hide show
  1. package/README.md +3 -3
  2. package/blockly.min.js +359 -365
  3. package/blockly_compressed.js +359 -365
  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/field.d.ts +10 -1
  9. package/core/interfaces/i_ast_node_location_with_block.d.ts +1 -1
  10. package/core/interfaces/i_parameter_model.d.ts +31 -0
  11. package/core/interfaces/i_procedure_model.d.ts +57 -0
  12. package/core/procedures/observable_parameter_model.d.ts +34 -0
  13. package/core/procedures/observable_procedure_map.d.ts +30 -0
  14. package/core/procedures/observable_procedure_model.d.ts +58 -0
  15. package/core/procedures.d.ts +1 -1
  16. package/core/renderers/common/block_rendering.d.ts +2 -18
  17. package/core/serialization.d.ts +14 -0
  18. package/core/touch.d.ts +3 -3
  19. package/core/utils/object.d.ts +3 -0
  20. package/core/utils/string.d.ts +1 -1
  21. package/core/utils/style.d.ts +1 -0
  22. package/core/utils/svg_math.d.ts +1 -10
  23. package/core/utils.d.ts +13 -71
  24. package/core/workspace_svg.d.ts +0 -6
  25. package/msg/ar.js +25 -25
  26. package/msg/az.js +17 -17
  27. package/msg/bcc.js +4 -4
  28. package/msg/be-tarask.js +16 -16
  29. package/msg/be.js +6 -6
  30. package/msg/bg.js +10 -10
  31. package/msg/bn.js +1 -1
  32. package/msg/br.js +18 -18
  33. package/msg/ca.js +1 -1
  34. package/msg/cs.js +12 -12
  35. package/msg/da.js +15 -15
  36. package/msg/de.js +40 -40
  37. package/msg/diq.js +17 -17
  38. package/msg/dty.js +2 -2
  39. package/msg/ee.js +1 -1
  40. package/msg/el.js +43 -43
  41. package/msg/en-gb.js +13 -13
  42. package/msg/eo.js +3 -3
  43. package/msg/es.js +9 -9
  44. package/msg/et.js +12 -12
  45. package/msg/eu.js +2 -2
  46. package/msg/fa.js +2 -2
  47. package/msg/fi.js +11 -11
  48. package/msg/fr.js +28 -28
  49. package/msg/gor.js +7 -7
  50. package/msg/ha.js +18 -18
  51. package/msg/he.js +7 -7
  52. package/msg/hi.js +18 -18
  53. package/msg/hr.js +13 -13
  54. package/msg/hrx.js +2 -2
  55. package/msg/hu.js +3 -3
  56. package/msg/hy.js +1 -1
  57. package/msg/ia.js +8 -8
  58. package/msg/id.js +29 -29
  59. package/msg/ig.js +26 -26
  60. package/msg/is.js +64 -64
  61. package/msg/it.js +4 -4
  62. package/msg/ja.js +53 -53
  63. package/msg/ka.js +2 -2
  64. package/msg/kab.js +16 -16
  65. package/msg/kbd-cyrl.js +3 -3
  66. package/msg/km.js +1 -1
  67. package/msg/kn.js +18 -18
  68. package/msg/ko.js +47 -47
  69. package/msg/ksh.js +1 -1
  70. package/msg/ky.js +2 -2
  71. package/msg/lb.js +3 -3
  72. package/msg/lki.js +14 -14
  73. package/msg/lo.js +1 -1
  74. package/msg/lrc.js +15 -15
  75. package/msg/lt.js +16 -16
  76. package/msg/lv.js +15 -15
  77. package/msg/mk.js +1 -1
  78. package/msg/mnw.js +5 -5
  79. package/msg/ms.js +14 -14
  80. package/msg/nb.js +37 -37
  81. package/msg/ne.js +1 -1
  82. package/msg/nl.js +39 -39
  83. package/msg/oc.js +8 -8
  84. package/msg/pa.js +2 -2
  85. package/msg/pl.js +30 -30
  86. package/msg/pms.js +32 -32
  87. package/msg/pt-br.js +21 -21
  88. package/msg/pt.js +16 -16
  89. package/msg/ro.js +25 -25
  90. package/msg/ru.js +25 -25
  91. package/msg/sc.js +16 -16
  92. package/msg/sd.js +4 -4
  93. package/msg/sk.js +16 -16
  94. package/msg/skr-arab.js +4 -4
  95. package/msg/sl.js +49 -49
  96. package/msg/sq.js +14 -14
  97. package/msg/sr-latn.js +22 -22
  98. package/msg/sr.js +26 -26
  99. package/msg/sv.js +29 -29
  100. package/msg/ta.js +10 -10
  101. package/msg/tcy.js +5 -5
  102. package/msg/tdd.js +440 -0
  103. package/msg/th.js +8 -8
  104. package/msg/tr.js +16 -16
  105. package/msg/uk.js +17 -17
  106. package/msg/ur.js +5 -5
  107. package/msg/uz.js +1 -1
  108. package/msg/vi.js +17 -17
  109. package/msg/yo.js +15 -15
  110. package/msg/zgh.js +11 -11
  111. package/msg/zh-hans.js +16 -16
  112. package/msg/zh-hant.js +12 -12
  113. 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:
package/core/field.d.ts CHANGED
@@ -151,7 +151,7 @@ export declare abstract class Field implements IASTNodeLocationSvg, IASTNodeLoca
151
151
  * @returns The block containing this field.
152
152
  * @throws An error if the source block is not defined.
153
153
  */
154
- getSourceBlock(): Block;
154
+ getSourceBlock(): Block | null;
155
155
  /**
156
156
  * Initialize everything to render this field. Override
157
157
  * methods initModel and initView rather than this method.
@@ -615,4 +615,13 @@ export interface FieldConfig {
615
615
  * in descendants, though they should contain all of Field's prototype methods.
616
616
  */
617
617
  export declare type FieldProto = Pick<typeof Field, 'prototype'>;
618
+ /**
619
+ * Represents an error where the field is trying to access its block or
620
+ * information about its block before it has actually been attached to said
621
+ * block.
622
+ */
623
+ export declare class UnattachedFieldError extends Error {
624
+ /** @internal */
625
+ constructor();
626
+ }
618
627
  //# sourceMappingURL=field.d.ts.map
@@ -16,6 +16,6 @@ export interface IASTNodeLocationWithBlock extends IASTNodeLocation {
16
16
  *
17
17
  * @returns The source block.
18
18
  */
19
- getSourceBlock(): Block;
19
+ getSourceBlock(): Block | null;
20
20
  }
21
21
  //# sourceMappingURL=i_ast_node_location_with_block.d.ts.map
@@ -0,0 +1,31 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2022 Google LLC
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ /**
7
+ * The interface for the data model of a procedure parameter.
8
+ *
9
+ * @namespace Blockly.IParameterModel
10
+ */
11
+ /**
12
+ * A data model for a procedure.
13
+ */
14
+ export interface IParameterModel {
15
+ /**
16
+ * Sets the name of this parameter to the given name.
17
+ */
18
+ setName(name: string): this;
19
+ /**
20
+ * Sets the types of this parameter to the given type.
21
+ */
22
+ setTypes(types: string[]): this;
23
+ /**
24
+ * Returns the unique language-neutral ID for the parameter.
25
+ *
26
+ * This represents the identify of the variable model which does not change
27
+ * over time.
28
+ */
29
+ getId(): string;
30
+ }
31
+ //# sourceMappingURL=i_parameter_model.d.ts.map
@@ -0,0 +1,57 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2022 Google LLC
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ /**
7
+ * The interface for the data model of a procedure.
8
+ *
9
+ * @namespace Blockly.IProcedureModel
10
+ */
11
+ import { IParameterModel } from './i_parameter_model.js';
12
+ /**
13
+ * A data model for a procedure.
14
+ */
15
+ export interface IProcedureModel {
16
+ /** Sets the human-readable name of the procedure. */
17
+ setName(name: string): this;
18
+ /**
19
+ * Inserts a parameter into the list of parameters.
20
+ *
21
+ * To move a parameter, first delete it, and then re-insert.
22
+ */
23
+ insertParameter(parameterModel: IParameterModel, index: number): this;
24
+ /** Removes the parameter at the given index from the parameter list. */
25
+ deleteParameter(index: number): this;
26
+ /**
27
+ * Sets the return type(s) of the procedure.
28
+ *
29
+ * Pass null to represent a procedure that does not return.
30
+ */
31
+ setReturnTypes(types: string[] | null): this;
32
+ /**
33
+ * Sets whether this procedure is enabled/disabled. If a procedure is disabled
34
+ * all procedure caller blocks should be disabled as well.
35
+ */
36
+ setEnabled(enabled: boolean): this;
37
+ /** Returns the unique language-neutral ID for the procedure. */
38
+ getId(): string;
39
+ /** Returns the human-readable name of the procedure. */
40
+ getName(): string;
41
+ /** Returns the parameter at the given index in the parameter list. */
42
+ getParameter(index: number): IParameterModel;
43
+ /** Returns an array of all of the parameters in the parameter list. */
44
+ getParameters(): IParameterModel[];
45
+ /**
46
+ * Returns the return type(s) of the procedure.
47
+ *
48
+ * Null represents a procedure that does not return a value.
49
+ */
50
+ getReturnTypes(): string[] | null;
51
+ /**
52
+ * Returns whether the procedure is enabled/disabled. If a procedure is
53
+ * disabled, all procedure caller blocks should be disabled as well.
54
+ */
55
+ getEnabled(): boolean;
56
+ }
57
+ //# sourceMappingURL=i_procedure_model.d.ts.map
@@ -0,0 +1,34 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2022 Google LLC
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ import type { IParameterModel } from '../interfaces/i_parameter_model.js';
7
+ import type { VariableModel } from '../variable_model.js';
8
+ import type { Workspace } from '../workspace.js';
9
+ export declare class ObservableParameterModel implements IParameterModel {
10
+ private readonly workspace;
11
+ private id;
12
+ private variable;
13
+ constructor(workspace: Workspace, name: string, id?: string);
14
+ /**
15
+ * Sets the name of this parameter to the given name.
16
+ */
17
+ setName(name: string): this;
18
+ /**
19
+ * Unimplemented. The built-in ParameterModel does not support typing.
20
+ * If you want your procedure blocks to have typed parameters, you need to
21
+ * implement your own ParameterModel.
22
+ */
23
+ setTypes(_types: string[]): this;
24
+ /**
25
+ * Returns the unique language-neutral ID for the parameter.
26
+ *
27
+ * This represents the identify of the variable model which does not change
28
+ * over time.
29
+ */
30
+ getId(): string;
31
+ /** Returns the variable model associated with the parameter model. */
32
+ getVariableModel(): VariableModel;
33
+ }
34
+ //# sourceMappingURL=observable_parameter_model.d.ts.map
@@ -0,0 +1,30 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2022 Google LLC
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ import type { IProcedureModel } from '../interfaces/i_procedure_model.js';
7
+ import type { Workspace } from '../workspace.js';
8
+ export declare class ObservableProcedureMap extends Map<string, IProcedureModel> {
9
+ private readonly workspace;
10
+ constructor(workspace: Workspace);
11
+ /**
12
+ * Adds the given procedure model to the procedure map.
13
+ */
14
+ set(id: string, proc: IProcedureModel): this;
15
+ /**
16
+ * Deletes the ProcedureModel with the given ID from the procedure map (if it
17
+ * exists).
18
+ */
19
+ delete(id: string): boolean;
20
+ /**
21
+ * Removes all ProcedureModels from the procedure map.
22
+ */
23
+ clear(): void;
24
+ /**
25
+ * Adds the given ProcedureModel to the map of procedure models, so that
26
+ * blocks can find it.
27
+ */
28
+ add(proc: IProcedureModel): this;
29
+ }
30
+ //# sourceMappingURL=observable_procedure_map.d.ts.map
@@ -0,0 +1,58 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2022 Google LLC
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ import type { IParameterModel } from '../interfaces/i_parameter_model.js';
7
+ import type { IProcedureModel } from '../interfaces/i_procedure_model.js';
8
+ import type { Workspace } from '../workspace.js';
9
+ export declare class ObservableProcedureModel implements IProcedureModel {
10
+ private readonly workspace;
11
+ private id;
12
+ private name;
13
+ private parameters;
14
+ private returnTypes;
15
+ private enabled;
16
+ constructor(workspace: Workspace, id?: string);
17
+ /** Sets the human-readable name of the procedure. */
18
+ setName(name: string): this;
19
+ /**
20
+ * Inserts a parameter into the list of parameters.
21
+ *
22
+ * To move a parameter, first delete it, and then re-insert.
23
+ */
24
+ insertParameter(parameterModel: IParameterModel, index: number): this;
25
+ /** Removes the parameter at the given index from the parameter list. */
26
+ deleteParameter(index: number): this;
27
+ /**
28
+ * Sets the return type(s) of the procedure.
29
+ *
30
+ * Pass null to represent a procedure that does not return.
31
+ */
32
+ setReturnTypes(types: string[] | null): this;
33
+ /**
34
+ * Sets whether this procedure is enabled/disabled. If a procedure is disabled
35
+ * all procedure caller blocks should be disabled as well.
36
+ */
37
+ setEnabled(enabled: boolean): this;
38
+ /** Returns the unique language-neutral ID for the procedure. */
39
+ getId(): string;
40
+ /** Returns the human-readable name of the procedure. */
41
+ getName(): string;
42
+ /** Returns the parameter at the given index in the parameter list. */
43
+ getParameter(index: number): IParameterModel;
44
+ /** Returns an array of all of the parameters in the parameter list. */
45
+ getParameters(): IParameterModel[];
46
+ /**
47
+ * Returns the return type of the procedure.
48
+ *
49
+ * Null represents a procedure that does not return a value.
50
+ */
51
+ getReturnTypes(): string[] | null;
52
+ /**
53
+ * Returns whether the procedure is enabled/disabled. If a procedure is
54
+ * disabled, all procedure caller blocks should be disabled as well.
55
+ */
56
+ getEnabled(): boolean;
57
+ }
58
+ //# sourceMappingURL=observable_procedure_model.d.ts.map
@@ -6,7 +6,7 @@
6
6
  import './events/events_block_change.js';
7
7
  import type { Block } from './block.js';
8
8
  import type { Abstract } from './events/events_abstract.js';
9
- import type { Field } from './field.js';
9
+ import { Field } from './field.js';
10
10
  import type { Workspace } from './workspace.js';
11
11
  import type { WorkspaceSvg } from './workspace_svg.js';
12
12
  /**
@@ -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;
@@ -0,0 +1,14 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2022 Google LLC
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ import * as blocks from './serialization/blocks.js';
7
+ import * as exceptions from './serialization/exceptions.js';
8
+ import * as priorities from './serialization/priorities.js';
9
+ import * as registry from './serialization/registry.js';
10
+ import * as variables from './serialization/variables.js';
11
+ import * as workspaces from './serialization/workspaces.js';
12
+ import { ISerializer } from './interfaces/i_serializer.js';
13
+ export { blocks, exceptions, priorities, registry, variables, workspaces, ISerializer, };
14
+ //# sourceMappingURL=serialization.d.ts.map
package/core/touch.d.ts CHANGED
@@ -73,9 +73,9 @@ export declare function shouldHandleEvent(e: Event | PseudoEvent): boolean;
73
73
  * Get the touch identifier from the given event. If it was a mouse event, the
74
74
  * identifier is the string 'mouse'.
75
75
  *
76
- * @param e Mouse event or touch event.
77
- * @returns The touch identifier from the first changed touch, if defined.
78
- * Otherwise 'mouse'.
76
+ * @param e Pointer event, mouse event, or touch event.
77
+ * @returns The pointerId, or touch identifier from the first changed touch, if
78
+ * defined. Otherwise 'mouse'.
79
79
  * @alias Blockly.Touch.getTouchIdentifierFromEvent
80
80
  */
81
81
  export declare function getTouchIdentifierFromEvent(e: Event | PseudoEvent): string;
@@ -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;