Example:
var aspose = aspose || {}; aspose.diagram = require("aspose.diagram"); diagram = new aspose.diagram.Diagram("AddingNewShape.vsdx"); // get shape by ID and page name shape = diagram.getPages().getPage("Page-1").getShapes().getShape(796); // set 3D rotation properties shape.getThreeDFormat().getRotationXAngle().setValue(2.61); shape.getThreeDFormat().getRotationYAngle().setValue(2.61); shape.getThreeDFormat().getRotationZAngle().setValue(3); shape.getThreeDFormat().getRotationType().setValue(aspose.diagram.RotationTypeValue.PARALLEL); shape.getThreeDFormat().getPerspective().setValue(0); shape.getThreeDFormat().getDistanceFromGround().setValue(0); shape.getThreeDFormat().getKeepTextFlat().setValue(aspose.diagram.BOOL.TRUE); diagram.save("out-Apply3DRotationEffects.vsdx", aspose.diagram.SaveFileFormat.VSDX);
Property Getters/Setters Summary | ||
---|---|---|
method | getBevelBottomHeight() | |
method | setBevelBottomHeight(value) | |
Specifies the height of the bottom bevel on a 3D shape. | ||
method | getBevelBottomType() | |
method | setBevelBottomType(value) | |
Specifies the preset bevel type for the bottom bevel on a 3D shape | ||
method | getBevelBottomWidth() | |
method | setBevelBottomWidth(value) | |
Specifies the width of the bottom bevel on a 3D shape. | ||
method | getBevelContourColor() | |
method | setBevelContourColor(value) | |
Specifies the color of the outline on a 3D shape | ||
method | getBevelContourSize() | |
method | setBevelContourSize(value) | |
Specifies the thickness of the outline on a 3D shape | ||
method | getBevelDepthColor() | |
method | setBevelDepthColor(value) | |
Specifies the extrusion color on a 3D shape | ||
method | getBevelDepthSize() | |
method | setBevelDepthSize(value) | |
Specifies the extrusion depth on a 3D shape | ||
method | getBevelLightingAngle() | |
method | setBevelLightingAngle(value) | |
Specifies the direction for lighting on a 3D shape. | ||
method | getBevelLightingType() | |
method | setBevelLightingType(value) | |
Specifies the preset type of lighting on a 3D shape | ||
method | getBevelMaterialType() | |
method | setBevelMaterialType(value) | |
Specifies the preset surface appearance on a 3D shape | ||
method | getBevelTopHeight() | |
method | setBevelTopHeight(value) | |
Specifies the height of the top bevel on a 3D shape | ||
method | getBevelTopType() | |
method | setBevelTopType(value) | |
Specifies the preset bevel type for the top bevel on a 3D shape | ||
method | getBevelTopWidth() | |
method | setBevelTopWidth(value) | |
Specifies the width of the top bevel on a 3D shape. | ||
method | getDistanceFromGround() | |
method | setDistanceFromGround(value) | |
Specifies the distance that a shape with 3D rotation properties | ||
method | getKeepTextFlat() | |
method | setKeepTextFlat(value) | |
Specifies whether 3D rotation properties apply to the text of a shape | ||
method | getPerspective() | |
method | setPerspective(value) | |
Specifies the angle of view for a shape with 3D rotation properties | ||
method | getRotationType() | |
method | setRotationType(value) | |
Specifies the type of projection of the effect properties of a shape. | ||
method | getRotationXAngle() | |
method | setRotationXAngle(value) | |
Specifies the counterclockwise rotation angle of a shape around the y-axis. | ||
method | getRotationYAngle() | |
method | setRotationYAngle(value) | |
Specifies the counterclockwise rotation angle of a shape around the x-axis | ||
method | getRotationZAngle() | |
method | setRotationZAngle(value) | |
Specifies the counterclockwise rotation angle of a shape around the z-axis. |
Method Summary | ||
---|---|---|
method | equals(obj) | |
DoubleValue getBevelBottomHeight() / setBevelBottomHeight(value)
BevelType getBevelBottomType() / setBevelBottomType(value)
DoubleValue getBevelBottomWidth() / setBevelBottomWidth(value)
ColorValue getBevelContourColor() / setBevelContourColor(value)
DoubleValue getBevelContourSize() / setBevelContourSize(value)
ColorValue getBevelDepthColor() / setBevelDepthColor(value)
DoubleValue getBevelDepthSize() / setBevelDepthSize(value)
DoubleValue getBevelLightingAngle() / setBevelLightingAngle(value)
BevelLightingType getBevelLightingType() / setBevelLightingType(value)
BevelMaterialType getBevelMaterialType() / setBevelMaterialType(value)
DoubleValue getBevelTopHeight() / setBevelTopHeight(value)
DoubleValue getBevelTopWidth() / setBevelTopWidth(value)
BevelType getBevelTopType() / setBevelTopType(value)
DoubleValue getDistanceFromGround() / setDistanceFromGround(value)
DoubleValue getPerspective() / setPerspective(value)
RotationType getRotationType() / setRotationType(value)
DoubleValue getRotationXAngle() / setRotationXAngle(value)
DoubleValue getRotationYAngle() / setRotationYAngle(value)
DoubleValue getRotationZAngle() / setRotationZAngle(value)
BoolValue getKeepTextFlat() / setKeepTextFlat(value)