TheOpenCloudEngine / uEngine5-base

uEngine5 BPMS that totally re-written in Microservices architecture. uEngine5 can act as not only a conventional Workflow or BPMS but also as a REST api orchestrator or a BPaaS (Business process as a service) of members of OCE's MSA components.
MIT License
10 stars 13 forks source link

Canvas 짤림 문제 #90

Open jinyoung opened 6 years ago

jinyoung commented 6 years ago

아래의 이미지를 보면,

image

이미 4000x4000으로 되어있음에도, 내부 svg size는 바뀌지 않음:

    me.canvas.onAddHistory(function (event) {
          console.log('userAction fired on opengraph!!');

          for (var key in me.elements) {
            me.elements[key].emitElement();
          }
          me.$emit('userAction');
          me.$nextTick(function () {
            me.canvas.setCanvasSize([4000, 4000]);

            //TODO 네비게이터의 이미지가 $nextTick 이전에 스냅샷을 따왔기 때문에, 이미 화면이 틀어져있음.
            //이를 위해서는 오픈그래프의 메소드를 오버라이드 해야한다. => updateSlider => 캔버스 사이즈 강제 고정으로.
            //me.canvas.updateNavigatior();
          })
        });