react-art 18.3.0 → 19.0.0-beta-94eed63c49-20240425

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.
package/Circle.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright (c) Facebook, Inc. and its affiliates.
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
3
  *
4
4
  * This source code is licensed under the MIT license found in the
5
5
  * LICENSE file in the root directory of this source tree.
@@ -18,7 +18,6 @@
18
18
  'use strict';
19
19
 
20
20
  var assign = Object.assign;
21
- var PropTypes = require('prop-types');
22
21
  var React = require('react');
23
22
  var ReactART = require('react-art');
24
23
 
@@ -34,10 +33,6 @@ var Shape = ReactART.Shape;
34
33
  var Circle = createReactClass({
35
34
  displayName: 'Circle',
36
35
 
37
- propTypes: {
38
- radius: PropTypes.number.isRequired,
39
- },
40
-
41
36
  render: function render() {
42
37
  var radius = this.props.radius;
43
38
 
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) Facebook, Inc. and its affiliates.
3
+ Copyright (c) Meta Platforms, Inc. and affiliates.
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/Rectangle.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright (c) Facebook, Inc. and its affiliates.
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
3
  *
4
4
  * This source code is licensed under the MIT license found in the
5
5
  * LICENSE file in the root directory of this source tree.
@@ -25,7 +25,6 @@
25
25
  'use strict';
26
26
 
27
27
  var assign = Object.assign;
28
- var PropTypes = require('prop-types');
29
28
  var React = require('react');
30
29
  var ReactART = require('react-art');
31
30
 
@@ -41,16 +40,6 @@ var Path = ReactART.Path;
41
40
  var Rectangle = createReactClass({
42
41
  displayName: 'Rectangle',
43
42
 
44
- propTypes: {
45
- width: PropTypes.number.isRequired,
46
- height: PropTypes.number.isRequired,
47
- radius: PropTypes.number,
48
- radiusTopLeft: PropTypes.number,
49
- radiusTopRight: PropTypes.number,
50
- radiusBottomRight: PropTypes.number,
51
- radiusBottomLeft: PropTypes.number,
52
- },
53
-
54
43
  render: function render() {
55
44
  var width = this.props.width;
56
45
  var height = this.props.height;
package/Wedge.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright (c) Facebook, Inc. and its affiliates.
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
3
  *
4
4
  * This source code is licensed under the MIT license found in the
5
5
  * LICENSE file in the root directory of this source tree.
@@ -21,7 +21,6 @@
21
21
  'use strict';
22
22
 
23
23
  var assign = Object.assign;
24
- var PropTypes = require('prop-types');
25
24
  var React = require('react');
26
25
  var ReactART = require('react-art');
27
26
 
@@ -31,19 +30,12 @@ var Shape = ReactART.Shape;
31
30
  var Path = ReactART.Path;
32
31
 
33
32
  /**
34
- * Wedge is a React component for drawing circles, wedges and arcs. Like other
33
+ * Wedge is a React component for drawing circles, wedges and arcs. Like other
35
34
  * ReactART components, it must be used in a <Surface>.
36
35
  */
37
36
  var Wedge = createReactClass({
38
37
  displayName: 'Wedge',
39
38
 
40
- propTypes: {
41
- outerRadius: PropTypes.number.isRequired,
42
- startAngle: PropTypes.number.isRequired,
43
- endAngle: PropTypes.number.isRequired,
44
- innerRadius: PropTypes.number,
45
- },
46
-
47
39
  circleRadians: Math.PI * 2,
48
40
 
49
41
  radiansPerDegree: Math.PI / 180,