-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Kurt Pachinger edited this page Oct 2, 2022
·
16 revisions
Welcome to the stock-meme wiki!
Create a simple design with common options such as fonts, drawing, stencils, user media, and animation presets. Clean UI is easy to customize for special events, features layout toggles, and is mobile-friendly. Uses Interact.js for UX.
- Text - upload, font-family
- Image - upload, raster, vector, links
- Icon - Font Awesome
- UI - density, dark scheme
- Keyboard shortcuts
- Trash
- Layer order
- Draw - erase / color
- Meta - link, onionskin animations, alt text
- Motion - Animate.css presets
- Render - gif output via DomToImage and GifShot
- HTTPRelay - Group draw via mcast
Initiate a Dropzone for class .ico
and Draggable interact.drag
. Add event listeners for tool labels via sm.tools.label
. Paginated FontAwesome icons.
interact
-- InteractJS
-
drag
-- drag, snap,.mcast.add
-
dropzone
-- drop, encode.mcast.LZW
,.mcast.add
-
resize
-- resize, snap,.mcast.add
mcast
-- HTTPRelay proxy mcast
-
LZW
-- compress image data formcast
using encode/decode -
add
(idx, type, opts) -- log events (excluding blacklist) to transmit viamcast
, and reproduce via.tools.set
-
log
-- event log for unique user -
post
-- POST event log tomcast
, and reset events/timestamp -
receive
(fromOldest) -- decode.mcast.LZW
log, and reproduce events using.tools.set
or appropriate -
url
-- base URI for.mcast.xhr
-
xhr
-- used by.mcast.post
and.mcast.receive
-
canvas
(el, x, y, col) -- append fillRect or clearRect, per eraser state -
click
-- propagates.stage.draw
and sets active element.edit
-
draw
-- propagates.stage.canvas
or.stage.svg
, and sets.mcast.add
-
svg
(el, x, y, col, edit) -- append path point -
type
-- textarea update or keyboard shortcut, and sets.mcast.add
-
color
-- colorize.edit.sel
by type -
file
-- input text or image files totools
. Images may usetools.fileMax
to be optimized formcast
. -
fileMax
(img) -- reduce image size to meet threshold: bytesize, dimensions. -
label
-- control ux/ui, set.mcast.add
effects: animations, asterisk omnibox, etc. -
render
(output) -- compositestage
animation via domtoimg > gifshot. Loops 1 second at 1/2 screen resolution. -
set
(el, event, val) -- set element attribute by event type and value. Detached from event invocation for replication aftermcast
.
-
stage
-- DOM element -
tools
-- DOM element -
unit
-- grid and snap