Commit graph

32 commits

Author SHA1 Message Date
picklesrus
619ac4fbfb Fix typo 2019-02-11 13:29:11 -05:00
picklesrus
122b7b737e Fix by ignoring mouse ups on flyout buttons when there is a drag in process.
This issue was caused by adding pointer-events:none on the drag surface 
element in https://github.com/LLK/scratch-gui/pull/2584
2019-02-11 11:59:39 -05:00
Eric Rosenbaum
63fc7dcf69 Move duplicated constructor code into helper 2018-06-27 16:14:45 -04:00
Eric Rosenbaum
81f7c00f00 Improve comment 2018-06-27 16:14:45 -04:00
Eric Rosenbaum
278f1e0faa JSDOC fixes and cleanup 2018-06-27 16:14:45 -04:00
Eric Rosenbaum
7484c2fb6a Add flyout extension category header with status button 2018-06-27 16:14:45 -04:00
Eric Rosenbaum
bc9780b0b8 Move text SVG creation into a helper 2018-06-27 16:14:45 -04:00
Andrew n marshall
041cc2566a Adding %{..} support to toolbox buttons and labels.
See https://github.com/google/blockly/pull/1929
2018-06-18 11:31:39 -07:00
Rachel Fenichel
3c992dee6a More lint and small changes from Blockly 2018-04-30 15:42:02 -07:00
Rachel Fenichel
88bb0bff3e Lint that caused conflicts with Blockly 2018-04-26 14:28:59 -07:00
Sam El-Husseini
57733518d8
Fix vertical alignment of Flyout buttons in Firefox and Edge 2018-04-23 09:00:24 -07:00
Paul Kaplan
8eedd0b9f0 Remove initial updateTransform from flyout button 2017-10-13 16:00:37 -04:00
Paul Kaplan
0ac07db628 Use Blockly.Field.getCachedWidth instead of non-caching method 2017-10-13 16:00:37 -04:00
Eric Rosenbaum
6d4f08b195 Nits 2017-09-26 16:32:26 -04:00
Eric Rosenbaum
4bedaa458a Create getters for button properties 2017-09-21 10:25:21 -04:00
Eric Rosenbaum
3f9798e0f3 Distinguish category labels from other labels 2017-09-13 15:19:06 -04:00
Eric Rosenbaum
e3123af4d8 Fix layout of flyout labels 2017-08-28 15:11:08 -04:00
Eric Rosenbaum
7b7c99fccd Remove underline 2017-08-28 15:11:08 -04:00
Eric Rosenbaum
0f45211c8e Add category labels with underlines to flyout 2017-08-28 15:11:08 -04:00
Rachel Fenichel
6275e1137c New dragging! Merge from google ()
Port of a major refactor from Blockly.  Dragging logic now lives in block_dragger.js, gesture.js, workspace_dragger.js, dragged_connection_manager.js (unused by scratch-blocks), and insertion_marker_manager.js (used only by scratch-blocks).
2017-05-22 13:08:22 -07:00
Paul Kaplan
a847176014 Style create variable button 2017-04-20 13:33:56 -04:00
Andrew Sliwinski
be9d5fefed Merge from Upstream Blockly ()
* WIP merge from upstream google/blockly

* fixing some merging bugs. Getting the drag surface to work, updating some function calls, etc.

* make the trash can lid animate again and fix the cursor to show an x when things will be removed.

* Fix text rendering logic in fields

* Hand apply some more changes from blockly flyout.js to flyout_base.js.

Also revert 08efd1381c
in scratch-blocks since it breaks variables and there is more work fenichel is planning
to do here.

* Fix drop-down field rendering

* Resolve issue with text input field widths on init

* Remove unused blockly (built) files

* Remove unused language files

* Resolve lint issues and rebuild

* Add blockly build targets to cleanup script

* Return 0 if 'this.arrow_' does not exist in a dropdown field

* Remove unused / irrelevant comments
2017-02-02 14:17:43 -05:00
Rachel Fenichel
afca4264ca Add option to style flyout buttons as labels 2016-10-31 15:20:16 -07:00
Rachel Fenichel
4d02e9bee6 lint 2016-10-31 14:38:55 -07:00
Rachel Fenichel
703bd96f7e Allow creation of buttons with developer-designated callbacks 2016-10-31 14:24:00 -07:00
Neil Fraser
bc2bfbd53d Add shadow to flyout buttons. 2016-09-15 18:39:50 -07:00
Rachel Fenichel
f75fc6359b Fix 2016-08-24 11:37:02 -07:00
Rachel Fenichel
d2ce081dc4 Move functions for updating variables on a workspace into workspace.js, and some lint 2016-08-17 16:07:50 -07:00
Rachel Fenichel
9a6cbe1b34 Lint and remove math_change wherever necessary 2016-07-07 14:40:59 -07:00
Rachel Fenichel
13c6c63daa Create variables from the flyout 2016-07-07 14:39:45 -07:00
Rachel Fenichel
cb3bef8f32 Flyout button with click handler 2016-07-07 14:37:12 -07:00
Rachel Fenichel
e371da3031 First pass at svg button in flyout 2016-07-07 14:35:30 -07:00