-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2da982a
commit 8f42134
Showing
10 changed files
with
69 additions
and
141 deletions.
There are no files selected for viewing
129 changes: 69 additions & 60 deletions
129
samples/AzureMapsControl.Sample/Pages/Animations/AnimationBar.razor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,62 +1,71 @@ | ||
@namespace AzureMapsControl.Sample.Animations | ||
|
||
<div class="animations-btns"> | ||
<button class="btn btn-primary" @onclick="DisposeAsync">Dispose</button> | ||
<button class="btn btn-primary" @onclick="PauseAsync">Pause</button> | ||
<button class="btn btn-primary" @onclick="PlayAsync">Play</button> | ||
<button class="btn btn-primary" @onclick="ResetAsync">Reset</button> | ||
<button class="btn btn-primary" @onclick="SeekAsync">Seek 0.5</button> | ||
<button class="btn btn-primary" @onclick="StopAsync">Stop</button> | ||
</div> | ||
|
||
@code { | ||
|
||
[Parameter] | ||
public EventCallback OnDispose { get; set; } | ||
|
||
[Parameter] | ||
public EventCallback OnPause { get; set; } | ||
|
||
[Parameter] | ||
public EventCallback OnPlay { get; set; } | ||
|
||
[Parameter] | ||
public EventCallback OnReset { get; set; } | ||
|
||
[Parameter] | ||
public EventCallback OnSeek { get; set; } | ||
|
||
[Parameter] | ||
public EventCallback OnStop { get; set; } | ||
|
||
public async Task DisposeAsync(MouseEventArgs e) | ||
{ | ||
await OnDispose.InvokeAsync(); | ||
} | ||
|
||
public async Task PauseAsync(MouseEventArgs e) | ||
{ | ||
await OnPause.InvokeAsync(); | ||
} | ||
|
||
|
||
public async Task PlayAsync(MouseEventArgs e) | ||
{ | ||
await OnPlay.InvokeAsync(); | ||
} | ||
|
||
public async Task ResetAsync(MouseEventArgs e) | ||
{ | ||
await OnReset.InvokeAsync(); | ||
} | ||
|
||
public async Task SeekAsync(MouseEventArgs e) | ||
{ | ||
await OnSeek.InvokeAsync(); | ||
} | ||
|
||
public async Task StopAsync(MouseEventArgs e) | ||
{ | ||
await OnStop.InvokeAsync(); | ||
} | ||
} | ||
<style> | ||
.animations-btns { | ||
position: absolute; | ||
z-index: 1000; | ||
left: 0; | ||
top: 0; | ||
} | ||
</style> | ||
|
||
<div class="animations-btns"> | ||
<button class="btn btn-primary" @onclick="DisposeAsync">Dispose</button> | ||
<button class="btn btn-primary" @onclick="PauseAsync">Pause</button> | ||
<button class="btn btn-primary" @onclick="PlayAsync">Play</button> | ||
<button class="btn btn-primary" @onclick="ResetAsync">Reset</button> | ||
<button class="btn btn-primary" @onclick="SeekAsync">Seek 0.5</button> | ||
<button class="btn btn-primary" @onclick="StopAsync">Stop</button> | ||
</div> | ||
|
||
@code { | ||
|
||
[Parameter] | ||
public EventCallback OnDispose { get; set; } | ||
|
||
[Parameter] | ||
public EventCallback OnPause { get; set; } | ||
|
||
[Parameter] | ||
public EventCallback OnPlay { get; set; } | ||
|
||
[Parameter] | ||
public EventCallback OnReset { get; set; } | ||
|
||
[Parameter] | ||
public EventCallback OnSeek { get; set; } | ||
|
||
[Parameter] | ||
public EventCallback OnStop { get; set; } | ||
|
||
public async Task DisposeAsync(MouseEventArgs e) | ||
{ | ||
await OnDispose.InvokeAsync(); | ||
} | ||
|
||
public async Task PauseAsync(MouseEventArgs e) | ||
{ | ||
await OnPause.InvokeAsync(); | ||
} | ||
|
||
|
||
public async Task PlayAsync(MouseEventArgs e) | ||
{ | ||
await OnPlay.InvokeAsync(); | ||
} | ||
|
||
public async Task ResetAsync(MouseEventArgs e) | ||
{ | ||
await OnReset.InvokeAsync(); | ||
} | ||
|
||
public async Task SeekAsync(MouseEventArgs e) | ||
{ | ||
await OnSeek.InvokeAsync(); | ||
} | ||
|
||
public async Task StopAsync(MouseEventArgs e) | ||
{ | ||
await OnStop.InvokeAsync(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 0 additions & 9 deletions
9
samples/AzureMapsControl.Sample/Pages/Animations/DropMarkers.razor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 0 additions & 9 deletions
9
samples/AzureMapsControl.Sample/Pages/Animations/GroupAnimations.razor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 0 additions & 9 deletions
9
samples/AzureMapsControl.Sample/Pages/Animations/MoveAlongPath.razor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 0 additions & 9 deletions
9
samples/AzureMapsControl.Sample/Pages/Animations/MoveMarkerAlongPath.razor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 0 additions & 9 deletions
9
samples/AzureMapsControl.Sample/Pages/Animations/MovingDashedLine.razor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 0 additions & 9 deletions
9
samples/AzureMapsControl.Sample/Pages/Animations/SetCoordinates.razor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 0 additions & 9 deletions
9
samples/AzureMapsControl.Sample/Pages/Animations/SetMarkerCoordinatesrazor.razor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 0 additions & 9 deletions
9
samples/AzureMapsControl.Sample/Pages/Animations/Snakeline.razor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters