react 15.3.2-rc.1 → 15.4.0-rc.3

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