質問編集履歴
4
コード
title
CHANGED
File without changes
|
body
CHANGED
@@ -5,8 +5,8 @@
|
|
5
5
|
```
|
6
6
|
```javascript
|
7
7
|
var style = tag.refs.uploadWrapper.currentStyle || document.defaultView.getComputedStyle(tag.refs.uploadWrapper, '')
|
8
|
-
tag.
|
8
|
+
tag.canvasWidth = style.width
|
9
|
-
tag.
|
9
|
+
tag.canvasHeight = parseFloat(tag.canvasWidth) / 16 * 9 + 'px'
|
10
10
|
```
|
11
11
|
```javascript
|
12
12
|
grandParentTag.refs.canvas.getContext('2d').drawImage(this.refs.video, 0, 0, parseFloat(grandParentTag.canvasWidth), grandParentTag.canvasHeight)
|
3
コード変更
title
CHANGED
File without changes
|
body
CHANGED
@@ -8,6 +8,6 @@
|
|
8
8
|
tag.refs.canvas.style.width = style.width
|
9
9
|
tag.refs.canvas.style.height = parseFloat(style.width) / 16 * 9 + 'px'
|
10
10
|
```
|
11
|
-
|
12
11
|
```javascript
|
13
|
-
grandParentTag.refs.canvas.getContext('2d').drawImage(this.refs.video, 0, 0, parseFloat(grandParentTag.canvasWidth), grandParentTag.canvasHeight)
|
12
|
+
grandParentTag.refs.canvas.getContext('2d').drawImage(this.refs.video, 0, 0, parseFloat(grandParentTag.canvasWidth), grandParentTag.canvasHeight)
|
13
|
+
```
|
2
コード変更
title
CHANGED
File without changes
|
body
CHANGED
@@ -8,5 +8,6 @@
|
|
8
8
|
tag.refs.canvas.style.width = style.width
|
9
9
|
tag.refs.canvas.style.height = parseFloat(style.width) / 16 * 9 + 'px'
|
10
10
|
```
|
11
|
+
|
11
12
|
```javascript
|
12
|
-
|
13
|
+
grandParentTag.refs.canvas.getContext('2d').drawImage(this.refs.video, 0, 0, parseFloat(grandParentTag.canvasWidth), grandParentTag.canvasHeight)```
|
1
コード変更
title
CHANGED
File without changes
|
body
CHANGED
@@ -9,5 +9,4 @@
|
|
9
9
|
tag.refs.canvas.style.height = parseFloat(style.width) / 16 * 9 + 'px'
|
10
10
|
```
|
11
11
|
```javascript
|
12
|
-
|
12
|
+
is.refs.video, 0, 0, parseFloat(grandParentTag.canvasWidth), grandParentTag.canvasHeight)```
|
13
|
-
```
|