Andrea Bogazzi
b112b3405f
text rewriting - reorganization ( #3676 )
...
*text refactored.
2017-04-22 09:15:38 +02:00
Andrea Bogazzi
edb90be547
WIP Patternload ( #3598 )
...
* make pattern load async
* made all object loadable asyncronously ( filters )
2016-12-30 22:41:16 +01:00
Andrea Bogazzi
5ab46d61de
delete stylemap before wrapping text ( #3546 )
2016-12-18 00:20:41 +01:00
Andrea Bogazzi
cf2ab8a8fe
simpe fix for textbox ( #3473 )
...
* simpe fix for textbox
* resotre build
2016-12-01 22:14:12 +01:00
Andrea Bogazzi
d37ff8ebfe
Remove usage of thix.ctx in initDimensions. ( #3441 )
...
* remove this.ctx at text startup.
* fix textbox
2016-11-21 21:25:46 +01:00
Andrea Bogazzi
a4a8f71fd7
Release 170 ( #3437 )
...
* build 170
* fix default values
* fix text not rendering
* other fixes
* finished fixing
2016-11-21 12:09:25 +01:00
Andrea Bogazzi
9422fd39be
Objectcaching ( #3317 )
2016-11-13 21:00:10 +01:00
Andrea Bogazzi
c5f60743f5
To object origin ( #3416 )
...
* deleted double default cleaning
* rework object export
* fixed tests
* fix fabric2 api change.
* removed unused var
2016-11-12 23:54:42 +01:00
Andrea Bogazzi
bb41cdfa4d
remove space at start of line ( #3315 )
2016-10-02 19:58:34 +02:00
Andrea Bogazzi
cd4c465f4c
fix text minimum dimensions ( #3312 )
...
* fix text dim
* add tests
2016-10-02 11:00:17 +02:00
Marcin
a8827e7a5c
fixes Issue 3256 - line's style was gone when pushing line down ( #3277 )
2016-09-25 22:13:35 +02:00
Andrea Bogazzi
876c9ca91f
Uniform clone and fromObject behaviour ( #3212 )
2016-09-10 16:09:17 +02:00
Andrea Bogazzi
42d8f3e463
Fix textbox and negative charspacing ( #3233 )
...
* do not count charspacing twice
* do not get negative with char width
2016-09-05 18:26:15 +02:00
neopheus
9b383628e8
JSdoc update ( #3179 )
...
* update JSDOC
* update JSDOC - v2
* update JSDOC - v3
2016-08-20 12:05:19 +02:00
Andrea Bogazzi
46624d3f50
Textspacing ( #3097 )
...
Introduce charspacing.
2016-08-14 23:19:42 +02:00
Andrea Bogazzi
64bf67b0ab
remove Textbox instances ( #3008 )
2016-05-25 15:00:38 +02:00
Andrea Bogazzi
fcfc9f45f9
do not override user options.
2016-05-08 21:22:51 +02:00
Andrea Bogazzi
719746e58d
Revert "Textboxspaces"
2016-03-27 23:25:39 +02:00
Andrea Bogazzi
e3e8984ec9
fixes trailing spaces
2016-03-26 13:00:37 +01:00
Andrea Bogazzi
55da566d37
Update textbox.class.js
2016-03-26 12:44:11 +01:00
Andrea Bogazzi
2a1842af02
adding lineStarted logic to _wrapLine function
...
The error was considering line === '' as a line that just started. This messed up consecutive spaces.
Consecutive spaces create words with 0 lenght and they leave the line with no infix and no characters.
2016-03-26 11:41:49 +01:00
Andrea Bogazzi
66f492f50b
Update textbox.class.js
2015-08-21 11:42:14 +02:00
Andrea Bogazzi
dc24c48d81
Update textbox.class.js
2015-08-20 17:04:05 +02:00
Andrea Bogazzi
68360b81a3
Update textbox.class.js
2015-08-20 15:55:44 +02:00
Andrea Bogazzi
d6da75a1f1
Update textbox.class.js
2015-08-20 15:16:35 +02:00
Andrea Bogazzi
1bbc356393
Optimize use of cache, use standard method to retrieve char width
2015-08-18 12:38:36 +02:00
Andrea Bogazzi
8b491480b4
Optimize _wrapText's use of _measureText
2015-08-17 15:37:42 +02:00
Andrea Bogazzi
2518a486c3
Update textbox.class.js
2015-07-28 19:20:14 +02:00
Andrea Bogazzi
29f601512b
Update text.class.js
...
Removed direct use of __lineWidths
2015-07-28 19:05:21 +02:00
Juriy Zaytsev
3907853048
Update textbox documenation
2015-07-20 13:56:26 -04:00
Andrea Bogazzi
8f14daaba8
Update textbox.class.js
2015-07-17 14:17:53 +02:00
inssein
e7b01abf73
fix CS
2015-06-18 20:06:32 -07:00
inssein
3902442ebf
finally installed jscs and ran it to fix all errors
2015-06-16 13:54:03 -07:00
inssein
5daab00d69
fix off by one errors when calculating the offset
2015-06-16 13:19:41 -07:00
inssein
5824a48268
bringing over fixes from application textbox
2015-06-16 10:34:08 -07:00
Hussein Jafferjee
43668e3571
Fix cursor location to include spaces that are removed
2015-06-15 14:01:57 -07:00
Hussein Jafferjee
1db7e953c2
Fix bug in stylemap generation
2015-06-15 13:55:12 -07:00
Hussein Jafferjee
ea81c0f1e9
Account for removed space's at end of line when wrapping
2015-06-12 10:26:36 -07:00
Hussein Jafferjee
c158e311df
Update textbox.class.js
...
Overlooked simple case - do not add word that is too long onto a line that already contains text.
2015-06-12 09:26:21 -07:00
inssein
26bba123af
dont wrap when its smaller than a single word.
2015-06-11 20:00:23 -07:00
inssein
079a6f4e30
fix styles when measuring
2015-06-11 10:55:18 -07:00
inssein
7b581b4753
CS
2015-06-11 10:25:43 -07:00
inssein
9eb597c729
Use this.styles as if it's not affected by line-wraps.
2015-06-10 17:12:54 -07:00
inssein
4843a61a84
need to figure out how to get phpstorm to auto format these mistakes
2015-06-03 17:07:42 -07:00
inssein
4987b55ed6
formatted
2015-06-03 16:49:38 -07:00
inssein
bf7f2ea731
1) adjust index when clicking on end of line
...
2) measure text in a line properly
2015-06-03 16:39:10 -07:00
inssein
3e57b2a835
changes requested by kangax
2015-05-31 15:44:44 -07:00
inssein
a641dbf8f9
silly formatting rules :P
2015-05-28 22:41:23 -07:00
inssein
b9aa3500a2
formatting
2015-05-27 21:30:17 -07:00
inssein
8934b93bc7
Change the get2DCursorLocation() function to return appropriately. Added additional comments for clarity.
2015-05-27 20:24:06 -07:00