mirror of
https://github.com/google/blockly.git
synced 2026-01-09 01:50:11 +01:00
fix: input exports (#7165)
* fix: input exports * chore: fix build * chore: attempt to fix build * chore: attempt to fix build * chore: create new align enum to replace old one * chore: format * fix: Tweak renamings entries It appears that the goal is to map: Blockly.Input.Align -> Blockly.inputs.Align Blockly.Align -> Blockly.inputs.Align Blockly.ALIGN_* -> Blockly.inputs.Align.* I believe this commit achieves that in a more minimal (and correct) way—but if I have misunderstood the intention then this will not be a useful correction. --------- Co-authored-by: Christopher Allen <cpcallen+git@google.com>
This commit is contained in:
14
core/inputs/align.ts
Normal file
14
core/inputs/align.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
/**
|
||||
* @license
|
||||
* Copyright 2012 Google LLC
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
/**
|
||||
* Enum for alignment of inputs.
|
||||
*/
|
||||
export enum Align {
|
||||
LEFT = -1,
|
||||
CENTRE = 0,
|
||||
RIGHT = 1,
|
||||
}
|
||||
@@ -307,9 +307,12 @@ export class Input {
|
||||
}
|
||||
|
||||
export namespace Input {
|
||||
// TODO(v11): When this is removed in v11, also re-enable errors on access
|
||||
// of deprecated things (in build_tasks.js).
|
||||
/**
|
||||
* Enum for alignment of inputs.
|
||||
*
|
||||
* @deprecated Use Blockly.inputs.Align. To be removed in v11.
|
||||
*/
|
||||
export enum Align {
|
||||
LEFT = -1,
|
||||
@@ -318,5 +321,9 @@ export namespace Input {
|
||||
}
|
||||
}
|
||||
|
||||
/** @deprecated Use Blockly.inputs.Align. To be removed in v11. */
|
||||
/** @suppress {deprecated} */
|
||||
export type Align = Input.Align;
|
||||
/** @deprecated Use Blockly.inputs.Align. To be removed in v11. */
|
||||
/** @suppress {deprecated} */
|
||||
export const Align = Input.Align;
|
||||
|
||||
Reference in New Issue
Block a user