DD Liu
d7298c0c43
Bit text tool ( #515 )
2018-06-19 14:54:29 -04:00
DD Liu
44f71d9f72
Fix drawing rectangle while holding shift ( #493 )
2018-06-07 10:01:23 -04:00
DD Liu
63198c05b4
Fix firefox wrap and opaque text selection ( #474 )
2018-05-24 14:16:00 -04:00
DD Liu
f9e00afdc8
Dont translate fonts and increase default font size ( #450 )
...
* Remove internationalization from all font names
* Bump up the default font sizes
2018-05-17 15:34:36 -04:00
DD Liu
0240abcfe3
Font tool ( #443 )
...
Add font picker
2018-05-17 10:37:02 -04:00
DD Liu
3d99044ccf
Import and export bitmaps ( #404 )
...
* Rename svg to image
* Import/export bitmap
* Fix playground and readme
* Fix lint
* Assume strings are svgs
2018-04-26 18:45:50 -04:00
Jacco Kulman
507047e245
Fix whitespace
2018-04-13 11:33:04 +02:00
Jacco Kulman
71e01dd9c4
Escape end text edit mode
2018-04-13 08:16:43 +02:00
DD Liu
6252366759
Merge pull request #360 from fsih/fillTransparentText
...
Add ability to fill transparent text
2018-04-11 14:45:56 -04:00
DD
436bad4826
fix nudge
2018-04-06 10:57:40 -04:00
DD Liu
6c6d3a8bfb
Merge pull request #337 from Jacco/issue/301
...
Reduce target when fill hole with same color #301
2018-04-03 18:56:58 -04:00
DD
2b840c2f47
Add ability to fill transparent text
2018-04-03 18:21:12 -04:00
Paul Kaplan
769c6560e4
Fix leading
2018-03-29 15:58:22 -04:00
Paul Kaplan
5c0219e745
Use scratch 2 default font
2018-03-29 11:46:02 -04:00
Paul Kaplan
af2c49e639
Fix double clicking to enter edit mode and clearing selection.
...
The first was caused by the "lastMode" flag being stored after the
double click edit was done, causing it to immediately exit edit mode.
The second problem was that the selection should be cleared when
entering edit mode on another text area.
2018-03-26 11:23:55 -04:00
Jacco Kulman
a98ba28152
Fix 2 TRAVIS errors (whitespace, let)
2018-03-26 14:53:33 +02:00
Jacco Kulman
f707af70fd
When removing a hole, the parent should be reduced before fillColor is set
2018-03-26 13:46:25 +02:00
DD
b98708ff70
Make clicking outside of the canvas activate select mode. This way the user can change the fill color easily, instead of the text getting deselected as soon as they click fill.
2018-03-22 17:56:54 -04:00
DD
6bfc3f23df
Don't apply outline to text by default
2018-03-22 17:53:17 -04:00
DD
baf628c5c9
Detect view bounds changes and update the edit text matrix in response
2018-03-22 15:23:51 -04:00
DD
0c4f545326
Add transform when zoomed in
2018-03-22 14:34:46 -04:00
DD
c75d3f63ba
Add undo
2018-03-22 14:31:03 -04:00
DD Liu
86ee3d8cdd
Edit text moves with text transform
2018-03-22 11:07:10 -04:00
DD
1d29a7dceb
Showing text on top of other text
2018-03-20 17:26:27 -04:00
DD
da0864b81b
Add a text edit area
2018-03-20 14:47:14 -04:00
DD
44eedfe225
Remove unnecessary changes
2018-03-19 14:50:05 -04:00
DD
b4294b8268
Merge branch 'develop' into textTool
2018-03-19 12:43:44 -04:00
DD
a03567ef18
Switch to .1
2018-03-16 14:23:59 -04:00
DD
69e73d45dd
Use .25
2018-03-16 14:18:42 -04:00
DD
79e7d21023
Change proptype
2018-03-16 14:16:27 -04:00
DD
8d61a7b060
Move the text edit target to the state and make fill work
2018-03-16 11:39:09 -04:00
DD
254bbe1285
Ignore nudge when text field focused
2018-03-15 13:19:05 -04:00
DD
76eb0b9e3e
Reduce the overlap to .25
2018-03-14 18:12:37 -04:00
DD
f9aabe1beb
Fix some bugs
2018-03-14 18:00:38 -04:00
DD
240282f9d2
Make the guide stay in the shape of the text when text is rotated
2018-03-14 16:01:20 -04:00
DD
f0b570dc51
Add dotted lines in text edit mode
2018-03-14 15:28:22 -04:00
DD
4fd9f991f1
Mode switching
2018-03-14 14:43:39 -04:00
DD
8e86222097
Basic text edit
2018-03-12 17:51:23 -04:00
DD
8e7ae67ae6
Make the text tool a real tool
2018-03-09 14:40:34 -05:00
Paul Kaplan
270c92a849
Buffer the paper canvas offscreen for picking to ensure safe access.
...
This gets around the bug #276 where chrome cannot handle getImageData
off a canvas on HDPI screens. In the interest of having a single
code-path, and because does not impose a large performance burden, I
think we should just use it for all platforms until chrome is really
fixed.
Also it is important to note that because this bug has to do with how
they handle accelerated 2d canvas contexts, it does not impact the stage
color picking, so that does not need to be changed.
2018-02-06 18:56:26 -05:00
DD
53927bf615
Move key handlers into their own file, and add to oval and rect tools
2018-01-25 16:39:38 -05:00
DD
0fe9c5d453
Make boolean expression more readable
2017-12-19 16:38:44 -05:00
DD
9c98507597
Take out fill-caused grouping
2017-12-19 13:47:39 -05:00
DD
80a5238461
Fix a bug where when we reduce a compound path, the child doesnt inherit the style
2017-12-19 13:47:39 -05:00
DD
814ec160b3
Fill tool for fills (not strokes)
2017-12-19 13:47:39 -05:00
DD
045dcf211c
Expand filled holes by 1 px to avoid a gap between fill and outline
2017-12-19 13:47:39 -05:00
DD
207341f47f
Basic fill tool
2017-12-19 13:47:39 -05:00
Matthew Taylor
7df3d69fc6
small styling updates
...
make the swatches aligned in gui, and make sure the cursor shows when not eye dropping. Also moves eye dropper initialization into the helper. Thanks @paulkaplan!
2017-12-15 10:37:31 -05:00
Matthew Taylor
0209e65ac0
accommodate zoom in eye dropper
2017-12-14 12:58:25 -05:00
Matthew Taylor
ae0358079e
use pixelRatio
instead of scale constant
...
Turns out that the width/height paper sets on the canvas is tracked at scale to the width/height we set in the `pixelRatio` value, so use that to handle grabbing pixel color rather than a constant we set.
2017-12-13 13:13:43 -05:00