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

zepr.ts

v0.3.1

Published

A simple HTML5 rendering engine

Downloads

2

Readme

zepr.ts v0.3.0

A simple HTML5 rendering engine

Installation

Run the following command inside your project directory to install

npm install zepr.ts

Usage

In your source code, simply add

import Zepr = require('zepr.ts');

API Documentation

Online

API documentation is available here

Do it yourself (from source code)

Install TypeDoc

npm install --global typedoc

In the project, run

typedoc --out ./dist/docs/ --mode file --name "zepr.ts | An HTML5 rendering engine"

Changelog

0.3.1 - 2019.05.01

  • BugFix Security (dependencies)

0.3.0 - 2019.04.20

Major Refactoring of mouse events

  • Core engine is now the Core class. It manages Screen and Sprite with no controls
  • Engine is a derived class of Core that manages mouse/touch controls (Same scope as before)
  • New Clickable interface for Sprites. Engine can now delegate click events to Sprites (see Engine.enableMouseControl())
  • Changed the way mouse events are managed : Events are taken into account when they occur (Used to be at next frame). Needed for next new feature
  • Added helper for fullscreen mode. Must be called on user gesture (Should be in Screen.onClick() or Sprite.onClick() method)
  • BugFix No more passive events for mouse control

0.2.3 - 2019.03.25

  • Improvement for background image position

0.2.2 - 2019.03.17

  • BugFix Ignore unparsable json answer in Zepr.Net

0.2.1 - 2019.02.08

Refactoring of ImageSprite

  • View centered on image rather than on underlying shape (In order to use other shapes than Rectangle)
  • Added Circle as a possible underlying shape
  • removed useless getRect() method (same usage as inherited getShape() method)

0.2.0 - 2019.02.07

Major refactoring. The goal is to simplify integration of the p2.js 2D physics engine

  • New geometric functions (Mostly on Vector and Rectangle)
  • Shape implementations can now rotate, with updated collision detection between shapes
  • Rectangle is centered. The static method Rectangle.asRect() was added to create a Rectangle with its upper-left vertice coords (as in Zepr 0.1.x)
  • All implementations of Sprite were updated accordingly. Collisions with rotated ImageSprite are now properly managed
  • BugFix Coordinates were mistakenly rounded (Misuse of bit shift operations)

0.1.5 - 2018.11.25

  • BugFix Forgotten loader

0.1.4 - 2018.11.25

Refactoring of sprite

  • Sprite is now an interface
  • moved implementation to RawSprite abstract class
  • Sprite now use Shape rather than Rectangle

0.1.3 - 2018.11.04

  • Refactoring of geometry, new functions for Vector
  • Added centered background

0.1.2 - 2018.10.28

  • Added rotation to Vector

0.1.1 - 2018.10.27

  • Added Shape interface and Circle implementation
  • Added rotation to ImageSprite

0.1.0 - 2018.10.20

New elements for a new project

  • Added overflow mode (scene is full screen and scrollable)
  • Added simple Sprite wrapper for Text
  • Added accessors to unified cache (No more screen cache)
  • BugFix NaN on direction for TiledSprite

0.0.9 - 2018.09.09

  • Resource loader with default (basic) loader screen

0.0.8 - 2018.09.05

  • Improvements for Sound class, ready for Chrome 70 autoplay policy
  • New method setZoom()

0.0.7 - 2018.08.16

  • BugFix [again] Touch zoom (completely removed 'passive' Chrome warning)
  • Prevents concurrent drag + zoom

0.0.6 - 2018.08.15

  • BugFix Touch zoom (no more zoom reset + removed browser warning)

0.0.5 - 2018.07.01

  • BugFix AudioContext problem with Safari

0.0.4 - 2018.06.18

  • Added support for typeDoc
  • Minor API corrections
  • New method scale() on Rectangle

0.0.3 - 2018.06.11

  • BugFix TouchEvent problem with Firefox

0.0.2 - 2018.06.09

  • Added zoom control
  • Added screen cache
  • Removed name for Screen and Sprite classes

0.0.1 - 2018.06.03

  • First published release