Blob
3b314d11cc
Add strokeDashOffset and svg corresponding attribute ( #5398 )
...
* Add strokeDashOffset and svg corresponding attribute
2018-11-23 00:56:00 +01:00
Andrea Bogazzi
8c3f677cc2
Fix interaction between grouping and enter edit for text ( #5153 )
2018-08-12 02:33:41 +02:00
Andrea Bogazzi
bafc28d3fc
Svg import improvements ( #4984 )
...
* test
* svg-import-fixes
* svg-import-fixes
* ok done
* adapted tests to new values
2018-05-29 10:28:02 +02:00
Andrea Bogazzi
2ce99ee0b7
fixed calculate position ( #4827 )
...
* fixed calculate position
* Re-enabled tests.
2018-03-15 23:45:56 -04:00
Nate Evans
5155da9fce
Use clientWidth and clientHeight of upperCanvas to size hiddenTextarea ( #4768 )
...
* Use clientWidth and clientHeight of upperCanvas to size hiddenTextarea to work with dynamic sized canvas.
2018-03-15 22:46:01 -04:00
Jeremy Shipman
0c936ed6bc
Fix testem runner, and further improvements ( #4593 )
...
* Switched qunit dependency to npm
* Fixed testem not working
* Switched test.js build to use node-qunit.
As stated in the QUnit docs: The qunit package prior to 2.4.1 is an alternative CLI that is now published as node-qunit.
* Introduced qunit 2.4.1, with an npm script for running node tests
* Switched testem page fixture to use qunit package instead of qunitjs
* Configured testem to run in headless mode, and use new npm node test script for "Node" launcher configuration.
This means that individual tests will show up in testem output via the the `tap` test protocol.
* Made canvas_static 'toDataURL cropping' test asynchronous.
* Configured QUnit testTimeout and enabled 'noglobals' config
* Updated .travis.yml config to do cross-browser/env testing via Testem
* Specify qunit binary directly to fix confict with binary from node-qunit
* Avoid test hanging by aborting the animated cursor
* Firefox test fix, and enabled in Testem config
2017-12-31 09:51:07 +01:00
Stefan Hayden
0fc71349a6
Paint order ( #4303 )
...
* makes fabric aware of the paint-order svg2 spec to swap the paint order of stroke and fill
2017-09-17 22:47:35 +02:00
Andrea Bogazzi
c03111824c
Update deps ( #4315 )
...
* try replace tests
* modified tests for new qunit
* lint tests
2017-09-17 11:44:57 +02:00
Andrea Bogazzi
69d377b992
Output version ( #4251 )
...
* output version in json
* fixed tests
* fixed lint
2017-08-29 22:23:42 +02:00
Andrea Bogazzi
3b10702512
Normalize Api for getSelectionStyles, setSelectionStyles ( #4202 )
...
* reworked the text selection
* reorganized api
* missing file
* fixed lint
* more test
2017-08-15 10:10:01 +02:00
Nick Swider
da27ef57c4
Add chaining to iText selection methods ( #4178 )
2017-08-09 09:05:40 +02:00
Andrea Bogazzi
351e7dfa47
Multiple fixes ( #4119 )
...
* multiple fixes
* updated tests
2017-07-22 16:34:47 +02:00
Andrea Bogazzi
145bd3b03f
Force async ( #3996 )
...
* removed forced async
* tests
* fixed lint
2017-06-11 21:36:51 +02:00
Andrea Bogazzi
b112b3405f
text rewriting - reorganization ( #3676 )
...
*text refactored.
2017-04-22 09:15:38 +02:00
Andrea Bogazzi
efcd946b48
fix setSelectionStyles do not set anything when there is no selection ( #3765 )
...
* fix setSelection
* fixed tests
2017-03-06 01:15:24 +01:00
Andrea Bogazzi
01d8392ae3
Update to 1.7.3 ( #3603 )
...
* build v173
2017-01-08 11:07:41 +01:00
Andrea Bogazzi
5ed0b83d45
fix tests ( #3602 )
2017-01-03 01:08:14 +01:00
Andrea Bogazzi
3c0fe81b77
be more strict on when not to re render ( #3594 )
...
* add more check to first return false
* fix ;
* fix ; in tests
* fix test
2016-12-28 13:22:23 +01:00
Marcin
f26a2dc8aa
Word widths on justified line of text were calculated incorrectly. ( #3408 )
...
* Calculation of word widths on justified line will now correctly take styles into account
* fix lint
2016-11-13 00:35:40 +01:00
Andrea Bogazzi
8783b2132c
change how itext handle removal handlers ( #3332 )
...
* change how itext handle removal handlers
* fix test lint
2016-10-09 09:25:43 +02:00
Andrea Bogazzi
cd4c465f4c
fix text minimum dimensions ( #3312 )
...
* fix text dim
* add tests
2016-10-02 11:00:17 +02:00
Andrea Bogazzi
08f60adbea
switch to eslint ( #3229 )
...
* switch to eslint 2.x
* fix src
* fix tests
2016-09-10 15:14:23 +02:00
Asturur
4fc347e73d
disable failing test in nodejs
2016-09-01 22:16:30 +02:00
Asturur
a1e5d518bf
fixed tests for browser
2016-09-01 08:31:56 +02:00
Asturur
3938c83080
build dist
2016-08-18 09:34:02 +02:00
Andrea Bogazzi
4433809cb1
fix lineheight < 1 ( #3078 )
2016-07-02 19:23:36 +02:00
Andrea Bogazzi
d4e723e49d
update area clearing during rendering ( #3016 )
...
* update area clearing during rendering
* register event in correct way
* re render selection or cursor only if selectionStart changes
2016-05-30 23:22:55 +02:00
Andrea Bogazzi
17775fa567
Make iText fires object:modified on text change on exit editing ( #2927 )
...
added some tests also.
2016-05-02 08:25:03 +02:00
Andrea Bogazzi
8ec69e19de
Update itext.js
2016-02-18 12:19:40 +01:00
Andrea Bogazzi
c16b525d41
Update itext.js
2016-02-18 12:01:50 +01:00
Andrea Bogazzi
c04eb03acb
Update itext.js
2016-02-18 11:48:01 +01:00
Andrea Bogazzi
cda0611326
Add support for skew objects.
2015-09-17 14:22:12 +02:00
Andrea Bogazzi
5966b5e319
toObject returns deep cloning if necessary
2015-08-11 11:10:51 +02:00
Andrea Bogazzi
f805e57297
Update rect.js
2015-07-20 12:57:13 +02:00
Andrea Bogazzi
286e018e3a
Update itext.js
...
fix test for browser
2015-05-18 22:58:21 +02:00
Ulrich Sossou
4603ec9581
Replace empty values of stroke-dasharray in unit tests by 'none'
2015-05-18 07:00:36 +01:00
Milan Wanielik
2cb0de11e1
Merge branch 'master' into fix/duplicate-line-styles
...
Conflicts:
src/mixins/itext_behavior.mixin.js
test/unit/itext.js
2015-05-13 09:46:35 +02:00
Milan Wanielik
0d5ad0cec4
remove insertNewlineStyleObject fixes, one issue per branch
2015-05-12 12:04:55 +02:00
Milan Wanielik
b3c57385f2
remove shiftLineStyles fixes, one issue per branch
2015-05-12 12:02:15 +02:00
Milan Wanielik
5259cdbb2e
add unit test for IText functions insertNewlineStyleObject and shiftLineStyles
2015-05-12 11:57:41 +02:00
kangax
94f7035624
Lint unit tests and fix errors/warnings
2015-04-23 11:47:35 +02:00
Jeff Parsons
a0a4d77272
Track IText instances per-canvas, not globally.
...
Previously instances of the IText shape were added to a globally-shared
array when they were created. There are two problems with this approach:
1) Interactions with one canvas affect others. I would never expect
text in one canvas to exit edit mode just because I interacted with
some otherwise-unrelated canvas.
2) Every IText instance leaks. There is no mechanism to clean up references
to IText instances in the global array, so every such instance will
hang around in memory forever, regardless of whether it is removed from
the canvas or if the canvas itself is removed.
Discovered while profiling memory usage in Chrome.
2015-03-24 14:14:43 +11:00
Andrea Bogazzi
0e09961c64
Update to text, rendering and optimization
2015-01-26 02:49:37 +01:00
Andrea Bogazzi
af1138a686
Divided FillRule from globalCompositeOperation
2014-09-23 08:53:56 +02:00
kangax
17bf29616d
Try fixing char width for travis again
2014-07-18 14:43:54 +02:00
kangax
da0037447b
Change height in itext test
2014-07-18 12:19:51 +02:00
kangax
b189645bba
Fix unit test
2013-11-25 21:57:32 +01:00
kangax
ae11740f82
Fix i-text style copy-pasting (doesn't work with multiline yet)
2013-11-25 21:32:00 +01:00
kangax
f84ac95f75
fix test
2013-11-25 16:53:31 +01:00
kangax
4950e35627
Add remaining i-text unit tests
2013-11-25 16:39:50 +01:00