Commit Graph

49 Commits

Author SHA1 Message Date
Huabing.Xu 06b612be01 refine rendering of canvas for scaleX and scaleY 2016-07-21 11:44:38 +08:00
pandamicro 321e9d13ca Add culling for Sprite & Label Canvas render command, fix issues 2016-07-15 15:50:55 +08:00
pandamicro 4ef771c043 Fix remained issues in new renderer 2016-07-13 14:04:25 +08:00
pandamicro 07e592dced Upgrade Scale9Sprite renderer & set index buffer dynamically 2016-07-12 16:33:52 +08:00
pandamicro 7c170b69d5 Merge pull request #866 from dabingnn/optimise_canvas_rendering
Optimise canvas rendering
2016-07-08 11:44:39 +08:00
zilongshanren 09c80402ba fix some bugs of shrink label
it also improve the perfomance issue of shrinked label

calculate font size divide by 2

add font height cache

keep the label lineheight the same as before
2016-07-06 17:39:21 +08:00
Huabing.Xu 26e8d7fcdb roll back scaleX scaleY 2016-07-05 15:41:08 +08:00
zilongshanren 4df512cc99 minor improve line height of shrinked text 2016-07-03 10:12:37 +08:00
zilongshanren 570b41cb69 fix Chinese label shrink effect 2016-07-02 14:23:29 +08:00
zilongshanren 5ad4e6fca9 fix web system font shrink wrap effect
fix label font size

add measure text height

make a skeleton of label ttf shrink algorithm

add debounce method for node string

finish no \n wrap

add debounced font size to label

finish web ttf shrink
2016-07-01 18:13:26 +08:00
Huabing.Xu ded71d1520 dirty region works on canvas 2016-07-01 16:10:24 +08:00
Huabing.Xu 581294d09b move scaleX and scaleY to transform 2016-06-30 16:11:29 +08:00
zilongshanren 3b9d875014 fix bmfont and ttf shrink in editor
fix bmfont vertical clamp precision

fix a bunch of label issues

fix bmfont inital font metrics
2016-06-17 16:32:02 +08:00
Huabing.Xu ab26de3c4d fix label bugs 1. outline sharp edge 2. margin for outline 2016-06-02 09:57:20 +08:00
Huabing.Xu 93acfa93a5 use round for line join to avoid sharp edge for outline effect 2016-06-01 14:39:33 +08:00
Wang Nan c51e89f49e Merge pull request #684 from zilongshanren/fix-label-webgl-size-issue
fix label not updating content size
2016-05-18 18:24:52 +08:00
zilongshanren 1f4770d32a simplify label content update size logic 2016-05-17 18:28:41 +08:00
Huabing.Xu e2c12e672c multiply width by 2 2016-05-17 18:13:44 +08:00
Huabing.Xu 714a9816e9 adjust outline effect 2016-05-17 17:53:27 +08:00
Huabing.Xu a9d5ea5053 add width for stroke 2016-05-17 12:13:30 +08:00
Huabing.Xu 101e710683 implement outline effect 2016-05-13 10:32:20 +08:00
Huabing.Xu c8a56b13f7 add outline effect 2016-05-12 18:38:34 +08:00
Huabing.Xu af55d43f89 add outline feature 2016-05-12 15:10:00 +08:00
Jare Guo f2fc319677 Merge pull request #582 from zilongshanren/fix-label-cascaded-opacity
fix cascaded opacity issue of label
2016-04-18 14:53:42 +08:00
zilongshanren aaea7ce6df rename locFlag to this._dirtyFlag 2016-04-12 10:19:01 +08:00
zilongshanren ccc3a2abfa fix label positioning 2016-04-12 09:20:37 +08:00
zilongshanren 296f07f30e fix cascaded opacity issue of label 2016-04-11 17:13:34 +08:00
zilongshanren 1b8d835d48 make ttf and bmfont behavior the same 2016-03-18 21:52:13 +08:00
zilongshanren 61d2ecf641 refactor bmFontSize to drawFontSize 2016-03-18 19:59:35 +08:00
zilongshanren e6336209c9 don't excluse color,opacity and textDirty logic 2016-03-16 18:11:30 +08:00
zilongshanren bb8481e184 fix label color opacity issue 2016-03-16 16:42:12 +08:00
zilongshanren 34b62651d1 refactoring label 2016-03-16 15:36:04 +08:00
zilongshanren 9cd4dd5aba reuse textDirty dirty flag 2016-03-16 14:44:29 +08:00
zilongshanren e74bc01add refactoring label, fix blink issue
make it works

remove unused code
2016-03-14 21:24:48 +08:00
zilongshanren ca4380b123 fix bmfont color change issue 2016-03-04 18:16:24 +08:00
zilongshanren 0a6293bad0 Improve EditBox
Squashed commit of the following:

commit ad31d2beadceea31732970145238a68a97995b76
Merge: 8e15189 061e6ca
Author: zilongshanren <guanghui8827@126.com>
Date:   Tue Feb 23 16:51:09 2016 +0800

    Merge remote-tracking branch 'me/master'

commit 8e15189d4a37d7215ffb66d6c08ec0b79cc57a19
Merge: 7c233f0 968480e
Author: zilongshanren <guanghui8827@126.com>
Date:   Tue Feb 23 16:50:19 2016 +0800

    Merge remote-tracking branch 'fireball/master'

commit 7c233f03db2a78b1ab2c5866520efef04a6c4920
Author: zilongshanren <guanghui8827@126.com>
Date:   Tue Feb 23 16:47:25 2016 +0800

    minor fix

commit fc89b4f920f979497e5961e48c1c796e18c3aa8e
Author: zilongshanren <guanghui8827@126.com>
Date:   Tue Feb 23 14:24:43 2016 +0800

    add editbox reorder functionality

commit 6fd1b48199ce351716c43250497e5b192194b1d5
Author: zilongshanren <guanghui8827@126.com>
Date:   Mon Feb 22 18:21:48 2016 +0800

    fix label rendering issue on editor

commit 2a335cd701ed62c6bc45f8849b4322413cf9acca
Author: zilongshanren <guanghui8827@126.com>
Date:   Mon Feb 22 16:10:43 2016 +0800

    add label

commit 51180fae14b43bfe2a2e11d618dda7a91b7522f1
Author: zilongshanren <guanghui8827@126.com>
Date:   Mon Feb 22 14:02:47 2016 +0800

    refactoring, add EditBoxImpl

commit d40cf8839963a98446a3b85f033f352b3325f7ed
Author: zilongshanren <guanghui8827@126.com>
Date:   Mon Feb 22 11:30:35 2016 +0800

    add toggle native editbox logic

commit 6114905f7222e8a21a8bc32be71f0bef1c4c658e
Author: zilongshanren <guanghui8827@126.com>
Date:   Fri Feb 19 13:37:34 2016 +0800

    remove resize and add vertical scrollbar

commit 061e6cadf259a2c6ae3b178fb45a747427af8589
Merge: c2a142c 0314e4c
Author: zilongshanren <guanghui8827@126.com>
Date:   Tue Feb 23 14:25:41 2016 +0800

    Merge remote-tracking branch 'fireball/master'

commit c2a142ce003f2d85d5f161be69f79dd6c0eaa68d
Author: zilongshanren <guanghui8827@126.com>
Date:   Tue Feb 23 14:24:43 2016 +0800

    add editbox reorder functionality

commit 48f02e97f27847b431c510d60fdf9380b14b650f
Author: zilongshanren <guanghui8827@126.com>
Date:   Mon Feb 22 18:21:48 2016 +0800

    fix label rendering issue on editor

commit 3b40ce5bd6a9ef8aa6c4f4b7874408e446ecc655
Author: zilongshanren <guanghui8827@126.com>
Date:   Mon Feb 22 16:10:43 2016 +0800

    add label

commit c304e8f40f9097905023d5bb5206faa6cf20be1a
Author: zilongshanren <guanghui8827@126.com>
Date:   Mon Feb 22 14:02:47 2016 +0800

    refactoring, add EditBoxImpl

commit 913b52536e9085ec2baaf3c71cd8300d7a988962
Author: zilongshanren <guanghui8827@126.com>
Date:   Mon Feb 22 11:30:35 2016 +0800

    add toggle native editbox logic

commit 2058f73ab82c1aa28c2ccf36046a727477a4c519
Merge: 744d8ad 595d744
Author: zilongshanren <guanghui8827@126.com>
Date:   Mon Feb 22 10:48:43 2016 +0800

    Merge remote-tracking branch 'fireball/master'

commit 744d8ad93d6b8bc322173c828be954b9f2834bbb
Author: zilongshanren <guanghui8827@126.com>
Date:   Fri Feb 19 13:37:34 2016 +0800

    remove resize and add vertical scrollbar
2016-02-23 16:52:22 +08:00
zilongshanren a008a91135 fix label layout issue 2016-01-28 11:22:37 +08:00
zilongshanren b7726501c0 fix label layout in editor 2016-01-28 09:58:08 +08:00
zilongshanren 8efc7e652d refactor system label
refactoring canvasSizeX/canvasSizeY to canvasWidth/canvasHeight

add project jshintrc

fix formating issue
2016-01-27 14:21:05 +08:00
Jare Guo 23de32c9b6 Merge commit 'e921a2ca4cfd2c24d90796db2ed879ab3a90b34a'
# Conflicts:
#	cocos2d/core/components/CCSprite.js
2016-01-15 17:08:37 +08:00
Huabing.Xu b5dffdbed2 ...... 2016-01-15 15:39:05 +08:00
Huabing.Xu 0e389f2b55 fix label and sprite canvas rendering 2016-01-15 12:40:46 +08:00
Huabing.Xu 5e5459af3b fix label does not work on sougou browser 2016-01-15 11:10:00 +08:00
pandamicro f135abd3a9 Merge pull request #239 from dabingnn/fix_labelttf_empty_line
fix empty line for label ttf
2016-01-14 20:03:03 +08:00
Huabing.Xu 810b70e59a fix empty line for label ttf 2016-01-13 11:00:54 +08:00
zilongshanren bc962b1169 fix ttf NONE content size error 2016-01-11 20:07:04 +08:00
Huabing.Xu 786a2472bb Merge branch 'master' into add_Label_OverFlow
# Conflicts:
#	cocos2d/core/label/CCSGLabel.js
#	cocos2d/core/label/CCSGLabelCanvasRenderCmd.js
2016-01-08 10:15:20 +08:00
Huabing.Xu a07ab99b24 treat None as Clamp in label
hack in ccLabel component when overflow is NONE
2016-01-05 19:26:05 +08:00
pandamicro a48f9ba64f Remove useless cocos2d modules in modular-cocos2d.js 2016-01-05 18:24:33 +08:00