Skip to content

Commit

Permalink
added render.options.wireframeStrokeStyle, closes #406
Browse files Browse the repository at this point in the history
  • Loading branch information
liabru committed Mar 26, 2023
1 parent 2af54d5 commit 401553d
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions src/render/Render.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ var Mouse = require('../core/Mouse');
pixelRatio: 1,
background: '#14151f',
wireframeBackground: '#14151f',
wireframeStrokeStyle: '#bbb',
hasBounds: !!options.bounds,
enabled: true,
wireframes: true,
Expand Down Expand Up @@ -821,7 +822,7 @@ var Mouse = require('../core/Mouse');
c.fill();
} else {
c.lineWidth = 1;
c.strokeStyle = '#bbb';
c.strokeStyle = render.options.wireframeStrokeStyle;
c.stroke();
}
}
Expand Down Expand Up @@ -880,7 +881,7 @@ var Mouse = require('../core/Mouse');
}

c.lineWidth = 1;
c.strokeStyle = '#bbb';
c.strokeStyle = render.options.wireframeStrokeStyle;
c.stroke();
};

Expand Down Expand Up @@ -1659,14 +1660,23 @@ var Mouse = require('../core/Mouse');
*/

/**
* A CSS background color string to use when `render.options.wireframes` is enabled.
* A CSS color string to use for background when `render.options.wireframes` is enabled.
* This may be also set to `'transparent'` or equivalent.
*
* @property options.wireframeBackground
* @type string
* @default '#14151f'
*/

/**
* A CSS color string to use for stroke when `render.options.wireframes` is enabled.
* This may be also set to `'transparent'` or equivalent.
*
* @property options.wireframeStrokeStyle
* @type string
* @default '#bbb'
*/

/**
* A flag that specifies if `render.bounds` should be used when rendering.
*
Expand Down

0 comments on commit 401553d

Please sign in to comment.