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

video-timeline-player

v0.1.12

Published

<!-- * @Description: * @version: * @Author: [email protected] * @Date: 2024-09-20 15:50:50 * @LastEditors: [email protected] * @LastEditTime: 2024-09-20 15:50:50 -->

Downloads

5

Readme

page-title-warning 模块使用手册

vesion: v1.0.0 date: 2024.09.20 author: [email protected]

编写目的

本手册,是用于介绍视频回放时间轴组件

模块功能简介

该模块是视频播放器和时间轴组合而成,通常用于视频回放。 主要功能有: 1.支持时间轴分辨率调整,放大缩小 2.支持时间轴的点击和拖动 3.支持倍速播放 4.支持上一帧/下一帧查看等

模块外部库依赖:

该模块使用了以下外部模块作为依赖

| id | name | field | describe | version | url |
| --------- | --------- | --------- | --------- | --------- | --------- | | 1 | npm | UI开发 | 开发环境 |v8.13.2 | http://nodejs.cn/ | | 1 | npm | UI开发 | 开发环境 |v8.13.2 | http://nodejs.cn/ | | 1 | @wanglin1994/video-timeline | 视频播放 | 时间轴 |v0.1.10 | https://github.com/wanglin2/VideoTimeLine | | 1 | npm | UI开发 | 开发环境 |v8.13.2 | http://nodejs.cn/ |

模块如何使用:

1.设置npm默认仓库地址为内部npm仓库 可以使用以下命令或其他命令设置npm默认仓库地址为内部npm仓库

npm config set registry http://10.112.2.180:4873

2.使用npm安装此模块,注意一定要带版本号,并且是最新的版本号@x.x.x

npm install [email protected]

3.引用方法

import { setTitle, startChange, stopChange, startChangeTxt, stopChangeTxt, initPageTitleWarning } from "page-title-warning";

4.必须先执行初始化方法initPageTitleWarning(),该方法会记录原始标题和图标地址,否则改变图标时报错

5.setTitle方法用于设置新标题,会接收一个字符串做参数,例如

setTitle("新的网页标题")

6.startChange图标闪烁方法,需要传入2个ico图片路径和一个毫秒数,例如

startChangeWrapper(){
  const src1 = "/warnning_1_1.ico";
  const src2 = "/warnning_1_2.ico";
  const millisecond = 100;
  startChange(src1,src2,millisecond)
}

7.执行stopChange,会停止改变图标,并恢复到原始图标及标题

8.startChangeTxt标题文字闪烁方法,需要传入2个不同的标题文字字符串和一个毫秒数,例如

startChangeTxtWrapper(){
  const txt1 = "警告:出现故障";
  const txt2 = "警告:出现故障!!!";
  const millisecond = 100;
  startChangeTxt(txt1,txt2,millisecond)
}

9.执行stopChangeTxt,会停止改变标题文字,并恢复到原始图标及标题

注意事项

参考文档:

Thank you for watching

Copyright © Dalian Seasky Automation Co., Ltd