From d1b5d5bf45c7d2821479b51b646097ab453144ef Mon Sep 17 00:00:00 2001 From: Richard Harris Date: Mon, 15 Apr 2019 00:06:36 -0400 Subject: [PATCH] fix some more examples --- site/content/examples/12-actions/00-actions/App.svelte | 4 +++- site/content/examples/19-7guis/05-7guis-crud/App.svelte | 5 ++++- site/content/tutorial/12-actions/01-actions/app-a/App.svelte | 4 +++- site/content/tutorial/12-actions/01-actions/app-b/App.svelte | 4 +++- 4 files changed, 13 insertions(+), 4 deletions(-) diff --git a/site/content/examples/12-actions/00-actions/App.svelte b/site/content/examples/12-actions/00-actions/App.svelte index 1324277bac..171f82762c 100644 --- a/site/content/examples/12-actions/00-actions/App.svelte +++ b/site/content/examples/12-actions/00-actions/App.svelte @@ -45,5 +45,7 @@ on:panstart={handlePanStart} on:panmove={handlePanMove} on:panend={handlePanEnd} - style="transform: translate({$coords.x}px,{$coords.y}px)" + style="transform: + translate({$coords.x}px,{$coords.y}px) + rotate({$coords.x * 0.2}deg)" > \ No newline at end of file diff --git a/site/content/examples/19-7guis/05-7guis-crud/App.svelte b/site/content/examples/19-7guis/05-7guis-crud/App.svelte index ed53430eff..1f39fe6642 100644 --- a/site/content/examples/19-7guis/05-7guis-crud/App.svelte +++ b/site/content/examples/19-7guis/05-7guis-crud/App.svelte @@ -30,7 +30,10 @@ $: selected = filteredPeople[i]; - $: reset_inputs(selected); + $: { + first = selected ? selected.first : ''; + last = selected ? selected.last : ''; + } function create() { people = people.concat({ first, last }); diff --git a/site/content/tutorial/12-actions/01-actions/app-a/App.svelte b/site/content/tutorial/12-actions/01-actions/app-a/App.svelte index cbd1f81282..feacc44c52 100644 --- a/site/content/tutorial/12-actions/01-actions/app-a/App.svelte +++ b/site/content/tutorial/12-actions/01-actions/app-a/App.svelte @@ -43,5 +43,7 @@ on:panstart={handlePanStart} on:panmove={handlePanMove} on:panend={handlePanEnd} - style="transform: translate({$coords.x}px,{$coords.y}px)" + style="transform: + translate({$coords.x}px,{$coords.y}px) + rotate({$coords.x * 0.2}deg)" > \ No newline at end of file diff --git a/site/content/tutorial/12-actions/01-actions/app-b/App.svelte b/site/content/tutorial/12-actions/01-actions/app-b/App.svelte index 1324277bac..171f82762c 100644 --- a/site/content/tutorial/12-actions/01-actions/app-b/App.svelte +++ b/site/content/tutorial/12-actions/01-actions/app-b/App.svelte @@ -45,5 +45,7 @@ on:panstart={handlePanStart} on:panmove={handlePanMove} on:panend={handlePanEnd} - style="transform: translate({$coords.x}px,{$coords.y}px)" + style="transform: + translate({$coords.x}px,{$coords.y}px) + rotate({$coords.x * 0.2}deg)" > \ No newline at end of file