playcanvas-typings
Version:
TypeScript declaration files for PlayCanvas game engine
16 lines (14 loc) • 494 B
TypeScript
declare namespace pc {
/**
* @function
* @name pc.createStyle
* @description Creates a <style> DOM element from a string that contains CSS
* @param {String} cssString A string that contains valid CSS
* @example
* var css = 'body {height: 100;}';
* var style = pc.createStyle(css);
* document.head.appendChild(style);
* @return {Element} The style DOM element
*/
function createStyle(cssString: string): Element;
}