askbot-dragon 1.3.68 → 1.3.69
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
|
@@ -888,7 +888,16 @@ export default {
|
|
|
888
888
|
that.displacement.scale = newScale;
|
|
889
889
|
// 图像应用缩放效果
|
|
890
890
|
this.pages.forEach(item =>{
|
|
891
|
-
item.dom
|
|
891
|
+
if(item.dom) {
|
|
892
|
+
item.dom.children.forEach( childDom =>{
|
|
893
|
+
if(childDom.tagName == 'CANVNS') {
|
|
894
|
+
childDom.scale(newScale,newScale)
|
|
895
|
+
} else {
|
|
896
|
+
childDom.style.transform = "scale(" + newScale + ")";
|
|
897
|
+
childDom.style.transformOrigin = "0px 0px 0px";
|
|
898
|
+
}
|
|
899
|
+
} )
|
|
900
|
+
}
|
|
892
901
|
})
|
|
893
902
|
// console.log(newScale);
|
|
894
903
|
// matrix_box.style.transform = "scale(" + newScale + ")";
|