Updated Branches: refs/heads/master fe896d352 -> 338f98c00
[#1067] Fix generator parse token errors. Project: http://git-wip-us.apache.org/repos/asf/incubator-cordova-docs/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-cordova-docs/commit/338f98c0 Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-docs/tree/338f98c0 Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-docs/diff/338f98c0 Branch: refs/heads/master Commit: 338f98c00b956964d5760a681edc5849d4b880d5 Parents: fe896d3 Author: Michael Brooks <[email protected]> Authored: Mon Jul 16 08:52:33 2012 -0700 Committer: Michael Brooks <[email protected]> Committed: Mon Jul 16 08:52:33 2012 -0700 ---------------------------------------------------------------------- docs/jp/1.8.1/config.json | 2 +- .../1.8.1/cordova/camera/CameraPopoverOptions.md | 71 --------------- .../camera/parameter/CameraPopoverOptions.md | 71 +++++++++++++++ 3 files changed, 72 insertions(+), 72 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-cordova-docs/blob/338f98c0/docs/jp/1.8.1/config.json ---------------------------------------------------------------------- diff --git a/docs/jp/1.8.1/config.json b/docs/jp/1.8.1/config.json index 59dc21a..13f3f1c 100644 --- a/docs/jp/1.8.1/config.json +++ b/docs/jp/1.8.1/config.json @@ -16,7 +16,7 @@ "cordova/camera/camera.getPicture.md", "cordova/camera/parameter/cameraSuccess.md", "cordova/camera/parameter/cameraError.md", - "cordova/camera/parameter/cameraOptions.md" + "cordova/camera/parameter/cameraOptions.md", "cordova/camera/parameter/cameraPopoverOptions.md" ], "capture.md": [ http://git-wip-us.apache.org/repos/asf/incubator-cordova-docs/blob/338f98c0/docs/jp/1.8.1/cordova/camera/CameraPopoverOptions.md ---------------------------------------------------------------------- diff --git a/docs/jp/1.8.1/cordova/camera/CameraPopoverOptions.md b/docs/jp/1.8.1/cordova/camera/CameraPopoverOptions.md deleted file mode 100644 index 6a329d5..0000000 --- a/docs/jp/1.8.1/cordova/camera/CameraPopoverOptions.md +++ /dev/null @@ -1,71 +0,0 @@ ---- -license: Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. ---- - -CameraPopoverOptions -==================== - -ç»åãã©ã¤ãã©ãªã¼ãããã¯ã¢ã«ãã ãã鏿ããéã®ã iPad ã§ã®ããããªã¼ãã¼ã®ä½ç½®ãç¢å°ã®åããæå®ããããã®ãã©ã¡ã¼ã¿ã¼ã§ãã iOS ã®ã¿ã®ãªãã·ã§ã³ã§ãã - - { x : 0, - y : 32, - width : 320, - height : 480, - arrowDir : Camera.PopoverArrowDirection.ARROW_ANY - }; - -CameraPopoverOptions --------------------- - -- __x:__ ããããªã¼ãã¼ã® x 座æ¨ããã¯ã»ã«ã§è¡¨ãã¾ãã (`Number`) - -- __y:__ ããããªã¼ãã¼ã® y 座æ¨ããã¯ã»ã«ã§è¡¨ãã¾ãã (`Number`) - -- __width:__ ããããªã¼ãã¼ã®å¹ ããã¯ã»ã«ã§è¡¨ãã¾ãã (`Number`) - -- __height:__ ããããªã¼ãã¼ã®é«ãããã¯ã»ã«ã§è¡¨ãã¾ãã (`Number`) - -- __arrowDir:__ ããããªã¼ãã¼ã®ç¢å°ã®åãã表ãã¾ãã Camera.PopoverArrowDirection ã§å®ç¾©ããã¾ãã (`Number`) - - Camera.PopoverArrowDirection = { - ARROW_UP : 1, // iOS ã® UIPopoverArrowDirection 宿°ã«åã - ARROW_DOWN : 2, - ARROW_LEFT : 4, - ARROW_RIGHT : 8, - ARROW_ANY : 15 - }; - -ããããªã¼ãã¼ã®ãµã¤ãºã¯ç¢å°ã®æ¹åãç»é¢ã®åãã«ãã£ã¦èª¿ç¯ãããå¤ããå¯è½æ§ããããã¨ã«ã¤ãã¦æ³¨æãã¦ãã ãããã¢ã³ã«ã¼è¦ç´ ã®ä½ç½®ãç¹å®ããã¨ããç»é¢ã®åãã®å¤åãèæ ®ã«å ¥ãããã¨ãå¿ããªãã§ä¸ããã - -使ç¨ä¾ -------------- - - var popover = new CameraPopoverOptions(300,300,100,100,Camera.PopoverArrowDirection.ARROW_ANY); - var options = { quality: 50, destinationType: Camera.DestinationType.DATA_URL,sourceType: Camera.PictureSource.SAVEDPHOTOALBUM, popoverOptions : popover }; - - navigator.camera.getPicture(onSuccess, onFail, options); - - function onSuccess(imageData) { - var image = document.getElementById('myImage'); - image.src = "data:image/jpeg;base64," + imageData; - } - - function onFail(message) { - alert('Failed because: ' + message); - } - http://git-wip-us.apache.org/repos/asf/incubator-cordova-docs/blob/338f98c0/docs/jp/1.8.1/cordova/camera/parameter/CameraPopoverOptions.md ---------------------------------------------------------------------- diff --git a/docs/jp/1.8.1/cordova/camera/parameter/CameraPopoverOptions.md b/docs/jp/1.8.1/cordova/camera/parameter/CameraPopoverOptions.md new file mode 100644 index 0000000..6a329d5 --- /dev/null +++ b/docs/jp/1.8.1/cordova/camera/parameter/CameraPopoverOptions.md @@ -0,0 +1,71 @@ +--- +license: Licensed to the Apache Software Foundation (ASF) under one + or more contributor license agreements. See the NOTICE file + distributed with this work for additional information + regarding copyright ownership. The ASF licenses this file + to you under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance + with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, + software distributed under the License is distributed on an + "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + KIND, either express or implied. See the License for the + specific language governing permissions and limitations + under the License. +--- + +CameraPopoverOptions +==================== + +ç»åãã©ã¤ãã©ãªã¼ãããã¯ã¢ã«ãã ãã鏿ããéã®ã iPad ã§ã®ããããªã¼ãã¼ã®ä½ç½®ãç¢å°ã®åããæå®ããããã®ãã©ã¡ã¼ã¿ã¼ã§ãã iOS ã®ã¿ã®ãªãã·ã§ã³ã§ãã + + { x : 0, + y : 32, + width : 320, + height : 480, + arrowDir : Camera.PopoverArrowDirection.ARROW_ANY + }; + +CameraPopoverOptions +-------------------- + +- __x:__ ããããªã¼ãã¼ã® x 座æ¨ããã¯ã»ã«ã§è¡¨ãã¾ãã (`Number`) + +- __y:__ ããããªã¼ãã¼ã® y 座æ¨ããã¯ã»ã«ã§è¡¨ãã¾ãã (`Number`) + +- __width:__ ããããªã¼ãã¼ã®å¹ ããã¯ã»ã«ã§è¡¨ãã¾ãã (`Number`) + +- __height:__ ããããªã¼ãã¼ã®é«ãããã¯ã»ã«ã§è¡¨ãã¾ãã (`Number`) + +- __arrowDir:__ ããããªã¼ãã¼ã®ç¢å°ã®åãã表ãã¾ãã Camera.PopoverArrowDirection ã§å®ç¾©ããã¾ãã (`Number`) + + Camera.PopoverArrowDirection = { + ARROW_UP : 1, // iOS ã® UIPopoverArrowDirection 宿°ã«åã + ARROW_DOWN : 2, + ARROW_LEFT : 4, + ARROW_RIGHT : 8, + ARROW_ANY : 15 + }; + +ããããªã¼ãã¼ã®ãµã¤ãºã¯ç¢å°ã®æ¹åãç»é¢ã®åãã«ãã£ã¦èª¿ç¯ãããå¤ããå¯è½æ§ããããã¨ã«ã¤ãã¦æ³¨æãã¦ãã ãããã¢ã³ã«ã¼è¦ç´ ã®ä½ç½®ãç¹å®ããã¨ããç»é¢ã®åãã®å¤åãèæ ®ã«å ¥ãããã¨ãå¿ããªãã§ä¸ããã + +使ç¨ä¾ +------------- + + var popover = new CameraPopoverOptions(300,300,100,100,Camera.PopoverArrowDirection.ARROW_ANY); + var options = { quality: 50, destinationType: Camera.DestinationType.DATA_URL,sourceType: Camera.PictureSource.SAVEDPHOTOALBUM, popoverOptions : popover }; + + navigator.camera.getPicture(onSuccess, onFail, options); + + function onSuccess(imageData) { + var image = document.getElementById('myImage'); + image.src = "data:image/jpeg;base64," + imageData; + } + + function onFail(message) { + alert('Failed because: ' + message); + } +
