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

timepack-plugin

v1.1.0

Published

plugins for timepack's front-end development

Downloads

19

Readme

Introduction

The package is using for timepack front-end buisness.

Install

npm install business-plugin -S
or cnpm i business-plugin -S

组件API

AlbumCanvas

相簿图片自动合成,拖拽,旋转,删除核心模块

render(photo,layout,temp)

init()

初始化相簿数据

compatable()

跨设备分享,数据兼容处理

getter()

  • template(index):模板图片
  • photo(pageIndex,imageIndex):
  • radio(index):获取容器的长宽比
  • rest():获取整页剩余的未填充数量
  • pageRest(index):获取指定页数空区域的数量(即未填充的数量)

setter()

  • editPageStyle(pageIndex,imageIndex,editWidth,editable):单页容器模板样式
  • photoStyle(pageIndex,imageIndex):单页图片样式
  • groupImage($list): 用jquery对象列表批量填充图片
  • listImage(list):用图片数据列表填充图片
  • fillImageByPage($list,page):根据页数填充图片
  • indexImage($list, page, index):单页内根据下标填充图片

operate()

  • exchange(pageIndex,lastIndex,currentIndex):更换图片间顺序
  • rotate(pageIndex,imageIndex):顺时针旋转图片90度
  • zoomImage(pageIndex,index,type):放大或缩小图片,type-1放大,type-2缩小
  • convert($list):图片jquery对象转换为可用的数据结构
  • changeLayout(index):修改容器模板

delete()

  • deleteImageByIndex(pageIndex,imageIndex):删除指定页内指定图片

event

  • touchstart(e,target):
  • touchmove(e, startPosition, position, target):
  • touchend(e, page, index, position, target):