Rachel Fenichel
b296ccae97
Add formal deprecation warnings
2020-07-28 10:51:28 -07:00
Sam El-Husseini
0f3db47fa5
Use generics to derive SVG element type ( #4036 )
...
* Encapsulate type in a generic to automatically derive type of SVG element when using createSvgElement
2020-07-13 10:40:31 -07:00
Monica Kozbial
4ac4332f5e
Update logic for field default values. ( #3953 )
...
* Update logic for field default values.
* Fix bugs
* Use contant for default value.
* Fix FieldColour
* Update field number tests.
* Update field angle test.
* Minor update.
* Update field checkbox test.
* Undo enabling logging
* Remove only.
* Update field colour test.
* Update invalid test cases for field colour
* Update field label tests
* Update field textinput test.
* Minor cleanup
* Make lint happy.
2020-06-12 15:18:28 -07:00
Sam El-Husseini
acfc335870
Type fixes for Dropdown / Widget divs ( #3911 )
...
* Stricter typechecks in dropdown and widget div
2020-05-28 08:42:26 -07:00
alschmiedt
6bc60894db
Toolbox interface ( #3918 )
...
* Add toolbox interface
2020-05-27 10:06:18 -07:00
Sam El-Husseini
317834ff59
Add accessibility interfaces and fix navigation types ( #3908 )
...
* Add accessibility interfaces and fix navigation types
2020-05-21 11:18:10 -07:00
Beka Westberg
bcfde92afb
Fix setValue not handling block disposal ( #3766 )
2020-04-06 09:59:30 -07:00
Monica Kozbial
a9223b0b22
Typo fixes. ( #3769 )
2020-03-25 15:47:27 -07:00
Sam El-Husseini
14428a0da4
Fix two memory leaks ( #3747 )
...
* Fix two memory leaks
2020-03-13 14:49:08 -07:00
Sam El-Husseini
29dc7bd7f7
Adjust marker and cursor colours from the theme ( #3735 )
...
* Support adjusting marker and cursor colours from the theme
2020-03-11 11:23:29 -07:00
Sam El-Husseini
13ac939b91
Support passing renderer overrides in options ( #3734 )
...
* Support passing in renderer options through workspace options.
2020-03-10 18:36:29 -07:00
Sam El-Husseini
eb40ca44ba
Dynamic fonts ( #3698 )
...
* Piping themes into the renderer and ensuring fields update their size information when constants change.
2020-02-20 17:16:01 -08:00
Neil Fraser
4e2f8e6e02
Use SPDX licences.
...
This is a followup to #3127 .
At the time, SPDX licenses were pending approval by Google.
2020-02-11 13:27:20 -08:00
Monica Kozbial
e2b510662c
Fixing typo on "programmatically". ( #3654 )
2020-01-24 15:10:22 -08:00
Sam El-Husseini
20e55b67d7
Fix bug with dropdown menu propagating the opening click event to a menu item ( #3570 )
...
* Prevent dropdown field menu from propagating a click event onto a menu item when the dropdown appears above the field
2020-01-09 18:08:29 -08:00
Sam El-Husseini
f06d7b3cfd
Fix scrolled text input widgetdiv positioning. ( #3533 )
...
* Fix scrolled text input widgetdiv positioning.
* Fix dropdown div bounds element when scrolled.
2020-01-02 17:19:32 -08:00
Sam El-Husseini
63f7af115c
[zelos] Set field rect background colour ( #3500 )
...
* More consistent field rect colour in zelos. Only overriding in full block fields. Fix disabled block colours.
* Use a better constant name and fix build.
2019-12-10 08:31:43 -08:00
Sam El-Husseini
917f58ab0f
Fix bugs with apply colour ( #3483 )
2019-12-03 13:22:41 -08:00
Sam El-Husseini
9fcc532977
[zelos] Cross browser pixel perfect text input ( #3466 )
...
* Align text and widget div text input pixel perfect on all browsers
2019-11-25 15:54:24 -08:00
Sam El-Husseini
139382e009
Field textinput pixel perfect input ( #3443 )
...
* Fix sizing of text input field in zelos, pixel perfect input in other browsers
2019-11-14 16:13:22 -08:00
Sam El-Husseini
09f6b792a6
Move field border radius into a constant ( #3434 )
...
* Move field border radius into a constant
* Drop const.
2019-11-13 17:22:21 -08:00
Sam El-Husseini
2dea7038d5
Moves field layout constants into the renderer ( #3437 )
...
* Add field constants into renderer constants
2019-11-13 16:41:35 -08:00
Rachel Fenichel
939bafddd8
Merge branch 'develop' into single_field_blocks
2019-11-12 11:52:03 -08:00
Rachel Fenichel
9d6f4c8177
Fix types and review comments
2019-11-12 11:50:34 -08:00
Sam El-Husseini
95f2b232b9
Field constants ( #3423 )
...
* Move field text sizing constants to renderer constants
2019-11-11 16:13:50 -08:00
Rachel Fenichel
5f4a308a40
Full-block editors for single-field reporters.
2019-11-11 14:32:31 -08:00
Sam El-Husseini
ee09aafd57
[zelos] Add input outlines on the path object. ( #3410 )
...
* Add input outlines on the path object.
2019-11-07 15:15:49 -08:00
Rachel Fenichel
85c4db5a10
First pass at colourers
2019-10-30 14:42:13 -07:00
Sam El-Husseini
7d174727b0
Fix warnings for code used by blocks ( #3362 )
2019-10-30 08:11:18 -07:00
Sam El-Husseini
649dc116ed
Using a HTML canvas for computing the text width ( #3000 )
...
* Use a helper HTML canvas element to measure text width for better performance
2019-10-24 13:02:32 -04:00
Sam El-Husseini
8eba82b906
Fix 4 misc warnings ( #3283 )
2019-10-17 16:52:52 -05:00
Sam El-Husseini
a5a4e5161c
Fix 11 warnings related to block_svg ( #3276 )
...
* Fix 11 warnings related to block_svg
2019-10-17 16:30:48 -05:00
Sam El-Husseini
2224bb2a4e
More field dispose ( #3201 )
...
* Dispose of element references in fields.
* Fewer warnings
2019-10-15 17:56:53 -05:00
Sam El-Husseini
4b35320c86
Fix #2811 ( #3205 )
2019-10-09 10:10:12 -07:00
RoboErikG
663809297d
Set correct defaults for Fields ( #3179 )
...
null was being converted to 0 by Number() when it should cause the
default value to be set instead. This updates FieldNumber and
FieldAngle to handle nulls correctly. Also update jsdoc.
Fixes #3177
2019-10-07 11:38:32 -07:00
Sam El-Husseini
d0772ad496
Fix compiler warnings related to fields. ( #3144 )
...
* Fix compiler warnings related to fields.
2019-10-03 15:58:46 -07:00
Rachel Fenichel
79bedca5a7
Element -> SVGElement ( #3140 )
...
* Use SVGElement instead of Element for the results of createSvgElement
* More SVGElement annotations.
2019-10-02 16:12:31 -07:00
Neil Fraser
b46a4fe286
Bring our license format up to date ( #3127 )
...
* Google changed from an Inc to an LLC.
This happened back in 2017 but we didn’t notice. Officially we should update files from Inc to LLC when they are changed as part of regular edits, but this is a nightmare to remember for the next decade.
* Remove project description/titles from licenses
This is no longer part of Google’s header requirements. Our existing descriptions were useless (“Visual Blocks Editor”) or grossly obselete (“Visual Blocks Language”).
* License no longer requires URL.
* Fix license regexps.
2019-10-02 14:46:56 -07:00
Sam El-Husseini
494487b37f
Mark fields as dirty when the workspace becomes visible. ( #3072 )
...
* Mark fields as dirty when the workspace becomes visible.
2019-09-23 11:21:45 -07:00
Sam El-Husseini
8fae0411f7
Check if a type exists before testing instanceof ( #3031 )
...
* Check if a type exists before instance of
2019-09-17 16:28:18 -07:00
alschmiedt
2c98ecaed6
Update APIs and Add New Cursor Look ( #3009 )
...
* Updates methods to be private in navigation.js
* Update cursor with new look
2019-09-16 12:33:43 -07:00
Neil Fraser
23caa12571
Error is a constructor, ‘new’ is not required.
2019-09-12 18:02:59 -07:00
Sam El-Husseini
f3f3329355
Fix configure method ( #2915 )
...
* Fix configure method.
2019-09-12 17:01:03 -07:00
Rachel Fenichel
6f4476c962
Textarea Field, Multiline Block (from acbart) ( #2663 )
...
* Field Textarea, text_multiline block, generators
2019-09-11 17:57:46 -07:00
Sam El-Husseini
f23b659898
Remove this.text_ ( #2910 )
...
* Remove this.text_ and have every field handle its own properties.
2019-08-26 10:56:36 -07:00
Beka Westberg
23e0733f21
Changed field and colour constructors to use better organization. ( #2900 )
2019-08-23 10:54:44 -07:00
Beka Westberg
a3642baf5c
Updated TODOs with issue numbers.
2019-08-20 12:52:28 -07:00
Beka Westberg
4f411d2859
Added handling of dynamic functions passed to opt_config.
2019-08-18 07:54:54 -07:00
Beka Westberg
1e73f69cea
Changed abstract field to new configuration paradigm.
2019-08-18 07:54:54 -07:00
Beka Westberg
cdc90f4059
Refactored field utilities.
2019-08-16 09:57:27 -07:00