Edit points - show, cancel

This commit is contained in:
Jindra Petřík
2022-12-31 18:28:09 +01:00
parent f31ae49d18
commit 25a9588f35
4 changed files with 123 additions and 20 deletions

View File

@@ -30,6 +30,7 @@ import com.jpexs.decompiler.flash.types.SHAPE;
import com.jpexs.decompiler.flash.types.annotations.Reserved;
import com.jpexs.decompiler.flash.types.annotations.SWFType;
import com.jpexs.decompiler.flash.types.annotations.SWFVersion;
import com.jpexs.decompiler.flash.types.shaperecords.SHAPERECORD;
import com.jpexs.helpers.ByteArrayRange;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
@@ -137,4 +138,17 @@ public class DefineMorphShape2Tag extends MorphShapeTag {
public int getShapeNum() {
return 2;
}
@Override
public void updateStartBounds() {
super.updateStartBounds();
startEdgeBounds = SHAPERECORD.getBounds(startEdges.shapeRecords, null, getShapeNum(), true);
}
@Override
public void updateEndBounds() {
super.updateEndBounds();
endEdgeBounds = SHAPERECORD.getBounds(endEdges.shapeRecords, null, getShapeNum(), true);
}
}

View File

@@ -359,4 +359,17 @@ public abstract class MorphShapeTag extends DrawableTag {
cmse.export();
result.append(cmse.getShapeData());
}
public void updateStartBounds() {
startBounds = SHAPERECORD.getBounds(startEdges.shapeRecords, morphLineStyles.getStartLineStyles(getShapeNum()), getShapeNum(), false);
}
public void updateEndBounds() {
startBounds = SHAPERECORD.getBounds(endEdges.shapeRecords, morphLineStyles.getEndLineStyles(getShapeNum()), getShapeNum(), false);
}
public void updateBounds() {
updateStartBounds();
updateEndBounds();
}
}

View File

@@ -28,6 +28,7 @@ import com.jpexs.decompiler.flash.types.LINESTYLE;
import com.jpexs.decompiler.flash.types.LINESTYLE2;
import com.jpexs.decompiler.flash.types.LINESTYLEARRAY;
import com.jpexs.decompiler.flash.types.MATRIX;
import com.jpexs.decompiler.flash.types.MORPHLINESTYLEARRAY;
import com.jpexs.decompiler.flash.types.RECT;
import com.jpexs.decompiler.flash.types.RGB;
import com.jpexs.decompiler.flash.types.RGBA;