質問編集履歴
4
コード
test
CHANGED
File without changes
|
test
CHANGED
@@ -12,9 +12,9 @@
|
|
12
12
|
|
13
13
|
var style = tag.refs.uploadWrapper.currentStyle || document.defaultView.getComputedStyle(tag.refs.uploadWrapper, '')
|
14
14
|
|
15
|
-
tag.
|
15
|
+
tag.canvasWidth = style.width
|
16
16
|
|
17
|
-
tag.
|
17
|
+
tag.canvasHeight = parseFloat(tag.canvasWidth) / 16 * 9 + 'px'
|
18
18
|
|
19
19
|
```
|
20
20
|
|
3
コード変更
test
CHANGED
File without changes
|
test
CHANGED
@@ -18,8 +18,8 @@
|
|
18
18
|
|
19
19
|
```
|
20
20
|
|
21
|
-
|
22
|
-
|
23
21
|
```javascript
|
24
22
|
|
25
|
-
grandParentTag.refs.canvas.getContext('2d').drawImage(this.refs.video, 0, 0, parseFloat(grandParentTag.canvasWidth), grandParentTag.canvasHeight)
|
23
|
+
grandParentTag.refs.canvas.getContext('2d').drawImage(this.refs.video, 0, 0, parseFloat(grandParentTag.canvasWidth), grandParentTag.canvasHeight)
|
24
|
+
|
25
|
+
```
|
2
コード変更
test
CHANGED
File without changes
|
test
CHANGED
@@ -18,6 +18,8 @@
|
|
18
18
|
|
19
19
|
```
|
20
20
|
|
21
|
+
|
22
|
+
|
21
23
|
```javascript
|
22
24
|
|
23
|
-
is.refs.video, 0, 0, parseFloat(grandParentTag.canvasWidth), grandParentTag.canvasHeight)```
|
25
|
+
grandParentTag.refs.canvas.getContext('2d').drawImage(this.refs.video, 0, 0, parseFloat(grandParentTag.canvasWidth), grandParentTag.canvasHeight)```
|
1
コード変更
test
CHANGED
File without changes
|
test
CHANGED
@@ -20,6 +20,4 @@
|
|
20
20
|
|
21
21
|
```javascript
|
22
22
|
|
23
|
-
|
23
|
+
is.refs.video, 0, 0, parseFloat(grandParentTag.canvasWidth), grandParentTag.canvasHeight)```
|
24
|
-
|
25
|
-
```
|