react 15.3.1-rc.2 → 15.4.0-rc.1

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.
Files changed (190) hide show
  1. package/dist/react-with-addons.js +3961 -21387
  2. package/dist/react-with-addons.min.js +3 -6
  3. package/dist/react.js +2701 -19464
  4. package/dist/react.min.js +2 -6
  5. package/lib/LinkedStateMixin.js +1 -2
  6. package/lib/PooledClass.js +3 -0
  7. package/lib/ReactAddonsDOMDependencies.js +36 -0
  8. package/lib/ReactAddonsDOMDependenciesUMDShim.js +32 -0
  9. package/lib/ReactCSSTransitionGroup.js +60 -42
  10. package/lib/ReactCSSTransitionGroupChild.js +2 -2
  11. package/lib/ReactClass.js +38 -53
  12. package/lib/ReactComponentTreeHook.js +84 -100
  13. package/lib/{DOMNamespaces.js → ReactComponentTreeHookUMDShim.js} +5 -7
  14. package/lib/ReactCurrentOwner.js +1 -1
  15. package/lib/{renderSubtreeIntoContainer.js → ReactCurrentOwnerUMDShim.js} +6 -4
  16. package/lib/ReactElement.js +6 -29
  17. package/lib/ReactElementSymbol.js +20 -0
  18. package/lib/{ReactDOMComponentFlags.js → ReactElementType.js} +4 -9
  19. package/lib/ReactElementValidator.js +1 -2
  20. package/lib/ReactPropTypeLocationNames.js +1 -0
  21. package/lib/ReactPropTypeLocations.js +2 -11
  22. package/lib/ReactPropTypes.js +30 -13
  23. package/lib/ReactPropTypesSecret.js +1 -0
  24. package/lib/ReactTransitionEvents.js +1 -1
  25. package/lib/ReactTransitionGroup.js +145 -141
  26. package/lib/ReactUMDEntry.js +11 -5
  27. package/lib/{ReactDOMFeatureFlags.js → ReactUMDShim.js} +4 -6
  28. package/lib/ReactVersion.js +1 -1
  29. package/lib/ReactWithAddons.js +15 -2
  30. package/lib/ReactWithAddonsUMDEntry.js +11 -5
  31. package/lib/canDefineProperty.js +2 -0
  32. package/lib/onlyChild.js +1 -1
  33. package/lib/traverseAllChildren.js +11 -2
  34. package/lib/update.js +6 -7
  35. package/package.json +2 -2
  36. package/lib/AutoFocusUtils.js +0 -24
  37. package/lib/BeforeInputEventPlugin.js +0 -388
  38. package/lib/CSSProperty.js +0 -148
  39. package/lib/CSSPropertyOperations.js +0 -205
  40. package/lib/CallbackQueue.js +0 -106
  41. package/lib/ChangeEventPlugin.js +0 -325
  42. package/lib/DOMChildrenOperations.js +0 -194
  43. package/lib/DOMLazyTree.js +0 -118
  44. package/lib/DOMProperty.js +0 -206
  45. package/lib/DOMPropertyOperations.js +0 -221
  46. package/lib/Danger.js +0 -48
  47. package/lib/DefaultEventPluginOrder.js +0 -27
  48. package/lib/DisabledInputUtils.js +0 -50
  49. package/lib/EnterLeaveEventPlugin.js +0 -105
  50. package/lib/EventConstants.js +0 -97
  51. package/lib/EventPluginHub.js +0 -251
  52. package/lib/EventPluginRegistry.js +0 -247
  53. package/lib/EventPluginUtils.js +0 -229
  54. package/lib/EventPropagators.js +0 -137
  55. package/lib/FallbackCompositionState.js +0 -95
  56. package/lib/HTMLDOMPropertyConfig.js +0 -209
  57. package/lib/LinkedValueUtils.js +0 -136
  58. package/lib/NativeMethodsMixin.js +0 -167
  59. package/lib/ReactBrowserEventEmitter.js +0 -317
  60. package/lib/ReactChildReconciler.js +0 -154
  61. package/lib/ReactChildrenMutationWarningHook.js +0 -54
  62. package/lib/ReactComponentBrowserEnvironment.js +0 -30
  63. package/lib/ReactComponentEnvironment.js +0 -45
  64. package/lib/ReactComponentTreeTestUtils.js +0 -87
  65. package/lib/ReactCompositeComponent.js +0 -920
  66. package/lib/ReactDOM.js +0 -110
  67. package/lib/ReactDOMButton.js +0 -24
  68. package/lib/ReactDOMComponent.js +0 -1005
  69. package/lib/ReactDOMComponentTree.js +0 -188
  70. package/lib/ReactDOMContainerInfo.js +0 -33
  71. package/lib/ReactDOMEmptyComponent.js +0 -60
  72. package/lib/ReactDOMFiber.js +0 -78
  73. package/lib/ReactDOMIDOperations.js +0 -34
  74. package/lib/ReactDOMInput.js +0 -269
  75. package/lib/ReactDOMNullInputValuePropHook.js +0 -43
  76. package/lib/ReactDOMOption.js +0 -123
  77. package/lib/ReactDOMSelect.js +0 -201
  78. package/lib/ReactDOMSelection.js +0 -212
  79. package/lib/ReactDOMServer.js +0 -26
  80. package/lib/ReactDOMTextComponent.js +0 -164
  81. package/lib/ReactDOMTextarea.js +0 -155
  82. package/lib/ReactDOMTreeTraversal.js +0 -136
  83. package/lib/ReactDOMUnknownPropertyHook.js +0 -112
  84. package/lib/ReactDebugTool.js +0 -307
  85. package/lib/ReactDefaultBatchingStrategy.js +0 -68
  86. package/lib/ReactDefaultInjection.js +0 -84
  87. package/lib/ReactEmptyComponent.js +0 -30
  88. package/lib/ReactErrorUtils.js +0 -76
  89. package/lib/ReactEventEmitterMixin.js +0 -33
  90. package/lib/ReactEventListener.js +0 -157
  91. package/lib/ReactFeatureFlags.js +0 -22
  92. package/lib/ReactHostComponent.js +0 -76
  93. package/lib/ReactHostOperationHistoryHook.js +0 -37
  94. package/lib/ReactInjection.js +0 -36
  95. package/lib/ReactInputSelection.js +0 -124
  96. package/lib/ReactInstanceHandles.js +0 -302
  97. package/lib/ReactInstanceMap.js +0 -48
  98. package/lib/ReactInstrumentation.js +0 -21
  99. package/lib/ReactInvalidSetStateWarningHook.js +0 -36
  100. package/lib/ReactMarkupChecksum.js +0 -50
  101. package/lib/ReactMount.js +0 -495
  102. package/lib/ReactMultiChild.js +0 -451
  103. package/lib/ReactMultiChildUpdateTypes.js +0 -32
  104. package/lib/ReactNative.js +0 -71
  105. package/lib/ReactNativeAttributePayload.js +0 -371
  106. package/lib/ReactNativeBaseComponent.js +0 -198
  107. package/lib/ReactNativeBridgeEventPlugin.js +0 -60
  108. package/lib/ReactNativeComponentEnvironment.js +0 -31
  109. package/lib/ReactNativeComponentTree.js +0 -68
  110. package/lib/ReactNativeContainerInfo.js +0 -21
  111. package/lib/ReactNativeDOMIDOperations.js +0 -79
  112. package/lib/ReactNativeDefaultInjection.js +0 -101
  113. package/lib/ReactNativeEventEmitter.js +0 -191
  114. package/lib/ReactNativeEventPluginOrder.js +0 -16
  115. package/lib/ReactNativeGlobalResponderHandler.js +0 -25
  116. package/lib/ReactNativeMount.js +0 -193
  117. package/lib/ReactNativePropRegistry.js +0 -52
  118. package/lib/ReactNativeReconcileTransaction.js +0 -116
  119. package/lib/ReactNativeTagHandles.js +0 -56
  120. package/lib/ReactNativeTextComponent.js +0 -71
  121. package/lib/ReactNativeTreeTraversal.js +0 -127
  122. package/lib/ReactNodeTypes.js +0 -40
  123. package/lib/ReactNoop.js +0 -173
  124. package/lib/ReactOwner.js +0 -94
  125. package/lib/ReactPerf.js +0 -494
  126. package/lib/ReactReconcileTransaction.js +0 -178
  127. package/lib/ReactReconciler.js +0 -168
  128. package/lib/ReactRef.js +0 -80
  129. package/lib/ReactServerBatchingStrategy.js +0 -22
  130. package/lib/ReactServerRendering.js +0 -90
  131. package/lib/ReactServerRenderingTransaction.js +0 -90
  132. package/lib/ReactServerUpdateQueue.js +0 -141
  133. package/lib/ReactSimpleEmptyComponent.js +0 -37
  134. package/lib/ReactTestMount.js +0 -123
  135. package/lib/ReactTestReconcileTransaction.js +0 -108
  136. package/lib/ReactTestRenderer.js +0 -144
  137. package/lib/ReactTestUtils.js +0 -518
  138. package/lib/ReactUpdateQueue.js +0 -226
  139. package/lib/ReactUpdates.js +0 -251
  140. package/lib/ResponderEventPlugin.js +0 -510
  141. package/lib/ResponderSyntheticEvent.js +0 -39
  142. package/lib/ResponderTouchHistoryStore.js +0 -184
  143. package/lib/SVGDOMPropertyConfig.js +0 -302
  144. package/lib/SelectEventPlugin.js +0 -196
  145. package/lib/SimpleEventPlugin.js +0 -635
  146. package/lib/SyntheticAnimationEvent.js +0 -39
  147. package/lib/SyntheticClipboardEvent.js +0 -38
  148. package/lib/SyntheticCompositionEvent.js +0 -36
  149. package/lib/SyntheticDragEvent.js +0 -36
  150. package/lib/SyntheticEvent.js +0 -267
  151. package/lib/SyntheticFocusEvent.js +0 -36
  152. package/lib/SyntheticInputEvent.js +0 -37
  153. package/lib/SyntheticKeyboardEvent.js +0 -84
  154. package/lib/SyntheticMouseEvent.js +0 -72
  155. package/lib/SyntheticTouchEvent.js +0 -45
  156. package/lib/SyntheticTransitionEvent.js +0 -39
  157. package/lib/SyntheticUIEvent.js +0 -59
  158. package/lib/SyntheticWheelEvent.js +0 -54
  159. package/lib/TapEventPlugin.js +0 -110
  160. package/lib/TouchHistoryMath.js +0 -99
  161. package/lib/Transaction.js +0 -233
  162. package/lib/ViewportMetrics.js +0 -27
  163. package/lib/accumulate.js +0 -46
  164. package/lib/accumulateInto.js +0 -58
  165. package/lib/adler32.js +0 -44
  166. package/lib/createMicrosoftUnsafeLocalFunction.js +0 -32
  167. package/lib/createReactNativeComponentClass.js +0 -42
  168. package/lib/dangerousStyleValue.js +0 -79
  169. package/lib/escapeTextContentForBrowser.js +0 -122
  170. package/lib/findDOMNode.js +0 -60
  171. package/lib/findNodeHandle.js +0 -91
  172. package/lib/forEachAccumulated.js +0 -31
  173. package/lib/getEventCharCode.js +0 -50
  174. package/lib/getEventKey.js +0 -102
  175. package/lib/getEventModifierState.js +0 -43
  176. package/lib/getEventTarget.js +0 -35
  177. package/lib/getHostComponentFromComposite.js +0 -30
  178. package/lib/getNodeForCharacterOffset.js +0 -74
  179. package/lib/getTestDocument.js +0 -21
  180. package/lib/getTextContentAccessor.js +0 -33
  181. package/lib/getVendorPrefixedEventName.js +0 -101
  182. package/lib/instantiateReactComponent.js +0 -119
  183. package/lib/isEventSupported.js +0 -60
  184. package/lib/isTextInputElement.js +0 -51
  185. package/lib/quoteAttributeValueForBrowser.js +0 -26
  186. package/lib/reactComponentExpect.js +0 -217
  187. package/lib/setInnerHTML.js +0 -98
  188. package/lib/setTextContent.js +0 -48
  189. package/lib/shouldUpdateReactComponent.js +0 -42
  190. package/lib/validateDOMNesting.js +0 -369
@@ -1,39 +0,0 @@
1
- /**
2
- * Copyright 2013-present, Facebook, Inc.
3
- * All rights reserved.
4
- *
5
- * This source code is licensed under the BSD-style license found in the
6
- * LICENSE file in the root directory of this source tree. An additional grant
7
- * of patent rights can be found in the PATENTS file in the same directory.
8
- *
9
- * @providesModule ResponderSyntheticEvent
10
- */
11
-
12
- 'use strict';
13
-
14
- var SyntheticEvent = require('./SyntheticEvent');
15
-
16
- /**
17
- * `touchHistory` isn't actually on the native event, but putting it in the
18
- * interface will ensure that it is cleaned up when pooled/destroyed. The
19
- * `ResponderEventPlugin` will populate it appropriately.
20
- */
21
- var ResponderEventInterface = {
22
- touchHistory: function (nativeEvent) {
23
- return null; // Actually doesn't even look at the native event.
24
- }
25
- };
26
-
27
- /**
28
- * @param {object} dispatchConfig Configuration used to dispatch this event.
29
- * @param {string} dispatchMarker Marker identifying the event target.
30
- * @param {object} nativeEvent Native event.
31
- * @extends {SyntheticEvent}
32
- */
33
- function ResponderSyntheticEvent(dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget) {
34
- return SyntheticEvent.call(this, dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget);
35
- }
36
-
37
- SyntheticEvent.augmentClass(ResponderSyntheticEvent, ResponderEventInterface);
38
-
39
- module.exports = ResponderSyntheticEvent;
@@ -1,184 +0,0 @@
1
- /**
2
- * Copyright 2013-present, Facebook, Inc.
3
- * All rights reserved.
4
- *
5
- * This source code is licensed under the BSD-style license found in the
6
- * LICENSE file in the root directory of this source tree. An additional grant
7
- * of patent rights can be found in the PATENTS file in the same directory.
8
- *
9
- * @providesModule ResponderTouchHistoryStore
10
- *
11
- */
12
-
13
- 'use strict';
14
-
15
- var _prodInvariant = require('./reactProdInvariant');
16
-
17
- var EventPluginUtils = require('./EventPluginUtils');
18
-
19
- var invariant = require('fbjs/lib/invariant');
20
- var warning = require('fbjs/lib/warning');
21
-
22
- var isEndish = EventPluginUtils.isEndish;
23
- var isMoveish = EventPluginUtils.isMoveish;
24
- var isStartish = EventPluginUtils.isStartish;
25
-
26
- /**
27
- * Tracks the position and time of each active touch by `touch.identifier`. We
28
- * should typically only see IDs in the range of 1-20 because IDs get recycled
29
- * when touches end and start again.
30
- */
31
-
32
- var MAX_TOUCH_BANK = 20;
33
- var touchBank = [];
34
- var touchHistory = {
35
- touchBank: touchBank,
36
- numberActiveTouches: 0,
37
- // If there is only one active touch, we remember its location. This prevents
38
- // us having to loop through all of the touches all the time in the most
39
- // common case.
40
- indexOfSingleActiveTouch: -1,
41
- mostRecentTimeStamp: 0
42
- };
43
-
44
- function timestampForTouch(touch) {
45
- // The legacy internal implementation provides "timeStamp", which has been
46
- // renamed to "timestamp". Let both work for now while we iron it out
47
- // TODO (evv): rename timeStamp to timestamp in internal code
48
- return touch.timeStamp || touch.timestamp;
49
- }
50
-
51
- /**
52
- * TODO: Instead of making gestures recompute filtered velocity, we could
53
- * include a built in velocity computation that can be reused globally.
54
- */
55
- function createTouchRecord(touch) {
56
- return {
57
- touchActive: true,
58
- startPageX: touch.pageX,
59
- startPageY: touch.pageY,
60
- startTimeStamp: timestampForTouch(touch),
61
- currentPageX: touch.pageX,
62
- currentPageY: touch.pageY,
63
- currentTimeStamp: timestampForTouch(touch),
64
- previousPageX: touch.pageX,
65
- previousPageY: touch.pageY,
66
- previousTimeStamp: timestampForTouch(touch)
67
- };
68
- }
69
-
70
- function resetTouchRecord(touchRecord, touch) {
71
- touchRecord.touchActive = true;
72
- touchRecord.startPageX = touch.pageX;
73
- touchRecord.startPageY = touch.pageY;
74
- touchRecord.startTimeStamp = timestampForTouch(touch);
75
- touchRecord.currentPageX = touch.pageX;
76
- touchRecord.currentPageY = touch.pageY;
77
- touchRecord.currentTimeStamp = timestampForTouch(touch);
78
- touchRecord.previousPageX = touch.pageX;
79
- touchRecord.previousPageY = touch.pageY;
80
- touchRecord.previousTimeStamp = timestampForTouch(touch);
81
- }
82
-
83
- function getTouchIdentifier(_ref) {
84
- var identifier = _ref.identifier;
85
-
86
- !(identifier != null) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'Touch object is missing identifier.') : _prodInvariant('138') : void 0;
87
- process.env.NODE_ENV !== 'production' ? warning(identifier <= MAX_TOUCH_BANK, 'Touch identifier %s is greater than maximum supported %s which causes ' + 'performance issues backfilling array locations for all of the indices.', identifier, MAX_TOUCH_BANK) : void 0;
88
- return identifier;
89
- }
90
-
91
- function recordTouchStart(touch) {
92
- var identifier = getTouchIdentifier(touch);
93
- var touchRecord = touchBank[identifier];
94
- if (touchRecord) {
95
- resetTouchRecord(touchRecord, touch);
96
- } else {
97
- touchBank[identifier] = createTouchRecord(touch);
98
- }
99
- touchHistory.mostRecentTimeStamp = timestampForTouch(touch);
100
- }
101
-
102
- function recordTouchMove(touch) {
103
- var touchRecord = touchBank[getTouchIdentifier(touch)];
104
- if (touchRecord) {
105
- touchRecord.touchActive = true;
106
- touchRecord.previousPageX = touchRecord.currentPageX;
107
- touchRecord.previousPageY = touchRecord.currentPageY;
108
- touchRecord.previousTimeStamp = touchRecord.currentTimeStamp;
109
- touchRecord.currentPageX = touch.pageX;
110
- touchRecord.currentPageY = touch.pageY;
111
- touchRecord.currentTimeStamp = timestampForTouch(touch);
112
- touchHistory.mostRecentTimeStamp = timestampForTouch(touch);
113
- } else {
114
- console.error('Cannot record touch move without a touch start.\n' + 'Touch Move: %s\n', 'Touch Bank: %s', printTouch(touch), printTouchBank());
115
- }
116
- }
117
-
118
- function recordTouchEnd(touch) {
119
- var touchRecord = touchBank[getTouchIdentifier(touch)];
120
- if (touchRecord) {
121
- touchRecord.touchActive = false;
122
- touchRecord.previousPageX = touchRecord.currentPageX;
123
- touchRecord.previousPageY = touchRecord.currentPageY;
124
- touchRecord.previousTimeStamp = touchRecord.currentTimeStamp;
125
- touchRecord.currentPageX = touch.pageX;
126
- touchRecord.currentPageY = touch.pageY;
127
- touchRecord.currentTimeStamp = timestampForTouch(touch);
128
- touchHistory.mostRecentTimeStamp = timestampForTouch(touch);
129
- } else {
130
- console.error('Cannot record touch end without a touch start.\n' + 'Touch End: %s\n', 'Touch Bank: %s', printTouch(touch), printTouchBank());
131
- }
132
- }
133
-
134
- function printTouch(touch) {
135
- return JSON.stringify({
136
- identifier: touch.identifier,
137
- pageX: touch.pageX,
138
- pageY: touch.pageY,
139
- timestamp: timestampForTouch(touch)
140
- });
141
- }
142
-
143
- function printTouchBank() {
144
- var printed = JSON.stringify(touchBank.slice(0, MAX_TOUCH_BANK));
145
- if (touchBank.length > MAX_TOUCH_BANK) {
146
- printed += ' (original size: ' + touchBank.length + ')';
147
- }
148
- return printed;
149
- }
150
-
151
- var ResponderTouchHistoryStore = {
152
- recordTouchTrack: function (topLevelType, nativeEvent) {
153
- if (isMoveish(topLevelType)) {
154
- nativeEvent.changedTouches.forEach(recordTouchMove);
155
- } else if (isStartish(topLevelType)) {
156
- nativeEvent.changedTouches.forEach(recordTouchStart);
157
- touchHistory.numberActiveTouches = nativeEvent.touches.length;
158
- if (touchHistory.numberActiveTouches === 1) {
159
- touchHistory.indexOfSingleActiveTouch = nativeEvent.touches[0].identifier;
160
- }
161
- } else if (isEndish(topLevelType)) {
162
- nativeEvent.changedTouches.forEach(recordTouchEnd);
163
- touchHistory.numberActiveTouches = nativeEvent.touches.length;
164
- if (touchHistory.numberActiveTouches === 1) {
165
- for (var i = 0; i < touchBank.length; i++) {
166
- var touchTrackToCheck = touchBank[i];
167
- if (touchTrackToCheck != null && touchTrackToCheck.touchActive) {
168
- touchHistory.indexOfSingleActiveTouch = i;
169
- break;
170
- }
171
- }
172
- if (process.env.NODE_ENV !== 'production') {
173
- var activeRecord = touchBank[touchHistory.indexOfSingleActiveTouch];
174
- process.env.NODE_ENV !== 'production' ? warning(activeRecord != null && activeRecord.touchActive, 'Cannot find single active touch.') : void 0;
175
- }
176
- }
177
- }
178
- },
179
-
180
-
181
- touchHistory: touchHistory
182
- };
183
-
184
- module.exports = ResponderTouchHistoryStore;
@@ -1,302 +0,0 @@
1
- /**
2
- * Copyright 2013-present, Facebook, Inc.
3
- * All rights reserved.
4
- *
5
- * This source code is licensed under the BSD-style license found in the
6
- * LICENSE file in the root directory of this source tree. An additional grant
7
- * of patent rights can be found in the PATENTS file in the same directory.
8
- *
9
- * @providesModule SVGDOMPropertyConfig
10
- */
11
-
12
- 'use strict';
13
-
14
- var NS = {
15
- xlink: 'http://www.w3.org/1999/xlink',
16
- xml: 'http://www.w3.org/XML/1998/namespace'
17
- };
18
-
19
- // We use attributes for everything SVG so let's avoid some duplication and run
20
- // code instead.
21
- // The following are all specified in the HTML config already so we exclude here.
22
- // - class (as className)
23
- // - color
24
- // - height
25
- // - id
26
- // - lang
27
- // - max
28
- // - media
29
- // - method
30
- // - min
31
- // - name
32
- // - style
33
- // - target
34
- // - type
35
- // - width
36
- var ATTRS = {
37
- accentHeight: 'accent-height',
38
- accumulate: 0,
39
- additive: 0,
40
- alignmentBaseline: 'alignment-baseline',
41
- allowReorder: 'allowReorder',
42
- alphabetic: 0,
43
- amplitude: 0,
44
- arabicForm: 'arabic-form',
45
- ascent: 0,
46
- attributeName: 'attributeName',
47
- attributeType: 'attributeType',
48
- autoReverse: 'autoReverse',
49
- azimuth: 0,
50
- baseFrequency: 'baseFrequency',
51
- baseProfile: 'baseProfile',
52
- baselineShift: 'baseline-shift',
53
- bbox: 0,
54
- begin: 0,
55
- bias: 0,
56
- by: 0,
57
- calcMode: 'calcMode',
58
- capHeight: 'cap-height',
59
- clip: 0,
60
- clipPath: 'clip-path',
61
- clipRule: 'clip-rule',
62
- clipPathUnits: 'clipPathUnits',
63
- colorInterpolation: 'color-interpolation',
64
- colorInterpolationFilters: 'color-interpolation-filters',
65
- colorProfile: 'color-profile',
66
- colorRendering: 'color-rendering',
67
- contentScriptType: 'contentScriptType',
68
- contentStyleType: 'contentStyleType',
69
- cursor: 0,
70
- cx: 0,
71
- cy: 0,
72
- d: 0,
73
- decelerate: 0,
74
- descent: 0,
75
- diffuseConstant: 'diffuseConstant',
76
- direction: 0,
77
- display: 0,
78
- divisor: 0,
79
- dominantBaseline: 'dominant-baseline',
80
- dur: 0,
81
- dx: 0,
82
- dy: 0,
83
- edgeMode: 'edgeMode',
84
- elevation: 0,
85
- enableBackground: 'enable-background',
86
- end: 0,
87
- exponent: 0,
88
- externalResourcesRequired: 'externalResourcesRequired',
89
- fill: 0,
90
- fillOpacity: 'fill-opacity',
91
- fillRule: 'fill-rule',
92
- filter: 0,
93
- filterRes: 'filterRes',
94
- filterUnits: 'filterUnits',
95
- floodColor: 'flood-color',
96
- floodOpacity: 'flood-opacity',
97
- focusable: 0,
98
- fontFamily: 'font-family',
99
- fontSize: 'font-size',
100
- fontSizeAdjust: 'font-size-adjust',
101
- fontStretch: 'font-stretch',
102
- fontStyle: 'font-style',
103
- fontVariant: 'font-variant',
104
- fontWeight: 'font-weight',
105
- format: 0,
106
- from: 0,
107
- fx: 0,
108
- fy: 0,
109
- g1: 0,
110
- g2: 0,
111
- glyphName: 'glyph-name',
112
- glyphOrientationHorizontal: 'glyph-orientation-horizontal',
113
- glyphOrientationVertical: 'glyph-orientation-vertical',
114
- glyphRef: 'glyphRef',
115
- gradientTransform: 'gradientTransform',
116
- gradientUnits: 'gradientUnits',
117
- hanging: 0,
118
- horizAdvX: 'horiz-adv-x',
119
- horizOriginX: 'horiz-origin-x',
120
- ideographic: 0,
121
- imageRendering: 'image-rendering',
122
- 'in': 0,
123
- in2: 0,
124
- intercept: 0,
125
- k: 0,
126
- k1: 0,
127
- k2: 0,
128
- k3: 0,
129
- k4: 0,
130
- kernelMatrix: 'kernelMatrix',
131
- kernelUnitLength: 'kernelUnitLength',
132
- kerning: 0,
133
- keyPoints: 'keyPoints',
134
- keySplines: 'keySplines',
135
- keyTimes: 'keyTimes',
136
- lengthAdjust: 'lengthAdjust',
137
- letterSpacing: 'letter-spacing',
138
- lightingColor: 'lighting-color',
139
- limitingConeAngle: 'limitingConeAngle',
140
- local: 0,
141
- markerEnd: 'marker-end',
142
- markerMid: 'marker-mid',
143
- markerStart: 'marker-start',
144
- markerHeight: 'markerHeight',
145
- markerUnits: 'markerUnits',
146
- markerWidth: 'markerWidth',
147
- mask: 0,
148
- maskContentUnits: 'maskContentUnits',
149
- maskUnits: 'maskUnits',
150
- mathematical: 0,
151
- mode: 0,
152
- numOctaves: 'numOctaves',
153
- offset: 0,
154
- opacity: 0,
155
- operator: 0,
156
- order: 0,
157
- orient: 0,
158
- orientation: 0,
159
- origin: 0,
160
- overflow: 0,
161
- overlinePosition: 'overline-position',
162
- overlineThickness: 'overline-thickness',
163
- paintOrder: 'paint-order',
164
- panose1: 'panose-1',
165
- pathLength: 'pathLength',
166
- patternContentUnits: 'patternContentUnits',
167
- patternTransform: 'patternTransform',
168
- patternUnits: 'patternUnits',
169
- pointerEvents: 'pointer-events',
170
- points: 0,
171
- pointsAtX: 'pointsAtX',
172
- pointsAtY: 'pointsAtY',
173
- pointsAtZ: 'pointsAtZ',
174
- preserveAlpha: 'preserveAlpha',
175
- preserveAspectRatio: 'preserveAspectRatio',
176
- primitiveUnits: 'primitiveUnits',
177
- r: 0,
178
- radius: 0,
179
- refX: 'refX',
180
- refY: 'refY',
181
- renderingIntent: 'rendering-intent',
182
- repeatCount: 'repeatCount',
183
- repeatDur: 'repeatDur',
184
- requiredExtensions: 'requiredExtensions',
185
- requiredFeatures: 'requiredFeatures',
186
- restart: 0,
187
- result: 0,
188
- rotate: 0,
189
- rx: 0,
190
- ry: 0,
191
- scale: 0,
192
- seed: 0,
193
- shapeRendering: 'shape-rendering',
194
- slope: 0,
195
- spacing: 0,
196
- specularConstant: 'specularConstant',
197
- specularExponent: 'specularExponent',
198
- speed: 0,
199
- spreadMethod: 'spreadMethod',
200
- startOffset: 'startOffset',
201
- stdDeviation: 'stdDeviation',
202
- stemh: 0,
203
- stemv: 0,
204
- stitchTiles: 'stitchTiles',
205
- stopColor: 'stop-color',
206
- stopOpacity: 'stop-opacity',
207
- strikethroughPosition: 'strikethrough-position',
208
- strikethroughThickness: 'strikethrough-thickness',
209
- string: 0,
210
- stroke: 0,
211
- strokeDasharray: 'stroke-dasharray',
212
- strokeDashoffset: 'stroke-dashoffset',
213
- strokeLinecap: 'stroke-linecap',
214
- strokeLinejoin: 'stroke-linejoin',
215
- strokeMiterlimit: 'stroke-miterlimit',
216
- strokeOpacity: 'stroke-opacity',
217
- strokeWidth: 'stroke-width',
218
- surfaceScale: 'surfaceScale',
219
- systemLanguage: 'systemLanguage',
220
- tableValues: 'tableValues',
221
- targetX: 'targetX',
222
- targetY: 'targetY',
223
- textAnchor: 'text-anchor',
224
- textDecoration: 'text-decoration',
225
- textRendering: 'text-rendering',
226
- textLength: 'textLength',
227
- to: 0,
228
- transform: 0,
229
- u1: 0,
230
- u2: 0,
231
- underlinePosition: 'underline-position',
232
- underlineThickness: 'underline-thickness',
233
- unicode: 0,
234
- unicodeBidi: 'unicode-bidi',
235
- unicodeRange: 'unicode-range',
236
- unitsPerEm: 'units-per-em',
237
- vAlphabetic: 'v-alphabetic',
238
- vHanging: 'v-hanging',
239
- vIdeographic: 'v-ideographic',
240
- vMathematical: 'v-mathematical',
241
- values: 0,
242
- vectorEffect: 'vector-effect',
243
- version: 0,
244
- vertAdvY: 'vert-adv-y',
245
- vertOriginX: 'vert-origin-x',
246
- vertOriginY: 'vert-origin-y',
247
- viewBox: 'viewBox',
248
- viewTarget: 'viewTarget',
249
- visibility: 0,
250
- widths: 0,
251
- wordSpacing: 'word-spacing',
252
- writingMode: 'writing-mode',
253
- x: 0,
254
- xHeight: 'x-height',
255
- x1: 0,
256
- x2: 0,
257
- xChannelSelector: 'xChannelSelector',
258
- xlinkActuate: 'xlink:actuate',
259
- xlinkArcrole: 'xlink:arcrole',
260
- xlinkHref: 'xlink:href',
261
- xlinkRole: 'xlink:role',
262
- xlinkShow: 'xlink:show',
263
- xlinkTitle: 'xlink:title',
264
- xlinkType: 'xlink:type',
265
- xmlBase: 'xml:base',
266
- xmlns: 0,
267
- xmlnsXlink: 'xmlns:xlink',
268
- xmlLang: 'xml:lang',
269
- xmlSpace: 'xml:space',
270
- y: 0,
271
- y1: 0,
272
- y2: 0,
273
- yChannelSelector: 'yChannelSelector',
274
- z: 0,
275
- zoomAndPan: 'zoomAndPan'
276
- };
277
-
278
- var SVGDOMPropertyConfig = {
279
- Properties: {},
280
- DOMAttributeNamespaces: {
281
- xlinkActuate: NS.xlink,
282
- xlinkArcrole: NS.xlink,
283
- xlinkHref: NS.xlink,
284
- xlinkRole: NS.xlink,
285
- xlinkShow: NS.xlink,
286
- xlinkTitle: NS.xlink,
287
- xlinkType: NS.xlink,
288
- xmlBase: NS.xml,
289
- xmlLang: NS.xml,
290
- xmlSpace: NS.xml
291
- },
292
- DOMAttributeNames: {}
293
- };
294
-
295
- Object.keys(ATTRS).forEach(function (key) {
296
- SVGDOMPropertyConfig.Properties[key] = 0;
297
- if (ATTRS[key]) {
298
- SVGDOMPropertyConfig.DOMAttributeNames[key] = ATTRS[key];
299
- }
300
- });
301
-
302
- module.exports = SVGDOMPropertyConfig;