hermet pushed a commit to branch master. http://git.enlightenment.org/tools/enventor.git/commit/?id=f847e936db2c2ca558ea4fc5996d8cdcb093d23d
commit f847e936db2c2ca558ea4fc5996d8cdcb093d23d Author: Hermet Park <[email protected]> Date: Wed Jul 27 21:08:19 2016 +0900 template: add a vector morphing example. --- data/images/ENVENTOR_EMBEDDED_BAT1.svg | 3 +++ data/images/ENVENTOR_EMBEDDED_BAT2.svg | 3 +++ data/images/Makefile.am | 2 ++ data/templates/Makefile.am | 10 +++++++-- data/templates/Morphing.edc | 37 ++++++++++++++++++++++++++++++++++ 5 files changed, 53 insertions(+), 2 deletions(-) diff --git a/data/images/ENVENTOR_EMBEDDED_BAT1.svg b/data/images/ENVENTOR_EMBEDDED_BAT1.svg new file mode 100644 index 0000000..7a9d229 --- /dev/null +++ b/data/images/ENVENTOR_EMBEDDED_BAT1.svg @@ -0,0 +1,3 @@ +<svg xmlns="http://www.w3.org/2000/svg" stroke-linejoin="round" viewBox="50 -100 500 500"> +<path fill="none" stroke="black" stroke-width="10" d="M 212,220 C 197,171 156,153 123,221 109,157 120,109 159,63.6 190,114 234,115 254,89.8 260,82.3 268,69.6 270,60.3 273,66.5 275,71.6 280,75.6 286,79.5 294,79.8 300,79.8 306,79.8 314,79.5 320,75.6 325,71.6 327,66.5 330,60.3 332,69.6 340,82.3 346,89.8 366,115 410,114 441,63.6 480,109 491,157 477,221 444,153 403,171 388,220 366,188 316,200 300,248 284,200 234,188 212,220 Z"/> +</svg> diff --git a/data/images/ENVENTOR_EMBEDDED_BAT2.svg b/data/images/ENVENTOR_EMBEDDED_BAT2.svg new file mode 100644 index 0000000..852764b --- /dev/null +++ b/data/images/ENVENTOR_EMBEDDED_BAT2.svg @@ -0,0 +1,3 @@ +<svg xmlns="http://www.w3.org/2000/svg" stroke-linejoin="round" viewBox="50 -100 500 500"> +<path fill="none" stroke="black" stroke-width="10" d="M 213,222 C 219,150 165,139 130,183 125,123 171,73.8 247,51.6 205,78 236,108 280,102 281,90.3 282,79 286,68.2 287,72 288,75.8 289,79.7 293,79.7 296,79.7 300,79.7 304,79.7 307,79.7 311,79.7 312,75.8 313,72 314,68.2 318,79 319,90.3 320,102 364,108 395,78 353,51.6 429,73.8 475,123 470,183 435,139 381,150 387,222 364,176 315,172 300,248 285,172 236,176 213,222 Z"> +</svg> diff --git a/data/images/Makefile.am b/data/images/Makefile.am index e8793e0..4cc8c9f 100644 --- a/data/images/Makefile.am +++ b/data/images/Makefile.am @@ -37,6 +37,8 @@ files_DATA = ENVENTOR_EMBEDDED_IMAGE.png \ ENVENTOR_EMBEDDED_ICON_DOCK_DOWN.png \ ENVENTOR_EMBEDDED_ICON_LOCK.png \ ENVENTOR_EMBEDDED_ICON_LOCK_DOWN.png \ + ENVENTOR_EMBEDDED_BAT1.svg \ + ENVENTOR_EMBEDDED_BAT2.svg \ enventor_logo.png EXTRA_DIST = $(files_DATA) diff --git a/data/templates/Makefile.am b/data/templates/Makefile.am index b0c1860..6de3bb2 100644 --- a/data/templates/Makefile.am +++ b/data/templates/Makefile.am @@ -1,7 +1,7 @@ MAINTAINERCLEANFILES = Makefile.in EDJE_CC = @edje_cc@ -EDJE_FLAGS = -id $(top_srcdir)/data/images -sd $(top_srcdir)/data/sounds +EDJE_FLAGS = -id $(top_srcdir)/data/images -sd $(top_srcdir)/data/sounds -beta filesdir = $(datadir)/$(PACKAGE)/templates files_DATA = Basic.edc \ @@ -45,7 +45,9 @@ files_DATA = Basic.edc \ Watchface.edc \ Watchface.edj \ Watchface2.edc \ - Watchface2.edj + Watchface2.edj \ + Morphing.edc \ + Morphing.edj EXTRA_DIST = $(files_DATA) @@ -115,6 +117,10 @@ Watchface.edj: Makefile Watchface.edc Watchface2.edj: Makefile Watchface2.edc $(EDJE_CC) $(EDJE_FLAGS) $(srcdir)/Watchface2.edc $(builddir)/Watchface2.edj +Morphing.edj: Makefile Morphing.edc + $(EDJE_CC) $(EDJE_FLAGS) $(srcdir)/Morphing.edc $(builddir)/Morphing.edj + + clean-local: rm -f *.edj rm -f $(datadir)/$(PACKAGE)/templates/*edj diff --git a/data/templates/Morphing.edc b/data/templates/Morphing.edc new file mode 100644 index 0000000..8cf24b8 --- /dev/null +++ b/data/templates/Morphing.edc @@ -0,0 +1,37 @@ +collections { + base_scale: 1.0; + group { "main"; + /* TODO: Please replace embedded image files to your application image files. */ + images { + vector: "ENVENTOR_EMBEDDED_BAT1.svg"; + vector: "ENVENTOR_EMBEDDED_BAT2.svg"; + } + parts { + vector { "svg"; + desc { "default"; + /* TODO: Please replace embedded image files to your application image files. */ + image.normal: "ENVENTOR_EMBEDDED_BAT1.svg"; + } + desc { "changed"; + /* TODO: Please replace embedded image files to your application image files. */ + image.normal: "ENVENTOR_EMBEDDED_BAT2.svg"; + } + } + } + programs { + program { "load"; + signal: "load"; + action: STATE_SET "changed"; + target: "svg"; + transition: LINEAR 1; + after: "rewind"; + } + program { "rewind"; + action: STATE_SET "default"; + target: "svg"; + transition: LINEAR 1; + after: "load"; + } + } + } +} --
