Commit d7898f8e authored by 罗超's avatar 罗超

修正阴影的投射坐标

parent ee97c9f8
......@@ -250,7 +250,7 @@ const getShadows = (drsh: any) => {
const distance = DrSh.Dstn.value
var angleInRadians = angle * Math.PI / 180;
const shadowColor = `rgba(${parseInt(r)},${parseInt(g)},${parseInt(b)},${DrSh.Opct.value / 100})`
const x = Math.round(distance * Math.cos(angleInRadians));
const x = -Math.round(distance * Math.cos(angleInRadians));
const y = Math.round(distance * Math.sin(angleInRadians));
let result: PPTElementShadow = {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment