Skip to the content

Kumimoji組み文字

Build crosswords from seeded English or Japanese tile bags, alone or at a shared table.

Kumimoji means assembled characters in Japanese. About the name

Contents

Reference · Rules, tiles and records

panViewfunction

The view moved by dx and dy screen pixels.

Import it

import { panView } from "@johnmorrisdotca/kumimoji";

Definition

function panView(view: View, dx: number, dy: number): View

Parameters

NameTypeDescription
viewView

The current tile size and pixel translation.

dxnumber

The horizontal pixel movement.

dynumber

The vertical pixel movement.

Returns

View

The view moved by dx and dy screen pixels.

Examples

import { panView } from "@johnmorrisdotca/kumimoji";

const view = {tile:40,x:100,y:100};
console.log(panView(view,20,10));
{ tile: 40, x: 120, y: 110 }

What it prints (run when this page was built)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/kumimoji 1.6.0.