Skip to content

Commit

Permalink
Merge branch 'release/v0.3.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
Twilyze committed Apr 14, 2018
2 parents b65cdce + 06c4c9d commit f3a3018
Show file tree
Hide file tree
Showing 19 changed files with 784 additions and 877 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
### 0.3.0 - 2018/04/15
- change メモリリークを解消するためにスクリプトの動作を常駐(palette)から一回だけ(dialog)に変更
- change リザルトの時間表示をミリ秒に変更

### 0.2.0 - 2018/04/14
- update 4分木空間分割による連結処理の高速化
- add 公開ファイルに非圧縮のjsxを追加
Expand Down
10 changes: 2 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,10 @@ MergeOpenPath
[Win] "Program Files/Adobe/Adobe Illustrator (バージョン名)/プリセット/ja_JP/スクリプト"
[Mac] "アプリケーション/Adobe Illustrator (バージョン名)/プリセット/ja_JP/スクリプト"

スクリプトを起動したら連結したいパスを選択して実行します
連結したいパスを選択してからスクリプトを起動し実行します

### 詳しい説明
そのうち


## メモリリークについて
バージョン0.1.0, 0.2.0ではスクリプトを実行する毎に一部メモリを確保したまま解放できない問題があります。
選択したパスの数にもよりますが、実行する毎にスクリプトの動作が遅くなるなどの影響が出ます。
確保されたメモリはIllustratorを終了すると解放されます。
[はてなブログ](https://twilyze.hatenablog.jp/entry/merge-open-path-jsx)


## 注意
Expand Down
14 changes: 6 additions & 8 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,8 @@ const TARGET = 'illustrator';
const CREATED_YEAR = '2018';
const SOURCE_PATH = [
'src/settings.js',
'src/bridge/header.js',
'src/bridge/_*.js',
'src/bridge/bridge.js',
'src/bridge/footer.js',
'src/_*.js',
'src/main.js'
'src/main.js',
];
const OUTPUT_NAME = pkg.name;
const COPY_FILE = ['LICENSE', 'README.md'];
Expand Down Expand Up @@ -51,17 +47,18 @@ const banner = [
'<%= pkg.licenseURL %>',
'*/',
`#target ${TARGET};`,
`#targetengine ${pkg.name};`,
''
].join('\n');

const embedCodeHeader = [
'(function() {',
`var SCRIPT_TITLE = '${pkg.name}';`,
`var SCRIPT_TARGET = '${TARGET}';`,
`var SCRIPT_VERSION = '${pkg.version}';`,
'\n'
''
].join('\n');

const embedCodeFooter = '}());\n';


//----------------------
// 出力タスク
Expand All @@ -73,6 +70,7 @@ function compileJSX(dir, isDev, isMinify) {
}))
.pipe($.concat(OUTPUT_NAME))
.pipe($.header(embedCodeHeader))
.pipe($.footer(embedCodeFooter))
.pipe($.eslint({useEslintrc: true, configFile: ESLINT_RC}))
.pipe($.eslint.format('stylish'))
.pipe($.eslint.failAfterError())
Expand Down
Binary file modified image/main_window.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
75 changes: 74 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "MergeOpenPath",
"version": "0.2.0",
"version": "0.3.0",
"author": "Twilyze",
"license": "MIT",
"url": "https://github.com/twilyze/Illustrator-MergeOpenPath",
Expand All @@ -15,6 +15,7 @@
"gulp-concat": "2.6.1",
"gulp-cr-lf-replace": "0.0.4",
"gulp-eslint": "4.0.2",
"gulp-footer": "2.0.1",
"gulp-header": "2.0.5",
"gulp-if": "2.0.2",
"gulp-load-plugins": "1.5.0",
Expand Down
Loading

0 comments on commit f3a3018

Please sign in to comment.