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.
- package/dist/react-with-addons.js +3864 -21390
- package/dist/react-with-addons.min.js +3 -6
- package/dist/react.js +2639 -19486
- package/dist/react.min.js +2 -6
- package/lib/KeyEscapeUtils.js +0 -1
- package/lib/LinkedStateMixin.js +1 -3
- package/lib/PooledClass.js +3 -1
- package/lib/React.js +0 -1
- package/lib/ReactAddonsDOMDependencies.js +35 -0
- package/lib/ReactAddonsDOMDependenciesUMDShim.js +31 -0
- package/lib/ReactCSSTransitionGroup.js +60 -43
- package/lib/ReactCSSTransitionGroupChild.js +2 -3
- package/lib/ReactChildren.js +0 -1
- package/lib/ReactClass.js +38 -54
- package/lib/ReactComponent.js +0 -1
- package/lib/ReactComponentTreeDevtool.js +0 -1
- package/lib/ReactComponentTreeHook.js +84 -101
- package/lib/{DOMNamespaces.js → ReactComponentTreeHookUMDShim.js} +4 -7
- package/lib/ReactComponentWithPureRenderMixin.js +0 -1
- package/lib/ReactCurrentOwner.js +1 -2
- package/lib/{renderSubtreeIntoContainer.js → ReactCurrentOwnerUMDShim.js} +5 -4
- package/lib/ReactDOMFactories.js +0 -1
- package/lib/ReactElement.js +6 -14
- package/lib/ReactElementSymbol.js +19 -0
- package/lib/{ReactDOMComponentFlags.js → ReactElementType.js} +3 -9
- package/lib/ReactElementValidator.js +1 -3
- package/lib/ReactFragment.js +0 -1
- package/lib/ReactLink.js +0 -1
- package/lib/ReactNoopUpdateQueue.js +0 -1
- package/lib/ReactPropTypeLocationNames.js +1 -1
- package/lib/ReactPropTypeLocations.js +2 -12
- package/lib/ReactPropTypes.js +5 -3
- package/lib/ReactPropTypesSecret.js +1 -1
- package/lib/ReactPureComponent.js +0 -1
- package/lib/ReactStateSetters.js +0 -1
- package/lib/ReactTransitionChildMapping.js +0 -1
- package/lib/ReactTransitionEvents.js +1 -2
- package/lib/ReactTransitionGroup.js +145 -142
- package/lib/ReactUMDEntry.js +11 -6
- package/lib/{ReactDOMFeatureFlags.js → ReactUMDShim.js} +3 -6
- package/lib/ReactVersion.js +1 -2
- package/lib/ReactWithAddons.js +15 -3
- package/lib/ReactWithAddonsUMDEntry.js +11 -6
- package/lib/canDefineProperty.js +2 -1
- package/lib/checkReactTypeSpec.js +0 -1
- package/lib/deprecated.js +0 -1
- package/lib/flattenChildren.js +0 -1
- package/lib/getIteratorFn.js +0 -1
- package/lib/onlyChild.js +0 -1
- package/lib/reactProdInvariant.js +0 -1
- package/lib/shallowCompare.js +1 -2
- package/lib/sliceChildren.js +0 -1
- package/lib/traverseAllChildren.js +11 -3
- package/lib/update.js +6 -8
- package/package.json +1 -1
- package/lib/AutoFocusUtils.js +0 -24
- package/lib/BeforeInputEventPlugin.js +0 -390
- package/lib/CSSProperty.js +0 -148
- package/lib/CSSPropertyOperations.js +0 -205
- package/lib/CallbackQueue.js +0 -106
- package/lib/ChangeEventPlugin.js +0 -325
- package/lib/DOMChildrenOperations.js +0 -194
- package/lib/DOMLazyTree.js +0 -118
- package/lib/DOMProperty.js +0 -206
- package/lib/DOMPropertyOperations.js +0 -221
- package/lib/Danger.js +0 -48
- package/lib/DefaultEventPluginOrder.js +0 -27
- package/lib/DisabledInputUtils.js +0 -50
- package/lib/EnterLeaveEventPlugin.js +0 -105
- package/lib/EventConstants.js +0 -97
- package/lib/EventPluginHub.js +0 -251
- package/lib/EventPluginRegistry.js +0 -247
- package/lib/EventPluginUtils.js +0 -229
- package/lib/EventPropagators.js +0 -137
- package/lib/FallbackCompositionState.js +0 -95
- package/lib/HTMLDOMPropertyConfig.js +0 -212
- package/lib/LinkedValueUtils.js +0 -136
- package/lib/NativeMethodsMixin.js +0 -167
- package/lib/ReactBrowserEventEmitter.js +0 -330
- package/lib/ReactChildReconciler.js +0 -154
- package/lib/ReactChildrenMutationWarningHook.js +0 -54
- package/lib/ReactComponentBrowserEnvironment.js +0 -30
- package/lib/ReactComponentEnvironment.js +0 -45
- package/lib/ReactComponentTreeTestUtils.js +0 -87
- package/lib/ReactCompositeComponent.js +0 -904
- package/lib/ReactDOM.js +0 -110
- package/lib/ReactDOMButton.js +0 -24
- package/lib/ReactDOMComponent.js +0 -1006
- package/lib/ReactDOMComponentTree.js +0 -188
- package/lib/ReactDOMContainerInfo.js +0 -33
- package/lib/ReactDOMEmptyComponent.js +0 -60
- package/lib/ReactDOMFiber.js +0 -76
- package/lib/ReactDOMIDOperations.js +0 -34
- package/lib/ReactDOMInput.js +0 -269
- package/lib/ReactDOMNullInputValuePropHook.js +0 -43
- package/lib/ReactDOMOption.js +0 -123
- package/lib/ReactDOMSelect.js +0 -201
- package/lib/ReactDOMSelection.js +0 -212
- package/lib/ReactDOMServer.js +0 -26
- package/lib/ReactDOMTextComponent.js +0 -164
- package/lib/ReactDOMTextarea.js +0 -155
- package/lib/ReactDOMTreeTraversal.js +0 -136
- package/lib/ReactDOMUnknownPropertyHook.js +0 -112
- package/lib/ReactDebugTool.js +0 -301
- package/lib/ReactDefaultBatchingStrategy.js +0 -68
- package/lib/ReactDefaultInjection.js +0 -84
- package/lib/ReactEmptyComponent.js +0 -30
- package/lib/ReactErrorUtils.js +0 -76
- package/lib/ReactEventEmitterMixin.js +0 -33
- package/lib/ReactEventListener.js +0 -157
- package/lib/ReactFeatureFlags.js +0 -22
- package/lib/ReactHostComponent.js +0 -76
- package/lib/ReactHostOperationHistoryHook.js +0 -37
- package/lib/ReactInjection.js +0 -36
- package/lib/ReactInputSelection.js +0 -124
- package/lib/ReactInstanceHandles.js +0 -302
- package/lib/ReactInstanceMap.js +0 -48
- package/lib/ReactInstrumentation.js +0 -21
- package/lib/ReactInvalidSetStateWarningHook.js +0 -36
- package/lib/ReactMarkupChecksum.js +0 -50
- package/lib/ReactMount.js +0 -534
- package/lib/ReactMultiChild.js +0 -451
- package/lib/ReactMultiChildUpdateTypes.js +0 -32
- package/lib/ReactNative.js +0 -71
- package/lib/ReactNativeAttributePayload.js +0 -371
- package/lib/ReactNativeBaseComponent.js +0 -198
- package/lib/ReactNativeBridgeEventPlugin.js +0 -60
- package/lib/ReactNativeComponentEnvironment.js +0 -31
- package/lib/ReactNativeComponentTree.js +0 -68
- package/lib/ReactNativeContainerInfo.js +0 -21
- package/lib/ReactNativeDOMIDOperations.js +0 -79
- package/lib/ReactNativeDefaultInjection.js +0 -101
- package/lib/ReactNativeEventEmitter.js +0 -191
- package/lib/ReactNativeEventPluginOrder.js +0 -16
- package/lib/ReactNativeGlobalResponderHandler.js +0 -25
- package/lib/ReactNativeMount.js +0 -193
- package/lib/ReactNativePropRegistry.js +0 -52
- package/lib/ReactNativeReconcileTransaction.js +0 -129
- package/lib/ReactNativeTagHandles.js +0 -56
- package/lib/ReactNativeTextComponent.js +0 -71
- package/lib/ReactNativeTreeTraversal.js +0 -127
- package/lib/ReactNodeTypes.js +0 -40
- package/lib/ReactNoop.js +0 -173
- package/lib/ReactOwner.js +0 -94
- package/lib/ReactPerf.js +0 -494
- package/lib/ReactReconcileTransaction.js +0 -178
- package/lib/ReactReconciler.js +0 -168
- package/lib/ReactRef.js +0 -80
- package/lib/ReactServerBatchingStrategy.js +0 -22
- package/lib/ReactServerRendering.js +0 -90
- package/lib/ReactServerRenderingTransaction.js +0 -90
- package/lib/ReactServerUpdateQueue.js +0 -141
- package/lib/ReactSimpleEmptyComponent.js +0 -37
- package/lib/ReactTestMount.js +0 -126
- package/lib/ReactTestReconcileTransaction.js +0 -121
- package/lib/ReactTestRenderer.js +0 -144
- package/lib/ReactTestUtils.js +0 -518
- package/lib/ReactUpdateQueue.js +0 -226
- package/lib/ReactUpdates.js +0 -251
- package/lib/ResponderEventPlugin.js +0 -510
- package/lib/ResponderSyntheticEvent.js +0 -39
- package/lib/ResponderTouchHistoryStore.js +0 -184
- package/lib/SVGDOMPropertyConfig.js +0 -302
- package/lib/SelectEventPlugin.js +0 -196
- package/lib/SimpleEventPlugin.js +0 -635
- package/lib/SyntheticAnimationEvent.js +0 -39
- package/lib/SyntheticClipboardEvent.js +0 -38
- package/lib/SyntheticCompositionEvent.js +0 -36
- package/lib/SyntheticDragEvent.js +0 -36
- package/lib/SyntheticEvent.js +0 -268
- package/lib/SyntheticFocusEvent.js +0 -36
- package/lib/SyntheticInputEvent.js +0 -37
- package/lib/SyntheticKeyboardEvent.js +0 -84
- package/lib/SyntheticMouseEvent.js +0 -72
- package/lib/SyntheticTouchEvent.js +0 -45
- package/lib/SyntheticTransitionEvent.js +0 -39
- package/lib/SyntheticUIEvent.js +0 -59
- package/lib/SyntheticWheelEvent.js +0 -54
- package/lib/TapEventPlugin.js +0 -110
- package/lib/TouchHistoryMath.js +0 -99
- package/lib/Transaction.js +0 -233
- package/lib/ViewportMetrics.js +0 -27
- package/lib/accumulate.js +0 -46
- package/lib/accumulateInto.js +0 -58
- package/lib/adler32.js +0 -44
- package/lib/createMicrosoftUnsafeLocalFunction.js +0 -32
- package/lib/createReactNativeComponentClass.js +0 -42
- package/lib/dangerousStyleValue.js +0 -79
- package/lib/escapeTextContentForBrowser.js +0 -123
- package/lib/findDOMNode.js +0 -60
- package/lib/findNodeHandle.js +0 -91
- package/lib/forEachAccumulated.js +0 -31
- package/lib/getEventCharCode.js +0 -50
- package/lib/getEventKey.js +0 -102
- package/lib/getEventModifierState.js +0 -43
- package/lib/getEventTarget.js +0 -35
- package/lib/getHostComponentFromComposite.js +0 -30
- package/lib/getNodeForCharacterOffset.js +0 -74
- package/lib/getTestDocument.js +0 -21
- package/lib/getTextContentAccessor.js +0 -33
- package/lib/getVendorPrefixedEventName.js +0 -101
- package/lib/instantiateReactComponent.js +0 -119
- package/lib/isEventSupported.js +0 -60
- package/lib/isTextInputElement.js +0 -51
- package/lib/quoteAttributeValueForBrowser.js +0 -26
- package/lib/reactComponentExpect.js +0 -217
- package/lib/setInnerHTML.js +0 -98
- package/lib/setTextContent.js +0 -48
- package/lib/shouldUpdateReactComponent.js +0 -42
- 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;
|