오픈소스
Yongku cho edited this page Oct 5, 2021
·
28 revisions
- in-browser code editor
- https://codemirror.net/
- Google Drive에서 Google 문서로 보기하면 텍스트로 변환됨
- 런타임 타임체크
- https://github.com/pelotom/runtypes
- v4 워터마크 제거:
am4core.options.commercialLicense = true
- Vue에서 번들링 최적화: https://www.amcharts.com/docs/v4/tutorials/preventing-vue-js-from-loading-external-libraries/
- c3 케이스별 성능측정
- 대용량 차트 처리. 주의! 최신 API와 가이드 API가 맞지 않음.
// subchart: {
// show: true
// },
zoom: {
enabled: true,
initialRange: [
new Date(labels[labels.length - 8]),
new Date(labels[labels.length - 1])
]
},
-
.editorconfig
- IDE의 코드 세팅을 동일하게 가져간다.
- charset, indent_style, indent_size, end_of_line 등의 옵션이 있다.
- https://github.com/mozilla/pdf.js 기반
- https://github.com/ChoDragon9/one-piece/tree/master/pdfjs-sample
- 최적화: 약 40KB 감소
// AS IS
import pdfjs, {
PDFDocumentProxy,
PDFPageProxy,
PDFPromise,
ViewportParameters
} from 'pdfjs-dist'
// TO BE
import { getDocument } from 'pdfjs-dist/lib/pdf'
import { PDFDocumentProxy, PDFPromise, PDFPageProxy } from 'pdfjs-dist'
- 폰트 미노출 현상
- 경로 로그:
Warning: Error during font loading: The CMap "baseUrl" parameter must be specified, ensure that the "cMapUrl" and "cMapPacked" API parameters are provided.
- 해결 방법: getDocument 옵션에
cMapUrl
,cMapPacked
추가
- 경로 로그:
getDocument({
url: path,
cMapUrl: 'https://cdn.jsdelivr.net/npm/pdfjs-dist@2.2.228/cmaps/',
cMapPacked: true
}).promise