worldoptimizer / hypereactivecontent Goto Github PK
View Code? Open in Web Editor NEWA small custom tailored extension to use hypeDocument.customData in a reactive manner.
License: MIT License
A small custom tailored extension to use hypeDocument.customData in a reactive manner.
License: MIT License
Then idea would be that one could declare scope on a node. Child nodes would be executed in that scope and variables set and fetched in the scope. If one would like to reset the scope one could start a visibility or content node with |
data-scope = hello
would lead to all children being evaluated as the scope
data-content = world
would be evaluated as
hello.world
data-content = |world
would be still evaluated as only world
if in a scoped branch
Assigning null caused in one case an error with the Symbol Proxy.
Key-Specific Update: If there's a specific key provided (i.e., the key is not undefined), and if the default configuration allows a custom data update for a key, then it triggers a function to update that key with a specific value.
General Update: Regardless of the key, if the default configuration allows a custom data update, it triggers a general function to update the key with a specific value.
Here's a rewritten and commented version of the code:
// Check if there's a specific key provided.
if (key !== undefined) {
// If a key-specific custom data update is allowed, then perform the key-specific update.
if (getDefault('customDataKeyUpdate')) {
getDefault('customDataKeyUpdate')(key, value, target, receiver);
}
}
// If a general custom data update is allowed, then perform the general update.
if (getDefault('customDataUpdate')) {
getDefault('customDataUpdate')(key, value);
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.