From ecdbf93af6cdf4c2b6225e9a5b18294a6fc817d0 Mon Sep 17 00:00:00 2001 From: Kohei Futatsuka Date: Fri, 19 Nov 2021 10:32:12 +0900 Subject: [PATCH 1/3] update readme --- README.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 8d04367..4ef6fbd 100644 --- a/README.md +++ b/README.md @@ -2,12 +2,16 @@ [![npm version](https://badge.fury.io/js/@cynack%2Ffigni-viewer.svg)](https://badge.fury.io/js/@cynack%2Ffigni-viewer) +## ドキュメント + +[figni-viewer document](https://cynack.notion.site/figni-viewer-e5f236458b9d4c889d4d57f7bcbce862) + ## 開発方法 1. `npm install`で必要なパッケージをダウンロードする -2. src/のファイルを編集(index.htmlはテスト用のhtmlファイル) +2. src/のファイルを編集(index.html はテスト用の html ファイル) 3. `npm run watch`で test/にテスト用のファイルを出力し、`npm run test`でサーバーを起動して検証 -4. `npm run build`でdist/にビルド +4. `npm run build`で dist/にビルド ## 便利コマンド From a4ce4412029fb58a69be02b819d7e7401e659cd3 Mon Sep 17 00:00:00 2001 From: Kohei Futatsuka Date: Fri, 19 Nov 2021 10:32:21 +0900 Subject: [PATCH 2/3] fix ga --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 81a8924..6ee625f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -25,7 +25,7 @@ jobs: npm publish --access public env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} - VERSION: ${{ env.GITHUB_SHA }} + VERSION: ${{ github.sha }} - name: slack notification on success if: ${{ success() }} uses: rtCamp/action-slack-notify@v2 From aa5fa5c7db4d70c392fb45106d17d02d88a430b2 Mon Sep 17 00:00:00 2001 From: Kohei Futatsuka Date: Fri, 19 Nov 2021 12:11:26 +0900 Subject: [PATCH 3/3] add version header --- index.html | 4 ++++ package.json | 2 +- src/index.js | 3 ++- webpack.config.js | 1 + 4 files changed, 8 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index b5fb2f4..beff238 100644 --- a/index.html +++ b/index.html @@ -4,6 +4,10 @@ Figni Viewer Sample +
diff --git a/package.json b/package.json index 7f877c3..e463d70 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@cynack/figni-viewer", - "version": "0.0.13", + "version": "0.0.14", "description": "", "main": "./dist/figni-viewer.min.js", "files": [ diff --git a/src/index.js b/src/index.js index 8c05693..0a1214f 100644 --- a/src/index.js +++ b/src/index.js @@ -46,6 +46,7 @@ class FigniViewerElement extends ModelViewerElement { this.arScale = 'fixed' this.arPlacement = 'floor' this.interactionPrompt = 'none' + this.shadowIntensity = 1 this.initCameraTarget = this.getAttribute('target') || this.initCameraTarget this.initCameraOrbit = this.getAttribute('orbit') || this.initCameraOrbit this.state = this.getAttribute('state') || this.state @@ -362,7 +363,7 @@ class FigniViewerElement extends ModelViewerElement { headers: { accept: 'application/json', 'X-Figni-Client-Token': this.token, - // 'X-Figni-Client-Version': VERSION, + 'X-Figni-Client-Version': VERSION, }, } ) diff --git a/webpack.config.js b/webpack.config.js index ba2b76a..1ebe537 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -62,6 +62,7 @@ module.exports = () => { plugins: config.plugins.concat([ new HtmlWebpackPlugin({ template: 'index.html', + hash: true, }), ]), })