kepler.gl
Version:
kepler.gl is a webgl based application to visualize large scale location data in the browser
45 lines (42 loc) • 4.73 kB
JavaScript
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.UPDATE_AI_ASSISTANT_MESSAGES = exports.UPDATE_AI_ASSISTANT_CONFIG = exports.SET_START_SCREEN_CAPTURE = exports.SET_SCREEN_CAPTURED = void 0;
exports.setScreenCaptured = setScreenCaptured;
exports.setStartScreenCapture = setStartScreenCapture;
exports.updateAiAssistantConfig = updateAiAssistantConfig;
exports.updateAiAssistantMessages = updateAiAssistantMessages;
// SPDX-License-Identifier: MIT
// Copyright contributors to the kepler.gl project
var ACTION_PREFIX = '@@openassistant/';
var UPDATE_AI_ASSISTANT_CONFIG = exports.UPDATE_AI_ASSISTANT_CONFIG = "".concat(ACTION_PREFIX, "UPDATE_AI_ASSISTANT_CONFIG");
var UPDATE_AI_ASSISTANT_MESSAGES = exports.UPDATE_AI_ASSISTANT_MESSAGES = "".concat(ACTION_PREFIX, "UPDATE_AI_ASSISTANT_MESSAGES");
var SET_START_SCREEN_CAPTURE = exports.SET_START_SCREEN_CAPTURE = "".concat(ACTION_PREFIX, "SET_START_SCREEN_CAPTURE");
var SET_SCREEN_CAPTURED = exports.SET_SCREEN_CAPTURED = "".concat(ACTION_PREFIX, "SET_SCREEN_CAPTURED");
// Action creators
function updateAiAssistantConfig(config) {
return {
type: UPDATE_AI_ASSISTANT_CONFIG,
payload: config
};
}
function updateAiAssistantMessages(messages) {
return {
type: UPDATE_AI_ASSISTANT_MESSAGES,
payload: messages
};
}
function setStartScreenCapture(flag) {
return {
type: SET_START_SCREEN_CAPTURE,
payload: flag
};
}
function setScreenCaptured(screenshot) {
return {
type: SET_SCREEN_CAPTURED,
payload: screenshot
};
}
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJuYW1lcyI6WyJBQ1RJT05fUFJFRklYIiwiVVBEQVRFX0FJX0FTU0lTVEFOVF9DT05GSUciLCJleHBvcnRzIi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