본문 바로가기

2018/0523

Cesium Viewer 화면 설정 확인 Cesium Viewer 화면 설정 확인 Viewer - Cesium Documentation 에서 자세한 내용을 확인 할 수 있습니다. animation: false import React, { Component } from "react"; import { Viewer } from "cesium"; class CesiumPage3 extends Component { componentDidMount() { this.viewer = new Viewer(this.cesiumContainer, { animation: false, }); } render() { return (this.cesiumContainer = element)} />; } } export default CesiumPage3; 좌측 하단의 애.. 2018. 5. 18.
Cesium-React 적용 Cesium-React 적용 출처: cesium-react - npm create-react-app react 프로젝트 생성 create-react-app cesium-react-test cd cesium-react-test yarn eject yarn install 모듈 설치 cesium cesium-react html-webpack-include-assets-plugin copy-webpack-plugin yarn add cesium cesium-react html-webpack-include-assets-plugin copy-webpack-plugin webpack.config 수정 config/webpack.config.dev.js // config/webpack.config.dev.js cons.. 2018. 5. 17.
[책] 빠른 모바일 앱 개발을 위한 React Native [책] 빠른 모바일 앱 개발을 위한 React Native 자바스크립트로 만드는 네이티브 모바일 앱 개발 가이드 바니 아이젠먼 저/이종은 역 플랫폼 API XHR은 XMLHttpRequest의 줄임말이다. XHR을 이용하여 사진을 POST로 요청하는 기본 구조 var xhr = new XMLHttpRequest(); xhr.open('POST', 'http://posttestserver.com/post.php'); var formdata = new FormData(); formdata.append('image', {...this.state.photo, name: 'image.jpg'}); xhr.send(formdata); Promise는 비동기 방식을 처리할때 사용되는 객체이다. https://deve.. 2018. 5. 16.
Amazfit Bip Font Creator 5 - 실행 파일 생성 Amazfit Bip Font Creator 5 - 실행 파일 생성 실행 파일은 pyinstaller 로 생성합니다. 먼저 pyinstaller 를 설치합니다. $ pip install pyinstaller 이 후 pyinstaller 파일명 을 입력하여 exe파일을 생성할 수 있습니다. 여기서 몇 가지 옵션을 사용합니다. $ pyinstaller --onefile --clean --windowed --icon=.\assets\font.ico Amazfit_Bip_Font_Creator.py --onefile : 하나의 파일로 생성합니다. 이 옵션이 없으면 여러개의 파일로 생성됩니다 --clean : 기존 파일들을 삭제합니다. --windowed : 윈도우창으로 실행되도록 합니다. 이 옵션이 없으면 cm.. 2018. 5. 15.
Amazfit Bip Font Creator 4 - 폰트 생성 Amazfit Bip Font Creator 4 - 폰트 생성 쓰레드 초기화가 끝났으면, font_creator_thread.start()로 run을 실행합니다. class FontCreator(QThread): # 생략 def run(self): self.set_progress_text.emit("1/2") self.create_bmp() self.set_progress_text.emit("2/2") self.pack_bmp() if self.delete_bmp: shutil.rmtree(self.bmp_dir) self.done.emit() 먼저 bmp 파일들을 생성하고 패킹하여 폰트파일을 생성합니다. create_bmp # bip_font_creator.py import os import binas.. 2018. 5. 14.
Amazfit Bip Font Creator 3 - 쓰레드 실행 Amazfit Bip Font Creator 3 - 쓰레드 실행 쓰레드 생성 # bip_font_creator.py import os import binascii import glob import shutil from PyQt5.QtCore import QThread, pyqtSignal from fontTools.ttLib import TTFont from PIL import ImageFont, ImageDraw, Image class FontCreator(QThread): set_progress_text = pyqtSignal(str) set_progress = pyqtSignal(int, int) done = pyqtSignal() def __init__(self, font_path, margin_.. 2018. 5. 13.