sass-embedded 1.96.0-aarch64-linux-musl → 1.97.0-aarch64-linux-musl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/sass/dart-sass/src/sass.snapshot +0 -0
- data/lib/sass/embedded/version.rb +1 -1
- data/lib/sass/value/color/space/a98_rgb.rb +1 -1
- data/lib/sass/value/color/space/display_p3.rb +15 -0
- data/lib/sass/value/color/space/display_p3_linear.rb +72 -0
- data/lib/sass/value/color/space/lms.rb +1 -1
- data/lib/sass/value/color/space/prophoto_rgb.rb +1 -1
- data/lib/sass/value/color/space/rec2020.rb +1 -1
- data/lib/sass/value/color/space/srgb.rb +1 -1
- data/lib/sass/value/color/space/srgb_linear.rb +1 -1
- data/lib/sass/value/color/space/xyz_d50.rb +1 -1
- data/lib/sass/value/color/space/xyz_d65.rb +1 -1
- data/lib/sass/value/color/space.rb +3 -0
- data/lib/sass/value/color.rb +2 -0
- metadata +4 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2a005a99d83842fd3482c6cbf95d27f39d8cd48e15fcaac93d32fbc69a8f340b
|
|
4
|
+
data.tar.gz: 56fd7e47eda8af4918f65dccc70cf94ff1ed119d5e6807a10ba54082bc881aa8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6e48a1e214cc0a7091694f62e68b0d15d30d7949b110ac6b8b813cff0de0f0de933480dcce3c47179a10d5129b496c3bbb4f3789ef3b16dafbf035e40d8153e1
|
|
7
|
+
data.tar.gz: fcc3ac8aac2e989c3bf1dd444615de37a9dd04fe3ed05125005d2c93fb996c137a2f634f0fe246d5e96ccd3a39432a22811310047900142cb2458e1d69da1218
|
|
Binary file
|
|
@@ -16,6 +16,21 @@ module Sass
|
|
|
16
16
|
super('display-p3', Utils::RGB_CHANNELS)
|
|
17
17
|
end
|
|
18
18
|
|
|
19
|
+
def convert(dest, red, green, blue, alpha)
|
|
20
|
+
if dest == DISPLAY_P3_LINEAR
|
|
21
|
+
Color.send(
|
|
22
|
+
:for_space_internal,
|
|
23
|
+
dest,
|
|
24
|
+
red.nil? ? nil : to_linear(red),
|
|
25
|
+
green.nil? ? nil : to_linear(green),
|
|
26
|
+
blue.nil? ? nil : to_linear(blue),
|
|
27
|
+
alpha
|
|
28
|
+
)
|
|
29
|
+
else
|
|
30
|
+
convert_linear(dest, red, green, blue, alpha)
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
|
|
19
34
|
def to_linear(channel)
|
|
20
35
|
Utils.srgb_and_display_p3_to_linear(channel)
|
|
21
36
|
end
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Sass
|
|
4
|
+
module Value
|
|
5
|
+
class Color
|
|
6
|
+
module Space
|
|
7
|
+
# @see https://github.com/sass/dart-sass/blob/main/lib/src/value/color/space/display_p3_linear.dart
|
|
8
|
+
class DisplayP3Linear
|
|
9
|
+
include Space
|
|
10
|
+
|
|
11
|
+
def bounded?
|
|
12
|
+
true
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
def initialize
|
|
16
|
+
super('display-p3-linear', Utils::RGB_CHANNELS)
|
|
17
|
+
end
|
|
18
|
+
|
|
19
|
+
def convert(dest, red, green, blue, alpha)
|
|
20
|
+
if dest == DISPLAY_P3
|
|
21
|
+
Color.send(
|
|
22
|
+
:for_space_internal,
|
|
23
|
+
dest,
|
|
24
|
+
red.nil? ? nil : Utils.srgb_and_display_p3_from_linear(red),
|
|
25
|
+
green.nil? ? nil : Utils.srgb_and_display_p3_from_linear(green),
|
|
26
|
+
blue.nil? ? nil : Utils.srgb_and_display_p3_from_linear(blue),
|
|
27
|
+
alpha
|
|
28
|
+
)
|
|
29
|
+
else
|
|
30
|
+
super
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
def to_linear(channel)
|
|
35
|
+
channel
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
def from_linear(channel)
|
|
39
|
+
channel
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
private
|
|
43
|
+
|
|
44
|
+
def transformation_matrix(dest)
|
|
45
|
+
case dest
|
|
46
|
+
when A98_RGB
|
|
47
|
+
Conversions::LINEAR_DISPLAY_P3_TO_LINEAR_A98_RGB
|
|
48
|
+
when LMS
|
|
49
|
+
Conversions::LINEAR_DISPLAY_P3_TO_LMS
|
|
50
|
+
when PROPHOTO_RGB
|
|
51
|
+
Conversions::LINEAR_DISPLAY_P3_TO_LINEAR_PROPHOTO_RGB
|
|
52
|
+
when REC2020
|
|
53
|
+
Conversions::LINEAR_DISPLAY_P3_TO_LINEAR_REC2020
|
|
54
|
+
when RGB, SRGB, SRGB_LINEAR
|
|
55
|
+
Conversions::LINEAR_DISPLAY_P3_TO_LINEAR_SRGB
|
|
56
|
+
when XYZ_D50
|
|
57
|
+
Conversions::LINEAR_DISPLAY_P3_TO_XYZ_D50
|
|
58
|
+
when XYZ_D65
|
|
59
|
+
Conversions::LINEAR_DISPLAY_P3_TO_XYZ_D65
|
|
60
|
+
else
|
|
61
|
+
super
|
|
62
|
+
end
|
|
63
|
+
end
|
|
64
|
+
end
|
|
65
|
+
|
|
66
|
+
private_constant :DisplayP3Linear
|
|
67
|
+
|
|
68
|
+
DISPLAY_P3_LINEAR = DisplayP3Linear.new
|
|
69
|
+
end
|
|
70
|
+
end
|
|
71
|
+
end
|
|
72
|
+
end
|
|
@@ -32,7 +32,7 @@ module Sass
|
|
|
32
32
|
case dest
|
|
33
33
|
when A98_RGB
|
|
34
34
|
Conversions::LINEAR_PROPHOTO_RGB_TO_LINEAR_A98_RGB
|
|
35
|
-
when DISPLAY_P3
|
|
35
|
+
when DISPLAY_P3, DISPLAY_P3_LINEAR
|
|
36
36
|
Conversions::LINEAR_PROPHOTO_RGB_TO_LINEAR_DISPLAY_P3
|
|
37
37
|
when LMS
|
|
38
38
|
Conversions::LINEAR_PROPHOTO_RGB_TO_LMS
|
|
@@ -45,7 +45,7 @@ module Sass
|
|
|
45
45
|
case dest
|
|
46
46
|
when A98_RGB
|
|
47
47
|
Conversions::LINEAR_SRGB_TO_LINEAR_A98_RGB
|
|
48
|
-
when DISPLAY_P3
|
|
48
|
+
when DISPLAY_P3, DISPLAY_P3_LINEAR
|
|
49
49
|
Conversions::LINEAR_SRGB_TO_LINEAR_DISPLAY_P3
|
|
50
50
|
when PROPHOTO_RGB
|
|
51
51
|
Conversions::LINEAR_SRGB_TO_LINEAR_PROPHOTO_RGB
|
|
@@ -51,6 +51,8 @@ module Sass
|
|
|
51
51
|
SRGB_LINEAR
|
|
52
52
|
when 'display-p3'
|
|
53
53
|
DISPLAY_P3
|
|
54
|
+
when 'display-p3-linear'
|
|
55
|
+
DISPLAY_P3_LINEAR
|
|
54
56
|
when 'a98-rgb'
|
|
55
57
|
A98_RGB
|
|
56
58
|
when 'prophoto-rgb'
|
|
@@ -182,6 +184,7 @@ end
|
|
|
182
184
|
require_relative 'space/utils'
|
|
183
185
|
require_relative 'space/a98_rgb'
|
|
184
186
|
require_relative 'space/display_p3'
|
|
187
|
+
require_relative 'space/display_p3_linear'
|
|
185
188
|
require_relative 'space/hsl'
|
|
186
189
|
require_relative 'space/hwb'
|
|
187
190
|
require_relative 'space/lab'
|
data/lib/sass/value/color.rb
CHANGED
|
@@ -41,6 +41,7 @@ module Sass
|
|
|
41
41
|
# @overload initialize(lightness: nil, chroma: nil, hue: nil, alpha: nil, space: 'oklch')
|
|
42
42
|
# @overload initialize(red: nil, green: nil, blue: nil, alpha: nil, space: 'a98-rgb')
|
|
43
43
|
# @overload initialize(red: nil, green: nil, blue: nil, alpha: nil, space: 'display-p3')
|
|
44
|
+
# @overload initialize(red: nil, green: nil, blue: nil, alpha: nil, space: 'display-p3-linear')
|
|
44
45
|
# @overload initialize(red: nil, green: nil, blue: nil, alpha: nil, space: 'prophoto-rgb')
|
|
45
46
|
# @overload initialize(red: nil, green: nil, blue: nil, alpha: nil, space: 'rec2020')
|
|
46
47
|
# @overload initialize(red: nil, green: nil, blue: nil, alpha: nil, space: 'srgb')
|
|
@@ -193,6 +194,7 @@ module Sass
|
|
|
193
194
|
# @overload change(lightness: nil, chroma: nil, hue: nil, alpha: nil, space: 'oklch')
|
|
194
195
|
# @overload change(red: nil, green: nil, blue: nil, alpha: nil, space: 'a98-rgb')
|
|
195
196
|
# @overload change(red: nil, green: nil, blue: nil, alpha: nil, space: 'display-p3')
|
|
197
|
+
# @overload change(red: nil, green: nil, blue: nil, alpha: nil, space: 'display-p3-linear')
|
|
196
198
|
# @overload change(red: nil, green: nil, blue: nil, alpha: nil, space: 'prophoto-rgb')
|
|
197
199
|
# @overload change(red: nil, green: nil, blue: nil, alpha: nil, space: 'rec2020')
|
|
198
200
|
# @overload change(red: nil, green: nil, blue: nil, alpha: nil, space: 'srgb')
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: sass-embedded
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.97.0
|
|
5
5
|
platform: aarch64-linux-musl
|
|
6
6
|
authors:
|
|
7
7
|
- なつき
|
|
@@ -83,6 +83,7 @@ files:
|
|
|
83
83
|
- lib/sass/value/color/space.rb
|
|
84
84
|
- lib/sass/value/color/space/a98_rgb.rb
|
|
85
85
|
- lib/sass/value/color/space/display_p3.rb
|
|
86
|
+
- lib/sass/value/color/space/display_p3_linear.rb
|
|
86
87
|
- lib/sass/value/color/space/hsl.rb
|
|
87
88
|
- lib/sass/value/color/space/hwb.rb
|
|
88
89
|
- lib/sass/value/color/space/lab.rb
|
|
@@ -112,8 +113,8 @@ licenses:
|
|
|
112
113
|
- MIT
|
|
113
114
|
metadata:
|
|
114
115
|
bug_tracker_uri: https://github.com/sass-contrib/sass-embedded-host-ruby/issues
|
|
115
|
-
documentation_uri: https://rubydoc.info/gems/sass-embedded/1.
|
|
116
|
-
source_code_uri: https://github.com/sass-contrib/sass-embedded-host-ruby/tree/v1.
|
|
116
|
+
documentation_uri: https://rubydoc.info/gems/sass-embedded/1.97.0
|
|
117
|
+
source_code_uri: https://github.com/sass-contrib/sass-embedded-host-ruby/tree/v1.97.0
|
|
117
118
|
funding_uri: https://github.com/sponsors/ntkme
|
|
118
119
|
rubygems_mfa_required: 'true'
|
|
119
120
|
rdoc_options: []
|