@@ -18,7 +18,7 @@ import Node from '../../../scenery/js/nodes/Node.js';
18
18
import Path from '../../../scenery/js/nodes/Path.js' ;
19
19
import Color from '../../../scenery/js/util/Color.js' ;
20
20
import LinearGradient from '../../../scenery/js/util/LinearGradient.js' ;
21
- import { rasterized } from '../../../scenery/js/util/rasterized .js' ;
21
+ import { rasterizeNode } from '../../../scenery/js/util/rasterizeNode .js' ;
22
22
import type Tandem from '../../../tandem/js/Tandem.js' ;
23
23
import CCKCConstants from '../CCKCConstants.js' ;
24
24
import circuitConstructionKitCommon from '../circuitConstructionKitCommon.js' ;
@@ -40,13 +40,13 @@ const MATRIX = new Matrix3(); // The Matrix entries are mutable
40
40
const WIRE_RASTER_LENGTH = 100 ;
41
41
42
42
// Node used to render the black line for schematic, rasterized so it can render with WebGL
43
- const BLACK_LINE_NODE = rasterized ( new Line ( 0 , 0 , WIRE_RASTER_LENGTH , 0 , {
43
+ const BLACK_LINE_NODE = rasterizeNode ( new Line ( 0 , 0 , WIRE_RASTER_LENGTH , 0 , {
44
44
lineWidth : SCHEMATIC_LINE_WIDTH ,
45
45
stroke : Color . BLACK
46
46
} ) , { wrap : false } ) ;
47
47
48
48
// Not displayed, used to get accurate hit bounds for the schematic view.
49
- const SCHEMATIC_BACKGROUND = rasterized ( new Line ( 0 , 0 , WIRE_RASTER_LENGTH , 0 , {
49
+ const SCHEMATIC_BACKGROUND = rasterizeNode ( new Line ( 0 , 0 , WIRE_RASTER_LENGTH , 0 , {
50
50
lineWidth : LIFELIKE_LINE_WIDTH ,
51
51
stroke : Color . BLUE ,
52
52
opacity : 0.0
@@ -76,23 +76,23 @@ const colorStops = [
76
76
const normalGradient = createGradient ( colorStops , _ . identity ) ;
77
77
const reverseGradient = createGradient ( colorStops . reverse ( ) , ( e : number ) => 1.0 - e ) ;
78
78
79
- const lifelikeNodeNormal = rasterized ( new Line ( 0 , 0 , WIRE_RASTER_LENGTH , 0 , {
79
+ const lifelikeNodeNormal = rasterizeNode ( new Line ( 0 , 0 , WIRE_RASTER_LENGTH , 0 , {
80
80
lineWidth : LIFELIKE_LINE_WIDTH ,
81
81
stroke : normalGradient
82
82
} ) , { wrap : false } ) ;
83
83
84
- const lifelikeNodeReversed = rasterized ( new Line ( 0 , 0 , WIRE_RASTER_LENGTH , 0 , {
84
+ const lifelikeNodeReversed = rasterizeNode ( new Line ( 0 , 0 , WIRE_RASTER_LENGTH , 0 , {
85
85
lineWidth : LIFELIKE_LINE_WIDTH ,
86
86
stroke : reverseGradient
87
87
} ) , { wrap : false } ) ;
88
88
89
89
// Make sure the heights are the same as the wires so they will line up properly, see
90
90
// https://github.com/phetsims/circuit-construction-kit-common/issues/390
91
- const lifelikeRoundedCapNormal = rasterized ( new Circle ( LIFELIKE_LINE_WIDTH / 2 , {
91
+ const lifelikeRoundedCapNormal = rasterizeNode ( new Circle ( LIFELIKE_LINE_WIDTH / 2 , {
92
92
fill : normalGradient
93
93
} ) , { wrap : false } ) ;
94
94
95
- const lifelikeRoundedCapReversed = rasterized ( new Circle ( LIFELIKE_LINE_WIDTH / 2 , {
95
+ const lifelikeRoundedCapReversed = rasterizeNode ( new Circle ( LIFELIKE_LINE_WIDTH / 2 , {
96
96
fill : reverseGradient
97
97
} ) , { wrap : false } ) ;
98
98
0 commit comments