File tree Expand file tree Collapse file tree 5 files changed +10
-5
lines changed
site/src/routes/demo/common Expand file tree Collapse file tree 5 files changed +10
-5
lines changed Original file line number Diff line number Diff line change 1
1
<div >
2
2
<Button
3
3
class ={classMap ({
4
+ ' my-button' : true ,
4
5
big: big ,
5
6
[color ]: true ,
6
7
})}
35
36
</script >
36
37
37
38
<style >
39
+ * :global(.my-button ) {
40
+ margin : 0.5em ;
41
+ }
42
+
38
43
* :global(.red ) {
39
44
color : red ;
40
45
}
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import TinyGesture from 'tinygesture';
2
2
import { tweened } from 'svelte/motion' ;
3
3
import { cubicInOut } from 'svelte/easing' ;
4
4
5
- export default function ( node ) {
5
+ export default function Pannable ( node ) {
6
6
const gesture = new TinyGesture ( node ) ;
7
7
let animationFrame = null ;
8
8
const preventDefault = ( event ) => {
Original file line number Diff line number Diff line change 1
1
import TinyGesture from 'tinygesture' ;
2
2
3
- export default function ( node ) {
3
+ export default function Swipeable ( node ) {
4
4
const gesture = new TinyGesture ( node ) ;
5
5
let timeout ;
6
6
const preventDefault = ( event ) => {
Original file line number Diff line number Diff line change 1
1
import TinyGesture from 'tinygesture' ;
2
2
3
- export default function ( node , options ) {
3
+ export default function Tappable ( node , options ) {
4
4
const gesture = new TinyGesture ( node ) ;
5
5
let tapTimeout ;
6
6
let pressTimeout ;
Original file line number Diff line number Diff line change 107
107
component ={ForwardEventsBuilder }
108
108
files ={[
109
109
' common/_ForwardEventsBuilder.svelte' ,
110
- ' common/_ForwardEventsBuilderComponent.js ' ,
110
+ ' common/_ForwardEventsBuilderComponent.svelte ' ,
111
111
]}
112
112
>
113
113
Forward Events Builder
144
144
component ={UseActions }
145
145
files ={[
146
146
' common/_UseActions.svelte' ,
147
- ' common/_UseActionsComponent.js ' ,
147
+ ' common/_UseActionsComponent.svelte ' ,
148
148
' common/_UseActionsPannable.js' ,
149
149
' common/_UseActionsSwipeable.js' ,
150
150
' common/_UseActionsTappable.js' ,
You can’t perform that action at this time.
0 commit comments