Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/ogone/src/classes/css2/Document.ts>default

Advanced Web Composition for Future
Latest
class default
implements DocumentOptions
extends Utils
import { default } from "https://deno.land/x/ogone@revb3/src/classes/css2/Document.ts";

Constructors

new
default(
text: DocumentOptions["text"],
expressions: DocumentOptions["expressions"],
typedExpressions: DocumentOptions["typedExpressions"],
)

Properties

optional
data: DocumentOptions["data"]
mapAssignedRules: Map<string, Rules>

any children rule that is saved into a variable.

mapExportableLitteralVariables: Map<string, string>

same as MapLiteralVariables but should only save the exported variables like following

mapLitteralVariables: Map<string, string>

all the variables that are not handling a selector

mapRules: Map<string, Rules>
readonly
topLevel: Rules | undefined

returns the top level rule

Methods

private
parseDocument()

main method to start parsing the document we will use all blocks expressions

render(opts: { minify?: boolean; }): string

returns a conform CSS string

use(data: DocumentOptions["data"])

all the data of the current document, will overwrite the document's data after setting the data, the document will start parsing and save all the rules inside it