TypeScript で記述され、Webpack + ts-loader を用いて ES3 相当のスクリプトに変更しています1。
yarn # Install dependencies
yarn dev # Develop
yarn build # Build
- Babel が出力するソースコードを Illustrator のインタプリタが解釈できないため、必要に応じて Polyfill を
./src/polyfill.ts
に手動で記述しています。 - 三項演算子を入れ子で使用すると、適切に処理されない場合があります。
- Adobe Illustrator 2022 Scripting Reference: JavaScript
- Requirements for Japanese Text Layout 日本語組版処理の要件(日本語版)
Footnotes
-
Adobe Illustrator に搭載されているインタプリタは、ECMAScript 3 に相当する JavaScript を解釈します。 ↩