細編集の要約なし |
編集の要約なし |
||
| 10行目: | 10行目: | ||
!中身とか注意事項とか | !中身とか注意事項とか | ||
|- | |- | ||
|KL.js | |KL.js<br />global.js | ||
| | |Mery組み込みオブジェクトの拡張など。 | ||
|- | |- | ||
|polyfill.js | |polyfill.js | ||
| 17行目: | 17行目: | ||
|- | |- | ||
|ArrExt.js<br />StrExt.js<br />MathExt.js | |ArrExt.js<br />StrExt.js<br />MathExt.js | ||
| | |それぞれのオブジェクトへのメソッドの追加。 | ||
|- | |- | ||
|WidePop.js | |WidePop.js | ||
| 240行目: | 240行目: | ||
|} | |} | ||
==polyfill== | ==global.js== | ||
KL名前空間下に含まれず、グローバルに確保したメソッドや変数。旧版ではKILI.jsにあったものを独立させただけ。 | |||
{| class="wikitable" | |||
|meGetLineLogical | |||
|論理座標で指定するフラグ。 | |||
|- | |||
|mePosCaret | |||
|キャレット位置で指定するフラグ。 | |||
|- | |||
|GEO | |||
|組み込みのEditorオブジェクトを取得する。 | |||
|- | |||
|GDO | |||
|組み込みのDocumentオブジェクトを取得する。 | |||
|- | |||
|GSO | |||
|組み込みのSelectionを取得する。 | |||
|- | |||
|O | |||
|OutputBar.Writeへのショートカット。 | |||
|- | |||
|RelativePath | |||
|実行中のスクリプトから相対的にファイルパスを取得する | |||
|- | |||
|} | |||
==polyfill.js== | |||
ECMAScriptにありChakraでは使用できないものの補完。 | ECMAScriptにありChakraでは使用できないものの補完。 | ||
| 327行目: | 354行目: | ||
|- | |- | ||
|} | |} | ||
==ComText.js== | |||
キャレット行の情報から条件を満たすテンプレートを取得し、文字列を作成する。 | |||
e.g | |||
<source lang="javascript" style="word-wrap:break-word;"> | |||
let os=new ComText(path,option).match(); | |||
</source> | |||
ComText.jsでは取得したテンプレートや情報を<code>options</code>のインスタンスに格納する。 | |||
デフォルトの<code>ComText.Option</code>は文字列の作成までしか行わないので、文字列の利用には別の関数に渡すか、<code>ComText.Option</code>を継承・拡張する必要がある。 | |||
==InsertOption.js== | |||
<code>ComText.Option</code>の拡張。旧版のInsetText.jsに相当する機能を追加している。 | |||
e.g | |||
<source lang="javascript" style="word-wrap:break-word;"> | |||
let os=new ComText(path,InsertOption).match(); | |||
if(os.length){ | |||
os[0].insert(); | |||
} | |||
</source> | |||
==InsetSearch.js== | |||
旧版のFillSearch.jsをComText.jsを使う形に作り直したもの。 | |||
e.g | |||
<source lang="javascript" style="word-wrap:break-word;"> | |||
let os=new InsetSearch(path,option).execute(); | |||
</source> | |||
InsetSearch.jsではoptionはデフォルトのままで、<code>ComText</code>を継承する事で処理を追加している。 | |||
=kili= | =kili= | ||
スポンサーリンク