[](https://travis-ci.org/atom/electron)
[](https://david-dm.org/atom/electron#info=devDependencies)
+[](http://atom-slack.herokuapp.com/)
### [Electron](https://github.com/atom/electron/) 한국어 참조문서
## 참조문서
[docs](https://github.com/atom/electron/tree/master/docs/README-ko.md) 에 프레임워크 사용 가이드와 API 레퍼런스가 있습니다.
-추가적으로 Electron을 빌드 하는 방법과 프로젝트에 기여하는 방법도 문서에 포함되어 있으니 참고하기 바랍니다.
+추가적으로 Electron을 빌드 하는 방법과 프로젝트에 기여하는 방법이 문서에 포함되어 있으니 참고하시기 바랍니다.
## 커뮤니티
# 크롬 Command-Line 스위치 지원
-The following command lines switches in Chrome browser are also supported in
-Electron, you can use [app.commandLine.appendSwitch][append-switch] to append
-them in your app's main script before the [ready][ready] event of [app][app]
-module is emitted:
+다음 Command-Line 스위치들은 크롬 브라우저에서 제공되는 추가 옵션이며 Electron에서도 지원합니다.
+[app][app]의 [ready][ready]이벤트가 작동하기 전에 [app.commandLine.appendSwitch][append-switch] API를 사용하면
+어플리케이션 내부에서 스위치들을 추가할 수 있습니다:
```javascript
var app = require('app');
## --client-certificate=`path`
-Sets `path` of client certificate file.
+`path`를 클라이언트 인증서로 설정합니다.
## --ignore-connections-limit=`domains`
-Ignore the connections limit for `domains` list seperated by `,`.
+`domains` 리스트(`,`로 구분)의 연결 제한을 무시합니다.
## --disable-http-cache
-Disables the disk cache for HTTP requests.
+HTTP 요청 캐시를 비활성화 합니다.
## --remote-debugging-port=`port`
-Enables remote debug over HTTP on the specified `port`.
+지정한 `port`에 HTTP기반의 리모트 디버거를 활성화 시킵니다. (개발자 콘솔)
## --proxy-server=`address:port`
-Uses a specified proxy server, overrides system settings. This switch only
-affects HTTP and HTTPS requests.
+시스템 설정의 프록시 서버를 무시하고 지정한 서버로 연결합니다. HTTP와 HTTPS 요청에만 적용됩니다.
## --no-proxy-server
-Don't use a proxy server, always make direct connections. Overrides any other
-proxy server flags that are passed.
+프록시 서버를 사용하지 않습니다. 다른 프록시 서버 플래그 및 설정을 무시하고 언제나 직접 연결을 사용합니다.
## --host-rules=`rules`
-Comma-separated list of `rules` that control how hostnames are mapped.
+Hostname 맵핑 규칙을 설정합니다. (`,`로 분리)
-For example:
+예시:
* `MAP * 127.0.0.1` Forces all hostnames to be mapped to 127.0.0.1
* `MAP *.google.com proxy` Forces all google.com subdomains to be resolved to
## --host-resolver-rules=`rules`
-Like `--host-rules` but these `rules` only apply to the host resolver.
+`--host-rules` 플래그와 비슷하지만 이 플래그는 host resolver에만 적용됩니다.
[app]: app-ko.md
[append-switch]: app-ko.md#appcommandlineappendswitchswitch-value
## --ignore-certificate-errors
-Ignores certificate related errors.
+인증서 에러를 무시합니다.
## --ppapi-flash-path=`path`
-Sets `path` of pepper flash plugin.
+Pepper 플래시 플러그인의 위치를 설정합니다.
## --ppapi-flash-version=`version`
-Sets `version` of pepper flash plugin.
+Pepper 플래시 플러그인의 버전을 설정합니다.
## --log-net-log=`path`
-Enables saving net log events and writes them to `path`.
+Net log 이벤트를 지정한 `path`에 로그로 기록합니다.
## --v=`log_level`
-Gives the default maximal active V-logging level; 0 is the default. Normally
-positive values are used for V-logging levels.
+기본 V-logging 최대 활성화 레벨을 지정합니다. 기본값은 0입니다. 기본적으로 양수를 레벨로 사용합니다.
-Passing `--v=-1` will disable logging.
+`--v=-1`를 사용하면 로깅이 비활성화 됩니다.
## --vmodule=`pattern`
# Frameless window
-A frameless window is a window that has no chrome.
+frameless window는 테두리가 없는 윈도우 창을 말합니다.
-## Create a frameless window
-
-To create a frameless window, you only need to specify `frame` to `false` in
-[BrowserWindow](browser-window-ko.md)'s `options`:
+## Frameless window 만들기
+Frameless window를 만드려면 [BrowserWindow](browser-window-ko.md) 객체의 `options`에서 `frame` 옵션을 `false`로 지정하기만 하면됩니다:
```javascript
var BrowserWindow = require('browser-window');
var win = new BrowserWindow({ width: 800, height: 600, frame: false });
```
-## Transparent window
+## 투명한 윈도우
By setting the `transparent` option to `true`, you can also make the frameless
window transparent:
var win = new BrowserWindow({ transparent: true, frame: false });
```
-### Limitations
+### API의 한계
* You can not click through the transparent area, we are going to introduce an
API to set window shape to solve this, but currently blocked at an
drivers](https://code.google.com/p/chromium/issues/detail?id=369209) on Linux.
* On Mac the native window shadow will not show for transparent window.
-## Draggable region
+## 드래그 가능 위치 지정
By default, the frameless window is non-draggable. Apps need to specify
`-webkit-app-region: drag` in CSS to tell Electron which regions are draggable
If you're only using a custom titlebar, you also need to make buttons in
titlebar non-draggable.
-## Text selection
+## 텍스트 선택
One thing on frameless window is that the dragging behaviour may conflict with
selecting text, for example, when you drag the titlebar, you may accidentally
}
```
-## Context menu
+## 컨텍스트 메뉴
On some platforms, the draggable area would be treated as non-client frame, so
when you right click on it a system menu would be popuped. To make context menu
### NativeImage.toJpeg(quality)
-* `quality` Integer
+* `quality` Integer (0 - 100 사이의 값)
`JPEG` 이미지를 인코딩한 데이터를 [Buffer][buffer]로 반환합니다.
Returns the [BrowserWindow](browser-window-ko.md) object which this web page
belongs to.
-## remote.getCurrentWebContent()
+## remote.getCurrentWebContents()
Returns the WebContents object of this web page.
* `url` String
-제공된 외부 프로토콜 URL을 기반으로 데스크톱의 기본 프로그램으로 엽니다. (예를들어 mailto: URL은 해당 URL을 기본 메일 에이전트로 엽니다.)
+제공된 외부 프로토콜 URL을 기반으로 데스크톱의 기본 프로그램으로 엽니다. (예를 들어 mailto: URL은 해당 URL을 기본 메일 에이전트로 엽니다.)
역자주: 폴더는 'file:\\\\C:\\'와 같이 지정하여 열 수 있습니다. (`\\`로 경로를 표현한 이유는 Escape 문자열을 참고하세요.)
## shell.moveItemToTrash(fullPath)
$ ./script/bootstrap.py -v
```
+### 크로스 컴파일
+
+크로스 컴파일을 하려면 `bootstrap.py` 스크립트의 `--target_arch` 파라미터에 `arm` 또는 `ia32` 타겟 아키텍쳐를 전달하면 됩니다.
+
+```bash
+$ ./script/bootstrap.py -v --target_arch=arm
+```
+
## 빌드 하기
`Release` 와 `Debug` 두 타겟 모두 빌드 합니다:
`fs.readFile` 와 `require` 같은 Node API들을 지원하기 위해 Electron에선 `asar` 아카이브가 가상의 디렉터리 구조를 가지도록
패치했습니다. 그래서 아카이브 내부에서 리소스들을 정상적인 파일 시스템처럼 접근할 수 있습니다.
-예를들어 `/path/to`라는 경로에 `example.asar`라는 아카이브가 있다고 가정하면:
+예를 들어 `/path/to`라는 경로에 `example.asar`라는 아카이브가 있다고 가정하면:
```bash
$ asar list /path/to/example.asar
웹 페이지 내에선 아카이브 내의 파일을 `file:` 프로토콜을 사용하여 요청할 수 있습니다.
이 또한 Node API와 같이 가상 디렉터리 구조를 가집니다.
-예를들어 jQuery의 `$.get`을 사용하여 파일을 가져올 수 있습니다:
+예를 들어 jQuery의 `$.get`을 사용하여 파일을 가져올 수 있습니다:
```html
<script>
개발자 콘솔 확장기능은 간단하게 사용할 확장기능 플러그인의 소스코드를 다운로드한 후 `BrowserWindow.addDevToolsExtension` API를 이용하여
어플리케이션 내에 로드할 수 있습니다. 한가지 주의할 점은 확장기능 사용시 창이 생성될 때 마다 일일이 해당 API를 호출할 필요는 없습니다.
-예시로 [React DevTools Extension](https://github.com/facebook/react-devtools)을 사용 한다면 먼저 소스코드를 다운로드 받고:
+예시로 [React DevTools Extension](https://github.com/facebook/react-devtools)을 사용합니다.
+
+먼저 소스코드를 다운로드 받습니다:
```bash
$ cd /some-directory
require('remote').require('browser-window').addDevToolsExtension('/some-directory/react-devtools');
```
-확장기능을 unload 하려면 `BrowserWindow.removeDevToolsExtension` API를 사용하여 다음에 콘솔을 다시 열 때 해당 확장기능이 로드되지 않도록 할 수 있습니다:
+확장기능을 unload 하고 콘솔을 다시 열 때 해당 확장기능이 로드되지 않도록 하려면 `BrowserWindow.removeDevToolsExtension` API를 사용하면 됩니다:
```javascript
require('remote').require('browser-window').removeDevToolsExtension('React Developer Tools');
Node v0.11.x 버전에선 작동하지 않습니다. Electron은 내부적으로 Node v0.11.13 버전을 사용합니다. 그래서 위에서 설명한 문제가 발생합니다.
이 문제를 해결하기 위해 모듈이 Node v0.11.x 버전을 지원할 수 있도록 해야합니다.
-현재 [많은 모듈들](https://www.npmjs.org/browse/depended/nan)이 안정적으로 두 버전 모두 지원하고 있지만
-오래된 모듈의 경우 Node v0.10.x 버전만을 지원하고 있습니다.
-예를들어 [nan](https://github.com/rvagg/nan) 모듈을 사용해야 하는 경우 Node v0.11.x 버전으로 포팅 할 필요가 있습니다.
+현재 [많은 모듈들](https://www.npmjs.org/browse/depended/nan)이 안정적으로 두 버전 모두 지원하고 있지만 오래된 모듈의 경우 Node v0.10.x 버전만을 지원하고 있습니다.
+예를 들어 [nan](https://github.com/rvagg/nan) 모듈을 사용해야 하는 경우 Node v0.11.x 버전으로 포팅 할 필요가 있습니다.
## 네이티브 모듈 설치하는 방법