X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=docs%2Fcontent%2Fshared-javascript-and-cpp-documentation%2Fscript-overview.md;h=6d671dbab3460814d4b719e428d64863a660db2d;hp=d8eab237e876efe936ceba1c63a121d8336fe9ff;hb=30d4771a0e8439a976ca95647e655b7fa5796462;hpb=7118f6784ab97ba8eb1dd1a5792bbe472d99b3c6 diff --git a/docs/content/shared-javascript-and-cpp-documentation/script-overview.md b/docs/content/shared-javascript-and-cpp-documentation/script-overview.md index d8eab23..6d671db 100644 --- a/docs/content/shared-javascript-and-cpp-documentation/script-overview.md +++ b/docs/content/shared-javascript-and-cpp-documentation/script-overview.md @@ -14,7 +14,7 @@ DALi has: - JavaScript to support: - Rapid Application Development - Hybrid C++/JavaScript applications - - Leaverage third party JavaScript modules (backbone.js etc) + - Leverage third party JavaScript modules (backbone.js etc) JSON support is built in to DALi. @@ -38,7 +38,7 @@ JSON file contains different sections: - **Templates** actor & control tree creation - **Styles** used to style actor & control trees - **Animations** -- **Instances** of objects for path, shader-effects, render-tasks, frame-buffers +- **Instances** of objects for path, shaderEffects, renderTasks, frameBuffers - **Stage**. A list of actors / controls that can be added to the stage - **Constants** (e.g. positions / colors, that can be references by other parts of the JSON file); - **Actions** @@ -53,29 +53,29 @@ JSON file contains different sections: { "name":"users", "type":"Actor", - "parent-origin":"TOP_CENTER", - "anchor-point":"TOP_CENTER", + "parentOrigin":"TOP_CENTER", + "anchorPoint":"TOP_CENTER", "size":"{DEFAULT_MENU_USER_SIZE}", - "color-mode":"USE_OWN_COLOR", + "colorMode":"USE_OWN_COLOR", "actors": [ { "name":"usersBackground", - "type":"ImageActor", - "parent-origin":"CENTER", - "anchor-point":"CENTER", + "type":"ImageView", + "parentOrigin":"CENTER", + "anchorPoint":"CENTER", "size":"{DEFAULT_MENU_USER_SIZE}", - "color-mode":"USE_OWN_COLOR", - "image":{ "filename":"{IMAGE_PATH}white-pixel.png" }, + "colorMode":"USE_OWN_COLOR", + "image":{ "url":"{IMAGE_PATH}white-pixel.png" }, "color":"{DEFAULT_MENU_BACKGROUND_COLOR}" }, { "name":"icon", - "type":"ImageActor", - "parent-origin":"TOP_CENTER", - "anchor-point":"TOP_CENTER", + "type":"ImageView", + "parentOrigin":"TOP_CENTER", + "anchorPoint":"TOP_CENTER", "position":[0,41,1], - "image":{ "filename":"{IMAGE_PATH}ico_man_nor.png" } + "image":{ "url":"{IMAGE_PATH}ico_man_nor.png" } }, ] }, @@ -128,7 +128,7 @@ Actor userActorTree = builder.Create("users"); }, "label": { - "color-alpha":1, + "colorAlpha":1, "text":"LIVE" } } @@ -160,23 +160,23 @@ builder.ApplyStyle( "live-tv-focus", tvIcon ); [ { "actor":"background", - "property":"position-x", + "property":"positionX", "value":30, - "alpha-function":"EASE_IN_OUT" + "alphaFunction":"EASE_IN_OUT" }, { "actor":"itemsBackground", - "property":"color-alpha", + "property":"colorAlpha", "value":0.85, - "time-period": {"delay": 0.25, "duration": 0.25 }, - "alpha-function":"EASE_IN_OUT" + "timePeriod": {"delay": 0.25, "duration": 0.25 }, + "alphaFunction":"EASE_IN_OUT" }, { "actor":"usersBackground", - "property":"color-alpha", + "property":"colorAlpha", "value":0.85, - "time-period": {"delay": 0.25, "duration": 0.25 }, - "alpha-function":"EASE_IN_OUT" + "timePeriod": {"delay": 0.25, "duration": 0.25 }, + "alphaFunction":"EASE_IN_OUT" } ] }, @@ -203,33 +203,33 @@ Animation anim = builder.createAnimation( "animate-show", propertyMap ); “stage": [{ "name":"simple-table", "type":"TableView", - "background-color": [0.5,0.5,0,1], - "parent-origin": "CENTER", + "backgroundColor": [0.5,0.5,0,1], + "parentOrigin": "CENTER", "size":[400,500,1], "rows": 4, "columns":4, - "cell-padding": [10, 5], - "layout-animation-duration": 0.5, - "layout-rows": { // set the height of the rows + "cellPadding": [10, 5], + "layoutAnimationDuration": 0.5, + "layoutRows": { // set the height of the rows "0": { "policy": "fixed", "value": 40 }, "1": { "policy": "relative", "value": 0.33 }, "2": { "policy": "fixed", "value": 120 } }, - "layout-columns": { // set the widths of the columns + "layoutColumns": { // set the widths of the columns "1": { "policy": "fixed", "value": 150 }, "2": { "policy": "relative", "value": 0.35 }, "3": { "policy": "relative", "value": 0.15 } }, "actors": [{ "name":"gallery-1", - "type":"ImageActor", + "type":"ImageView", "image": { - "filename": "{DALI_IMAGE_DIR}gallery-large-1.jpg" + "url": "{DALI_IMAGE_DIR}gallery-large-1.jpg" }, - "custom-properties": { // properties registered dynamically - "cell-indices": [0,0],// property to specify the top-left cell this child occupies - "row-span":4, // property to specify how many rows this child occupies, if not set, default value is 1 - "column-spam":1 // property to specify how many columns this child occupies + "customProperties": { // properties registered dynamically + "cellIndices": [0,0],// property to specify the top-left cell this child occupies + "rowSpan":4, // property to specify how many rows this child occupies, if not set, default value is 1 + "columnSpan":1 // property to specify how many columns this child occupies .... ~~~ @@ -262,4 +262,4 @@ script.ExecuteFile( scriptFileName ); @class _Guide_JSON_and_JavaScript_overview -*/ \ No newline at end of file +*/