- Chart
- ChartSequence
- addUnique
- addWeights
- getAspects
- getConjunctions
- getMutations
- getOccupation
- getSprings
- getTranslations
- getAttributeArray
- makeAspectsFor
- houseRange
- slugify
- Figure
- companion
- isSinisterOf
- isDexterOf
Base Geomancy Chart Model
Parameters
sequence(ChartSequence | array) The starting set of mothers (optional, defaultnull)querentnumber The 0-indexed house of the querent (optional, default0)quesitednumber The 0-indexed house of the quesited (optional, default-1)
Makes a copy of this chart.
Returns Chart clone of this chart
Get the house and type of company, if it exists.
Parameters
house(House | number) to check for company
Returns (Object | null) if in company, then returns an object: {house: index, company: companyType}
Get the specified house by index.
Parameters
indexnumber position
Returns House at position
Get an array of all the houses from this chart.
Returns array all 12 houses, note that the array is 0-indexed
Find the Geomantic "index" of a chart.
Returns House at index
Calculate and return the total "indication" weight for this chart.
Returns number weighted total with positive numbers indicating success/true.
Gets the chart indications for the specified querest and quesited houses.
Parameters
querentnumber querent to use for this call (optional, defaultthis.querent)quesitednumber quesited to use for this call (optional, defaultthis.quesited)inCompanyboolean flag to prevent endless recursion on companies (optional, defaultfalse)
Examples
{
"springs": {
"querent": [
{
"from": 1,
"to": 4
}
],
"quesited": []
},
"occupations": [],
"conjunctions": {
"querent": [],
"quesited": []
},
"mutations": [],
"translations": [
{
"querent": 11,
"quesited": 8,
"weight": 3
}
],
"trines": [],
"squares": [
{
"direction": "sinister",
"querent": 4,
"quesited": 7,
"weight": -4
}
],
"oppositions": [],
"sextiles": [
{
"direction": "sinister",
"querent": 4,
"quesited": 6,
"weight": 2
}
]
}Returns Object a dictionary of Indications
Find and return the house for the part of fortune.
Returns House Part of Fortune
Get the mothers as an array.
Parameters
slugifyBoolean convert to slugs (optional, defaultfalse)
Returns array<House> four mother houses
Get the chart houses as a map
Returns Map<String, House> Shield houses keyed by name in the shield
Return the way of the point as an array, if it exists.
Returns Array<Number> Array of indexes of points in the way
A sequence of geomantic figures, which is seeded by the first four houses, and projects all the rest from them.
Parameters
args...any
Set the Figure at slot ix
Parameters
Returns null nothing
Get the figure at or projected to that index
Parameters
ixnumber position
Returns Figure figure at position
Project the Daughter figures
Parameters
ixNumber position
Returns Figure daughter
Project any arbitrary higher position
Parameters
ixNumber position
Returns Figure at position
Adds unique values of one dictionary to another, appending to arrays, and walking sub-objects.
Parameters
Returns Object merged dict
Adds up indication weights for a set of indications.
Parameters
Returns Object indications with weights
Get all trines, squares, oppositions, and sextiles from a set of houses, including those caused by springs.
Parameters
initialQuerentHouse base querentinitialQuesitedHouse base quesitedspringsArray<Object> list of springshousesArray<House> list of chart houses
Returns Object Aspect set
Find conjunctions for a given set of houses.
Parameters
querentHouse chart querentquesitedHouse chart quesitedhousesArray<House> List of chart houses
Returns Object<String, Array> Conjunctions
Find mutations for a given set of houses
Parameters
Returns Array<Object> list of mutations
[getOccupation description]
Parameters
querent[type] [description]quesited[type] [description]
Returns [type] [description]
[getSprings description]
Parameters
querent[type] [description]quesited[type] [description]houses[type] [description]
Returns [type] [description]
[getTranslations description]
Parameters
querent[type] [description]quesited[type] [description]houses[type] [description]
Returns [type] [description]
walks an indications structure, returning an array of keyed values
Parameters
dict[type] [description]member[type] [description]
Returns [type] [description]
[makeAspectsFor description]
Parameters
aspects[type] [description]querent[type] [description]quesited[type] [description]
Returns [type] [description]
Forces x into the range 0-11
Parameters
xnumber input
Returns number safe number
Converts a simple string into a slug for urls
Parameters
nameString to slugify
Returns String slugified version
A Geomantic Figure
Parameters
flagsString element flags
Gets one Figure by name.
Parameters
nameString to find
Returns Figure named figure
Gets one Figure by its Flags.
Parameters
flagsString element flags
Returns Fgure figure with flags
Gets a Figure by elements.
Parameters
Returns Figure figure with specified flags.
returns the companion house index.
returns whether 'other' is sinister to this House
Parameters
other(House | Number) House or index of it
Returns Boolean true if this one is sinister to other one
returns whether 'other' is dexter to this House
Parameters
other(House | Number) House or index of it
Returns Boolean true if this one is dexter to other one