Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/NaitLee/kitty-printer
/ functions
Functions
97 in github.com/NaitLee/kitty-printer
⨍
Functions
97
◇
Types & classes
18
↓ 18 callers
Function
mkmodifynumber
(stuffkey: keyof StuffData, value?: string | number)
components/StuffWidget.tsx:39
↓ 13 callers
Method
send
(data: Uint8Array)
common/cat-protocol.ts:165
↓ 12 callers
Method
make
(command: Command, payload: Uint8Array, type: CommandType = CommandType.Transfer)
common/cat-protocol.ts:141
↓ 12 callers
Function
mkmodify
(stuffkey: keyof StuffData, value?: string | number)
components/StuffWidget.tsx:25
↓ 9 callers
Function
bytes
(i: number, length?: number, big_endian?: boolean)
common/cat-protocol.ts:43
↓ 6 callers
Method
setSpeed
(value: number)
common/cat-protocol.ts:217
↓ 5 callers
Method
flush
()
common/cat-protocol.ts:154
↓ 5 callers
Function
mkmodifyboolean
(stuffkey: keyof StuffData, value?: boolean)
components/StuffWidget.tsx:32
↓ 3 callers
Method
append
* Put this language as a fallback. Useful for initializing languages from like `navigator.languages` * @param lang Language code
i18nx/i18n.ts:76
↓ 3 callers
Function
delay
(msecs: number)
common/cat-protocol.ts:57
↓ 3 callers
Method
feed
(points: number)
common/cat-protocol.ts:213
↓ 3 callers
Function
mkset
(f: (value: number) => void)
components/Settings.tsx:11
↓ 3 callers
Function
properStuff
(stuff: StuffData)
islands/KittyPrinter.tsx:13
↓ 3 callers
Function
start
()
static/accessibility.js:101
↓ 3 callers
Function
useLocalStorage
(key: string, initialValue: T)
common/hooks.ts:2
↓ 2 callers
Method
add
* Initialize this language. Do this before updating/extending/using it. * @param lang Language code
i18nx/i18n.ts:61
↓ 2 callers
Method
draw
(line: Uint8Array)
common/cat-protocol.ts:172
↓ 2 callers
Method
getDeviceState
()
common/cat-protocol.ts:185
↓ 2 callers
Function
i18nReady
(f: () => void)
common/i18n.tsx:20
↓ 2 callers
Function
nextsize
(size: number)
components/StuffWidget.tsx:14
↓ 2 callers
Function
prevsize
(size: number)
components/StuffWidget.tsx:15
↓ 2 callers
Method
remove
* Don’t use this language (primarily or as fallback) anymore. Existing i18n data is untouched. * @param lang Language code
i18nx/i18n.ts:52
↓ 2 callers
Method
reset
* Reset language preference stack.
i18nx/i18n.ts:91
↓ 2 callers
Function
rotate
(before, w, h, turn)
static/image_worker.js:150
↓ 2 callers
Function
round_to
(n: number, d: number)
common/utility.ts:10
↓ 2 callers
Method
update
* Add/Update i18n data for this language. Existing strings are overwritten. * @param lang Language code * @param data JavaScript Object for
i18nx/i18n.ts:99
↓ 2 callers
Function
use_pic
(url: string)
components/StuffWidget.tsx:60
↓ 1 callers
Function
StuffWidget
(props: StuffProps)
components/StuffWidget.tsx:17
↓ 1 callers
Method
applyEnergy
()
common/cat-protocol.ts:181
↓ 1 callers
Function
crc8
(data: Uint8Array)
common/cat-protocol.ts:30
↓ 1 callers
Function
ditherAtkinson
(mono, w, h)
static/image_worker.js:119
↓ 1 callers
Function
ditherBayer
(mono, w, h)
static/image_worker.js:86
↓ 1 callers
Function
ditherHalftone
(mono, w, h)
static/image_worker.js:59
↓ 1 callers
Function
ditherSteinberg
(mono, w, h)
static/image_worker.js:41
↓ 1 callers
Function
ditherThreshold
(mono, _w, _h)
static/image_worker.js:34
↓ 1 callers
Function
dynamicManifest
()
common/dynamic-manifest.ts:4
↓ 1 callers
Method
endLattice
()
common/cat-protocol.ts:205
↓ 1 callers
Method
finish
(extra_feed: number)
common/cat-protocol.ts:243
↓ 1 callers
Function
flip
(before, w, h, mode)
static/image_worker.js:180
↓ 1 callers
Function
grayToRgba
(mono, white_as_transparent)
static/image_worker.js:24
↓ 1 callers
Function
icon
(label: keyof typeof Icons)
common/icons.tsx:83
↓ 1 callers
Function
initKeyboardShortcuts
()
static/accessibility.js:54
↓ 1 callers
Function
isHidden
(element)
static/accessibility.js:9
↓ 1 callers
Method
isNewModel
()
common/cat-protocol.ts:133
↓ 1 callers
Function
keyFromCode
(code)
static/accessibility.js:47
↓ 1 callers
Function
keyToLetter
(key)
static/accessibility.js:38
↓ 1 callers
Function
mark_keys
()
static/accessibility.js:61
↓ 1 callers
Function
mkcanvas
(width: number)
common/utility.ts:2
↓ 1 callers
Function
mknumberfmtext
Make a number formatter Extension for this language
i18nx/i18n.ts:19
↓ 1 callers
Function
mkpluralext
Make a plural selector Extension for this language
i18nx/i18n.ts:7
↓ 1 callers
Function
mktranslate
()
common/i18n.tsx:38
↓ 1 callers
Function
paste
()
components/StuffWidget.tsx:84
↓ 1 callers
Method
pend
(data: Uint8Array)
common/cat-protocol.ts:149
↓ 1 callers
Method
prepare
(speed: number, energy: number)
common/cat-protocol.ts:230
↓ 1 callers
Method
prepareCamera
()
common/cat-protocol.ts:225
↓ 1 callers
Method
retract
(points: number)
common/cat-protocol.ts:209
↓ 1 callers
Function
rgbaToBits
(data: Uint32Array)
components/Preview.tsx:27
↓ 1 callers
Function
rgbaToGray
(rgba, brightness, alpha_as_white)
static/image_worker.js:2
↓ 1 callers
Method
setDpi
(_dpi = 200)
common/cat-protocol.ts:197
↓ 1 callers
Method
setEnergy
(value: number)
common/cat-protocol.ts:221
↓ 1 callers
Method
startLattice
()
common/cat-protocol.ts:201
↓ 1 callers
Function
toLocaleKey
(key)
static/accessibility.js:27
↓ 1 callers
Function
unit_label
(dots: number)
components/Settings.tsx:12
↓ 1 callers
Method
updateDevice
()
common/cat-protocol.ts:193
↓ 1 callers
Function
updateI18nFromRequest
(request: Request)
common/i18n.tsx:75
Function
App
(req: Request, ctx: FreshContext)
routes/_app.tsx:7
Function
DynamicManifest
()
islands/DynamicManifest.tsx:6
Function
Error404
()
routes/_404.tsx:4
Function
FontSelector
(props: { class?: string, value: string, onChange: (event: Event) => void })
components/FontSelector.tsx:12
Function
GET
(request, context)
common/i18n.tsx:83
Function
Home
(request: Request)
routes/index.tsx:10
Function
KittyPrinter
(props: KittyPrinterProps)
islands/KittyPrinter.tsx:48
Function
NavBar
(props: NavProps)
islands/Nav.tsx:7
Function
Preview
(props: PrinterProps)
components/Preview.tsx:39
Function
PwaUpdate
()
islands/PwaUpdate.tsx:5
Function
StuffPreview
(props: StuffPainterProps)
components/StuffPreview.tsx:19
Method
apply_variants
(v: Variant, t: Thing, i: number)
i18nx/i18n.ts:140
Function
arrayEqual
(a: T, b: T)
components/Preview.tsx:18
Function
callback
(event: MessageEvent<ImageWorkerMessage>)
components/StuffPreview.tsx:145
Function
change_type
(event: JSX.TargetedEvent<HTMLSelectElement, Event>)
components/StuffWidget.tsx:117
Function
choose_pic
(event: Event)
components/StuffWidget.tsx:48
Method
compressOk
()
common/cat-protocol.ts:137
Method
constructor
( public model: string, public write: (command: Uint8Array) => Promise<void>,
common/cat-protocol.ts:107
Method
constructor
* Initialize i18nx class * @param use_preset_exts There are some extensions built in: plural rules, number representation, etc. Use `true` to ena
i18nx/i18n.ts:43
Method
drawPbm
(line: Uint8Array)
common/cat-protocol.ts:177
Function
en
(thing, v)
i18nx/common-extensions.ts:4
Method
extend
* Add a function for this language as an Extension. With highest priority. * @param lang Language code * @param ext An Extension
i18nx/i18n.ts:109
Method
getDeviceInfo
()
common/cat-protocol.ts:189
Function
handler
(request: Request)
routes/api/lang.ts:3
Method
holdplace
(s: string, i: number, p: string)
i18nx/i18n.ts:136
Function
notifier
(event: Event)
components/Preview.tsx:81
Method
prepend
* Put this language as the first to use. Useful for setting user language on demand. * @param lang Language code
i18nx/i18n.ts:84
Function
print
()
components/Preview.tsx:60
Function
reverseBits
(i: number)
common/cat-protocol.ts:37
Function
setValue
(value: any)
common/hooks.ts:24
Function
timestamp
()
islands/KittyPrinter.tsx:9
Method
translate
* Translate a string to certain language by priority with existing data. * @param string string to be translated * @param things arguments,
i18nx/i18n.ts:119