- "{"
- " \"constants\":"
- " {"
- " \"ALPHA_FUNCTION\":\"EASE_IN_OUT\""
- " },"
- " \"paths\":"
- " {"
- " \"path0\":"
- " {"
- " \"points\":[ [-150, -50, 0], [0.0,70.0,0.0], [190.0,-150.0,0.0] ],"
- " \"curvature\":0.35"
- " }"
- " },"
- " \"animations\": {"
- " \"animate\": {"
- " \"loop\": true,"
- " \"endAction\": \"BAKE\","
- " \"disconnectAction\": \"BAKE\","
- " \"properties\":"
- " [{"
- " \"actor\": \"greeting\","
- " \"property\": \"position\","
- " \"value\": [300, 300, -1000],"
- " \"alphaFunction\": \"{ALPHA_FUNCTION}\","
- " \"relative\": true,"
- " \"timePeriod\": {"
- " \"delay\": 0,"
- " \"duration\": 3"
- " }"
- " },"
- " {"
- " \"actor\": \"greeting\","
- " \"property\": \"visible\","
- " \"alphaFunction\": \"LINEAR\","
- " \"value\": true"
- " },"
- " {"
- " \"actor\": \"greeting\","
- " \"property\": \"sizeWidth\","
- " \"alphaFunction\": \"REVERSE\","
- " \"value\": 10.0"
- " },"
- " {"
- " \"actor\": \"greeting\","
- " \"property\": \"orientation\","
- " \"alphaFunction\": \"EASE_IN\","
- " \"value\": [10.0,20.0,30.0]"
- " },"
- " {"
- " \"actor\": \"greeting\","
- " \"property\": \"orientation\","
- " \"alphaFunction\": \"EASE_OUT\","
- " \"value\": [0.0, 0.0, 0.0, 1.0]"
- " },"
- " {"
- " \"actor\": \"greeting\","
- " \"property\": \"orientation\","
- " \"alphaFunction\": \"EASE_IN_OUT\","
- " \"value\": [0.0, 0.0, 0.0, 1.0]"
- " },"
- " {"
- " \"actor\": \"greeting\","
- " \"property\": \"orientation\","
- " \"alphaFunction\": \"EASE_IN_SINE\","
- " \"value\": [0.0, 0.0, 0.0, 1.0]"
- " },"
- " {"
- " \"actor\": \"greeting\","
- " \"property\": \"orientation\","
- " \"alphaFunction\": \"EASE_OUT_SINE\","
- " \"value\": [0.0, 0.0, 0.0, 1.0]"
- " },"
- " {"
- " \"actor\": \"greeting\","
- " \"property\": \"orientation\","
- " \"alphaFunction\": \"EASE_IN_OUT_SINE\","
- " \"value\": [0.0, 0.0, 0.0, 1.0]"
- " },"
- " {"
- " \"actor\": \"greeting\","
- " \"property\": \"orientation\","
- " \"alphaFunction\": \"BOUNCE\","
- " \"value\": [0.0, 0.0, 0.0, 1.0]"
- " },"
- " {"
- " \"actor\": \"greeting\","
- " \"property\": \"orientation\","
- " \"alphaFunction\": \"SIN\","
- " \"value\": [0.0, 0.0, 0.0, 1.0]"
- " },"
- " {"
- " \"actor\": \"greeting\","
- " \"property\": \"orientation\","
- " \"alphaFunction\": \"EASE_OUT_BACK\","
- " \"value\": [0.0, 0.0, 0.0, 1.0]"
- " }"
- " ]"
- " },"
- " \"pathAnimation\": {"
- " \"duration\": 3.0,"
- " \"endAction\": \"DISCARD\","
- " \"disconnectAction\": \"BAKE_FINAL\","
- " \"properties\": [{"
- " \"actor\": \"greeting\","
- " \"path\":\"path0\","
- " \"forward\":[1,0,0],"
- " \"alphaFunction\": \"EASE_IN_OUT\","
- " \"timePeriod\": {"
- " \"delay\": 0,"
- " \"duration\": 3"
- " }"
- " }]"
- " },"
- " \"pathAnimation2\": {"
- " \"duration\": 3.0,"
- " \"endAction\": \"BAKE_FINAL\","
- " \"disconnectAction\": \"DISCARD\","
- " \"properties\": [{"
- " \"actor\": \"greeting\","
- " \"path\":\"path0\","
- " \"forward\":[1,0,0],"
- " \"alphaFunction\": \"EASE_IN_OUT\","
- " \"timePeriod\": {"
- " \"delay\": 0,"
- " \"duration\": 3"
- " }"
- " }]"
- " }"
- " },"
- " \"stage\": [{"
- " \"name\": \"greeting\","
- " \"type\": \"TextLabel\","
- " \"text\": \"Touch me\","
- " \"inherit\": [\"basicText\"],"
- " \"position\": [0, -120, 0],"
- " \"size\": [200, 200, 1],"
- " \"orientation\": [0, 0, 30],"
- " \"signals\": [{"
- " \"name\": \"touched\","
- " \"action\": \"play\","
- " \"animation\": \"animate\""
- " }]"
- " }]"
- "}");
+ "{"
+ " \"constants\":"
+ " {"
+ " \"ALPHA_FUNCTION\":\"EASE_IN_OUT\""
+ " },"
+ " \"paths\":"
+ " {"
+ " \"path0\":"
+ " {"
+ " \"points\":[ [-150, -50, 0], [0.0,70.0,0.0], [190.0,-150.0,0.0] ],"
+ " \"curvature\":0.35"
+ " }"
+ " },"
+ " \"animations\": {"
+ " \"animate\": {"
+ " \"loop\": true,"
+ " \"endAction\": \"BAKE\","
+ " \"disconnectAction\": \"BAKE\","
+ " \"properties\":"
+ " [{"
+ " \"actor\": \"greeting\","
+ " \"property\": \"position\","
+ " \"value\": [300, 300, -1000],"
+ " \"alphaFunction\": \"{ALPHA_FUNCTION}\","
+ " \"relative\": true,"
+ " \"timePeriod\": {"
+ " \"delay\": 0,"
+ " \"duration\": 3"
+ " }"
+ " },"
+ " {"
+ " \"actor\": \"greeting\","
+ " \"property\": \"visible\","
+ " \"alphaFunction\": \"LINEAR\","
+ " \"value\": true"
+ " },"
+ " {"
+ " \"actor\": \"greeting\","
+ " \"property\": \"sizeWidth\","
+ " \"alphaFunction\": \"REVERSE\","
+ " \"value\": 10.0"
+ " },"
+ " {"
+ " \"actor\": \"greeting\","
+ " \"property\": \"orientation\","
+ " \"alphaFunction\": \"EASE_IN\","
+ " \"value\": [10.0,20.0,30.0]"
+ " },"
+ " {"
+ " \"actor\": \"greeting\","
+ " \"property\": \"orientation\","
+ " \"alphaFunction\": \"EASE_OUT\","
+ " \"value\": [0.0, 0.0, 0.0, 1.0]"
+ " },"
+ " {"
+ " \"actor\": \"greeting\","
+ " \"property\": \"orientation\","
+ " \"alphaFunction\": \"EASE_IN_OUT\","
+ " \"value\": [0.0, 0.0, 0.0, 1.0]"
+ " },"
+ " {"
+ " \"actor\": \"greeting\","
+ " \"property\": \"orientation\","
+ " \"alphaFunction\": \"EASE_IN_SINE\","
+ " \"value\": [0.0, 0.0, 0.0, 1.0]"
+ " },"
+ " {"
+ " \"actor\": \"greeting\","
+ " \"property\": \"orientation\","
+ " \"alphaFunction\": \"EASE_OUT_SINE\","
+ " \"value\": [0.0, 0.0, 0.0, 1.0]"
+ " },"
+ " {"
+ " \"actor\": \"greeting\","
+ " \"property\": \"orientation\","
+ " \"alphaFunction\": \"EASE_IN_OUT_SINE\","
+ " \"value\": [0.0, 0.0, 0.0, 1.0]"
+ " },"
+ " {"
+ " \"actor\": \"greeting\","
+ " \"property\": \"orientation\","
+ " \"alphaFunction\": \"BOUNCE\","
+ " \"value\": [0.0, 0.0, 0.0, 1.0]"
+ " },"
+ " {"
+ " \"actor\": \"greeting\","
+ " \"property\": \"orientation\","
+ " \"alphaFunction\": \"SIN\","
+ " \"value\": [0.0, 0.0, 0.0, 1.0]"
+ " },"
+ " {"
+ " \"actor\": \"greeting\","
+ " \"property\": \"orientation\","
+ " \"alphaFunction\": \"EASE_OUT_BACK\","
+ " \"value\": [0.0, 0.0, 0.0, 1.0]"
+ " }"
+ " ]"
+ " },"
+ " \"pathAnimation\": {"
+ " \"duration\": 3.0,"
+ " \"endAction\": \"DISCARD\","
+ " \"disconnectAction\": \"BAKE_FINAL\","
+ " \"properties\": [{"
+ " \"actor\": \"greeting\","
+ " \"path\":\"path0\","
+ " \"forward\":[1,0,0],"
+ " \"alphaFunction\": \"EASE_IN_OUT\","
+ " \"timePeriod\": {"
+ " \"delay\": 0,"
+ " \"duration\": 3"
+ " }"
+ " }]"
+ " },"
+ " \"pathAnimation2\": {"
+ " \"duration\": 3.0,"
+ " \"endAction\": \"BAKE_FINAL\","
+ " \"disconnectAction\": \"DISCARD\","
+ " \"properties\": [{"
+ " \"actor\": \"greeting\","
+ " \"path\":\"path0\","
+ " \"forward\":[1,0,0],"
+ " \"alphaFunction\": \"EASE_IN_OUT\","
+ " \"timePeriod\": {"
+ " \"delay\": 0,"
+ " \"duration\": 3"
+ " }"
+ " }]"
+ " }"
+ " },"
+ " \"stage\": [{"
+ " \"name\": \"greeting\","
+ " \"type\": \"TextLabel\","
+ " \"text\": \"Touch me\","
+ " \"inherit\": [\"basicText\"],"
+ " \"position\": [0, -120, 0],"
+ " \"size\": [200, 200, 1],"
+ " \"orientation\": [0, 0, 30],"
+ " \"signals\": [{"
+ " \"name\": \"touched\","
+ " \"action\": \"play\","
+ " \"animation\": \"animate\""
+ " }]"
+ " }]"
+ "}");
- "{"
- " \"constants\":"
- " {"
- " \"TEXT\": \"Touch Me\","
- " \"NAME\": \"greeting\" "
- " },"
- " \"paths\":"
- " {"
- " \"path0\":"
- " {"
- " \"points\":[ [-150, -50, 0], [0.0,70.0,0.0], [190.0,-150.0,0.0] ],"
- " \"curvature\":0.35"
- " }"
- " },"
- " \"animations\": {"
- " \"animate\": {"
- " \"loop\": true,"
- " \"endAction\": \"BAKE\","
- " \"disconnectAction\": \"BAKE\","
- " \"properties\":"
- " [{"
- " \"actor\": \"{NAME}\","
- " \"property\": \"positioninvalid\","
- " \"value\": [300, 300, -1000],"
- " \"alphaFunction\": \"EASE_IN_OUT\","
- " \"relative\": true,"
- " \"timePeriod\": {"
- " \"delay\": 0,"
- " \"duration\": 3"
- " }"
- " }"
- " ]"
- " },"
- " \"animate2\": {"
- " \"loop\": true,"
- " \"endAction\": \"BAKE\","
- " \"disconnectAction\": \"BAKE\","
- " \"properties\":"
- " [{"
- " \"actor\": \"{NAME}\","
- " \"property\": \"positioninvalid\","
- " \"value\": [300, 300, -1000],"
- " \"alphaFunction\": \"EGGS_OVER_EASY\","
- " \"relative\": true,"
- " \"timePeriod\": {"
- " \"delay\": 0,"
- " \"duration\": 3"
- " }"
- " }"
- " ]"
- " },"
- " \"pathAnimation\": {"
- " \"duration\": 3.0,"
- " \"endAction\": \"DISCARD\","
- " \"disconnectAction\": \"BAKE_FINAL\","
- " \"properties\": [{"
- " \"actor\": \"greeting\","
- " \"path\":\"pathDoesntExist\","
- " \"forward\":[1,0,0],"
- " \"alphaFunction\": \"EASE_IN_OUT\","
- " \"timePeriod\": {"
- " \"delay\": 0,"
- " \"duration\": 3"
- " }"
- " }]"
- " }"
- " },"
- " \"stage\": [{"
- " \"name\": \"greeting\","
- " \"type\": \"TextLabel\","
- " \"text\": \"Touch me\","
- " \"inherit\": [\"basicText\"],"
- " \"position\": [0, -120, 0],"
- " \"size\": [200, 200, 1],"
- " \"orientation\": [0, 0, 30],"
- " \"signals\": [{"
- " \"name\": \"touched\","
- " \"action\": \"play\","
- " \"animation\": \"animate\""
- " }]"
- " },"
- " {"
- " \"name\": \"greeting2\","
- " \"type\": \"TextLabel\","
- " \"text\": \"Touch me\""
- " }]"
- "}");
-
+ "{"
+ " \"constants\":"
+ " {"
+ " \"TEXT\": \"Touch Me\","
+ " \"NAME\": \"greeting\" "
+ " },"
+ " \"paths\":"
+ " {"
+ " \"path0\":"
+ " {"
+ " \"points\":[ [-150, -50, 0], [0.0,70.0,0.0], [190.0,-150.0,0.0] ],"
+ " \"curvature\":0.35"
+ " }"
+ " },"
+ " \"animations\": {"
+ " \"animate\": {"
+ " \"loop\": true,"
+ " \"endAction\": \"BAKE\","
+ " \"disconnectAction\": \"BAKE\","
+ " \"properties\":"
+ " [{"
+ " \"actor\": \"{NAME}\","
+ " \"property\": \"positioninvalid\","
+ " \"value\": [300, 300, -1000],"
+ " \"alphaFunction\": \"EASE_IN_OUT\","
+ " \"relative\": true,"
+ " \"timePeriod\": {"
+ " \"delay\": 0,"
+ " \"duration\": 3"
+ " }"
+ " }"
+ " ]"
+ " },"
+ " \"animate2\": {"
+ " \"loop\": true,"
+ " \"endAction\": \"BAKE\","
+ " \"disconnectAction\": \"BAKE\","
+ " \"properties\":"
+ " [{"
+ " \"actor\": \"{NAME}\","
+ " \"property\": \"positioninvalid\","
+ " \"value\": [300, 300, -1000],"
+ " \"alphaFunction\": \"EGGS_OVER_EASY\","
+ " \"relative\": true,"
+ " \"timePeriod\": {"
+ " \"delay\": 0,"
+ " \"duration\": 3"
+ " }"
+ " }"
+ " ]"
+ " },"
+ " \"pathAnimation\": {"
+ " \"duration\": 3.0,"
+ " \"endAction\": \"DISCARD\","
+ " \"disconnectAction\": \"BAKE_FINAL\","
+ " \"properties\": [{"
+ " \"actor\": \"greeting\","
+ " \"path\":\"pathDoesntExist\","
+ " \"forward\":[1,0,0],"
+ " \"alphaFunction\": \"EASE_IN_OUT\","
+ " \"timePeriod\": {"
+ " \"delay\": 0,"
+ " \"duration\": 3"
+ " }"
+ " }]"
+ " }"
+ " },"
+ " \"stage\": [{"
+ " \"name\": \"greeting\","
+ " \"type\": \"TextLabel\","
+ " \"text\": \"Touch me\","
+ " \"inherit\": [\"basicText\"],"
+ " \"position\": [0, -120, 0],"
+ " \"size\": [200, 200, 1],"
+ " \"orientation\": [0, 0, 30],"
+ " \"signals\": [{"
+ " \"name\": \"touched\","
+ " \"action\": \"play\","
+ " \"animation\": \"animate\""
+ " }]"
+ " },"
+ " {"
+ " \"name\": \"greeting2\","
+ " \"type\": \"TextLabel\","
+ " \"text\": \"Touch me\""
+ " }]"
+ "}");
- "{\n"
- "\"constants\":"
- "{"
- " \"SIZE\": [10,20,30]"
- "},"
- "\"styles\":\n"
- "{\n"
- " \"imageStyle\": \n"
- " {\n"
- " \"color\": [1,0,0,1],\n"
- " \"actors\": {\n"
- " \"childImage\": {\n"
- " \"color\": \"34\"\n"
- " }\n"
- " }\n"
- " }\n"
- "},\n"
- "\"templates\":\n"
- "{\n"
- " \"imageViewTemplate\": { \n"
- " \"type\": \"ImageView\",\n"
- " \"styles\": [\"imageStyle\"]\n"
- " },\n"
- " \"imageTree\": { \n"
- " \"type\": \"ImageView\",\n"
- " \"styles\": [\"imageStyle\"],\n"
- " \"name\": \"image\",\n"
- " \"size\": \"{SIZE}\",\n"
- " \"signals\": [{\n"
- " \"name\": \"touched\",\n"
- " \"action\": \"quit\"\n"
- " }],\n"
- " \"actors\": [\n"
- " {\n"
- " \"type\":\"ImageView\",\n"
- " \"name\":\"childImage\", \n"
- " \"color\": \n"
- " {\n"
- " \"r\": 10,\n"
- " \"g\": 10,\n"
- " \"b\": 10,\n"
- " \"a\": 100\n"
- " }\n"
- " },\n"
- " {\n"
- " \"type\":\"imageViewTemplate\",\n"
- " \"name\":\"childImage2\"\n"
- " }\n"
- " ]\n"
- " }\n"
- "},\n"
- "\"stage\":"
- "[{"
- " \"type\": \"imageTree\","
- " \"size\": [100,100,1]"
- "}]"
- "}\n"
- );
+ "{\n"
+ "\"constants\":"
+ "{"
+ " \"SIZE\": [10,20,30]"
+ "},"
+ "\"styles\":\n"
+ "{\n"
+ " \"imageStyle\": \n"
+ " {\n"
+ " \"color\": [1,0,0,1],\n"
+ " \"actors\": {\n"
+ " \"childImage\": {\n"
+ " \"color\": \"34\"\n"
+ " }\n"
+ " }\n"
+ " }\n"
+ "},\n"
+ "\"templates\":\n"
+ "{\n"
+ " \"imageViewTemplate\": { \n"
+ " \"type\": \"ImageView\",\n"
+ " \"styles\": [\"imageStyle\"]\n"
+ " },\n"
+ " \"imageTree\": { \n"
+ " \"type\": \"ImageView\",\n"
+ " \"styles\": [\"imageStyle\"],\n"
+ " \"name\": \"image\",\n"
+ " \"size\": \"{SIZE}\",\n"
+ " \"signals\": [{\n"
+ " \"name\": \"touched\",\n"
+ " \"action\": \"quit\"\n"
+ " }],\n"
+ " \"actors\": [\n"
+ " {\n"
+ " \"type\":\"ImageView\",\n"
+ " \"name\":\"childImage\", \n"
+ " \"color\": \n"
+ " {\n"
+ " \"r\": 10,\n"
+ " \"g\": 10,\n"
+ " \"b\": 10,\n"
+ " \"a\": 100\n"
+ " }\n"
+ " },\n"
+ " {\n"
+ " \"type\":\"imageViewTemplate\",\n"
+ " \"name\":\"childImage2\"\n"
+ " }\n"
+ " ]\n"
+ " }\n"
+ "},\n"
+ "\"stage\":"
+ "[{"
+ " \"type\": \"imageTree\","
+ " \"size\": [100,100,1]"
+ "}]"
+ "}\n");
- "{\n"
- " \"stage\":\n"
- " [{\n"
- " \"type\": \"Actor\",\n"
- " \"name\": \"actor\",\n"
- " \"size\": [100,100,1],\n"
- " \"parentOrigin\": \"TOP_LEFT\",\n"
- " \"anchorPoint\": \"TOP_LEFT\",\n"
- " \"actors\": [{\n"
- " \"type\": \"Actor\",\n"
- " \"name\": \"subActor\"\n"
- " }],\n"
- " \"signals\": [{\n"
- " \"name\": \"touched\",\n"
- " \"action\": \"hide\"\n"
- " }],\n"
- " \"notifications\": [{\n"
- " \"property\": \"visible\",\n"
- " \"condition\": \"False\",\n"
- " \"action\": \"show\"\n"
- " },\n"
- " {\n"
- " \"property\": \"positionX\",\n"
- " \"condition\": \"LessThan\",\n"
- " \"arg0\": 0.0,\n"
- " \"action\": \"show\"\n"
- " },\n"
- " {\n"
- " \"property\": \"positionY\",\n"
- " \"condition\": \"GreaterThan\",\n"
- " \"arg0\": 200.0,\n"
- " \"action\": \"show\"\n"
- " },\n"
- " {\n"
- " \"property\": \"positionZ\",\n"
- " \"condition\": \"Inside\",\n"
- " \"arg0\": 0.0,\n"
- " \"arg1\": 10.0,\n"
- " \"action\": \"show\"\n"
- " },\n"
- " {\n"
- " \"property\": \"positionZ\",\n"
- " \"condition\": \"Outside\",\n"
- " \"arg0\": 40.0,\n"
- " \"arg1\": 50.0,\n"
- " \"action\": \"show\"\n"
- " }]\n"
- " }]\n"
- "}\n"
- );
+ "{\n"
+ " \"stage\":\n"
+ " [{\n"
+ " \"type\": \"Actor\",\n"
+ " \"name\": \"actor\",\n"
+ " \"size\": [100,100,1],\n"
+ " \"parentOrigin\": \"TOP_LEFT\",\n"
+ " \"anchorPoint\": \"TOP_LEFT\",\n"
+ " \"actors\": [{\n"
+ " \"type\": \"Actor\",\n"
+ " \"name\": \"subActor\"\n"
+ " }],\n"
+ " \"signals\": [{\n"
+ " \"name\": \"touched\",\n"
+ " \"action\": \"hide\"\n"
+ " }],\n"
+ " \"notifications\": [{\n"
+ " \"property\": \"visible\",\n"
+ " \"condition\": \"False\",\n"
+ " \"action\": \"show\"\n"
+ " },\n"
+ " {\n"
+ " \"property\": \"positionX\",\n"
+ " \"condition\": \"LessThan\",\n"
+ " \"arg0\": 0.0,\n"
+ " \"action\": \"show\"\n"
+ " },\n"
+ " {\n"
+ " \"property\": \"positionY\",\n"
+ " \"condition\": \"GreaterThan\",\n"
+ " \"arg0\": 200.0,\n"
+ " \"action\": \"show\"\n"
+ " },\n"
+ " {\n"
+ " \"property\": \"positionZ\",\n"
+ " \"condition\": \"Inside\",\n"
+ " \"arg0\": 0.0,\n"
+ " \"arg1\": 10.0,\n"
+ " \"action\": \"show\"\n"
+ " },\n"
+ " {\n"
+ " \"property\": \"positionZ\",\n"
+ " \"condition\": \"Outside\",\n"
+ " \"arg0\": 40.0,\n"
+ " \"arg1\": 50.0,\n"
+ " \"action\": \"show\"\n"
+ " }]\n"
+ " }]\n"
+ "}\n");
- "\"stage\":"
- "[{"
- "\"type\": \"Layer\","
- "\"maximumSize\": { \"typeCast\":\"vector2\", \"value\":[100,15] },"
- "\"position\": { \"typeCast\":\"vector3\", \"value\":[100,10,1] },"
- "\"color\": { \"typeCast\":\"vector4\", \"value\":[0.5,0.5,0.5,1] },"
- "\"sensitive\": { \"typeCast\":\"boolean\", \"value\":false },"
- "\"orientation\": { \"typeCast\":\"rotation\", \"value\":[10,10,10,10] },"
- "\"colorMode\": { \"typeCast\":\"string\", \"value\":\"USE_OWN_MULTIPLY_PARENT_COLOR\" },"
- "\"clippingBox\": { \"typeCast\":\"rect\", \"value\":[10,10,10,10] },"
- "\"padding\": { \"typeCast\":\"extents\", \"value\":[10,10,10,10] }"
- "}]"
- "}"
- );
+ "\"stage\":"
+ "[{"
+ "\"type\": \"Layer\","
+ "\"maximumSize\": { \"typeCast\":\"vector2\", \"value\":[100,15] },"
+ "\"position\": { \"typeCast\":\"vector3\", \"value\":[100,10,1] },"
+ "\"color\": { \"typeCast\":\"vector4\", \"value\":[0.5,0.5,0.5,1] },"
+ "\"sensitive\": { \"typeCast\":\"boolean\", \"value\":false },"
+ "\"orientation\": { \"typeCast\":\"rotation\", \"value\":[10,10,10,10] },"
+ "\"colorMode\": { \"typeCast\":\"string\", \"value\":\"USE_OWN_MULTIPLY_PARENT_COLOR\" },"
+ "\"clippingBox\": { \"typeCast\":\"rect\", \"value\":[10,10,10,10] },"
+ "\"padding\": { \"typeCast\":\"extents\", \"value\":[10,10,10,10] }"
+ "}]"
+ "}");
- DALI_TEST_CHECK( value.Get( output ) );
- DALI_TEST_EQUALS( output, "AAAAAAEAAAACAAAAAwAAAAQAAAAFAAAAAAAAAP////8", TEST_LOCATION );
+ DALI_TEST_CHECK(value.Get(output));
+ DALI_TEST_EQUALS(output, "AAAAAAEAAAACAAAAAwAAAAQAAAAFAAAAAAAAAP////8=", TEST_LOCATION);
+
+ std::cout << "Output data: " << output << std::endl;
+
+ END_TEST;
+}
+
+int UtcDaliBase64EncodingP3(void)
+{
+ std::string originalData = "Something Longer than 64 ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/== length is 106";
+ originalData.push_back(-4);
+ originalData.push_back(-7); // some kind of non-ascii.
+ originalData.push_back(0);
+ originalData.push_back(0);
+ originalData.push_back(2);
+ originalData.push_back(2);
+ originalData.push_back(2);
+
+ std::vector<uint8_t> data(originalData.begin(), originalData.end());
+
+ Dali::Property::Value value;
+ EncodeBase64PropertyData(value, data);
+
+ std::cout << "Input data: ";
+ std::ostream_iterator<uint8_t> out_it(std::cout, ", ");
+ std::copy(data.begin(), data.end(), out_it);
+ std::cout << std::endl;
+
+ std::string output;
+ Dali::Property::Array array;
+ DALI_TEST_CHECK(value.GetArray());
+ array = *value.GetArray();
+ DALI_TEST_EQUALS(array.Count(), 3, TEST_LOCATION);
+ DALI_TEST_CHECK(array[0].Get(output));
+ std::cout << "first string : " << output << std::endl;
+ DALI_TEST_EQUALS(output, "U29tZXRoaW5nIExvbmdlciB0aGFuIDY0IEFCQ0RFRkdISUpLTE1OT1BRUlNUVVZX", TEST_LOCATION);
+ DALI_TEST_CHECK(array[1].Get(output));
+ std::cout << "second string : " << output << std::endl;
+ DALI_TEST_EQUALS(output, "WFlaYWJjZGVmZ2hpamtsbW5vcHFyc3R1dnd4eXowMTIzNDU2Nzg5Ky89PSAgbGVu", TEST_LOCATION);
+ DALI_TEST_CHECK(array[2].Get(output));
+ std::cout << "third string : " << output << std::endl;
+ DALI_TEST_EQUALS(output, "Z3RoIGlzIDEwNvz5AAACAgI=", TEST_LOCATION);