MCPcopy
hub / github.com/python-visualization/folium / JsCode

Class JsCode

folium/utilities.py:443–453  ·  view source on GitHub ↗

Wrapper around Javascript code.

Source from the content-addressed store, hash-verified

441
442
443class JsCode:
444 """Wrapper around Javascript code."""
445
446 def __init__(self, js_code: Union[str, "JsCode"]):
447 if isinstance(js_code, JsCode):
448 self.js_code: str = js_code.js_code
449 else:
450 self.js_code = js_code
451
452 def __str__(self):
453 return self.js_code
454
455
456def parse_font_size(value: Union[str, int, float]) -> str:

Callers 10

__init__Method · 0.90
__init__Method · 0.90
test_js_code_init_strFunction · 0.90
test_includeFunction · 0.90
test_realtimeFunction · 0.90

Calls

no outgoing calls

Tested by 7

test_js_code_init_strFunction · 0.72
test_includeFunction · 0.72
test_realtimeFunction · 0.72