Commit Graph

261 Commits

Author SHA1 Message Date
Sam El-Husseini
5852bef90d Inject constants CSS in createDom (#3502)
* Inject constants CSS in createDom instead. Use a random identifier to pre-emptively set CSS that uses the disabled pattern id.
2019-12-10 15:00:32 -08:00
Sam El-Husseini
8cbec2eaee Make checkbox field width a constant. (#3499) 2019-12-10 08:32:26 -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
a779d44104 Reduce the vertical spacing for spacers before and after an input row if it contains non-shadow connected blocks. (#3496) 2019-12-09 13:17:00 -08:00
Sam El-Husseini
fee606e2e0 Render negative elem spacing in debugger. (#3493)
* Render negative elem spacing in debugger.
2019-12-09 13:04:28 -08:00
Sam El-Husseini
f5bb5b6143 Zelos horizontal tight nesting. (#3490)
* Reduce the amount of implicit spacing added by the connection shape by adding negative spacing to the first and last spacer in an output block
2019-12-06 10:51:50 -08:00
Sam El-Husseini
55997784ca Move blockStyles into constants (#3485)
* Move blockStyles into constants.
2019-12-06 10:51:36 -08:00
Sam El-Husseini
4eb791bd70 [zelos] Add right connection shape element. (#3488)
* Add right connection shape element
2019-12-05 17:51:39 -08:00
alschmiedt
10b3a9aa9a Refactor marker and cursor (#3484)
* Refactor marker and cursor
2019-12-04 14:50:58 -08:00
Sam El-Husseini
e5cb8e753e Move CSS to constants (#3482) 2019-12-04 09:46:18 -08:00
Sam El-Husseini
b038c1cef5 [zelos] Set dropdown div colour to match block colour (#3462)
* Set dropdown div colour to match block colour
2019-11-27 09:30:29 -08:00
Rachel Fenichel
c2bf971947 Merge pull request #3474 from rachel-fenichel/constant_comments
Add comments to many rendering constants
2019-11-25 16:54:20 -08:00
Rachel Fenichel
8d92b05e6a Type annotation 2019-11-25 16:50:03 -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
Rachel Fenichel
17b40dfc67 Add comments to many rendering constants 2019-11-25 14:45:59 -08:00
Sam El-Husseini
f4431b3361 [Zelos] apply Colour (#3465)
* Only apply colour from a single entry point. Zelos rendering apply colour
2019-11-25 14:18:10 -08:00
Sam El-Husseini
30a49c3225 Statement inputs have minimum widths. (#3463) 2019-11-22 13:53:49 -08:00
Sam El-Husseini
2a8e7d9ac8 [zelos] Full field colour (#3461)
* Support showing the colour value on the entire block.
2019-11-22 13:50:33 -08:00
Sam El-Husseini
426e17a06d Move more CSS into renderers. (#3455)
* Move more CSS into renderers.
2019-11-20 11:57:37 -08:00
Sam El-Husseini
329a21c572 Add theme and renderer classnames onto the widget and dropdown div. (#3456)
* Add theme and renderer classnames onto the widget and dropdown div.
2019-11-20 11:07:39 -08:00
Sam El-Husseini
70c24cf94e CSS in renderers (#3446)
* Have each renderer declare some CSS that is specific to the renderer.
2019-11-18 16:14:19 -08:00
Sam El-Husseini
3c120f9d46 Highlight input shape in Zelos (#3444)
* Highlight shape for input in zelos rendering
2019-11-15 13:14:39 -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
d8476306f4 Fix up more zelos spacing (#3445)
* Fix up more of zelos spacing
2019-11-14 16:04:46 -08:00
Sam El-Husseini
c868a86bdd Field dropdown with an SVG arrow (#3442)
* Add SVG arrow as an option on the dropdown field
2019-11-14 15:00:49 -08:00
alschmiedt
564af764d0 Cursor renderer (#3440)
* Initial commit for adding the cursor to renderer
2019-11-14 13:36:29 -08:00
Sam El-Husseini
f9dcb60f82 Zelos replacement highlight (#3431)
* Zelos replacement highlight
2019-11-13 17:14:28 -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
6dd07ec44d Move cursorSvg and markerSvg to pathObject 2019-11-13 11:23:10 -08:00
Rachel Fenichel
03e75a100c Delete unused property. 2019-11-13 11:08:37 -08:00
Sam El-Husseini
9dc46ce292 Set statement input height to be the max of the default statement input and the row height. (#3436) 2019-11-12 16:46:33 -08:00
Rachel Fenichel
939bafddd8 Merge branch 'develop' into single_field_blocks 2019-11-12 11:52:03 -08:00
Rachel Fenichel
3076874b2b Merge pull request #3426 from rachel-fenichel/highlight_for_replacement
Move highlightForReplacement into the path object as well.
2019-11-11 16:32:49 -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
23635598ec Update i_path_object.js 2019-11-11 15:44:11 -08:00
Rachel Fenichel
067fbb4488 Move highlightForReplacement into the path object as well. 2019-11-11 15:17:26 -08:00
Rachel Fenichel
5f4a308a40 Full-block editors for single-field reporters. 2019-11-11 14:32:31 -08:00
Sam El-Husseini
36cc9a2e89 Zelos constants (#3419) 2019-11-08 10:59:10 -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
Sam El-Husseini
d49b3400e6 Add zelos selection highlight. (#3390)
* zelos selection highlight
2019-11-06 13:47:30 -08:00
Rachel Fenichel
bfff91b673 Update geras and add underscore to setClass_ 2019-11-06 11:47:33 -08:00
Rachel Fenichel
e71366259c Move lots of update style functions from block_svg to path_object 2019-11-05 17:15:26 -08:00
Sam El-Husseini
337cb9c486 Fix path_object inheritance (#3403)
* Fix path_object inheritance, add zelos path_object
2019-11-05 16:36:30 -08:00
Rachel Fenichel
13e4d671c3 Moved setHighlighted and setDisabled into the path object. 2019-11-01 14:28:51 -07:00
Rachel Fenichel
46f323971a Move filter and pattern creation from inject into constants. 2019-11-01 13:32:17 -07:00
Rachel Fenichel
46fad66ab1 Review feedback. 2019-10-30 15:58:53 -07:00
Rachel Fenichel
5ef08fc0d4 Switch to using the style object in the path object. 2019-10-30 14:47:23 -07:00
Rachel Fenichel
ca1e49bf8e Fields now go through blockSvg for colours. 2019-10-30 14:43:42 -07:00
Rachel Fenichel
f4bbeb0688 Fix bad function definition. 2019-10-30 14:42:13 -07:00
Rachel Fenichel
ecef3467fd Colourer/path_object cleanup 2019-10-30 14:42:13 -07:00