일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
- leetcode dart
- dart new 키워드
- flutter ios 폴더
- riot api dart
- 롤 api dart
- AnimationController
- 파이썬
- Architectural overview
- flutter bloc
- com.google.GIDSignIn
- docker overview
- swift 동시성
- dart new
- dart
- 파이썬 부동소수점
- PlatformException(sign_in_failed
- keychain error
- flutter
- dart.dev
- flutter statefulwidget
- generate parentheses dart
- flutter widget
- tft api dart
- valorant api dart
- swift concurrency
- lol api dart
- flutter android 폴더
- 롤토체스 api dart
- widget
- 발로란트 api dart
- Today
- Total
Coaspe
Ollim 개발기 - 2 본문
1. foreignObject tag
react-flow를 이용해 custom 인물 관계도를 만드는 과정에서 custom edge의 예제에 foreignObject를 사용하는 것이 있었다.
SVG stands for Scalable Vector Graphic. It can be used to make graphics and animations like in HTML canvas.
The <foreignObject> element of SVG includes elements from a different XML namespace. It is an extensibility point which allows user agents to offer graphical rendering features beyond those which are defined within this specification.
SVG의 확장된 것으로 생각하면 이해하기 쉬울 것 같다. width와 height를 꼭 지정해줘야 rendering이 된다.
2. firestore 구조
Collection => documents => fields
users => userEmail(string) => dateCreated(number), followers(Array<string>), following(Array<string>) writingDocID(Array<string>)
writings => userUID => poemDocID(Array<string>), scenarioDocID(Array<string>), novelDocID(Array<string>), commitTotal(Array<number>)
poem => poemUID => title(string), userUID(string), opening(string), commits(number)
commits => commitDocID(number) => contents(string)
scenario => "" => ""
novel => "" => ""
tempSave => tmpID => contents, userUID, Date, writingDocID
3. String vs String Literal
TypeScript는 기본적으로 객체의 프로퍼티를 읽을 때, string타입의 key 사용을 허용하지 않아서 이런 식으로 객체를 사용할려고 했으나 String Literal type의 key를 이용해야 한다고 한다.
https://soopdop.github.io/2020/12/01/index-signatures-in-typescript/
'Web > Project - Oliim' 카테고리의 다른 글
Ollim 개발기 7 (0) | 2022.03.25 |
---|---|
Ollim 개발기 6 (0) | 2022.03.13 |
Ollim 개발기 5 (0) | 2022.03.10 |
Ollim 개발기 4 (0) | 2022.02.17 |
Ollim 개발기 3 (0) | 2022.02.15 |