Skip to content

Commit 7c8b4a7

Browse files
authored
Merge pull request #87 from misoca/section-report-for-pr
Add a new editor for the sectoin-report format
2 parents bf87371 + 91550db commit 7c8b4a7

199 files changed

Lines changed: 34619 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: Build and release section-report
2+
3+
on:
4+
push:
5+
tags:
6+
- '*'
7+
8+
defaults:
9+
run:
10+
working-directory: section_report
11+
12+
jobs:
13+
build:
14+
15+
runs-on: ${{ matrix.os }}
16+
17+
strategy:
18+
matrix:
19+
os: [macos-latest, ubuntu-latest, windows-latest]
20+
include:
21+
- os: macos-latest
22+
package-ext: .dmg
23+
- os: ubuntu-latest
24+
package-ext: .AppImage
25+
- os: windows-latest
26+
package-ext: .exe
27+
28+
steps:
29+
- uses: actions/checkout@v2
30+
31+
- name: Install Node.js
32+
uses: actions/setup-node@v1
33+
with:
34+
node-version: 13
35+
36+
- name: Install npm packages
37+
run: npm install
38+
39+
- name: Build package
40+
run: npm run electron:build
41+
42+
- name: Prepare package
43+
run: |
44+
mkdir package
45+
mv dist_electron/*${{ matrix.package-ext }} package/
46+
47+
- name: Release
48+
uses: softprops/action-gh-release@v1
49+
with:
50+
files: "section_report/package/**"
51+
env:
52+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Test section-report
2+
3+
on:
4+
push:
5+
paths:
6+
- 'section_report/**'
7+
pull_request:
8+
paths:
9+
- 'section_report/**'
10+
11+
defaults:
12+
run:
13+
working-directory: section_report
14+
15+
jobs:
16+
build:
17+
runs-on: ubuntu-latest
18+
strategy:
19+
matrix:
20+
node-version:
21+
- 13.x
22+
23+
steps:
24+
- uses: actions/checkout@v1
25+
- name: Use Node.js ${{ matrix.node-version }}
26+
uses: actions/setup-node@v1
27+
with:
28+
node-version: ${{ matrix.node-version }}
29+
- name: Build and test with lint
30+
run: |
31+
npm install
32+
npm run test:lint
33+
npm run build
34+
npm run test:unit

section_report/.editorconfig

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[*.{js,jsx,ts,tsx,vue}]
2+
indent_style = space
3+
indent_size = 2
4+
trim_trailing_whitespace = true
5+
insert_final_newline = true

section_report/.eslint-todo.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"rules": {
3+
"@typescript-eslint/no-non-null-assertion": "off",
4+
"@typescript-eslint/no-explicit-any": "off"
5+
}
6+
}

section_report/.eslintrc.json

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
{
2+
"root": true,
3+
"env": {
4+
"node": true
5+
},
6+
"extends": [
7+
"plugin:vue/recommended",
8+
"@vue/standard",
9+
"@vue/typescript/recommended",
10+
".eslint-todo.json"
11+
],
12+
"parserOptions": {
13+
"ecmaVersion": 2020
14+
},
15+
"overrides": [
16+
{
17+
"files": [
18+
"**/__tests__/*.{j,t}s?(x)",
19+
"**/tests/unit/**/*.spec.{j,t}s?(x)"
20+
],
21+
"env": {
22+
"jest": true
23+
}
24+
}
25+
],
26+
"rules": {
27+
"semi": ["error", "always"],
28+
"import/order": ["error", {
29+
"alphabetize": {
30+
"order": "asc"
31+
}
32+
}],
33+
"vue/component-name-in-template-casing": "error",
34+
"vue/component-tags-order": ["error", {
35+
"order": ["template", "script", "style"]
36+
}],
37+
"@typescript-eslint/no-unused-vars": ["error", {
38+
"vars": "all",
39+
"args": "all",
40+
"ignoreRestSiblings": true,
41+
"argsIgnorePattern": "^_"
42+
}]
43+
}
44+
}

section_report/.gitignore

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
/node_modules
2+
/dist
3+
4+
# local env files
5+
/.env.local
6+
/.env.*.local
7+
8+
# Log files
9+
/npm-debug.log*
10+
/yarn-debug.log*
11+
/yarn-error.log*
12+
13+
# Electron-builder output
14+
/dist_electron

section_report/.vuerc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"useTaobaoRegistry": false
3+
}

section_report/babel.config.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
module.exports = {
2+
presets: [
3+
'@vue/cli-plugin-babel/preset'
4+
]
5+
};
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Canvas Coordinate System
2+
3+
Editor の Report デザインの表示・操作は SVG によって実現されており、その中には複数の座標系が存在する。ここでは、その座標系がどのように構成されているかを説明する。
4+
5+
## 座標系の構造
6+
7+
![](images/canvas-coordinate-system.svg)
8+
([Google図形描画](https://docs.google.com/drawings/d/1FbyK6-qXtgvXg33EHN0Gleu_aycb9qZP38OzqjumhrE/edit))
9+
10+
各セクションに StackView が含まれる場合は、その StackView 及び StackViewRow の座標系も作成されることになる。
11+
12+
## 座標系の分類と呼称
13+
14+
座標系の分類・呼称を定義する。
15+
16+
### Root Coordinates
17+
18+
SVGドキュメントの座標系。「座標系の構造」の SVG(赤枠短径)。
19+
20+
### Report Coordinates
21+
22+
レポートの座標系。「座標系の構造」の Report Canvas(紫枠短径)。
23+
24+
### Canvas (Local) Coordinates
25+
26+
四角形等の各図形を描画するキャンバスの座標系。「座標系の構造」の Section Canvas 及び StackView。
27+

section_report/doc/images/canvas-coordinate-system.svg

Lines changed: 1 addition & 0 deletions
Loading

0 commit comments

Comments
 (0)