@rdlabo/ngx-cdk-scroll-strategies 21.6.2 → 21.6.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -5
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -31,7 +31,7 @@ npm install @rdlabo/ngx-cdk-scroll-strategies
|
|
|
31
31
|
> This is a simple example of how to use it.
|
|
32
32
|
|
|
33
33
|
- Demo: https://rdlabo-ionic-angular-library.netlify.app/main/scroll-strategies/simple
|
|
34
|
-
- Source: https://github.com/rdlabo-
|
|
34
|
+
- Source: https://github.com/rdlabo-dev/ionic-angular-library/blob/main/projects/demo/src/app/scroll-strategies/pages/scroll-simple
|
|
35
35
|
|
|
36
36
|
```ts
|
|
37
37
|
import { CdkDynamicSizeVirtualScroll, itemDynamicSize } from '@rdlabo/ngx-cdk-scroll-strategies';
|
|
@@ -66,14 +66,14 @@ Other than this, it works the same way as `@angular/cdk/scrolling`.
|
|
|
66
66
|
> It is difficult without basic knowledge of Angular.
|
|
67
67
|
|
|
68
68
|
- Demo: https://rdlabo-ionic-angular-library.netlify.app/main/scroll-strategies/advanced
|
|
69
|
-
- Source: https://github.com/rdlabo-
|
|
69
|
+
- Source: https://github.com/rdlabo-dev/ionic-angular-library/blob/main/projects/demo/src/app/scroll-strategies/pages/scroll-advanced
|
|
70
70
|
|
|
71
71
|
### Reverse Usage
|
|
72
72
|
|
|
73
73
|
> This is a demo for reverse scrolling like WeChat.
|
|
74
74
|
|
|
75
75
|
- Demo: https://rdlabo-ionic-angular-library.netlify.app/main/scroll-strategies/reverse
|
|
76
|
-
- Source: https://github.com/rdlabo-
|
|
76
|
+
- Source: https://github.com/rdlabo-dev/ionic-angular-library/blob/main/projects/demo/src/app/scroll-strategies/pages/scroll-reverse
|
|
77
77
|
|
|
78
78
|
If reverse scroll, add `isReverse` directive to `cdk-virtual-scroll-viewport` tag.
|
|
79
79
|
|
|
@@ -121,7 +121,7 @@ div.reverse-items {
|
|
|
121
121
|
```
|
|
122
122
|
|
|
123
123
|
**In Reverse Scroll, CdkVirtualScrollViewport's measureScrollOffset does not work. Please use the scrollOffset of this directive.**
|
|
124
|
-
https://github.com/rdlabo-
|
|
124
|
+
https://github.com/rdlabo-dev/ionic-angular-library/blob/main/projects/scroll-strategies/src/lib/dynamic-size-virtual-scroll-strategy.ts
|
|
125
125
|
|
|
126
126
|
The reverse layout uses negative native `scrollTop` values. `scrollToIndex()` accepts a logical item index as usual and converts its cumulative offset to that native coordinate internally.
|
|
127
127
|
|
|
@@ -133,7 +133,7 @@ This package contains a Helper Service that simplifies development with Virtual
|
|
|
133
133
|
import { DynamicSizeVirtualScrollService } from '@rdlabo/ngx-cdk-scroll-strategies';
|
|
134
134
|
```
|
|
135
135
|
|
|
136
|
-
Detail is here: https://github.com/rdlabo-
|
|
136
|
+
Detail is here: https://github.com/rdlabo-dev/ionic-angular-library/blob/main/projects/scroll-strategies/src/lib/dynamic-size-virtual-scroll.service.ts
|
|
137
137
|
|
|
138
138
|
## FQA
|
|
139
139
|
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rdlabo/ngx-cdk-scroll-strategies",
|
|
3
|
-
"version": "21.6.
|
|
3
|
+
"version": "21.6.4",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
|
-
"url": "git@github.com:rdlabo-
|
|
6
|
+
"url": "git@github.com:rdlabo-dev/ionic-angular-library.git"
|
|
7
7
|
},
|
|
8
8
|
"peerDependencies": {
|
|
9
9
|
"@angular/cdk": "^21.0.0",
|