platform/core/uifw/dali-toolkit.git
15 months agoFix coverity issue 70/285870/2
Eunki, Hong [Thu, 22 Dec 2022 03:28:50 +0000 (12:28 +0900)]
Fix coverity issue

 - sizeof(int) != sizeof(float) case in json parsing
 - mCompletedTaskIds iterator usage issue

Change-Id: I473ed3c61e3218a98aae61b9a8ca0df15f10c32c
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
15 months agoMerge "Use Renderer::BlendMode::USE_ACTOR_OPACITY instead to use depth write mode...
Seungho BAEK [Thu, 22 Dec 2022 00:44:12 +0000 (00:44 +0000)]
Merge "Use Renderer::BlendMode::USE_ACTOR_OPACITY instead to use depth write mode" into devel/master

15 months agoMerge "Spannable: Add StrikethroughSpan" into devel/master
Bowon Ryu [Wed, 21 Dec 2022 10:08:11 +0000 (10:08 +0000)]
Merge "Spannable: Add StrikethroughSpan" into devel/master

15 months agoMerge "Modify ColorMode Policy for SceneView and Model" into devel/master
Seungho BAEK [Wed, 21 Dec 2022 07:45:11 +0000 (07:45 +0000)]
Merge "Modify ColorMode Policy for SceneView and Model" into devel/master

15 months agoSpannable: Add StrikethroughSpan 09/285409/3
ssabah [Sun, 11 Dec 2022 12:04:15 +0000 (15:04 +0300)]
Spannable: Add StrikethroughSpan

StrikethroughSpan: Span to change the strikethrough properties (Color,Heighth) of characters

This patch should be preceded by the patch below:

https://review.tizen.org/gerrit/c/platform/core/uifw/dali-toolkit/+/285217

Change-Id: Id7823ea49b19fed3ae1a0a9a73e55538ccd2ad2e

15 months agoModify ColorMode Policy for SceneView and Model 11/285811/3
seungho baek [Tue, 20 Dec 2022 13:26:41 +0000 (22:26 +0900)]
Modify ColorMode Policy for SceneView and Model

 - For Model, Use ColorMode::USE_OWN_MULTIPLY_PARENT_ALPHA for ColorMode
 - Actor::Property::COLOR will affect its children Actors.
 - For SceneView, Use ColorMode::USE_OWN_COLOR when mUseFrameBuffer is true.
 - When Opacity of SceneView is animated, it looks natural.
 - But, use ColorMode::USE_OWN_MULTIPLY_PARENT_ALPHA when mUseFrameBuffer is false.
 - Then, Opacity animation is works (but slightly looks unnatural.)

Change-Id: Iaa993f5857f5bd9e2cf3b79b463f2fc5e5db3249
Signed-off-by: seungho baek <sbsh.baek@samsung.com>
15 months agoSpannable: Add BackgroundSpan 49/285049/7
abedalrhman rasem [Mon, 5 Dec 2022 08:36:04 +0000 (11:36 +0300)]
Spannable: Add BackgroundSpan

BackgroundSpan: Span to change the back groundSpan of characters.

Example:
===========================================================================================

    Dali::Toolkit::Text::SpannableString ss =
    Dali::Toolkit::Text::SpannableString::New("Testing");
    auto greenSpan = Dali::Toolkit::Text::BackgroundColorSpan::New(Color::GREEN);
      ss.AttachSpan(
      greenSpan,
      Dali::Toolkit::Text::Range::New(0u, 3u));
    Dali::Toolkit::Text::SetSpannedText(textLabel,ss);

==========================================================================================

Change-Id: I3f5414ee5268799ad8e174db4b693c70f4b9b1b3

15 months agoMerge "Spannable: Add ItalicSpan" into devel/master
Bowon Ryu [Tue, 20 Dec 2022 11:08:50 +0000 (11:08 +0000)]
Merge "Spannable: Add ItalicSpan" into devel/master

15 months agoMerge "Spannable: Add BoldSpan" into devel/master
Bowon Ryu [Tue, 20 Dec 2022 10:53:05 +0000 (10:53 +0000)]
Merge "Spannable: Add BoldSpan" into devel/master

15 months agoUse Renderer::BlendMode::USE_ACTOR_OPACITY instead to use depth write mode 04/285404/5
seungho baek [Mon, 12 Dec 2022 08:01:19 +0000 (17:01 +0900)]
Use Renderer::BlendMode::USE_ACTOR_OPACITY instead to use depth write mode

Change-Id: Iefc5fe27786f64a3892502f17898faca874d03f9
Signed-off-by: seungho baek <sbsh.baek@samsung.com>
15 months agoSpannable: Add ItalicSpan 01/284901/9
abedalrhman rasem [Wed, 30 Nov 2022 07:04:32 +0000 (10:04 +0300)]
Spannable: Add ItalicSpan

ItalicSpan: Span to change the font slant of characters.

Example:
===========================================================================================

    Dali::Toolkit::Text::SpannableString ss =
    Dali::Toolkit::Text::SpannableString::New("Testing italic span");
    auto italicSpan =Dali::Toolkit::Text::ItalicSpan::New();
    ss.AttachSpan(italicSpan,Dali::Toolkit::Text::Range::New(0u, 8u));
    Dali::Toolkit::Text::SetSpannedText(textLabel,ss);

==========================================================================================

Change-Id: I9832203ed07433be292ca2dc66d82899ced288ce

15 months agoSpannable: Add BoldSpan 39/284739/13
abedalrhman rasem [Wed, 23 Nov 2022 12:25:44 +0000 (15:25 +0300)]
Spannable: Add BoldSpan

BoldSpan: Span to change the font weight of characters.

Example:
===========================================================================================

    Dali::Toolkit::Text::SpannableString ss =Dali::Toolkit::Text::SpannableString::New("Testing");
    auto boldspan =Dali::Toolkit::Text::BoldSpan::New();
    ss.AttachSpan(boldspan,Dali::Toolkit::Text::Range::New(0u, 3u));
    Dali::Toolkit::Text::SetSpannedText(textLabel,ss);

===========================================================================================

Change-Id: I583648a7bb850ec36b3dd4ade3d84995113d192f

15 months agoMinor coverity issue fixes 55/282555/24
Eunki, Hong [Wed, 5 Oct 2022 14:02:09 +0000 (23:02 +0900)]
Minor coverity issue fixes

Fix some minor coverity issues that might has meanful

1. Implement missing move operation.
2. Remove float equal checks by ==, != operator.
3. Remove useless std::move.
4. Remove const keyword for function return value.
5. Resolve some value has same name.
6. Use referenced iterator so we don't copy value.
7. Remove cyclic header include (a.k.a gltf-loader.h -> scene3d-view-impl.h -> gltf-loader.h)

Change-Id: I57ad541310b43413ee0d52b1f8c56a95df12bbd9
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
15 months agoMerge "Fix Scene3D shader cache miss" into devel/master
Eunki Hong [Mon, 19 Dec 2022 19:10:15 +0000 (19:10 +0000)]
Merge "Fix Scene3D shader cache miss" into devel/master

15 months agoMerge "Sync UTC harness" into devel/master
David Steele [Mon, 19 Dec 2022 18:55:41 +0000 (18:55 +0000)]
Merge "Sync UTC harness" into devel/master

15 months agoMerge "Reduce default visual-base-data memory - Allocate only if we use decoration...
Eunki Hong [Mon, 19 Dec 2022 18:14:07 +0000 (18:14 +0000)]
Merge "Reduce default visual-base-data memory - Allocate only if we use decoration." into devel/master

15 months agoFix Scene3D shader cache miss 97/285297/6
Eunki, Hong [Thu, 8 Dec 2022 09:53:01 +0000 (18:53 +0900)]
Fix Scene3D shader cache miss

1. Hash include THREE_TEX eash items.
   It will reduce some shader hash collision.
2. Make vertex color use ifdef in shader level.
   (Since we'd better skip to allocate vertex color attribs in usal case)

TODO : Current shader-define-factory.cpp implement has various problem.
We should refactorize this code, and re-open UTC soon

Change-Id: I53858118dc98ae16ede4d48bd234ebc24e112933
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
15 months agoMerge "Fix utc compile error for gcc-11" into devel/master
Eunki Hong [Mon, 19 Dec 2022 08:37:26 +0000 (08:37 +0000)]
Merge "Fix utc compile error for gcc-11" into devel/master

15 months agoReduce default visual-base-data memory - Allocate only if we use decoration. 27/285627/2
Eunki, Hong [Thu, 15 Dec 2022 12:56:20 +0000 (21:56 +0900)]
Reduce default visual-base-data memory - Allocate only if we use decoration.

Borderline relative properties has (4+1+1)*4 = 24 byte and
CornerRadius relative properties has (4+1)*4 = 20 byte.

But most usual visuals don't required that kind of things.
And also, some visual like Text / Npatch doesnt support decoration feature.

So let we make only required visual use that values by allocation.

Now default memory per visual reduced from 44 to 4~8 byte.

Change-Id: Ib27118bcd66339a3d50f78661c133f6588ab9085
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
15 months agoMerge "Spannable: Add CharacterSpacing span" into devel/master
Bowon Ryu [Mon, 19 Dec 2022 05:52:24 +0000 (05:52 +0000)]
Merge "Spannable: Add CharacterSpacing span" into devel/master

15 months agoMerge "Change DebugPriority name" into devel/master
Heeyong Song [Mon, 19 Dec 2022 05:34:22 +0000 (05:34 +0000)]
Merge "Change DebugPriority name" into devel/master

15 months agoMerge "Add Filter in InputFilter" into devel/master
Bowon Ryu [Mon, 19 Dec 2022 04:37:28 +0000 (04:37 +0000)]
Merge "Add Filter in InputFilter" into devel/master

15 months agoChange DebugPriority name 13/285613/3
Heeyong Song [Thu, 15 Dec 2022 09:12:23 +0000 (18:12 +0900)]
Change DebugPriority name

Change-Id: I6558c8cebec6a26119afd93d7b427490081de9fc

16 months agoFix utc compile error for gcc-11 07/285707/2
Eunki Hong [Sun, 18 Dec 2022 15:22:16 +0000 (00:22 +0900)]
Fix utc compile error for gcc-11

Change-Id: I260ae8f9202a5f7cdb7e146291897e81fdbf7a69
Signed-off-by: Eunki Hong <eunkiki.hong@samsung.com>
16 months agoSpannable: Add CharacterSpacing span 54/285554/6
sarajammal [Wed, 14 Dec 2022 12:17:48 +0000 (15:17 +0300)]
Spannable: Add CharacterSpacing span

Change-Id: Ie9a6245719c5dced94d4e43599cfc54588126a0d

16 months agoMerge "Allow duplicated name and use Actor ID as a unique key to define animation...
Adeel Kazmi [Fri, 16 Dec 2022 19:11:19 +0000 (19:11 +0000)]
Merge "Allow duplicated name and use Actor ID as a unique key to define animation." into devel/master

16 months agoMerge "(Vector) Fix occasional tc failure" into devel/master
Adeel Kazmi [Fri, 16 Dec 2022 17:02:46 +0000 (17:02 +0000)]
Merge "(Vector) Fix occasional tc failure" into devel/master

16 months agoMerge "[AT-SPI] Add child_bus attribute to parents having remote accessibility object...
Lukasz Oleksak [Fri, 16 Dec 2022 14:34:16 +0000 (14:34 +0000)]
Merge "[AT-SPI] Add child_bus attribute to parents having remote accessibility object child" into devel/master

16 months agoMerge "DALi Version 2.2.6" into devel/master
Adeel Kazmi [Fri, 16 Dec 2022 12:35:09 +0000 (12:35 +0000)]
Merge "DALi Version 2.2.6" into devel/master

16 months agoDALi Version 2.2.6 90/285690/1 dali_2.2.6
David Steele [Fri, 16 Dec 2022 12:12:48 +0000 (12:12 +0000)]
DALi Version 2.2.6

Change-Id: I2a1ec8f84c3eb400bc96ad0f20b7a0cf26353461

16 months ago[AT-SPI] Add child_bus attribute to parents having remote accessibility object child 20/285420/2
Artur Świgoń [Mon, 12 Dec 2022 10:24:13 +0000 (11:24 +0100)]
[AT-SPI] Add child_bus attribute to parents having remote accessibility object child

This will allow AT-clients to query in a single dbus call (via collection iface) all busses used for UI embedding.
Result of such query may be used by AT-client to limit its dbus calls to:

a) active window process
b) processes that provide UIs embedded in active window

and avoid dbus calls to processes being in background, which respond very slowly.

Change-Id: Iacccb00087380e3f2e33cd8feb7b5120068922c7

16 months ago(Vector) Fix occasional tc failure 78/285678/2
Heeyong Song [Fri, 16 Dec 2022 08:37:16 +0000 (17:37 +0900)]
(Vector) Fix occasional tc failure

Change-Id: Ifc1e52d7f2cc13d38ca18623cb57a9529b152c37

16 months agoFix Scene3d::Loader bugs 30/284930/9
seungho baek [Thu, 1 Dec 2022 05:51:41 +0000 (14:51 +0900)]
Fix Scene3d::Loader bugs

 - Make Renderer translucent when AlphaMode is Blend
 - Use discard for AlphaMode.Mask in shader
 - Fixed ConvertSampler bug.
 - Fixed crash when there isn't "scene" property in glTF
 - Fixed wrong loading of buffer when the bufferView uses stride.
 - Returns MeshDefinition::Blob::GetBufferSize() only mLength
   This is because every use case of this method is to set real buffer size without considering stride.
 - Fix texture order of Specular and Specular color.

Change-Id: I244b366a9d4c36ad478ea8908725187ffd3277f6
Signed-off-by: seungho baek <sbsh.baek@samsung.com>
16 months agoMerge "Fix issue using broken image" into devel/master
sunghyun kim [Fri, 16 Dec 2022 02:21:06 +0000 (02:21 +0000)]
Merge "Fix issue using broken image" into devel/master

16 months agoMerge "Prepare Doxygen version update 1.9.1" into devel/master
Adeel Kazmi [Thu, 15 Dec 2022 17:02:41 +0000 (17:02 +0000)]
Merge "Prepare Doxygen version update 1.9.1" into devel/master

16 months agoMerge "Equirectangular projection support for Skybox in SceneView" into devel/master
Adeel Kazmi [Thu, 15 Dec 2022 15:29:28 +0000 (15:29 +0000)]
Merge "Equirectangular projection support for Skybox in SceneView" into devel/master

16 months agoMerge "Make PremultiplyOnLoad flag in image-cache class" into devel/master
Adeel Kazmi [Thu, 15 Dec 2022 15:03:40 +0000 (15:03 +0000)]
Merge "Make PremultiplyOnLoad flag in image-cache class" into devel/master

16 months agoSync UTC harness 74/285374/2
Eunki, Hong [Fri, 9 Dec 2022 14:12:03 +0000 (23:12 +0900)]
Sync UTC harness

Change-Id: Ic0b9e9b66579df65ad229bb15c7ed1dfa668b96d
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
16 months agoMerge "Spannable: Add UnderlineSpan" into devel/master
Bowon Ryu [Thu, 15 Dec 2022 11:12:03 +0000 (11:12 +0000)]
Merge "Spannable: Add UnderlineSpan" into devel/master

16 months agoMerge "Add IsSpannedTextPlaced" into devel/master
Bowon Ryu [Thu, 15 Dec 2022 11:11:58 +0000 (11:11 +0000)]
Merge "Add IsSpannedTextPlaced" into devel/master

16 months agoAdd Filter in InputFilter 08/285608/3
Bowon Ryu [Thu, 15 Dec 2022 06:33:30 +0000 (15:33 +0900)]
Add Filter in InputFilter

This patch enables filtering of strings from InsertText() by regex.

Change-Id: I1b28f0e24c782f94ee0453b1366d51ea08e45c36
Signed-off-by: Bowon Ryu <bowon.ryu@samsung.com>
16 months agoFix issue using broken image 91/285591/3
tscholb [Thu, 15 Dec 2022 06:11:53 +0000 (15:11 +0900)]
Fix issue using broken image

when GetNaturalSize() is called after the image is already loaded,
we can't get proper broken image because mPlacementActor is null.

Change-Id: I9394c4447b46ee442056266e4be7f6c220a3ce4d

16 months agoEquirectangular projection support for Skybox in SceneView 60/285560/3
Richard [Wed, 14 Dec 2022 15:37:13 +0000 (15:37 +0000)]
Equirectangular projection support for Skybox in SceneView

Change-Id: Ife95e49a7e5a59c2e44f874ccea1bc330ab88ef1

16 months agoPrepare Doxygen version update 1.9.1 65/284565/3
Eunki Hong [Sun, 20 Nov 2022 05:34:17 +0000 (14:34 +0900)]
Prepare Doxygen version update 1.9.1

reference : https://github.com/phaag/nfdump/commit/51ba781f06d0a15866bb703ecb040785956961aa

Change-Id: I875a9e593472e1b780763ef2a5cfb2357fadf057
Signed-off-by: Eunki Hong <eunkiki.hong@samsung.com>
16 months agoAllow duplicated name and use Actor ID as a unique key to define animation. 92/285392/11
seungho baek [Mon, 12 Dec 2022 05:26:05 +0000 (14:26 +0900)]
Allow duplicated name and use Actor ID as a unique key to define animation.

 - We don't need to make crash when multiple nodes had same name.
 - DALi actor also allows duplicated name.
 - Because name is not an unique key, make AnimationDefinition use Actor ID as a key.(for glTF)
    - glTF don't use name as a key.

Change-Id: Ibcb3e21640cf2a8124bb450b73159eeaf1cdf4f3
Signed-off-by: seungho baek <sbsh.baek@samsung.com>
16 months agoMake FBO visual use premultiplied alpha 86/285486/1
Eunki, Hong [Tue, 13 Dec 2022 11:33:16 +0000 (20:33 +0900)]
Make FBO visual use premultiplied alpha

Since FBO result use Premultiplied alpha texture,
make sure that FBO image use premultiplied alpha during render.

Change-Id: I376aac998b098cb871d67e6ada090a1870986565
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
16 months agoSpannable: Add UnderlineSpan 81/285381/3
ssabah [Wed, 7 Dec 2022 21:14:05 +0000 (00:14 +0300)]
Spannable: Add UnderlineSpan

UnderlineSpan: Span to change the underline properties (Type, Color,Height, DashGap and DashWidth) of characters

This patch should be preceded by the patch below:
https://review.tizen.org/gerrit/c/platform/core/uifw/dali-toolkit/+/285217

Change-Id: Ia557197b60031a559021b72372ef304195505537

16 months agoAdd IsSpannedTextPlaced 17/285217/4
ssabah [Wed, 7 Dec 2022 21:56:10 +0000 (00:56 +0300)]
Add IsSpannedTextPlaced

  Add API into ModelInterface, ViewModel and Model Classes
  This is to check whether the spanned-text is placed or not.

Change-Id: I9e14ad4985ec941155aaf5d491f839d71ab34bf1

16 months agoDALi Version 2.2.5 60/285360/1 dali_2.2.5
Richard Huang [Fri, 9 Dec 2022 11:14:17 +0000 (11:14 +0000)]
DALi Version 2.2.5

Change-Id: I01ec8ed53e7a1c5e26e0931691348092b9336c28

16 months agoMerge "Spannable: Add FontSpan" into devel/master
Bowon Ryu [Thu, 8 Dec 2022 11:02:57 +0000 (11:02 +0000)]
Merge "Spannable: Add FontSpan" into devel/master

16 months agoMerge "Add GetFontRuns and GetFontDescriptionRuns into ModelInterface" into devel...
Bowon Ryu [Thu, 8 Dec 2022 11:02:54 +0000 (11:02 +0000)]
Merge "Add GetFontRuns and GetFontDescriptionRuns into ModelInterface" into devel/master

16 months agoSpannable: Add FontSpan 34/285134/4
ssabah [Mon, 5 Dec 2022 18:57:43 +0000 (21:57 +0300)]
Spannable: Add FontSpan

FontSpan: Span to change the font properties (FamilyName, Size, Weight, Slant and Width) of characters

This patch should be preceded by the patch below:
https://review.tizen.org/gerrit/c/platform/core/uifw/dali-toolkit/+/285133

Change-Id: I1b85d77ba214b1c37737a435b021f37bb095fd8b

16 months agoAdd GetFontRuns and GetFontDescriptionRuns into ModelInterface 33/285133/2
ssabah [Mon, 5 Dec 2022 19:46:17 +0000 (22:46 +0300)]
Add GetFontRuns and GetFontDescriptionRuns into ModelInterface

Change-Id: Ibe0d4003ae5f523ba74e905686d8a38a1fa5a6a8

16 months ago(Vector) Notify vector renderer that rendering is stopped 65/284865/3
Heeyong Song [Tue, 29 Nov 2022 11:19:26 +0000 (20:19 +0900)]
(Vector) Notify vector renderer that rendering is stopped

Change-Id: Ic40190fd905bac34cccc7555ad027e8b5b910ea0

16 months agoTexture size reduction on the fly for 3D model using metadata 99/284399/17
Richard [Wed, 16 Nov 2022 14:56:40 +0000 (14:56 +0000)]
Texture size reduction on the fly for 3D model using metadata

Change-Id: Id07b93141797569bc99496c8baa9f72e6a4dde15

16 months agoDALi Version 2.2.4 07/285007/1 dali_2.2.4
Adam Bialogonski [Fri, 2 Dec 2022 10:24:23 +0000 (10:24 +0000)]
DALi Version 2.2.4

Change-Id: Ie21a523980b5c31396225628ebb304ba3570cdf4

16 months agoMake PremultiplyOnLoad flag in image-cache class 10/284710/4
Eunki, Hong [Thu, 24 Nov 2022 05:44:25 +0000 (14:44 +0900)]
Make PremultiplyOnLoad flag in image-cache class

Since this flag exist only rolling-animated-image-cache,
If we replace ImageView's visual which premultiply applied before,
It will show strange result.

Change-Id: Ic38d741581ef7265259f402f5847b99f0ba3feca
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
16 months agoMerge "Make SceneView FBO multisampling + Sync utc harness" into devel/master
Eunki Hong [Thu, 1 Dec 2022 11:13:46 +0000 (11:13 +0000)]
Merge "Make SceneView FBO multisampling + Sync utc harness" into devel/master

16 months agofix white space issue in hidden input 63/284863/3
Bowon Ryu [Tue, 29 Nov 2022 10:48:44 +0000 (19:48 +0900)]
fix white space issue in hidden input

The calculated text size is used in atlas renderer.
When the text is all white space, partial render issue occurs because the width is 0.
To avoid issue, do not remove the white space size in hidden input mode.

Change-Id: Id92becdb0103fa6dee20c5cd272ee3d4314121c6
Signed-off-by: Bowon Ryu <bowon.ryu@samsung.com>
16 months agoMake SceneView FBO multisampling + Sync utc harness 15/284215/6
Eunki, Hong [Fri, 11 Nov 2022 13:51:03 +0000 (22:51 +0900)]
Make SceneView FBO multisampling + Sync utc harness

Let we make SceneView's FBO usecase use multisampling as default.

Change-Id: Ibaafba7cd384fcf4162c6ccc126dd76228c0e98f
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
16 months agoMerge "Add DesiredWidth/Height and samplingMode in animated image visual" into devel...
Eunki Hong [Tue, 29 Nov 2022 09:26:17 +0000 (09:26 +0000)]
Merge "Add DesiredWidth/Height and samplingMode in animated image visual" into devel/master

16 months agoMerge "Support KHR_materials_specular and KHR_materials_ior extension of glTF" into...
Seungho BAEK [Tue, 29 Nov 2022 06:35:56 +0000 (06:35 +0000)]
Merge "Support KHR_materials_specular and KHR_materials_ior extension of glTF" into devel/master

16 months agoMerge "Enable multiple primitives in a mesh(glTF)" into devel/master
Seungho BAEK [Tue, 29 Nov 2022 06:35:48 +0000 (06:35 +0000)]
Merge "Enable multiple primitives in a mesh(glTF)" into devel/master

16 months agoMerge "Fix hidden input issue" into devel/master
Bowon Ryu [Tue, 29 Nov 2022 05:21:13 +0000 (05:21 +0000)]
Merge "Fix hidden input issue" into devel/master

16 months agoSupport KHR_materials_specular and KHR_materials_ior extension of glTF 77/284477/10
seungho baek [Thu, 17 Nov 2022 14:25:47 +0000 (23:25 +0900)]
Support KHR_materials_specular and KHR_materials_ior extension of glTF

Change-Id: Ieccdc7046bcc0e0a231d4d39526d610a9b7cf036
Signed-off-by: seungho baek <sbsh.baek@samsung.com>
16 months agoEnable multiple primitives in a mesh(glTF) 96/284396/14
seunghobaek [Wed, 16 Nov 2022 12:52:51 +0000 (21:52 +0900)]
Enable multiple primitives in a mesh(glTF)

Change-Id: I77fd7128ae17170cee4707b56403f65147aee9b9
Signed-off-by: seunghobaek <sbsh.baek@samsung.com>
16 months agoAdd DesiredWidth/Height and samplingMode in animated image visual 95/284695/6
seungho [Tue, 28 Dec 2021 08:28:07 +0000 (17:28 +0900)]
Add DesiredWidth/Height and samplingMode in animated image visual

Let AnimatedImageVisual also use DesiredSize / FittingMode / SamplingMode feature.

Change-Id: Icd2205738a6d9c7af0f2aa06c7887ac9ea85b576

16 months agoMerge "DALi Version 2.2.3" into devel/master
Adeel Kazmi [Fri, 25 Nov 2022 11:13:16 +0000 (11:13 +0000)]
Merge "DALi Version 2.2.3" into devel/master

16 months agoDALi Version 2.2.3 69/284769/1 dali_2.2.3
Richard Huang [Fri, 25 Nov 2022 11:06:49 +0000 (11:06 +0000)]
DALi Version 2.2.3

Change-Id: I5873209cecc47881ab9adc93e495cfa6a4464f4b

16 months agoMake Scene3D controls also applied actor color 94/284494/5
Eunki, Hong [Fri, 18 Nov 2022 05:43:36 +0000 (14:43 +0900)]
Make Scene3D controls also applied actor color

Let we make PBR shader use our world color system.

TODO : We should change DepthWrite & AlphaBlend properties on coreside.
Since the model might has 32bit image as texture, we cannot make
DepthWrite / BlendMode as AUTO.

Change-Id: I89c3ce4d144150cac72e01eadbc86c2f4eb5f8d3
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
16 months agoFix hidden input issue 35/284735/7
Bowon Ryu [Thu, 24 Nov 2022 10:56:16 +0000 (19:56 +0900)]
Fix hidden input issue

Fixed issues with SHOW_LAST_CHARACTER mode
- After all text is deleted, the first input character is not visible.
- The last character is always visible regardless of the position of the cursor.

Change-Id: I48689bf7e38b05c655d416c4e2df1d4553dca992
Signed-off-by: Bowon Ryu <bowon.ryu@samsung.com>
16 months agoAdd async task manager 60/281660/34
tscholb [Tue, 20 Sep 2022 09:03:46 +0000 (18:03 +0900)]
Add async task manager

Change-Id: Id9b14090fa21bdc249f826a68d260fb5d013887e

16 months agoMerge "Creates RenderTask when it connects on Scene and Remove it when it is disconne...
David Steele [Tue, 22 Nov 2022 14:36:19 +0000 (14:36 +0000)]
Merge "Creates RenderTask when it connects on Scene and Remove it when it is disconnected." into devel/master

16 months agoCreates RenderTask when it connects on Scene and Remove it when it is disconnected. 85/284585/6
seungho baek [Mon, 21 Nov 2022 09:29:38 +0000 (18:29 +0900)]
Creates RenderTask when it connects on Scene and Remove it when it is disconnected.

Change-Id: Ie571a7a8a10224d5740239d8d651a7ce48ddfa51
Signed-off-by: seungho baek <sbsh.baek@samsung.com>
16 months agoMerge "Fix SVACE Issue" into devel/master
Seungho BAEK [Tue, 22 Nov 2022 06:38:07 +0000 (06:38 +0000)]
Merge "Fix SVACE Issue" into devel/master

16 months agoNew with additional behaviour flag for text controls 13/284113/6
Bowon Ryu [Thu, 10 Nov 2022 02:54:59 +0000 (11:54 +0900)]
New with additional behaviour flag for text controls

Add new "New" function that we can append additional ControlBehaviour

This code works in TextField and TextEditor

Change-Id: I28df965491bf6e6abff95ed3dc1a2a83f03588a5
Signed-off-by: Bowon Ryu <bowon.ryu@samsung.com>
16 months agoTextFit check without candidate listup 58/284558/1
Eunki, Hong [Fri, 18 Nov 2022 13:47:19 +0000 (22:47 +0900)]
TextFit check without candidate listup

Previous code required O((maxPointSize - minPointSize) / pointInterval) memory.
Now we make to pick valid pointsize without listup.
Also, make binary search as overflow-safety.

Change-Id: I6542c1692e94395fdab07a91fd7322b718a510e1
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
17 months agoDALi Version 2.2.2 47/284547/1 dali_2.2.2
David Steele [Fri, 18 Nov 2022 11:49:48 +0000 (11:49 +0000)]
DALi Version 2.2.2

Change-Id: I1289a8060d160791a018edbc653318d94e844112

17 months agoMerge "Deprecate camera plane distance setter + Allow to setup OrthographicSize....
Eunki Hong [Wed, 16 Nov 2022 08:09:12 +0000 (08:09 +0000)]
Merge "Deprecate camera plane distance setter + Allow to setup OrthographicSize." into devel/master

17 months agoDeprecate camera plane distance setter + Allow to setup OrthographicSize. 41/283941/5
Eunki, Hong [Mon, 7 Nov 2022 11:19:29 +0000 (20:19 +0900)]
Deprecate camera plane distance setter + Allow to setup OrthographicSize.

Set each Left/Right/Top/Bottom plane distance setter is deprecated.
Instead of that API, we make to use OrthographicSize.

Change-Id: I7da73713b112502f08820b78bfdf58cf999462e6
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
17 months agoSync test util 91/278991/3
Heeyong Song [Fri, 29 Jul 2022 02:39:01 +0000 (11:39 +0900)]
Sync test util

Change-Id: I92102ab838a43792fd3022f775ab67fd5fdeb23f

17 months ago(GlView) Add BindTextureResources method 46/278946/6
Heeyong Song [Thu, 28 Jul 2022 10:32:47 +0000 (19:32 +0900)]
(GlView) Add BindTextureResources method

Change-Id: I544e052f1637ad015bf5b046473c3469d7b150af

17 months agoMerge "Fix SVACE issue" into devel/master
Heeyong Song [Mon, 14 Nov 2022 05:37:36 +0000 (05:37 +0000)]
Merge "Fix SVACE issue" into devel/master

17 months agoMerge "DALi Version 2.2.1" into devel/master
David Steele [Fri, 11 Nov 2022 11:23:39 +0000 (11:23 +0000)]
Merge "DALi Version 2.2.1" into devel/master

17 months agoDALi Version 2.2.1 96/284196/1 dali_2.2.1
Adeel Kazmi [Fri, 11 Nov 2022 10:49:40 +0000 (10:49 +0000)]
DALi Version 2.2.1

Change-Id: I85f384675bdf37d53e99e07a5d39dbafe8419e86

17 months agoFix SVACE issue 85/284185/1
Heeyong Song [Fri, 11 Nov 2022 07:01:42 +0000 (16:01 +0900)]
Fix SVACE issue

SIGN_EXTENSION
INVALID_ASSIGNMENT_WITH_UNSIGNED_VALUES

Change-Id: Ib5af38e07c1e6b08a2c1915c9029376a53ca729c

17 months ago(Scene3D) Change model's default behavior 73/284173/2
Eunki, Hong [Fri, 11 Nov 2022 04:38:51 +0000 (13:38 +0900)]
(Scene3D) Change model's default behavior

1. Make mRootModel's KEYBOARD_FOCUSABLE as false in default.
2. Set ParentOrigin at Intialize timing, not ModelLoad completed

Change-Id: I11ef708f75948584d493f184fa3d929300ef57af
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
17 months agoFix SVACE Issue 29/284129/1
seungho [Thu, 10 Nov 2022 07:14:59 +0000 (16:14 +0900)]
Fix SVACE Issue

Change-Id: If9c627644cc798851f8272deaecffe0542078cc7
Signed-off-by: seungho <sbsh.baek@samsung.com>
17 months agoFix UtcDaliToolkitTextLabelSetSpannedText 93/284093/1
ssabah [Wed, 9 Nov 2022 12:51:47 +0000 (15:51 +0300)]
Fix UtcDaliToolkitTextLabelSetSpannedText

We cannot guarantee the order of adding the attached colors for runs
Fixed TC to check logic of Set Spanned Text only
Used one color instead of two colors

Change-Id: Ie88b778f223be75d15add0db2410161c09d183bd

17 months agoRefactoring of SceneView and Model. 05/283605/11
seungho [Mon, 31 Oct 2022 06:48:39 +0000 (15:48 +0900)]
Refactoring of SceneView and Model.

 - Loosen the coupling between SceneView and Model using observer.
 - Add Priority of IBL. Model IBL has higher priority than SceneView.

Change-Id: I65ebd109911df22704a7106f0e3421a01c342637
Signed-off-by: seungho <sbsh.baek@samsung.com>
17 months agoFix NPatch memory leak 01/284001/3
Eunki, Hong [Tue, 8 Nov 2022 08:41:16 +0000 (17:41 +0900)]
Fix NPatch memory leak

Make NPatchInfo hold unique_ptr of NPatchData.
and delete copy assign operator so we can guard
untracked unique_ptr<NPatchData> memory movement.

Change-Id: I7d003cc08a51b60f91d0d8fdb33ce74b5d5cd562
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
17 months agoSpannable-Core: Add SetSpannedText API 07/282807/15
ssabah [Tue, 11 Oct 2022 22:30:29 +0000 (01:30 +0300)]
Spannable-Core: Add SetSpannedText API

  Copy text from Spanned-Text into TextController and apply styles on it.

  void SetSpannedText(TextController textController, const Spanned& spannedText);

  TextController: TextLabel, TextEditor or TextField

  This patch should be preceded by the patch below:
  https://review.tizen.org/gerrit/c/platform/core/uifw/dali-toolkit/+/282806

//Example:

    Dali::Toolkit::Text::SpannableString ss = Dali::Toolkit::Text::SpannableString::New("Hello مرحبا");

    auto isAddedBlue = ss.AttachSpan(
      Dali::Toolkit::Text::ForegroundColorSpan::New(Color::BLUE),
      Dali::Toolkit::Text::Range::New(2u, 4u));

    Dali::Toolkit::Text::SetSpannedText(textLabel, ss);

Change-Id: I03202eb27376d78403050a284a1448f01c4ac120

17 months agoMerge "Spannable-Core: Add SpannableString and ForegroundColorSpan" into devel/master
Bowon Ryu [Tue, 8 Nov 2022 02:20:23 +0000 (02:20 +0000)]
Merge "Spannable-Core: Add SpannableString and ForegroundColorSpan" into devel/master

17 months agoAdd GetCharacterBoundingRectangle API. 72/282872/21
sarajammal [Wed, 12 Oct 2022 11:01:34 +0000 (14:01 +0300)]
Add GetCharacterBoundingRectangle API.

Calculate the character size and position:
- X, the left starting point of the character.
- Y, the left top point of the character.
- Width.
- Height.

Function prototype: GetCharacterBoundingRectangle(ModelPtr model, uint32_t charIndex);

Add new API to TextGeometry.

Reference patches:
https://review.tizen.org/gerrit/c/platform/core/uifw/dali-toolkit/+/266891

Change-Id: Ifcdcca5ae3af52da79af899b26d3a273713e012d

17 months agoSpannable-Core: Add SpannableString and ForegroundColorSpan 06/282806/13
ssabah [Wed, 14 Sep 2022 10:26:48 +0000 (13:26 +0300)]
Spannable-Core: Add SpannableString and ForegroundColorSpan

  Create core module for Spannable
  - Interfaces: CharacterSequence, Spanned, Spannable, BaseSpan
  - Classes: SpannableString, ForegroundColorSpan, Range
  - APIs:
    - Vector<uint32_t> GetCharacters() const;
    - uint32_t GetNumberOfCharacters() const;
    - std::string ToString() const;
    - bool AttachSpan(const Dali::Toolkit::Text::BaseSpan& styleSpan, const Dali::Toolkit::Text::Range& range);
    - bool DetachSpan(const Dali::Toolkit::Text::BaseSpan& styleSpan);
    - std::vector<Dali::Toolkit::Text::BaseSpan> GetAllSpans() const;
    - void RetrieveAllSpansAndRanges(std::vector<Dali::Toolkit::Text::BaseSpan>& spans, std::vector<Dali::Toolkit::Text::Range>& ranges) const;

//Example:

    Dali::Toolkit::Text::SpannableString ss = Dali::Toolkit::Text::SpannableString::New("Hello مرحبا");

    auto chars = ss.GetCharacters();
    auto num   = ss.GetNumberOfCharacters();
    auto str   = ss.ToString();

    auto greenSpan = Dali::Toolkit::Text::ForegroundColorSpan::New(Color::GREEN);

    auto isAddedGreen = ss.AttachSpan(
      greenSpan,
      Dali::Toolkit::Text::Range::New(5u, 7u));

    auto isAddedBlue = ss.AttachSpan(
      Dali::Toolkit::Text::ForegroundColorSpan::New(Color::BLUE),
      Dali::Toolkit::Text::Range::New(4u, 2u));

    auto isAddedRed = ss.AttachSpan(
      Dali::Toolkit::Text::ForegroundColorSpan::New(Color::RED),
      Dali::Toolkit::Text::Range::New(15u, 2u));

    ss.DetachSpan(greenSpan);

    auto spans = ss.GetAllSpans();

    ss.DetachSpan(spans[0]);
    spans = ss.GetAllSpans();

Change-Id: I5e0df43d1a2e2afc8b11aa61d50e28b7e35036a4

17 months agoMerge "Add GetLineBoundingRectangle API." into devel/master
Bowon Ryu [Mon, 7 Nov 2022 04:52:52 +0000 (04:52 +0000)]
Merge "Add GetLineBoundingRectangle API." into devel/master

17 months agoFix Svace issue for 64bit 85/283885/1
Eunki, Hong [Fri, 4 Nov 2022 15:05:10 +0000 (00:05 +0900)]
Fix Svace issue for 64bit

Solve some convert from size_t to uint32_t case.

Change-Id: Ic7f013742e9d14d58d1b85fdc9c4a9025f368f50
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
17 months agoDALi Version 2.2.0 66/283866/1 dali_2.2.0
Adam Bialogonski [Fri, 4 Nov 2022 10:35:45 +0000 (10:35 +0000)]
DALi Version 2.2.0

Change-Id: I8d2651fbe32d483239ebf2a96c67c04d25fa1e43

17 months agoAdd GetLineBoundingRectangle API. 92/282292/25
sarajammal [Sun, 25 Sep 2022 15:26:12 +0000 (18:26 +0300)]
Add GetLineBoundingRectangle API.

Calculate the line size and position:
- X, the left starting point of the line.
- Y, the left top point of the line.
- Width.
- Height.

Function prototype: GetLineBoundingRectangle(ModelPtr model, uint32_t lineIndex);

Add new API to TextGeometry.

Reference patches:
https://review.tizen.org/gerrit/c/platform/core/uifw/dali-toolkit/+/266891

Change-Id: I742a44bd406bc13d1c3ec35bce3049b467d21962

17 months agoAdd Skybox in SceneView 03/283303/12
seungho [Fri, 21 Oct 2022 16:24:00 +0000 (01:24 +0900)]
Add Skybox in SceneView

Change-Id: I37483af74efe3f0514d00cd1c7bc103066d455ee
Signed-off-by: seungho <sbsh.baek@samsung.com>