blockly 10.4.0 → 10.4.2
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 +11 -11
- package/blockly_compressed.js +11 -11
- package/blockly_compressed.js.map +1 -1
- package/core/block_dragger.d.ts +15 -0
- package/package.json +2 -2
package/core/block_dragger.d.ts
CHANGED
|
@@ -81,13 +81,28 @@ export declare class BlockDragger implements IBlockDragger {
|
|
|
81
81
|
* at the start of the drag, in pixel units.
|
|
82
82
|
*/
|
|
83
83
|
drag(e: PointerEvent, delta: Coordinate): void;
|
|
84
|
+
/**
|
|
85
|
+
* @param draggingBlock The block being dragged.
|
|
86
|
+
* @param dragDelta How far the pointer has moved from the position
|
|
87
|
+
* at the start of the drag, in pixel units.
|
|
88
|
+
*/
|
|
84
89
|
private moveBlock;
|
|
85
90
|
private updateDragTargets;
|
|
86
91
|
/**
|
|
87
92
|
* Returns true if we would delete the block if it was dropped at this time,
|
|
88
93
|
* false otherwise.
|
|
94
|
+
*
|
|
95
|
+
* @param e The most recent move event.
|
|
96
|
+
* @param draggingBlock The block being dragged.
|
|
97
|
+
* @param delta How far the pointer has moved from the position
|
|
98
|
+
* at the start of the drag, in pixel units.
|
|
89
99
|
*/
|
|
90
100
|
private wouldDeleteBlock;
|
|
101
|
+
/**
|
|
102
|
+
* @param draggingBlock The block being dragged.
|
|
103
|
+
* @param dragDelta How far the pointer has moved from the position
|
|
104
|
+
* at the start of the drag, in pixel units.
|
|
105
|
+
*/
|
|
91
106
|
private updateConnectionPreview;
|
|
92
107
|
/**
|
|
93
108
|
* Returns true if the given orphan block can connect at the end of the
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "blockly",
|
|
3
|
-
"version": "10.4.
|
|
3
|
+
"version": "10.4.2",
|
|
4
4
|
"description": "Blockly is a library for building visual programming editors.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"blockly"
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
"readline-sync": "^1.4.10",
|
|
64
64
|
"rimraf": "^5.0.0",
|
|
65
65
|
"typescript": "^5.0.2",
|
|
66
|
-
"webdriverio": "^8.
|
|
66
|
+
"webdriverio": "^8.32.2",
|
|
67
67
|
"yargs": "^17.2.1"
|
|
68
68
|
},
|
|
69
69
|
"dependencies": {
|