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 | ||
---|---|---|
function | getBevelBottomHeight() | |
function | setBevelBottomHeight(value) | |
Specifies the height of the bottom bevel on a 3D shape. | ||
function | getBevelBottomType() | |
function | setBevelBottomType(value) | |
Specifies the preset bevel type for the bottom bevel on a 3D shape | ||
function | getBevelBottomWidth() | |
function | setBevelBottomWidth(value) | |
Specifies the width of the bottom bevel on a 3D shape. | ||
function | getBevelContourColor() | |
function | setBevelContourColor(value) | |
Specifies the color of the outline on a 3D shape | ||
function | getBevelContourSize() | |
function | setBevelContourSize(value) | |
Specifies the thickness of the outline on a 3D shape | ||
function | getBevelDepthColor() | |
function | setBevelDepthColor(value) | |
Specifies the extrusion color on a 3D shape | ||
function | getBevelDepthSize() | |
function | setBevelDepthSize(value) | |
Specifies the extrusion depth on a 3D shape | ||
function | getBevelLightingAngle() | |
function | setBevelLightingAngle(value) | |
Specifies the direction for lighting on a 3D shape. | ||
function | getBevelLightingType() | |
function | setBevelLightingType(value) | |
Specifies the preset type of lighting on a 3D shape | ||
function | getBevelMaterialType() | |
function | setBevelMaterialType(value) | |
Specifies the preset surface appearance on a 3D shape | ||
function | getBevelTopHeight() | |
function | setBevelTopHeight(value) | |
Specifies the height of the top bevel on a 3D shape | ||
function | getBevelTopType() | |
function | setBevelTopType(value) | |
Specifies the preset bevel type for the top bevel on a 3D shape | ||
function | getBevelTopWidth() | |
function | setBevelTopWidth(value) | |
Specifies the width of the top bevel on a 3D shape. | ||
function | getDistanceFromGround() | |
function | setDistanceFromGround(value) | |
Specifies the distance that a shape with 3D rotation properties | ||
function | getKeepTextFlat() | |
function | setKeepTextFlat(value) | |
Specifies whether 3D rotation properties apply to the text of a shape | ||
function | getPerspective() | |
function | setPerspective(value) | |
Specifies the angle of view for a shape with 3D rotation properties | ||
function | getRotationType() | |
function | setRotationType(value) | |
Specifies the type of projection of the effect properties of a shape. | ||
function | getRotationXAngle() | |
function | setRotationXAngle(value) | |
Specifies the counterclockwise rotation angle of a shape around the y-axis. | ||
function | getRotationYAngle() | |
function | setRotationYAngle(value) | |
Specifies the counterclockwise rotation angle of a shape around the x-axis | ||
function | getRotationZAngle() | |
function | setRotationZAngle(value) | |
Specifies the counterclockwise rotation angle of a shape around the z-axis. |
Method Summary | ||
---|---|---|
function | equals(obj) | |
Property Getters/Setters Detail |
---|
getBevelBottomHeight/setBevelBottomHeight : DoubleValue | |
function getBevelBottomHeight() / function setBevelBottomHeight(value) |
getBevelBottomType/setBevelBottomType : BevelType | |
function getBevelBottomType() / function setBevelBottomType(value) |
getBevelBottomWidth/setBevelBottomWidth : DoubleValue | |
function getBevelBottomWidth() / function setBevelBottomWidth(value) |
getBevelContourColor/setBevelContourColor : ColorValue | |
function getBevelContourColor() / function setBevelContourColor(value) |
getBevelContourSize/setBevelContourSize : DoubleValue | |
function getBevelContourSize() / function setBevelContourSize(value) |
getBevelDepthColor/setBevelDepthColor : ColorValue | |
function getBevelDepthColor() / function setBevelDepthColor(value) |
getBevelDepthSize/setBevelDepthSize : DoubleValue | |
function getBevelDepthSize() / function setBevelDepthSize(value) |
getBevelLightingAngle/setBevelLightingAngle : DoubleValue | |
function getBevelLightingAngle() / function setBevelLightingAngle(value) |
getBevelLightingType/setBevelLightingType : BevelLightingType | |
function getBevelLightingType() / function setBevelLightingType(value) |
getBevelMaterialType/setBevelMaterialType : BevelMaterialType | |
function getBevelMaterialType() / function setBevelMaterialType(value) |
getBevelTopHeight/setBevelTopHeight : DoubleValue | |
function getBevelTopHeight() / function setBevelTopHeight(value) |
getBevelTopWidth/setBevelTopWidth : DoubleValue | |
function getBevelTopWidth() / function setBevelTopWidth(value) |
getBevelTopType/setBevelTopType : BevelType | |
function getBevelTopType() / function setBevelTopType(value) |
getDistanceFromGround/setDistanceFromGround : DoubleValue | |
function getDistanceFromGround() / function setDistanceFromGround(value) |
getPerspective/setPerspective : DoubleValue | |
function getPerspective() / function setPerspective(value) |
getRotationType/setRotationType : RotationType | |
function getRotationType() / function setRotationType(value) |
getRotationXAngle/setRotationXAngle : DoubleValue | |
function getRotationXAngle() / function setRotationXAngle(value) |
getRotationYAngle/setRotationYAngle : DoubleValue | |
function getRotationYAngle() / function setRotationYAngle(value) |
getRotationZAngle/setRotationZAngle : DoubleValue | |
function getRotationZAngle() / function setRotationZAngle(value) |
getKeepTextFlat/setKeepTextFlat : BoolValue | |
function getKeepTextFlat() / function setKeepTextFlat(value) |
Method Detail |
---|
equals | |
function equals(obj) |
obj: Object
-