File tree Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 11
11
/* eslint no-bitwise: 0 */
12
12
'use strict' ;
13
13
14
- const normalizeColorObject = require ( 'normalizeColorObject' ) ; // TODO(macOS ISS#2323203)
15
14
import type { NativeOrDynamicColorType } from 'normalizeColorObject' ; // TODO(macOS ISS#2323203)
16
15
17
16
function normalizeColor (
@@ -33,6 +32,8 @@ function normalizeColor(
33
32
34
33
// [TODO(macOS ISS#2323203)
35
34
if ( typeof color === 'object' && color !== null ) {
35
+ const normalizeColorObject = require ( 'normalizeColorObject' ) ; // TODO(macOS ISS#2323203)
36
+
36
37
const normalizedColorObj = normalizeColorObject ( color ) ;
37
38
38
39
if ( normalizedColorObj !== null ) {
Original file line number Diff line number Diff line change 10
10
// [TODO(macOS ISS#2323203)
11
11
'use strict' ;
12
12
13
- const normalizeColor = require ( 'normalizeColor' ) ;
14
-
15
13
export type NativeOrDynamicColorType = {
16
14
semantic ?: string ,
17
15
dynamic ?: {
@@ -27,6 +25,8 @@ function normalizeColorObject(
27
25
// a macos semantic color
28
26
return color ;
29
27
} else if ( 'dynamic' in color && color . dynamic !== undefined ) {
28
+ const normalizeColor = require ( 'normalizeColor' ) ;
29
+
30
30
// a dynamic, appearance aware color
31
31
const dynamic = color . dynamic ;
32
32
const dynamicColor : NativeOrDynamicColorType = {
Original file line number Diff line number Diff line change 11
11
'use strict' ;
12
12
13
13
const Platform = require ( 'Platform' ) ;
14
- const processColorObject = require ( 'processColorObject' ) ; // TODO(macOS ISS#2323203)
15
14
const normalizeColor = require ( 'normalizeColor' ) ;
16
15
import type { NativeOrDynamicColorType } from 'normalizeColorObject' ; // TODO(macOS ISS#2323203)
17
16
@@ -29,6 +28,8 @@ function processColor(
29
28
}
30
29
31
30
if ( typeof int32Color === 'object' ) {
31
+ const processColorObject = require ( 'processColorObject' ) ; // TODO(macOS ISS#2323203)
32
+
32
33
const processedColorObj = processColorObject ( int32Color ) ;
33
34
34
35
if ( processedColorObj !== null ) {
You can’t perform that action at this time.
0 commit comments