@maxgraph/core
    Preparing search index...

    Function setPrefixedStyle

    • Adds the given style with the standard name and an optional vendor prefix for the current browser.

      styleUtils.setPrefixedStyle(node.style, 'transformOrigin', '0% 0%');
      

      WARNING: name must be written in camelCase, as in the example above.

      A kebab-case name such as transform-origin still sets the standard property, but silently skips the vendor prefixed one: the prefix is built by capitalizing the first character of name, which only yields a valid property name from a camelCase input (transformOrigin gives WebkitTransformOrigin, whereas transform-origin gives the meaningless WebkitTransform-origin).

      A CSS custom property such as --overlay-offset is set as is, and is never vendor prefixed.

      Parameters

      • style: CSSStyleDeclaration
      • name: string
      • value: string

      Returns void