Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@pixui-dev/pixui-react-virtualwaterfall

Package Overview
Dependencies
Maintainers
4
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pixui-dev/pixui-react-virtualwaterfall - npm Package Compare versions

Comparing version
1.0.10
to
1.0.11
+1
-1
package.json
{
"name": "@pixui-dev/pixui-react-virtualwaterfall",
"version": "1.0.10",
"version": "1.0.11",
"description": "pixui 高性能React虚拟瀑布流组件",

@@ -5,0 +5,0 @@ "publishConfig": {

@@ -141,3 +141,6 @@ # VirtualWaterfallList 虚拟瀑布流组件

| reset | - | void | 重新初始化瀑布流组件,包括清理缓存、重新计算布局、重新渲染 |
| getVisibleIndices | - | number | 获取当前滚动位置 |
| getScrollTop | - | number | 获取当前滚动位置 |
| getVisibleIndices | - | number[] | 用于获取可视区域项目索引的拷贝 |
| getContentHeight | - | number | 用于获取总内容高度 |
| scrollTo | (scrollLeft: number, scrollTop: number) | void | 设定滚动距离(1.0.8) |

@@ -1010,2 +1013,6 @@ | updateItemByIndex | (index: number, item: any) | void | 更新指定索引的项目数据 |

### 1.0.11
1. 提供 getVisibleIndices, 用于获取可视区域项目索引的拷贝
2. 提供 getContentHeight, 用于获取总内容高度
### 1.0.10

@@ -1012,0 +1019,0 @@ 1. renderLoadMoreArea 兼容 Unity/Unreal 情况下,滚动不包含当前区域的问题。

@@ -472,2 +472,12 @@ import { h, Component, JSX } from 'preact';

/**
* 获取可视区域项目索引的拷贝
* @returns {number[]}
*/
getVisibleIndices(): number[];
/**
* 获取总内容高度
* @returns {number}
*/
getContentHeight(): number;
/**
* 更新指定索引的项目

@@ -474,0 +484,0 @@ * @param {number} index - 要更新的项目索引

@@ -558,2 +558,16 @@ var __extends = (this && this.__extends) || (function () {

/**
* 获取可视区域项目索引的拷贝
* @returns {number[]}
*/
VirtualWaterfall.prototype.getVisibleIndices = function () {
return __spreadArray([], this.lastVisibleIndices, true);
};
/**
* 获取总内容高度
* @returns {number}
*/
VirtualWaterfall.prototype.getContentHeight = function () {
return this.totalHeight;
};
/**
* 更新指定索引的项目

@@ -560,0 +574,0 @@ * @param {number} index - 要更新的项目索引