npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

focusable-core

v2.0.1

Published

focusable-core

Downloads

142

Readme

focusable-core更新日志

2022-10-27 2.0.1更新日志:

1.同时支持了方向监听方法里的同步和异步焦点聚焦操作;   2.增加了 next 方法,支持传入方向标识或具体元素;   3.增加了元素聚焦状态的全局监听方法 setOnFocusChangeListener;   4.增加了 scrollTo 方法,可用来更方便的滚动页面;

2022-08-29 1.1.3更新日志:

处理了某些模拟器上和PC上的非常规按键会导致键值丢失的问题,方便开发调试

2022-07-28 1.1.2更新日志:

重置或者替换focusableClassName,对应的classname会随着改变

2022-04-16 1.1.1更新日志:

兼容vue-cli5/webpack5,解决在vue-cli5/webpack5下exports is not defined报错

2022-02-14 1.1.0更新日志:

兼容vite

2021-12-30 1.0.5更新日志:

当设置distanceToCenter,且左右都存在滚动条的情况下,上下滚动的时候左右的滚动条不滚动问题

2021-12-18 1.0.4更新日志:

当一直按键不抬起时,控制每一次焦点的获取时间,从而达到控制滚屏速度

2021-10-28 1.0.3更新日志:

1、禁止隐藏元素聚焦; 2、开放滚动动画执行时间自定义,默认 200ms; 3、开放滚动动画循环的次数,默认 20次(注意:数值越小越耗性能); 4、优化其它不影响使用的小逻辑;

2021-09-27 1.0.2更新日志:

修复 vue3.x 延时加载元素的情况下,自定义事件不触发的问题;

2021-09-10 1.0.1更新日志:

1、防止和三方 UI 库类命名冲突,导出自定义 itemAttrname; 2、优化聚焦逻辑,禁止 svg 元素聚焦; 3、禁止焦点嵌套情况,父子元素同时设置可聚焦时只允许父元素聚焦;

2021-07-24 1.0.0更新日志:

1、优化对 angular 的支持; 2、稳定版本。

2021-07-24 0.0.6更新日志:

1、增加 formAutofocus 配置指定表单是否可执行原生聚焦(输入状态); 2、开放 focusableClassName 的配置(原则上是开放给react用的),如果不明白这个是做什么用的,说明你不需要用到这个;

2021-07-16 0.0.5更新日志:

增加 readXPath 接口,便于读取目标元素的 xpath 路径,可用于需要序列化标签存储的场景;

2021-04-09 0.0.4更新日志:

1、增加 init 属性的独立配置项,可单独设置某个属性值; 2、增加 limitingEl 逻辑,可限制页面上只有某个容器内的元素可聚焦;

2020-12-24 0.0.3更新日志:

1、增加滚动 center 模式,通过 distanceToCenter 控制; 2、优化聚焦算法;

2020-12-11 0.0.2更新日志:

增加 TV 端长按事件的支持;

2020-12-09 0.0.1更新日志:

第一次发版.