-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #161 from DDtMM/19.x
Fix #159
- Loading branch information
Showing
3 changed files
with
16 additions
and
15 deletions.
There are no files selected for viewing
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
25 changes: 13 additions & 12 deletions
25
...os/spring-signal/multiple-spring-numbers-demo/multiple-spring-numbers-demo.component.html
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,16 +1,17 @@ | ||
<!-- eslint-disable @angular-eslint/template/interactive-supports-focus --> | ||
<!-- eslint-disable @angular-eslint/template/click-events-have-key-events --> | ||
<div class="flex flex-row gap-3 items-center pb-3"> | ||
<app-spring-options [(springOptions)]="$springOptions" (springOptionsChange)="$coords.setOptions($springOptions())" /> | ||
</div> | ||
<div #target class="relative cursor-pointer w-36 h-36 bg-green-600 rounded-lg border-slate-900 border-solid border overflow-hidden" | ||
(click)="setCords($event, target)" | ||
(mousemove)="setCords($event, target)" > | ||
<div class="w-4 h-4 bg-slate-900 rounded-full" | ||
[ngStyle]="{ 'translate': $coords()[0] + 'px ' + $coords()[1] + 'px' }"> | ||
<div class="flex flex-col gap-3"> | ||
<div>Click the surface to update the 2D coordinates and see the spring animation.</div> | ||
<div class="flex flex-row gap-3 items-center"> | ||
<app-spring-options [(springOptions)]="$springOptions" (springOptionsChange)="$coords.setOptions($springOptions())" /> | ||
</div> | ||
<div #target class="relative cursor-pointer w-36 h-36 bg-green-600 rounded-lg border-slate-900 border-solid border overflow-hidden" | ||
(click)="setCords($event, target)"> | ||
<div class="w-4 h-4 bg-slate-900 rounded-full" | ||
[ngStyle]="{ 'translate': $coords()[0] + 'px ' + $coords()[1] + 'px' }"> | ||
</div> | ||
<div class="text-sm absolute bottom-2 right-2 pointer-events-none"> | ||
({{$coords()[0] | number: '1.1-2'}}, {{$coords()[1] | number: '1.1-2'}}) | ||
</div> | ||
</div> | ||
<div class="text-sm absolute bottom-2 right-2 pointer-events-none"> | ||
({{$coords()[0] | number: '1.1-2'}}, {{$coords()[1] | number: '1.1-2'}}) | ||
</div> | ||
</div> | ||
|
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