conflict_resolution stringlengths 27 16k |
|---|
<<<<<<<
/*
* @class Handler for loading entities into engine
* @extends ConfigHandler
* @param {World} world
* @param {Function} getConfig
* @param {Function} updateObject
*/
=======
/**
* @class
* @private
*/
>>>>>>>
/**
* @class Handler for loading entities into engine
* @extends ConfigHandle... |
<<<<<<<
'goo/math/Matrix3',
'goo/math/Matrix4',
=======
'goo/math/Matrix3x3',
'goo/math/Matrix4x4',
'goo/math/Vector2',
>>>>>>>
'goo/math/Matrix3',
'goo/math/Matrix4',
'goo/math/Vector2',
<<<<<<<
Matrix3,
Matrix4,
=======
Matrix3x3,
Matrix4x4,
Vector2,
>>>>>>>
Matrix3,
Matrix4,
Vector2,
<<<<<<<
... |
<<<<<<<
HEX_ICON: '/assets/icons/hex-icon-dark.svg',
HEX_ICON_DARK: '/assets/icons/hex-icon-dark.svg',
=======
XHT_ICON: '/assets/icons/xht-icon.svg',
XHT_ICON_DARK: '/assets/icons/xht-icon-dark.svg',
>>>>>>>
XHT_ICON: '/assets/icons/xht-icon.svg',
XHT_ICON_DARK: '/assets/icons/xht-icon-dark.svg',
<<<<<<<
HE... |
<<<<<<<
/*Object.defineProperty(this, 'id', {
=======
//! AT: not sure if this tags/attributes abstraction is really needed or if they are just glorified properties
this._tags = {};
this._attributes = {};
Object.defineProperty(this, 'id', {
>>>>>>>
//! AT: not sure if this tags/attributes abstraction is... |
<<<<<<<
PhysicsSystem.prototype.raycastAll = function (start, direction, distance, options, callback) {
if (typeof options === 'function') {
=======
PhysicsSystem.prototype.raycastAll = function (start, direction, maxDistance, options, callback) {
if (typeof(options) === 'function') {
>>>>>>>
PhysicsSystem.pr... |
<<<<<<<
return store;
}
},
order: [
0, 4, 8, 12,
1, 5, 9, 13,
2, 6, 10, 14
],
prevertex: [
'#ifdef JOINTIDS',
'attribute vec4 vertexJointIDs;',
'#endif',
'#ifdef WEIGHTS',
'attribute vec4 vertexWeights;',
'#endif',
'#ifdef JOINT_COUNT',
'uniform vec4 jointPalette[JOINT_COUNT];',
'#endif... |
<<<<<<<
world.registerComponent(RigidbodyComponent);
goo.setRenderSystem(new PhysicsDebugRenderSystem());
=======
world.registerComponent(RigidBodyComponent);
>>>>>>>
world.registerComponent(RigidBodyComponent);
goo.setRenderSystem(new PhysicsDebugRenderSystem()); |
<<<<<<<
define([
'goo/math/Vector3',
'goo/math/MathUtils'
],
/** @lends */
function (
Vector3,
MathUtils
) {
=======
define([
'goo/math/Vector3',
'goo/math/MathUtils'
], function (
Vector3,
MathUtils
) {
>>>>>>>
define([
'goo/math/Vector3',
'goo/math/MathUtils'
], function (
Vector3,
MathUtils
) {
<<<<... |
<<<<<<<
if(!environment.panDirty) {
return;
}
=======
if(!environment.dirty) { return ;}
>>>>>>>
if(!environment.dirty) {
return;
}
<<<<<<<
var entity = environment.entity;
=======
var entity = environment.entity;
var transform = entity.transformComponent.transform;
>>>>>>>
v... |
<<<<<<<
'goo/addons/physicspack/systems/PhysicsDebugRenderSystem',
'goo/addons/physicspack/components/AbstractRigidbodyComponent',
=======
'goo/addons/physicspack/components/AbstractRigidBodyComponent',
>>>>>>>
'goo/addons/physicspack/systems/PhysicsDebugRenderSystem',
'goo/addons/physicspack/components/Abstrac... |
<<<<<<<
renderables.forEach(function (renderable) {
renderable.transform.translation.set(entity.transformComponent.worldTransform.translation);
=======
for (var k = 0; k < renderables.length; k++) {
var renderable = renderables[k];
renderable.transform.translation.setVector(entity.transfor... |
<<<<<<<
'test/addons/physicspack/systems/PhysicsDebugRenderSystem-test',
'test/addons/physicspack/components/RigidbodyComponent-test',
=======
'test/addons/physicspack/components/RigidBodyComponent-test',
>>>>>>>
'test/addons/physicspack/systems/PhysicsDebugRenderSystem-test',
'test/addons/physicspack/component... |
<<<<<<<
return angle;
};
/**
* Clones the quaternion
* @returns {Quaternion} Clone of self
*/
Quaternion.prototype.clone = function () {
return new Quaternion(this.x, this.y, this.z, this.w);
};
/**
* Calculates the dot product between the current quaternion and another quaternion.
* @param rhs Quaternion on t... |
<<<<<<<
module.exports = ScaleAction;
=======
ScaleAction.prototype.enter = function (fsm) {
if (!this.everyFrame) {
this.applyScale(fsm);
}
};
ScaleAction.prototype.update = function (fsm) {
if (this.everyFrame) {
this.applyScale(fsm);
}
};
return ScaleAction;
});
>>>>>>>
ScaleAction.prototyp... |
<<<<<<<
RigidBodyComponent.copyScaleFromColliderToCannonShape = function (cannonShape, collider) {
if (collider instanceof SphereCollider) {
cannonShape.radius = collider.radius;
} else if (collider instanceof BoxCollider) {
cannonShape.halfExtents.copy(collider.halfExtents);
} else if (collider instanceof... |
<<<<<<<
tmpVec.set(a.scale).mul(b.scale);
this.scale.set(tmpVec);
=======
tmpVec.setVector(a.scale).mulVector(b.scale);
this.scale.setVector(tmpVec);
return this;
>>>>>>>
tmpVec.set(a.scale).mul(b.scale);
this.scale.set(tmpVec);
return this;
<<<<<<<
this.scale.set(Vector3.ONE);
=======
this.... |
<<<<<<<
SuperCamScript.prototype.updateButtonState = function(buttonIndex, down) {
if (buttonIndex === 2 || buttonIndex === 0 && this.shiftKey) {
OrbitCamControlScript.prototype.updateButtonState.call(this, 0, down);
} else if (buttonIndex === 1 || buttonIndex === 0 && this.altKey) {
=======
OrbitNPanControl... |
<<<<<<<
function Bloom(id) {
BloomPass.call(this);
this.id = id;
=======
/** @class */
function Bloom() {
BloomPass.call(this, arguments);
>>>>>>>
/** @class */
function Bloom(id) {
BloomPass.call(this);
this.id = id; |
<<<<<<<
model.get('errors').add('meta_title', '优化标题不能超过 150 个字符。');
=======
model.get('errors').add('metaTitle', 'Meta Title cannot be longer than 150 characters.');
>>>>>>>
model.get('errors').add('metaTitle', '优化标题不能超过 150 个字符。');
<<<<<<<
model.get('errors').add('me... |
<<<<<<<
/*
* @class Handler for loading project into engine (actually loading mainScene)
* @extends ConfigHandler
* @param {World} world
* @param {Function} getConfig
* @param {Function} updateObject
=======
/*jshint eqeqeq: false, -W041 */
/**
* @class
* @constructor
* @private
>>>>>>>
/*jshint ... |
<<<<<<<
* @param {Object} object
* @param {string[]} methodNames
=======
* @param object
* @param {Array<string>} methodNames
>>>>>>>
* @param {Object} object
* @param {Array<string>} methodNames
<<<<<<<
=======
/**
* Performs a component-wise addition and stores the result in a separate vector. Eq... |
<<<<<<<
'goo/renderer/RendererUtils',
=======
'goo/renderer/RendererUtils',
'goo/math/MathUtils',
>>>>>>>
'goo/math/MathUtils',
<<<<<<<
RendererUtils,
=======
RendererUtils,
MathUtils,
>>>>>>>
MathUtils, |
<<<<<<<
'goo/util/ArrayUtil',
'goo/util/rsvp'
], function(
=======
'goo/util/ArrayUtil'
],
/** @lends */
function(
>>>>>>>
'goo/util/ArrayUtil',
'goo/util/rsvp'
],
/** @lends */
function(
<<<<<<<
/*
* @class For handling loading of transform component
* @constructor
* @param {World} world The goo world... |
<<<<<<<
'goo/math/Vector3',
'goo/math/Ray',
=======
'goo/math/Vector3',
'goo/math/Matrix4x4',
>>>>>>>
'goo/math/Vector3',
'goo/math/Ray',
<<<<<<<
Vector3,
Ray,
=======
Vector3,
Matrix4x4,
>>>>>>>
Vector3,
Ray,
<<<<<<<
this.compileRenderables();
=======
// Build geometry
this._quadMesh = new ... |
<<<<<<<
module.exports = LookAtAction;
=======
LookAtAction.prototype.enter = function (fsm) {
if (!this.everyFrame) {
this.doLookAt(fsm);
}
};
LookAtAction.prototype.update = function (fsm) {
if (this.everyFrame) {
this.doLookAt(fsm);
}
};
return LookAtAction;
});
>>>>>>>
LookAtAction.prototy... |
<<<<<<<
goog.provide('ol.renderer.canvas.Renderer');
goog.provide('ol.renderer.canvas.isSupported');
=======
goog.provide('ol.renderer.canvas.SUPPORTED');
>>>>>>>
goog.provide('ol.renderer.canvas.Renderer');
goog.provide('ol.renderer.canvas.SUPPORTED');
<<<<<<<
ol.renderer.canvas.isSupported = ol.canvas.isSupported... |
<<<<<<<
* @param {ol.source.TileWMSOptions} options Tile WMS options.
=======
* @implements {ol.source.FeatureInfoSource}
* @param {olx.source.TileWMSOptions} options Tile WMS options.
>>>>>>>
* @param {olx.source.TileWMSOptions} options Tile WMS options.
<<<<<<<
=======
/**
* @private
* @type {olx.so... |
<<<<<<<
var geom = parser.createGeometry({geometry: obj.geometry});
parser.srsName = 'foo';
=======
var geom = parser.createGeometry_({geometry: obj.geometry});
parser.applyWriteOptions(obj);
>>>>>>>
var geom = parser.createGeometry({geometry: obj.geometry});
parser.ap... |
<<<<<<<
};
/**
* @param {number|undefined} opt_arg Get or set the current zoom level.
* @returns {ol.Map|number|undefined} current zoom level on get or the map.
*/
ol.Map.prototype.zoom = function(opt_arg) {
if (arguments.length == 1 && goog.isDef(opt_arg)) {
return this.setZoom(opt_arg);
} else {
... |
<<<<<<<
if (goog.isDef(config.fillStyle)) {
goog.asserts.assertString(config.fillStyle, 'fillStyle must be a string');
}
/** @type {string|undefined} */
=======
goog.asserts.assertString(config.fillStyle, 'fillStyle must be a string');
/** @type {string} */
>>>>>>>
/** @type {string|undefined} */
<<... |
<<<<<<<
goog.require('ol.vec.Mat4');
=======
goog.require('ol.source.Image');
>>>>>>>
goog.require('ol.source.Image');
goog.require('ol.vec.Mat4'); |
<<<<<<<
parser.srsName = 'foo';
var geom = parser.createGeometry({geometry: obj.geometry});
=======
parser.applyWriteOptions(obj);
var geom = parser.createGeometry_({geometry: obj.geometry});
>>>>>>>
parser.applyWriteOptions(obj);
var geom = parser.createGeometry({geom... |
<<<<<<<
( metaRequired == metaPressed ) &&
( altRequired == altPressed ) &&
( ctrlRequired == ctrlPressed ) &&
( shiftRequired == shiftPressed )
=======
( altRequired === altPressed ) &&
( ctrlRequired === ctrlPressed ) &&
( shiftRequired === shift... |
<<<<<<<
};
export const SHOW_SUMMARY_ACCOUNT_DETAILS = false;
export const SHOW_TOTAL_ASSETS = false;
export const IS_XHT = true;
export const FIT_SCREEN_HEIGHT = ['trade'];
=======
};
export const SIMPLE_FORMAT_MIN = '0.1';
>>>>>>>
};
export const SHOW_SUMMARY_ACCOUNT_DETAILS = false;
export const SHOW_TOTAL_ASSE... |
<<<<<<<
uuid: DS.attr('string'),
name: DS.attr('string'),
slug: DS.attr('string'),
email: DS.attr('string'),
image: DS.attr('string'),
cover: DS.attr('string'),
bio: DS.attr('string'),
website: DS.attr('string'),
location: DS.attr('string'),
accessibility: DS.attr('string'),
... |
<<<<<<<
if ((this.dataset.x % 2 === 0 || this.dataset.y % 2 === 0) && (previewdiv.dataset.name === "straight-rail" || previewdiv.dataset.name === "train-stop")) {
var x = this.dataset.x;
var y = this.dataset.y;
if (x % 2 === 0) {
=======
if ((tile.dataset.x % 2 == 0 || tile.dataset.y %... |
<<<<<<<
var img = document.createElement("img");
=======
var span = document.createElement("span");
span.setAttribute("class", "preview__image-helper");
div.appendChild(span);
img = document.createElement("img");
>>>>>>>
var span = document.createElement("span");
span.setAttribu... |
<<<<<<<
angular.forEach(['formatDay', 'formatDayHeader', 'formatDayTitle', 'formatWeekTitle', 'formatMonthTitle', 'formatWeekViewDayHeader', 'formatHourColumn',
'showEventDetail', 'startingDayMonth', 'startingDayWeek', 'eventSource', 'queryMode'], function (key, index) {
self[key] = angu... |
<<<<<<<
mainLoop();
export {
renderer,
stage
};
=======
module.exports = App
>>>>>>>
module.exports = App
export {
renderer,
stage
}; |
<<<<<<<
=======
console.log('error getting oauth re-authenticate', error)
>>>>>>>
console.log('error getting oauth re-authenticate', error) |
<<<<<<<
=======
resizeBody.disableResize();
resizeDivFrame.disableResize();
>>>>>>>
resizeBody.disableResize();
resizeDivFrame.disableResize(); |
<<<<<<<
import { polyfillWindow, polyunfillWindow } from './spec-helpers'
import { asyncStorage } from './storage'
=======
import { memStorage } from './storage'
import { sessionKeys } from '../test-keys/session-keys'
>>>>>>>
import { polyfillWindow, polyunfillWindow } from './spec-helpers'
import { asyncStorage } f... |
<<<<<<<
const level = require('level')
const levelMem = require('level-mem')
const { addHexPrefix, toBuffer } = require('ethereumjs-util')
=======
const { setupPreConditions, verifyPostConditions, getDAOCommon } = require('./util.js')
const { addHexPrefix, rlp, bufferToInt } = require('ethereumjs-util')
>>>>>>>
cons... |
<<<<<<<
tape('Ensure that precompile activation creates non-empty accounts', async (t) => {
// setup the accounts for this test
const caller = Buffer.from('00000000000000000000000000000000000000ee', 'hex') // caller addres
const contractAddress = Buffer.from('000000000000000000000... |
<<<<<<<
const level = require('level')
const levelMem = require('level-mem')
const { promisify } = require('util')
const { addHexPrefix, toBuffer } = require('ethereumjs-util')
=======
const { setupPreConditions, verifyPostConditions, getDAOCommon } = require('./util.js')
const { addHexPrefix } = require('ethereumjs-... |
<<<<<<<
coreHelpers.tag_cloud = require('./tag_cloud');
coreHelpers.ghost_script_tags = require('./ghost_script_tags');
=======
coreHelpers.prev_post = require('./prev_next');
coreHelpers.next_post = require('./prev_next');
>>>>>>>
coreHelpers.tag_cloud = require('./tag_cloud');
coreHelpers.prev_post = require('./p... |
<<<<<<<
Revolver.prototype.VERSION = '1.0.5'; // version info
=======
Revolver.prototype.VERSION = '1.0.6'; // version info
>>>>>>>
Revolver.prototype.VERSION = '1.0.6'; // version info
<<<<<<<
var revolver, easingMap, easing, nextSlide, nextSlidePromise, currentSlide;
====... |
<<<<<<<
var hashStartRe = /{$|{ $/;
=======
var hashStartingRe = /{$|{ $/;
var stripMixinsRe = /(\(.*\))/;
>>>>>>>
var hashStartRe = /{$|{ $/;
var stripMixinsRe = /(\(.*\))/;
<<<<<<<
if ( hashStartRe.test(app.cache.line) &&
app.cache.line.indexOf('=') !== -1 ) {
hashStart = true;
=======
if ( hashStartingRe... |
<<<<<<<
it('should return undefined if dir not string', function() {
assert.equal( undefined, app.ver( app, 0 ) );
});
=======
// it('should throw if no package.json found', function() {
// should.Throw(function() {
// app.ver( 5 );
// }, Error);
// });
>>>>>>>
it('should return undefined if d... |
<<<<<<<
if ( badConvention ) {
this.msg( 'preferred naming convention is ' + this.state.conf )
=======
if ( badConvention === true ) {
this.msg( 'preferred naming convention is ' + this.config.namingConvention )
>>>>>>>
if ( badConvention === true ) {
this.msg( 'preferred naming convention is ' + this.state... |
<<<<<<<
graphicColors: [],
legends: [],
type: ""
=======
loadingGrafics:[],
>>>>>>>
loadingGrafics:[],
<<<<<<<
ReportsService.loading({opportunity_id: MapasCulturais.entity.id}).success(function (data, status, headers){ ... |
<<<<<<<
=======
},
send: function(registrationId){
alert(getUrl('send', registrationId));
>>>>>>>
},
send: function(registrationId){
alert(getUrl('send', registrationId)); |
<<<<<<<
// Não adiciona os metadados geograficos que devem ser ocultos (que começam com "_")
if (prop.substr(0,4) == 'geo_')
return;
exportSelect.push(selectProperty);
... |
<<<<<<<
expect(autocomplete.selectedIndex).toBe(-1);
expect(suggestionsContainer.find('.autocomplete-no-suggestion').length).toBe(1);
expect(suggestionsContainer.find('.autocomplete-no-suggestion').text()).toBe('Sorry, no matching results');
});
});
describe('When options.preserveInput is ... |
<<<<<<<
if (this.options.showNoSuggestionNotice) {
this.noSuggestions();
} else {
this.hide();
}
=======
this.options.showNoSuggestionNotice ? this.noSuggestions() : this.hide();
>>>>>>>
this.options.showNoSuggestionNotice ? this.noSuggestions() : this.hide();
... |
<<<<<<<
containerClass: 'autocomplete-suggestions',
lookupFilter: function (suggestion, originalQuery, queryLowerCase) {
return suggestion.value.toLowerCase().indexOf(queryLowerCase) !== -1;
}
=======
containerClass: 'autocomplete-sug... |
<<<<<<<
removeMessage,
is_hap
=======
removeMessage,
onCloseEmoji
>>>>>>>
removeMessage,
is_hap,
onCloseEmoji
<<<<<<<
is_hap={is_hap}
=======
onCloseEmoji={onCloseEmoji}
>>>>>>>
is_hap={is_hap}
onCloseEmoji={onCloseEmoji} |
<<<<<<<
checkForImageError(imageArray);
document.getElementById('downloaded_from').innerHTML = 'Assets got from PEER!!';
=======
>>>>>>>
checkForImageError(imageArray);
document.getElementById('downloaded_from').innerHTML = 'Assets got from PEER!!';
<<<<<<<
return canvas.toDataURL(`image/... |
<<<<<<<
//assign ids to image
for (let key in imageArray) {
if (!isNaN(key)) imageArray[key].setAttribute('id', key);
}
//image Id to append timestamp on each image
let imageId = 0;
=======
// checks if broswer is opened from mobile
const isMobile = checkForMobile()
console.log('Am I on mobile?: ', isMobile)
// E... |
<<<<<<<
label="hollaex-modal"
=======
label="exir-modal"
className="app-dialog"
>>>>>>>
label="hollaex-modal"
className="app-dialog" |
<<<<<<<
evalFrameMessageQueue: {
type: 'array',
items: { type: 'string' },
},
evalFrameReady: { type: 'boolean' },
=======
userData: { type: 'object' },
>>>>>>>
userData: { type: 'object' },
evalFrameMessageQueue: {
type: 'array',
items: { type: 'string' },
},
... |
<<<<<<<
=======
//import Interpreter from 'js-interpreter'
>>>>>>>
<<<<<<<
var initialState = newBlankState();
=======
// var INTERPRETER = new Interpreter('')
// INTERPRETER.defaultProperties = Object.keys(INTERPRETER.global.properties)
// INTERPRETER.declaredProperties = ()=>{
// var out = {};
// var de... |
<<<<<<<
export function changeSidePaneMode(sidePaneMode) {
=======
export function increaseEditorWidth() {
return {
type: 'INCREASE_EDITOR_WIDTH',
}
}
export function decreaseEditorWidth() {
return {
type: 'DECREASE_EDITOR_WIDTH',
}
}
export function changeSidePaneMode(mode) {
>>>>>>>
export functi... |
<<<<<<<
let IODIDE_SESSION_ID = queryString.parse(window.location.search).sessionId
let { editorOrigin } = queryString.parse(window.location.search)
if (IODIDE_BUILD_MODE === 'test') {
IODIDE_SESSION_ID = 'testing-session'
editorOrigin = 'http://testing.origin'
}
const mc = new MessageChannel();
window.parent.p... |
<<<<<<<
cells: [{
id: 5,
selected: true,
cellType: 'code',
},
],
mode: 'EDIT_MODE',
=======
cells: [{ id: 5, selected: true, inputFolding: 'VISIBLE' }],
mode: 'edit',
>>>>>>>
mode: 'EDIT_MODE',
cells: [{ id: 5, selected: true, inputFolding: 'VIS... |
<<<<<<<
const { remote, webFrame, shell, clipboard } = require('electron');
const { MenuItem, dialog } = remote;
=======
const { clipboard, remote, shell, webFrame } = require('electron');
>>>>>>>
const { clipboard, remote, shell, webFrame } = require('electron');
const { MenuItem, dialog } = remote; |
<<<<<<<
* $.after("minute", function() { ... }); // 1 minute
=======
* $.after("1 hour, 2 minutes, 15 seconds", function() { ... }); // 1:02:15 hours
* $.after("1min, 15 s", function() { ... }); // 1:15 minutes
>>>>>>>
* $.after("minute", function() { ... }); // 1 minute
* $.after("1 ho... |
<<<<<<<
=======
RunListHelper.getServiceConfigFromGithub(bosco, boscoService.name, function(err, svcConfig) {
if (err || !svcConfig) {
missingDependencies.push(boscoService.name);
return next();
}
if (!svcConfig.service || !svcConfig.service.type || svcCon... |
<<<<<<<
describe('Plotly.supplyDefaults', function() {
function testSanitizeMarginsHasBeenCalledOnlyOnce(gd) {
spyOn(Plots, 'sanitizeMargins').and.callThrough();
Plots.supplyDefaults(gd);
expect(Plots.sanitizeMargins).toHaveBeenCalledTimes(1);
}
it('shoul... |
<<<<<<<
'_ev', 'on', 'once', 'removeListener', 'removeAllListeners',
'emit', '_context', '_replotPending',
'_hmpixcount', '_hmlumcount', '_mouseDownTime'
=======
'_ev', '_internalEv', 'on', 'once', 'removeListener', 'removeAllListeners',
... |
<<<<<<<
else if(gd._context.showBrand) positionBrand(gd,toolspan);
=======
else if(!gd.mainsite && !gd.standalone &&
!$('#plotlyUserProfileMarker').length) {
positionPlayWithData(gd,toolspan);
}
>>>>>>>
if(gd._context.showBrand) positionPlayWithData(gd,tool... |
<<<<<<<
annotation: options._input,
fullAnnotation: options
=======
annotation: optionsIn,
fullAnnotation: options,
event: d3.event
>>>>>>>
annotation: options._input,
fullAnnotation: options,
... |
<<<<<<<
var DASH_PATTERNS = require('../../constants/gl3d_dashes');
var MARKER_SYMBOLS = require('../../constants/gl_markers');
=======
var Scatter = require('../scatter');
var DASH_PATTERNS = require('../../constants/gl3d_dashes.json');
var MARKER_SYMBOLS = require('../../constants/gl_markers.json');
>>>>>>>
var D... |
<<<<<<<
function clickOrDoubleClick(gd, legend, clickedTrace, numClicks, evt) {
var datum = clickedTrace.data()[0][0];
var evtData = {
event: evt,
node: clickedTrace.node(),
itemNumber: datum.i,
curveNumber: datum.trace.index,
data: gd.data,
layout: gd.layout,
... |
<<<<<<<
// user dragging the legend
// if x/yanchor is 'auto':
// aligns left/right/center on resize or new text if drag pos
// is in left 1/3, middle 1/3, right 1/3
// similar logic for top/middle/bottom
if(td._context.editable) {
=======
if(td.mainsite) {
>>>... |
<<<<<<<
if (scatter) scatter.update(params);
else {
params.pickId0 = (scene.objectCount++)%256;
params.pickId1 = (scene.objectCount++)%256;
params.pickId2 = (scene.objectCount++)%256;
params.pickId3 = (scene.objectCount++)%256;
=======
if (scatter) {
/*
... |
<<<<<<<
/*
* isEmpty
* @UTILITY
* check if object is empty and all arrays strings and objects within are empty
*/
lib.isEmpty = function (obj) {
/*
* Checks for empty arrays,
* objects and empty strings
* and objects and arrays that
* only contain empty arrays, objects
* and strings an... |
<<<<<<<
it('should use *marker.colors*', function() {
_calc({
marker: { colors: ['pink', '#777', '#f00', '#ff0', '#0f0', '#0ff', '#00f', '#f0f', '#fff'] },
labels: ['Eve', 'Cain', 'Seth', 'Enos', 'Noam', 'Abel', 'Awan', 'Enoch', 'Azura'],
parents: ['', 'Eve', 'Eve', 'Set... |
<<<<<<<
var oldModules = oldFullLayout._modules || [],
newModules = newFullLayout._modules || [];
var hadScatter, hasScatter, hadOHLC, hasOHLC, hadGl, hasGl, i, oldPlots, ids, subplotInfo, moduleName;
=======
var oldModules = oldFullLayout._modules || [];
var newModules = newFullLayout._modu... |
<<<<<<<
var DESELECTDIM = 0.2;
=======
var transparent = [0, 0, 0, 0];
>>>>>>>
var DESELECTDIM = 0.2;
var transparent = [0, 0, 0, 0];
<<<<<<<
proto.update = function(options, cdscatter) {
=======
function isSymbolOpen(symbol) {
return symbol.split('-open')[1] === '';
}
function fillColor(colorIn, colorOut, ... |
<<<<<<<
if(showLegend) {
coerce('bgcolor', layoutOut.paper_bgcolor);
coerce('bordercolor');
coerce('borderwidth');
coerce('font', layoutOut.font);
coerce('traceorder', defaultOrder);
coerce('x');
coerce('xanchor');
coerce('y');
coerce('yanchor'... |
<<<<<<<
import { Help, Chat } from './rows';
import STRINGS from '../../config/localizedStrings';
=======
>>>>>>>
import STRINGS from '../../config/localizedStrings';
<<<<<<<
</div>
{isLogged ?
<div className="sidebar-row d-flex">
<Chat
className="f-1 title-font text-capitalize justify-content-... |
<<<<<<<
uirevision: {
valType: 'any',
role: 'info',
editType: 'none',
description: [
'Controls persistence of user-driven changes in axis `range`,',
'`autorange`, `angle`, and `title` if in `editable: true` configuration.',
'Defaults to `polar<N>.u... |
<<<<<<<
plots['tetrahedra'] = require('@mocks/gl3d_tet.json');
plots['connectgaps'] = require('@mocks/gl3d_scatter3d-connectgaps.json');
=======
plots['tet'] = require('@mocks/gl3d_tet.json');
plots['surface_intensity'] = require('@mocks/gl3d_surface_intensity.json');
>>>>>>>
plots['connectgaps'] = require('@mocks/g... |
<<<<<<<
var modulesWithErrorBars = gd._modules.concat(Plotly.ErrorBars),
i,
module;
=======
var subplots = Plotly.Axes.getSubplots(gd),
modulesWithErrorBars = Plotly.ErrorBars ?
gd._modules.concat(Plotly.ErrorBars) : gd._modules,
fullLayout = gd._fullLayout;
va... |
<<<<<<<
coerce('hoverlabel.bgcolor');
coerce('hoverlabel.bordercolor');
Lib.coerceFont(coerce, 'hoverlabel.font');
=======
if(plots.traceIs(traceOut, 'showLegend')) {
coerce('showlegend');
coerce('legendgroup');
}
>>>>>>>
if(plots.traceIs(trac... |
<<<<<<<
it('@gl should only accept texts for textposition otherwise textposition is set to middle center before passing to webgl', function(done) {
Plotly.plot(gd, [{
type: 'scatter3d',
mode: 'markers+text+lines',
x: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16... |
<<<<<<<
var maindrag = makeDragBox(gd, plotinfo, 0, 0,
=======
var maindrag = dragBox(gd, plotinfo, xa._offset, ya._offset,
>>>>>>>
var maindrag = makeDragBox(gd, plotinfo, xa._offset, ya._offset,
<<<<<<<
makeDragBox(gd, plotinfo, -DRAGGERSIZE, -DRAGGERSIZE,
====... |
<<<<<<<
'<img src="/static/img/lil_share_white.png"/> Share'+
'</a>'+
'</div>'+
'</div>'
=======
'<img src="/static/img/lil_share_white.png"/> Share'+
'</a>'+
'... |
<<<<<<<
it('should not scroll document while panning', function(done) {
var mock = {
data: [
{ type: 'scattergl', y: [1, 2, 3], x: [1, 2, 3] }
],
layout: {
width: 500,
height: 500
}
};
var scene... |
<<<<<<<
it('should generate hover label info (hoverinfo: \'text\' + \'hovertext\' array case)', function(done) {
Plotly.restyle(gd, 'hovertext', ['Apple', 'Banana', 'Orange']).then(function() {
var xval = 11,
yval = 11;
var out = hoverPoints(getPointData(gd), xval, ... |
<<<<<<<
};
plots.rehover = function(gd) {
if(gd._fullLayout._rehover) {
gd._fullLayout._rehover();
}
=======
};
plots.generalUpdatePerTraceModule = function(subplot, subplotCalcData, subplotLayout) {
var traceHashOld = subplot.traceHash,
traceHash = {},
i;
function filterVis... |
<<<<<<<
var mouseEvent = require('../assets/mouse_event');
=======
var selectButton = require('../assets/modebar_button');
var customMatchers = require('../assets/custom_matchers');
>>>>>>>
var mouseEvent = require('../assets/mouse_event');
var selectButton = require('../assets/modebar_button');
var customMatchers =... |
<<<<<<<
// plot_bgcolor only makes sense if there's a (2D) plot!
// TODO: bgcolor for each subplot, to inherit from the main one
var plot_bgcolor = Color.background;
if(xaList.length && yaList.length) {
plot_bgcolor = Lib.coerce(layoutIn, layoutOut, Plots.layoutAttributes, 'plot_bgcolor');
}... |
<<<<<<<
annotations.draw = function(gd,index,opt,value) {
var gl = gd.layout,
gs = gl._size,
=======
annotations.draw = function(gd, index, opt, value) {
var layout = gd.layout,
fullLayout = gd._fullLayout,
gs = fullLayout._size,
>>>>>>>
annotations.dra... |
<<<<<<<
var moduleLayoutDefaults = ['Axes', 'Legend', 'Annotations', 'Shapes', 'Fx',
'Bars', 'Boxes', 'Gl3dLayout', 'Pie'];
=======
var moduleLayoutDefaults = [
'Axes', 'Legend', 'Annotations', 'Shapes', 'Fx',
'Bars', 'Boxes', 'Gl3dLayout', 'GeoLayout'
];
>... |
<<<<<<<
this.glDataMap = {};
=======
if (!this.shell) {
return;
}
this.camera = camera(shell);
>>>>>>>
this.glDataMap = {};
if (!this.shell) {
return;
}
this.camera = camera(shell); |
<<<<<<<
var createGraphDiv = require('../assets/create_graph_div');
var destroyGraphDiv = require('../assets/destroy_graph_div');
=======
var createGraphDiv = require('../assets/create_graph_div');
var destroyGraphDiv = require('../assets/destroy_graph_div');
>>>>>>>
var createGraphDiv = require('../assets/create_g... |
<<<<<<<
labelShift = 0,
gridWidth = Plotly.Drawing.crispRound(td, ax.gridwidth, 1),
zeroLineWidth = Plotly.Drawing.crispRound(td, ax.zerolinewidth, gridWidth),
tickWidth = Plotly.Drawing.crispRound(td, ax.tickwidth, 1),
sides, transfn, tickpathfn,
=======
gridWidth = Pl... |
<<<<<<<
Lib.markTime('done with calcdata for ' + i);
=======
>>>>>>>
<<<<<<<
traces = gd.data.map(function(v, i) { return i; });
=======
traces = gd._fullData.map(function(v, i) { return i; });
>>>>>>>
traces = gd.data.map(function(v, i) { return i; }); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.