This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Maximum depth objects will be converted | |
const MAX_DEPTH = 2; | |
/** | |
* Check whether an object is likely an ArcGIS Maps SDK object. | |
* @param {object} obj object or class | |
* @returns {boolean} | |
*/ | |
function isMapsSDKObject(obj) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys, os | |
# FIX PATHS FOR IMPORTS & DLL WHEN RUNNING ON SERVER | |
# (otherwise, it will try to load ArcPy from the Python 2.7 libraries when called via ArcGIS Server) | |
if ("\\Server\\framework\\runtime\\" in sys.executable): | |
# Get installation base (e.g. C:\Program Files\ArcGIS) | |
base = sys.executable.rsplit("\\Server\\", 1)[0] | |
baseLower = base.lower() | |
# Remove invalid python import paths |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
LITE-ELEMENT-I18N | |
Lit Element i18n © 2021 by David Blanchard is licensed under CC BY 4.0 | |
Extension of the lit-element to add base support for an i18n dictionnary. | |
*/ | |
import {LitElement} from "lit"; | |
/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import {LitElement, html, css} from "lit"; | |
class MyElement extends LitElement { | |
/** | |
* Reactive Properties | |
*/ | |
static properties = { | |
name: {type: String, attribute: true, reflect: false}, | |
}; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* HTML Element Plus – Add helper methods to HTMLElement for Web Components. | |
*/ | |
/*eslint-disable accessor-pairs,no-empty-function,no-unused-vars,no-use-before-define*/ | |
/** | |
* The class to extend in order to access helper methods from a Web Component. | |
*/ | |
export default class HTMLElementPlus extends HTMLElement { |