|
Module Simantics/SceneGraphWebalizerThis module is undocumented. This is a list of its definitions. addElements :: SceneGraphWebalizer -> [String] -> Double -> Double -> <Proc> ()
clearRouteGraph :: SceneGraphWebalizer -> String -> String -> <Proc> () Straightens the identified route graph node by merging away all of its route lines. The part id is not used. configureDefaultTransformations :: SceneGraphWebalizer -> Boolean -> <Proc> () Chooses whether the webalizer performs the default element transformations
itself. When this is set to connect :: SceneGraphWebalizer -> String -> String -> String -> String -> <WriteGraph> ()
connectFrom :: SceneGraphWebalizer -> String -> String -> <ReadGraph> ()
connectFromFlag :: SceneGraphWebalizer -> Double -> Double -> String -> String -> <WriteGraph> () As connectToFlag but the connection runs from the new flag to the given terminal. connectToFlag :: SceneGraphWebalizer -> Double -> Double -> String -> String -> <Proc> ()
copyElements :: SceneGraphWebalizer -> [String] -> <Proc> () Copies the identified elements to the clipboard. createSceneGraphWebalizer :: Resource -> (String -> String -> <Proc> Boolean) -> <Proc> SceneGraphWebalizer
createSceneGraphWebalizerForExperiment :: Resource -> Maybe Variable -> (String -> String -> <Proc> Boolean) -> <Proc> SceneGraphWebalizer As createSceneGraphWebalizer but also takes the variable of the experiment run the diagram is shown against. Note that the current implementation ignores that variable. cutElements :: SceneGraphWebalizer -> [String] -> <Proc> () Copies the identified elements to the clipboard and removes them from the diagram. deleteElements :: SceneGraphWebalizer -> [String] -> <WriteGraph> () Removes the identified elements from the diagram. deleteRouteGraphPart :: SceneGraphWebalizer -> String -> String -> <Proc> () Removes the identified part of the identified route graph node: a route line is merged away and a corner is deleted. Terminals cannot be removed this way. diagramOfSGW :: SceneGraphWebalizer -> Resource Returns the diagram resource the webalizer was created for. disposeSceneGraphWebalizer :: SceneGraphWebalizer -> <Proc> () Sends a elementIdToElement :: SceneGraphWebalizer -> String -> <ReadGraph> Maybe Resource Returns the diagram element resource that the given element id refers to,
or flipElements :: SceneGraphWebalizer -> [String] -> Boolean -> <WriteGraph> () Mirrors the identified elements, around the y axis if the flag is modifyRouteGraph :: SceneGraphWebalizer -> String -> String -> Double -> Double -> <Proc> ()
modifyText :: SceneGraphWebalizer -> String -> String -> <Proc> Maybe (String, Maybe String)
moveElementsDown :: SceneGraphWebalizer -> [String] -> <Proc> () Lowers the identified elements by one step in the z order of the diagram. moveElementsToBottom :: SceneGraphWebalizer -> [String] -> <Proc> () Lowers the identified elements below all other elements of the diagram. moveElementsToTop :: SceneGraphWebalizer -> [String] -> <Proc> () Raises the identified elements above all other elements of the diagram. moveElementsUp :: SceneGraphWebalizer -> [String] -> <Proc> () Raises the identified elements by one step in the z order of the diagram. pasteElements :: SceneGraphWebalizer -> Double -> Double -> <Proc> () Pastes the contents of the clipboard onto the
diagram at the position resetClientState :: SceneGraphWebalizer -> <Proc> () Forgets everything the client is known to have received. The complete scene graph is sent again on the next repaint. Use this when the client has lost its state, for instance after reconnecting. rotateElements :: SceneGraphWebalizer -> [String] -> Boolean -> <WriteGraph> () Rotates the identified elements by 90 degrees around the center of mass of
the selection, clockwise if the flag is splitRouteGraphPart :: SceneGraphWebalizer -> String -> String -> Double -> <Proc> ()
transformElements :: SceneGraphWebalizer -> [(String, [Double])] -> <WriteGraph> () Replaces the transform of each identified element with the given affine
transform, whose six numbers are translateElements :: SceneGraphWebalizer -> [String] -> Double -> Double -> <WriteGraph> ()
webalizerContext :: SceneGraphWebalizer -> <Proc> Maybe ICanvasContext Returns the canvas context the webalizer paints the diagram into, or
webalizerScenegraphProvider :: SceneGraphWebalizer -> <Proc> Maybe ICanvasSceneGraphProvider Returns the scene graph provider that loaded the diagram, or |