react 15.3.2 → 15.4.0-rc.4

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 (210) hide show
  1. package/dist/react-with-addons.js +3864 -21390
  2. package/dist/react-with-addons.min.js +3 -6
  3. package/dist/react.js +2639 -19486
  4. package/dist/react.min.js +2 -6
  5. package/lib/KeyEscapeUtils.js +0 -1
  6. package/lib/LinkedStateMixin.js +1 -3
  7. package/lib/PooledClass.js +3 -1
  8. package/lib/React.js +0 -1
  9. package/lib/ReactAddonsDOMDependencies.js +35 -0
  10. package/lib/ReactAddonsDOMDependenciesUMDShim.js +31 -0
  11. package/lib/ReactCSSTransitionGroup.js +60 -43
  12. package/lib/ReactCSSTransitionGroupChild.js +2 -3
  13. package/lib/ReactChildren.js +0 -1
  14. package/lib/ReactClass.js +38 -54
  15. package/lib/ReactComponent.js +0 -1
  16. package/lib/ReactComponentTreeDevtool.js +0 -1
  17. package/lib/ReactComponentTreeHook.js +84 -101
  18. package/lib/{DOMNamespaces.js → ReactComponentTreeHookUMDShim.js} +4 -7
  19. package/lib/ReactComponentWithPureRenderMixin.js +0 -1
  20. package/lib/ReactCurrentOwner.js +1 -2
  21. package/lib/{renderSubtreeIntoContainer.js → ReactCurrentOwnerUMDShim.js} +5 -4
  22. package/lib/ReactDOMFactories.js +0 -1
  23. package/lib/ReactElement.js +6 -14
  24. package/lib/ReactElementSymbol.js +19 -0
  25. package/lib/{ReactDOMComponentFlags.js → ReactElementType.js} +3 -9
  26. package/lib/ReactElementValidator.js +1 -3
  27. package/lib/ReactFragment.js +0 -1
  28. package/lib/ReactLink.js +0 -1
  29. package/lib/ReactNoopUpdateQueue.js +0 -1
  30. package/lib/ReactPropTypeLocationNames.js +1 -1
  31. package/lib/ReactPropTypeLocations.js +2 -12
  32. package/lib/ReactPropTypes.js +5 -3
  33. package/lib/ReactPropTypesSecret.js +1 -1
  34. package/lib/ReactPureComponent.js +0 -1
  35. package/lib/ReactStateSetters.js +0 -1
  36. package/lib/ReactTransitionChildMapping.js +0 -1
  37. package/lib/ReactTransitionEvents.js +1 -2
  38. package/lib/ReactTransitionGroup.js +145 -142
  39. package/lib/ReactUMDEntry.js +11 -6
  40. package/lib/{ReactDOMFeatureFlags.js → ReactUMDShim.js} +3 -6
  41. package/lib/ReactVersion.js +1 -2
  42. package/lib/ReactWithAddons.js +15 -3
  43. package/lib/ReactWithAddonsUMDEntry.js +11 -6
  44. package/lib/canDefineProperty.js +2 -1
  45. package/lib/checkReactTypeSpec.js +0 -1
  46. package/lib/deprecated.js +0 -1
  47. package/lib/flattenChildren.js +0 -1
  48. package/lib/getIteratorFn.js +0 -1
  49. package/lib/onlyChild.js +0 -1
  50. package/lib/reactProdInvariant.js +0 -1
  51. package/lib/shallowCompare.js +1 -2
  52. package/lib/sliceChildren.js +0 -1
  53. package/lib/traverseAllChildren.js +11 -3
  54. package/lib/update.js +6 -8
  55. package/package.json +1 -1
  56. package/lib/AutoFocusUtils.js +0 -24
  57. package/lib/BeforeInputEventPlugin.js +0 -390
  58. package/lib/CSSProperty.js +0 -148
  59. package/lib/CSSPropertyOperations.js +0 -205
  60. package/lib/CallbackQueue.js +0 -106
  61. package/lib/ChangeEventPlugin.js +0 -325
  62. package/lib/DOMChildrenOperations.js +0 -194
  63. package/lib/DOMLazyTree.js +0 -118
  64. package/lib/DOMProperty.js +0 -206
  65. package/lib/DOMPropertyOperations.js +0 -221
  66. package/lib/Danger.js +0 -48
  67. package/lib/DefaultEventPluginOrder.js +0 -27
  68. package/lib/DisabledInputUtils.js +0 -50
  69. package/lib/EnterLeaveEventPlugin.js +0 -105
  70. package/lib/EventConstants.js +0 -97
  71. package/lib/EventPluginHub.js +0 -251
  72. package/lib/EventPluginRegistry.js +0 -247
  73. package/lib/EventPluginUtils.js +0 -229
  74. package/lib/EventPropagators.js +0 -137
  75. package/lib/FallbackCompositionState.js +0 -95
  76. package/lib/HTMLDOMPropertyConfig.js +0 -212
  77. package/lib/LinkedValueUtils.js +0 -136
  78. package/lib/NativeMethodsMixin.js +0 -167
  79. package/lib/ReactBrowserEventEmitter.js +0 -330
  80. package/lib/ReactChildReconciler.js +0 -154
  81. package/lib/ReactChildrenMutationWarningHook.js +0 -54
  82. package/lib/ReactComponentBrowserEnvironment.js +0 -30
  83. package/lib/ReactComponentEnvironment.js +0 -45
  84. package/lib/ReactComponentTreeTestUtils.js +0 -87
  85. package/lib/ReactCompositeComponent.js +0 -904
  86. package/lib/ReactDOM.js +0 -110
  87. package/lib/ReactDOMButton.js +0 -24
  88. package/lib/ReactDOMComponent.js +0 -1006
  89. package/lib/ReactDOMComponentTree.js +0 -188
  90. package/lib/ReactDOMContainerInfo.js +0 -33
  91. package/lib/ReactDOMEmptyComponent.js +0 -60
  92. package/lib/ReactDOMFiber.js +0 -76
  93. package/lib/ReactDOMIDOperations.js +0 -34
  94. package/lib/ReactDOMInput.js +0 -269
  95. package/lib/ReactDOMNullInputValuePropHook.js +0 -43
  96. package/lib/ReactDOMOption.js +0 -123
  97. package/lib/ReactDOMSelect.js +0 -201
  98. package/lib/ReactDOMSelection.js +0 -212
  99. package/lib/ReactDOMServer.js +0 -26
  100. package/lib/ReactDOMTextComponent.js +0 -164
  101. package/lib/ReactDOMTextarea.js +0 -155
  102. package/lib/ReactDOMTreeTraversal.js +0 -136
  103. package/lib/ReactDOMUnknownPropertyHook.js +0 -112
  104. package/lib/ReactDebugTool.js +0 -301
  105. package/lib/ReactDefaultBatchingStrategy.js +0 -68
  106. package/lib/ReactDefaultInjection.js +0 -84
  107. package/lib/ReactEmptyComponent.js +0 -30
  108. package/lib/ReactErrorUtils.js +0 -76
  109. package/lib/ReactEventEmitterMixin.js +0 -33
  110. package/lib/ReactEventListener.js +0 -157
  111. package/lib/ReactFeatureFlags.js +0 -22
  112. package/lib/ReactHostComponent.js +0 -76
  113. package/lib/ReactHostOperationHistoryHook.js +0 -37
  114. package/lib/ReactInjection.js +0 -36
  115. package/lib/ReactInputSelection.js +0 -124
  116. package/lib/ReactInstanceHandles.js +0 -302
  117. package/lib/ReactInstanceMap.js +0 -48
  118. package/lib/ReactInstrumentation.js +0 -21
  119. package/lib/ReactInvalidSetStateWarningHook.js +0 -36
  120. package/lib/ReactMarkupChecksum.js +0 -50
  121. package/lib/ReactMount.js +0 -534
  122. package/lib/ReactMultiChild.js +0 -451
  123. package/lib/ReactMultiChildUpdateTypes.js +0 -32
  124. package/lib/ReactNative.js +0 -71
  125. package/lib/ReactNativeAttributePayload.js +0 -371
  126. package/lib/ReactNativeBaseComponent.js +0 -198
  127. package/lib/ReactNativeBridgeEventPlugin.js +0 -60
  128. package/lib/ReactNativeComponentEnvironment.js +0 -31
  129. package/lib/ReactNativeComponentTree.js +0 -68
  130. package/lib/ReactNativeContainerInfo.js +0 -21
  131. package/lib/ReactNativeDOMIDOperations.js +0 -79
  132. package/lib/ReactNativeDefaultInjection.js +0 -101
  133. package/lib/ReactNativeEventEmitter.js +0 -191
  134. package/lib/ReactNativeEventPluginOrder.js +0 -16
  135. package/lib/ReactNativeGlobalResponderHandler.js +0 -25
  136. package/lib/ReactNativeMount.js +0 -193
  137. package/lib/ReactNativePropRegistry.js +0 -52
  138. package/lib/ReactNativeReconcileTransaction.js +0 -129
  139. package/lib/ReactNativeTagHandles.js +0 -56
  140. package/lib/ReactNativeTextComponent.js +0 -71
  141. package/lib/ReactNativeTreeTraversal.js +0 -127
  142. package/lib/ReactNodeTypes.js +0 -40
  143. package/lib/ReactNoop.js +0 -173
  144. package/lib/ReactOwner.js +0 -94
  145. package/lib/ReactPerf.js +0 -494
  146. package/lib/ReactReconcileTransaction.js +0 -178
  147. package/lib/ReactReconciler.js +0 -168
  148. package/lib/ReactRef.js +0 -80
  149. package/lib/ReactServerBatchingStrategy.js +0 -22
  150. package/lib/ReactServerRendering.js +0 -90
  151. package/lib/ReactServerRenderingTransaction.js +0 -90
  152. package/lib/ReactServerUpdateQueue.js +0 -141
  153. package/lib/ReactSimpleEmptyComponent.js +0 -37
  154. package/lib/ReactTestMount.js +0 -126
  155. package/lib/ReactTestReconcileTransaction.js +0 -121
  156. package/lib/ReactTestRenderer.js +0 -144
  157. package/lib/ReactTestUtils.js +0 -518
  158. package/lib/ReactUpdateQueue.js +0 -226
  159. package/lib/ReactUpdates.js +0 -251
  160. package/lib/ResponderEventPlugin.js +0 -510
  161. package/lib/ResponderSyntheticEvent.js +0 -39
  162. package/lib/ResponderTouchHistoryStore.js +0 -184
  163. package/lib/SVGDOMPropertyConfig.js +0 -302
  164. package/lib/SelectEventPlugin.js +0 -196
  165. package/lib/SimpleEventPlugin.js +0 -635
  166. package/lib/SyntheticAnimationEvent.js +0 -39
  167. package/lib/SyntheticClipboardEvent.js +0 -38
  168. package/lib/SyntheticCompositionEvent.js +0 -36
  169. package/lib/SyntheticDragEvent.js +0 -36
  170. package/lib/SyntheticEvent.js +0 -268
  171. package/lib/SyntheticFocusEvent.js +0 -36
  172. package/lib/SyntheticInputEvent.js +0 -37
  173. package/lib/SyntheticKeyboardEvent.js +0 -84
  174. package/lib/SyntheticMouseEvent.js +0 -72
  175. package/lib/SyntheticTouchEvent.js +0 -45
  176. package/lib/SyntheticTransitionEvent.js +0 -39
  177. package/lib/SyntheticUIEvent.js +0 -59
  178. package/lib/SyntheticWheelEvent.js +0 -54
  179. package/lib/TapEventPlugin.js +0 -110
  180. package/lib/TouchHistoryMath.js +0 -99
  181. package/lib/Transaction.js +0 -233
  182. package/lib/ViewportMetrics.js +0 -27
  183. package/lib/accumulate.js +0 -46
  184. package/lib/accumulateInto.js +0 -58
  185. package/lib/adler32.js +0 -44
  186. package/lib/createMicrosoftUnsafeLocalFunction.js +0 -32
  187. package/lib/createReactNativeComponentClass.js +0 -42
  188. package/lib/dangerousStyleValue.js +0 -79
  189. package/lib/escapeTextContentForBrowser.js +0 -123
  190. package/lib/findDOMNode.js +0 -60
  191. package/lib/findNodeHandle.js +0 -91
  192. package/lib/forEachAccumulated.js +0 -31
  193. package/lib/getEventCharCode.js +0 -50
  194. package/lib/getEventKey.js +0 -102
  195. package/lib/getEventModifierState.js +0 -43
  196. package/lib/getEventTarget.js +0 -35
  197. package/lib/getHostComponentFromComposite.js +0 -30
  198. package/lib/getNodeForCharacterOffset.js +0 -74
  199. package/lib/getTestDocument.js +0 -21
  200. package/lib/getTextContentAccessor.js +0 -33
  201. package/lib/getVendorPrefixedEventName.js +0 -101
  202. package/lib/instantiateReactComponent.js +0 -119
  203. package/lib/isEventSupported.js +0 -60
  204. package/lib/isTextInputElement.js +0 -51
  205. package/lib/quoteAttributeValueForBrowser.js +0 -26
  206. package/lib/reactComponentExpect.js +0 -217
  207. package/lib/setInnerHTML.js +0 -98
  208. package/lib/setTextContent.js +0 -48
  209. package/lib/shouldUpdateReactComponent.js +0 -42
  210. package/lib/validateDOMNesting.js +0 -382
@@ -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;