askbot-dragon 1.7.69-beta → 1.7.72-beta
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "askbot-dragon",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.72-beta",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"serve": "vue-cli-service serve",
|
|
6
6
|
"build": "vue-cli-service build",
|
|
@@ -33,6 +33,7 @@
|
|
|
33
33
|
"vue-markdown": "^2.2.4",
|
|
34
34
|
"eslint-plugin-vue": "^6.2.2",
|
|
35
35
|
"less": "^3.12.2",
|
|
36
|
+
"highlight.js": "^11.11.1",
|
|
36
37
|
"less-loader": "^7.0.2",
|
|
37
38
|
"vue-template-compiler": "^2.6.11",
|
|
38
39
|
"vue-i18n": "^8.26.4"
|
|
@@ -774,16 +774,6 @@ export default {
|
|
|
774
774
|
// Math.hypot()计算参数的平方根
|
|
775
775
|
return Math.hypot(stop.x - start.x, stop.y - start.y);
|
|
776
776
|
},
|
|
777
|
-
setupCanvas (canvas, width, height) {
|
|
778
|
-
const dpr = 1;
|
|
779
|
-
// const rect = canvas.getBoundingClientRect();
|
|
780
|
-
canvas.width = width
|
|
781
|
-
canvas.height = height
|
|
782
|
-
const ctx = canvas.getContext('2d');
|
|
783
|
-
console.log(canvas.width, canvas.height, dpr, this.scale);
|
|
784
|
-
ctx?.scale(dpr, dpr);
|
|
785
|
-
return ctx;
|
|
786
|
-
},
|
|
787
777
|
changeScale (value) {
|
|
788
778
|
if (value == 'zoom') {
|
|
789
779
|
this.handScale = 'auto'
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
<script>
|
|
42
42
|
/* eslint-disable */
|
|
43
43
|
import VueMarkdown from 'vue-markdown';
|
|
44
|
-
import ImgView from "
|
|
44
|
+
import ImgView from "./imgView";
|
|
45
45
|
// import Typed from "typed.js";
|
|
46
46
|
import hljs from 'highlight.js';
|
|
47
47
|
import 'highlight.js/styles/default.css';
|
|
@@ -801,15 +801,6 @@ export default {
|
|
|
801
801
|
// Math.hypot()计算参数的平方根
|
|
802
802
|
return Math.hypot(stop.x - start.x, stop.y - start.y);
|
|
803
803
|
},
|
|
804
|
-
setupCanvas (canvas, width, height) {
|
|
805
|
-
const dpr = 1;
|
|
806
|
-
// const rect = canvas.getBoundingClientRect();
|
|
807
|
-
canvas.width = width
|
|
808
|
-
canvas.height = height
|
|
809
|
-
const ctx = canvas.getContext('2d');
|
|
810
|
-
ctx?.scale(dpr, dpr);
|
|
811
|
-
return ctx;
|
|
812
|
-
},
|
|
813
804
|
changeScale (value) {
|
|
814
805
|
if (value == 'zoom') {
|
|
815
806
|
this.handScale = 'auto'
|