Spec-Zone.ru › Sass

CalculationOperation

A binary operation that can appear in a SassCalculation.

Hierarchy

  • CalculationOperation

Implements

  • ValueObject
  • Defined in js-api-doc/value/calculation.d.ts:91
Index

Constructors

constructor

Accessors

left operator right

Methods

equals hashCode

Constructors

constructor

  • new CalculationOperation(operator: CalculationOperator, left: CalculationValue, right: CalculationValue): CalculationOperation
  • Creates a Sass CalculationOperation with the given operator, left, and right values.

    Throws

    Error if left or right are quoted SassStrings.

    Parameters

    • operator: CalculationOperator
    • left: CalculationValue
    • right: CalculationValue

    Returns CalculationOperation

    • Defined in js-api-doc/value/calculation.d.ts:97

Accessors

left

  • get left(): CalculationValue
  • Returns the operation's left field.

    Returns CalculationValue

    • Defined in js-api-doc/value/calculation.d.ts:107

operator

  • get operator(): CalculationOperator
  • Returns the operation's operator field.

    Returns CalculationOperator

    • Defined in js-api-doc/value/calculation.d.ts:104

right

  • get right(): CalculationValue
  • Returns the operation's right field.

    Returns CalculationValue

    • Defined in js-api-doc/value/calculation.d.ts:110

Methods

equals

  • equals(other: unknown): boolean
  • Parameters

    • other: unknown

    Returns boolean

    Implementation of ValueObject.equals

    • Defined in js-api-doc/value/calculation.d.ts:112

hashCode

  • hashCode(): number
  • Returns number

    Implementation of ValueObject.hashCode

    • Defined in js-api-doc/value/calculation.d.ts:114
sass
  • Compile
    • AsyncCompiler
    • Compiler
    • CompileResult
    • compile
    • compileAsync
    • compileString
    • compileStringAsync
    • initAsyncCompiler
    • initCompiler
  • Options
    • Options
    • StringOptions
    • OutputStyle
    • StringOptionsWithImporter
    • StringOptionsWithoutImporter
    • Syntax
  • Logger
    • Logger
      • silent
    • Logger
    • SourceLocation
    • SourceSpan
    • LoggerWarnOptions
  • Importer
    • NodePackageImporter
    • FileImporter
    • Importer
    • ImporterResult
  • Custom Function
    • CalculationInterpolation
    • CalculationOperation
    • SassArgumentList
    • SassBoolean
    • SassCalculation
    • SassColor
    • SassFunction
    • SassList
    • SassMap
    • SassMixin
    • SassNumber
    • SassString
    • Value
    • CalculationOperator
    • CalculationValue
    • CustomFunction
    • ListSeparator
    • sassFalse
    • sassNull
    • sassTrue
  • Other
    • Exception
    • CanonicalizeContext
    • Deprecations
    • LegacyFileOptions
    • ChannelName
    • ChannelNameHsl
    • ChannelNameHwb
    • ChannelNameLab
    • ChannelNameLch
    • ChannelNameRgb
    • ChannelNameXyz
    • ColorSpaceHsl
    • ColorSpaceHwb
    • ColorSpaceLab
    • ColorSpaceLch
    • ColorSpaceRgb
    • ColorSpaceXyz
    • GamutMapMethod
    • HueInterpolationMethod
    • KnownColorSpace
    • PolarColorSpace
    • PromiseOr
    • RectangularColorSpace
    • info
  • Legacy
    • types
      • Boolean
      • Color
      • Error
      • List
      • Map
      • Null
      • Number
      • String
    • LegacyException
    • LegacyImporterThis
    • LegacyPluginThis
    • LegacyResult
    • LegacySharedOptions
    • LegacyStringOptions
    • LegacyAsyncFunction
    • LegacyAsyncFunctionDone
    • LegacyAsyncImporter
    • LegacyFunction
    • LegacyImporter
    • LegacyImporterResult
    • LegacyOptions
    • LegacySyncFunction
    • LegacySyncImporter
    • LegacyValue
    • FALSE
    • NULL
    • TRUE
    • render
    • renderSync
  • Messages
    • Version
    • Deprecation
    • DeprecationOrId
    • DeprecationStatus
    • deprecations

© 2006–2025 the Sass team, and numerous contributors
Licensed under the MIT License.
https://sass-lang.com/documentation/js-api/classes/CalculationOperation

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API