Methods
Elementのid名をキャメルケースに変換して関数を実行
例) font-select => changeFontSelectがコールされる
valueはstringで渡すので、コール先の関数内で変換とバリデーションを行う必要があるConvert Element's id name to CamelCase and execute function e.g.) font-select => changeFontSelect is called Since value is passed as a string, conversion and validation must be performed in the calling function
Name Type Description name
string value
string | number | Event Returns:
Type Description * Inputタグでの編集終了関数
End-of-edit function on Input tagName Type Description event
Event | KeyboardEvent Returns:
Type Description void Inputにフォーカスされた時に変数を初期化する
Initialize variables when Input is focusedReturns:
Type Description void Inputにフォーカス終了した時にロックを解放する
Release lock when focus ends on InputReturns:
Type Description void 数値のInputElementの場合はマウスで値を変更可能
状態に合わせてカーソルや変数を初期化する
For numeric InputElement, values can be changed with the mouse
Initialize cursors and variables according to stateName Type Description event
MouseEvent Returns:
Type Description void マウスで数値の加算減算を行う
Add and subtract numbers with the mouseName Type Description event
MouseEvent Returns:
Type Description void Inputが数値の場合マウス動作終了関数
Mouse operation end function if Input is numericName Type Description event
MouseEvent Returns:
Type Description void Inputが数値の場合マウス動作で加算減算できればカーソルを変化させる
If Input is a number, the cursor is changed if it can be added and subtracted by mouse movement.Name Type Description event
MouseEvent Returns:
Type Description void マウスアップで登録されたイベントを解除する
Unregister a registered event with mouse up.Returns:
Type Description void スクリーンエリアで変更があったElementを再描画
Redraw Element with changes in screen areaReturns:
Type Description void undo用にデータを内部保管する
Internal storage of data for undoReturns:
Type Description void Input Elementにイベント登録
Event registration to Input ElementName Type Description element
HTMLDivElement Returns:
Type Description void