The ghost properties allow for creating a ghosting effect, a semitransparent duplicate of the element drawn at an offset. https://js.cytoscape.org/#style/ghost

interface Ghost {
    ghost: PropertyValueNode<"yes" | "no">;
    ghost-offset-x: PropertyValueNode<number>;
    ghost-offset-y: PropertyValueNode<number>;
    ghost-opacity: PropertyValueNode<number>;
}

Properties

ghost: PropertyValueNode<"yes" | "no">

Whether to use the ghost effect; may be yes or no.

ghost-offset-x: PropertyValueNode<number>

The horizontal offset used to position the ghost effect.

ghost-offset-y: PropertyValueNode<number>

The vertical offset used to position the ghost effect.

ghost-opacity: PropertyValueNode<number>

The opacity of the ghost effect.