You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Changed the type of the 'mask' property in both Two.Group and Two.Text definitions to accept 'null' in addition to 'Shape' and 'undefined', improving type safety and clarity.
* @property {Shape} - The Two.js object to clip from a group's rendering.
1726
1726
*/
1727
-
mask: Shape|undefined;
1727
+
mask: Shape|null|undefined;
1728
1728
/**
1729
1729
* @name Two.Group#strokeAttenuation
1730
1730
* @property {Boolean} - When set to `true`, stroke width scales with transformations (default behavior). When `false`, stroke width remains constant in screen space for all child shapes.
* @property {Shape} - The shape whose alpha property becomes a clipping area for the text.
4297
4297
* @nota-bene This property is currently not working becuase of SVG spec issues found here {@link https://code.google.com/p/chromium/issues/detail?id=370951}.
4298
4298
*/
4299
-
mask: any;
4299
+
mask: Shape|null|undefined;
4300
4300
/**
4301
4301
* @name Two.Text#clip
4302
4302
* @property {Shape} - Object to define clipping area.
0 commit comments