Displaying 1 to 13 from 13 results

layout-bmfont-text - word-wraps and lays out text glyphs

  •    Javascript

Provides layout and word-wrapping for left-to-right Latin text, primarily aimed at bitmap font rendering in Canvas/WebGL. The input font should be in the format of BMFont json, see here.You can use bmfont-lato for testing, or load-bmfont for Node/Browser loading.




repeat-string - Repeat the given string n times

  •    Javascript

Repeat the given string n times. Fastest implementation for repeating a string. Repeat the given string the specified number of times.

right-align - Right-align the text in a string.

  •    Javascript

Right-align the text in a string. Copyright © 2015 Jon Schlinkert Released under the MIT license.

align-text - Align the text in a string.

  •    Javascript

Align the text in a string. Follow this project's author, Jon Schlinkert, for updates on this project and others.


center-align - Center-align the text in a string.

  •    Javascript

Center-align the text in a string. If expected width is not provided, the length of the longest line will be used.

mouse-event - Cross browser mouse event property access

  •    Javascript

Provides a normalized, cross-browser, garbage-collection-free API for reading out the state of a mouse event. Because it is 2015 and somehow every major browser still disagrees on even the most basic details of MouseEvents. Seriously guys.

inorder-tree-layout - Index calculations for balanced binary search trees in in-order layout

  •    Javascript

Operations on nodes for balanced binary trees stored in in-order layout. These are useful if you are building data structures, like binary search trees, implicitly (ie not storing pointers to subtrees). Returns the index of the root of a tree of size n.

vue-simple-context-menu - 📌 Simple context-menu component built for Vue

  •    Vue

Simple context-menu component built for Vue. Works well with both left and right clicks. Nothing too fancy, just works and is simple to use. Just a simple little menu to be shown where a click happens - closes after use automatically by clicking an option or outside of the menu. Multiple menus are supported - just make sure to use a unique string as your id prop value.