mirror of
https://github.com/google/blockly.git
synced 2026-01-07 00:50:27 +01:00
@@ -19,7 +19,7 @@ import type {FlyoutButton} from './flyout_button.js';
|
||||
import type {Options} from './options.js';
|
||||
import * as registry from './registry.js';
|
||||
import {Scrollbar} from './scrollbar.js';
|
||||
import {Coordinate} from './utils/coordinate.js';
|
||||
import type {Coordinate} from './utils/coordinate.js';
|
||||
import {Rect} from './utils/rect.js';
|
||||
import * as toolbox from './utils/toolbox.js';
|
||||
import * as WidgetDiv from './widgetdiv.js';
|
||||
@@ -285,8 +285,7 @@ export class HorizontalFlyout extends Flyout {
|
||||
} else {
|
||||
moveX = cursorX - tab;
|
||||
}
|
||||
// No 'reason' provided since events are disabled.
|
||||
block!.moveTo(new Coordinate(moveX, cursorY));
|
||||
block!.moveBy(moveX, cursorY);
|
||||
|
||||
const rect = this.createRect_(block!, moveX, cursorY, blockHW, i);
|
||||
cursorX += blockHW.width + gaps[i];
|
||||
|
||||
@@ -19,7 +19,7 @@ import type {FlyoutButton} from './flyout_button.js';
|
||||
import type {Options} from './options.js';
|
||||
import * as registry from './registry.js';
|
||||
import {Scrollbar} from './scrollbar.js';
|
||||
import {Coordinate} from './utils/coordinate.js';
|
||||
import type {Coordinate} from './utils/coordinate.js';
|
||||
import {Rect} from './utils/rect.js';
|
||||
import * as toolbox from './utils/toolbox.js';
|
||||
import * as WidgetDiv from './widgetdiv.js';
|
||||
@@ -246,8 +246,7 @@ export class VerticalFlyout extends Flyout {
|
||||
const moveX = block!.outputConnection
|
||||
? cursorX - this.tabWidth_
|
||||
: cursorX;
|
||||
// No 'reason' provided since events are disabled.
|
||||
block!.moveTo(new Coordinate(moveX, cursorY));
|
||||
block!.moveBy(moveX, cursorY);
|
||||
|
||||
const rect = this.createRect_(
|
||||
block!,
|
||||
@@ -358,8 +357,7 @@ export class VerticalFlyout extends Flyout {
|
||||
if (!block.outputConnection) {
|
||||
newX -= this.tabWidth_;
|
||||
}
|
||||
// No 'reason' provided since events are disabled.
|
||||
block.moveTo(new Coordinate(newX - oldX, 0));
|
||||
block.moveBy(newX - oldX, 0);
|
||||
}
|
||||
if (this.rectMap_.has(block)) {
|
||||
this.moveRectToBlock_(this.rectMap_.get(block)!, block);
|
||||
|
||||
@@ -24,6 +24,8 @@ export interface BlockInfo {
|
||||
disabled?: string | boolean;
|
||||
enabled?: boolean;
|
||||
id?: string;
|
||||
x?: number;
|
||||
y?: number;
|
||||
collapsed?: boolean;
|
||||
inline?: boolean;
|
||||
data?: string;
|
||||
|
||||
4
package-lock.json
generated
4
package-lock.json
generated
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "blockly",
|
||||
"version": "10.1.0",
|
||||
"version": "10.1.1",
|
||||
"lockfileVersion": 2,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "blockly",
|
||||
"version": "10.1.0",
|
||||
"version": "10.1.1",
|
||||
"hasInstallScript": true,
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "blockly",
|
||||
"version": "10.1.0",
|
||||
"version": "10.1.1",
|
||||
"description": "Blockly is a library for building visual programming editors.",
|
||||
"keywords": [
|
||||
"blockly"
|
||||
|
||||
Reference in New Issue
Block a user